pipedrive 22.4.0 → 22.6.0

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -300,6 +300,12 @@ app.get('/callback', (req, res) => {
300
300
 
301
301
 
302
302
 
303
+ ### basic_authentication
304
+
305
+ - **Type**: HTTP basic authentication
306
+
307
+
308
+
303
309
  ### oauth2
304
310
 
305
311
 
@@ -385,10 +391,12 @@ Class | Method | HTTP request | Description
385
391
  *Pipedrive.DealsApi* | [**duplicateDeal**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsApi.md#duplicateDeal) | **POST** /deals/{id}/duplicate | Duplicate deal
386
392
  *Pipedrive.DealsApi* | [**getDeal**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsApi.md#getDeal) | **GET** /deals/{id} | Get details of a deal
387
393
  *Pipedrive.DealsApi* | [**getDealActivities**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsApi.md#getDealActivities) | **GET** /deals/{id}/activities | List activities associated with a deal
394
+ *Pipedrive.DealsApi* | [**getDealChangelog**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsApi.md#getDealChangelog) | **GET** /deals/{id}/changelog | List updates about deal field values
388
395
  *Pipedrive.DealsApi* | [**getDealFiles**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsApi.md#getDealFiles) | **GET** /deals/{id}/files | List files attached to a deal
389
396
  *Pipedrive.DealsApi* | [**getDealFollowers**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsApi.md#getDealFollowers) | **GET** /deals/{id}/followers | List followers of a deal
390
397
  *Pipedrive.DealsApi* | [**getDealMailMessages**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsApi.md#getDealMailMessages) | **GET** /deals/{id}/mailMessages | List mail messages associated with a deal
391
398
  *Pipedrive.DealsApi* | [**getDealParticipants**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsApi.md#getDealParticipants) | **GET** /deals/{id}/participants | List participants of a deal
399
+ *Pipedrive.DealsApi* | [**getDealParticipantsChangelog**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsApi.md#getDealParticipantsChangelog) | **GET** /deals/{id}/participantsChangelog | List updates about participants of a deal
392
400
  *Pipedrive.DealsApi* | [**getDealPersons**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsApi.md#getDealPersons) | **GET** /deals/{id}/persons | List all persons associated with a deal
393
401
  *Pipedrive.DealsApi* | [**getDealProducts**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsApi.md#getDealProducts) | **GET** /deals/{id}/products | List products attached to a deal
394
402
  *Pipedrive.DealsApi* | [**getDealUpdates**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsApi.md#getDealUpdates) | **GET** /deals/{id}/flow | List updates about a deal
@@ -480,6 +488,7 @@ Class | Method | HTTP request | Description
480
488
  *Pipedrive.OrganizationsApi* | [**deleteOrganizations**](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationsApi.md#deleteOrganizations) | **DELETE** /organizations | Delete multiple organizations in bulk
481
489
  *Pipedrive.OrganizationsApi* | [**getOrganization**](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationsApi.md#getOrganization) | **GET** /organizations/{id} | Get details of an organization
482
490
  *Pipedrive.OrganizationsApi* | [**getOrganizationActivities**](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationsApi.md#getOrganizationActivities) | **GET** /organizations/{id}/activities | List activities associated with an organization
491
+ *Pipedrive.OrganizationsApi* | [**getOrganizationChangelog**](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationsApi.md#getOrganizationChangelog) | **GET** /organizations/{id}/changelog | List updates about organization field values
483
492
  *Pipedrive.OrganizationsApi* | [**getOrganizationDeals**](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationsApi.md#getOrganizationDeals) | **GET** /organizations/{id}/deals | List deals associated with an organization
484
493
  *Pipedrive.OrganizationsApi* | [**getOrganizationFiles**](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationsApi.md#getOrganizationFiles) | **GET** /organizations/{id}/files | List files attached to an organization
485
494
  *Pipedrive.OrganizationsApi* | [**getOrganizationFollowers**](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationsApi.md#getOrganizationFollowers) | **GET** /organizations/{id}/followers | List followers of an organization
@@ -510,6 +519,7 @@ Class | Method | HTTP request | Description
510
519
  *Pipedrive.PersonsApi* | [**deletePersons**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonsApi.md#deletePersons) | **DELETE** /persons | Delete multiple persons in bulk
511
520
  *Pipedrive.PersonsApi* | [**getPerson**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonsApi.md#getPerson) | **GET** /persons/{id} | Get details of a person
512
521
  *Pipedrive.PersonsApi* | [**getPersonActivities**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonsApi.md#getPersonActivities) | **GET** /persons/{id}/activities | List activities associated with a person
522
+ *Pipedrive.PersonsApi* | [**getPersonChangelog**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonsApi.md#getPersonChangelog) | **GET** /persons/{id}/changelog | List updates about person field values
513
523
  *Pipedrive.PersonsApi* | [**getPersonDeals**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonsApi.md#getPersonDeals) | **GET** /persons/{id}/deals | List deals associated with a person
514
524
  *Pipedrive.PersonsApi* | [**getPersonFiles**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonsApi.md#getPersonFiles) | **GET** /persons/{id}/files | List files attached to a person
515
525
  *Pipedrive.PersonsApi* | [**getPersonFollowers**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonsApi.md#getPersonFollowers) | **GET** /persons/{id}/followers | List followers of a person
@@ -755,6 +765,9 @@ Class | Method | HTTP request | Description
755
765
  - [Pipedrive.CallLogResponse500](https://github.com/pipedrive/client-nodejs/blob/master/docs/CallLogResponse500.md)
756
766
  - [Pipedrive.CallLogsResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/CallLogsResponse.md)
757
767
  - [Pipedrive.CallLogsResponseAdditionalData](https://github.com/pipedrive/client-nodejs/blob/master/docs/CallLogsResponseAdditionalData.md)
768
+ - [Pipedrive.ChangelogResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/ChangelogResponse.md)
769
+ - [Pipedrive.ChangelogResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/ChangelogResponseAllOf.md)
770
+ - [Pipedrive.ChangelogResponseAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/ChangelogResponseAllOfData.md)
758
771
  - [Pipedrive.ChannelObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/ChannelObject.md)
759
772
  - [Pipedrive.ChannelObjectResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/ChannelObjectResponse.md)
760
773
  - [Pipedrive.ChannelObjectResponseData](https://github.com/pipedrive/client-nodejs/blob/master/docs/ChannelObjectResponseData.md)
@@ -785,6 +798,7 @@ Class | Method | HTTP request | Description
785
798
  - [Pipedrive.DealOrganizationDataWithIdAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealOrganizationDataWithIdAllOf.md)
786
799
  - [Pipedrive.DealParticipantCountInfo](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealParticipantCountInfo.md)
787
800
  - [Pipedrive.DealParticipants](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealParticipants.md)
801
+ - [Pipedrive.DealParticipantsChangelog](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealParticipantsChangelog.md)
788
802
  - [Pipedrive.DealPersonData](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealPersonData.md)
789
803
  - [Pipedrive.DealPersonDataEmail](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealPersonDataEmail.md)
790
804
  - [Pipedrive.DealPersonDataPhone](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealPersonDataPhone.md)
@@ -1190,6 +1204,8 @@ Class | Method | HTTP request | Description
1190
1204
  - [Pipedrive.PaginationDetails](https://github.com/pipedrive/client-nodejs/blob/master/docs/PaginationDetails.md)
1191
1205
  - [Pipedrive.PaginationDetailsAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/PaginationDetailsAllOf.md)
1192
1206
  - [Pipedrive.Params](https://github.com/pipedrive/client-nodejs/blob/master/docs/Params.md)
1207
+ - [Pipedrive.ParticipantsChangelog](https://github.com/pipedrive/client-nodejs/blob/master/docs/ParticipantsChangelog.md)
1208
+ - [Pipedrive.ParticipantsChangelogItem](https://github.com/pipedrive/client-nodejs/blob/master/docs/ParticipantsChangelogItem.md)
1193
1209
  - [Pipedrive.PaymentItem](https://github.com/pipedrive/client-nodejs/blob/master/docs/PaymentItem.md)
1194
1210
  - [Pipedrive.PaymentsResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/PaymentsResponse.md)
1195
1211
  - [Pipedrive.PaymentsResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/PaymentsResponseAllOf.md)
package/dist/ApiClient.js CHANGED
@@ -61,6 +61,9 @@ var ApiClient = /*#__PURE__*/function () {
61
61
  name: 'api_token',
62
62
  apiKey: ''
63
63
  },
64
+ 'basic_authentication': {
65
+ type: 'basic'
66
+ },
64
67
  'oauth2': {
65
68
  type: 'oauth2',
66
69
  host: 'https://oauth.pipedrive.com',
@@ -12,6 +12,7 @@ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
12
12
  var _AddDealFollowerRequest = _interopRequireDefault(require("../model/AddDealFollowerRequest"));
13
13
  var _AddDealParticipantRequest = _interopRequireDefault(require("../model/AddDealParticipantRequest"));
14
14
  var _AddedDealFollower = _interopRequireDefault(require("../model/AddedDealFollower"));
15
+ var _ChangelogResponse = _interopRequireDefault(require("../model/ChangelogResponse"));
15
16
  var _DealFlowResponse = _interopRequireDefault(require("../model/DealFlowResponse"));
16
17
  var _DealListActivitiesResponse = _interopRequireDefault(require("../model/DealListActivitiesResponse"));
17
18
  var _DealParticipants = _interopRequireDefault(require("../model/DealParticipants"));
@@ -42,6 +43,7 @@ var _MergeDealsRequest = _interopRequireDefault(require("../model/MergeDealsRequ
42
43
  var _NewDeal = _interopRequireDefault(require("../model/NewDeal"));
43
44
  var _NewDealProduct = _interopRequireDefault(require("../model/NewDealProduct"));
44
45
  var _NumberBoolean = _interopRequireDefault(require("../model/NumberBoolean"));
46
+ var _ParticipantsChangelog = _interopRequireDefault(require("../model/ParticipantsChangelog"));
45
47
  var _PostDealParticipants = _interopRequireDefault(require("../model/PostDealParticipants"));
46
48
  var _UpdateDealProduct = _interopRequireDefault(require("../model/UpdateDealProduct"));
47
49
  var _UpdateDealRequest = _interopRequireDefault(require("../model/UpdateDealRequest"));
@@ -777,6 +779,70 @@ var DealsApi = /*#__PURE__*/function () {
777
779
  });
778
780
  }
779
781
 
782
+ /**
783
+ * List updates about deal field values
784
+ * Lists updates about field values of a deal.
785
+ * @param {Number} id The ID of the deal
786
+ * @param {Object} opts Optional parameters
787
+ * @param {String} opts.cursor For pagination, the marker (an opaque string value) representing the first item on the next page
788
+ * @param {Number} opts.limit Items shown per page
789
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ChangelogResponse} and HTTP response
790
+ */
791
+ }, {
792
+ key: "getDealChangelogWithHttpInfo",
793
+ value: function getDealChangelogWithHttpInfo(id, opts) {
794
+ opts = opts || {};
795
+ var postBody = null;
796
+
797
+ // verify the required parameter 'id' is set
798
+ if (id === undefined || id === null) {
799
+ throw new Error("Missing the required parameter 'id' when calling getDealChangelog");
800
+ }
801
+ var pathParams = {
802
+ 'id': id
803
+ };
804
+ var queryParams = {
805
+ 'cursor': opts['cursor'] === undefined ? opts['cursor'] : opts['cursor'],
806
+ 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit']
807
+ };
808
+ var headerParams = {};
809
+ var formParams = {};
810
+ var formParamArray = [];
811
+ var contentTypes = [];
812
+ var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
813
+ var isJSON = contentTypes.includes('application/json');
814
+ if (isJSON) {
815
+ postBody = _objectSpread(_objectSpread({}, postBody), opts);
816
+ } else if (isURLEncoded) {
817
+ for (var key in opts) {
818
+ if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) {
819
+ formParams[key] = opts[key];
820
+ }
821
+ }
822
+ }
823
+ var authNames = ['api_key', 'oauth2'];
824
+ var accepts = ['application/json'];
825
+ var returnType = _ChangelogResponse["default"];
826
+ return this.apiClient.callApi('/deals/{id}/changelog', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
827
+ }
828
+
829
+ /**
830
+ * List updates about deal field values
831
+ * Lists updates about field values of a deal.
832
+ * @param {Number} id The ID of the deal
833
+ * @param {Object} opts Optional parameters
834
+ * @param {String} opts.cursor For pagination, the marker (an opaque string value) representing the first item on the next page
835
+ * @param {Number} opts.limit Items shown per page
836
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ChangelogResponse}
837
+ */
838
+ }, {
839
+ key: "getDealChangelog",
840
+ value: function getDealChangelog(id, opts) {
841
+ return this.getDealChangelogWithHttpInfo(id, opts).then(function (response_and_data) {
842
+ return response_and_data;
843
+ });
844
+ }
845
+
780
846
  /**
781
847
  * List files attached to a deal
782
848
  * Lists files associated with a deal.
@@ -1027,6 +1093,70 @@ var DealsApi = /*#__PURE__*/function () {
1027
1093
  });
1028
1094
  }
1029
1095
 
1096
+ /**
1097
+ * List updates about participants of a deal
1098
+ * List updates about participants of a deal. This is a cursor-paginated endpoint. For more information, please refer to our documentation on <a href=\"https://pipedrive.readme.io/docs/core-api-concepts-pagination\" target=\"_blank\" rel=\"noopener noreferrer\">pagination</a>.
1099
+ * @param {Number} id The ID of the deal
1100
+ * @param {Object} opts Optional parameters
1101
+ * @param {Number} opts.limit Items shown per page
1102
+ * @param {String} opts.cursor For pagination, the marker (an opaque string value) representing the first item on the next page
1103
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ParticipantsChangelog} and HTTP response
1104
+ */
1105
+ }, {
1106
+ key: "getDealParticipantsChangelogWithHttpInfo",
1107
+ value: function getDealParticipantsChangelogWithHttpInfo(id, opts) {
1108
+ opts = opts || {};
1109
+ var postBody = null;
1110
+
1111
+ // verify the required parameter 'id' is set
1112
+ if (id === undefined || id === null) {
1113
+ throw new Error("Missing the required parameter 'id' when calling getDealParticipantsChangelog");
1114
+ }
1115
+ var pathParams = {
1116
+ 'id': id
1117
+ };
1118
+ var queryParams = {
1119
+ 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'],
1120
+ 'cursor': opts['cursor'] === undefined ? opts['cursor'] : opts['cursor']
1121
+ };
1122
+ var headerParams = {};
1123
+ var formParams = {};
1124
+ var formParamArray = [];
1125
+ var contentTypes = [];
1126
+ var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
1127
+ var isJSON = contentTypes.includes('application/json');
1128
+ if (isJSON) {
1129
+ postBody = _objectSpread(_objectSpread({}, postBody), opts);
1130
+ } else if (isURLEncoded) {
1131
+ for (var key in opts) {
1132
+ if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) {
1133
+ formParams[key] = opts[key];
1134
+ }
1135
+ }
1136
+ }
1137
+ var authNames = ['api_key', 'oauth2'];
1138
+ var accepts = ['application/json'];
1139
+ var returnType = _ParticipantsChangelog["default"];
1140
+ return this.apiClient.callApi('/deals/{id}/participantsChangelog', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1141
+ }
1142
+
1143
+ /**
1144
+ * List updates about participants of a deal
1145
+ * List updates about participants of a deal. This is a cursor-paginated endpoint. For more information, please refer to our documentation on <a href=\"https://pipedrive.readme.io/docs/core-api-concepts-pagination\" target=\"_blank\" rel=\"noopener noreferrer\">pagination</a>.
1146
+ * @param {Number} id The ID of the deal
1147
+ * @param {Object} opts Optional parameters
1148
+ * @param {Number} opts.limit Items shown per page
1149
+ * @param {String} opts.cursor For pagination, the marker (an opaque string value) representing the first item on the next page
1150
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ParticipantsChangelog}
1151
+ */
1152
+ }, {
1153
+ key: "getDealParticipantsChangelog",
1154
+ value: function getDealParticipantsChangelog(id, opts) {
1155
+ return this.getDealParticipantsChangelogWithHttpInfo(id, opts).then(function (response_and_data) {
1156
+ return response_and_data;
1157
+ });
1158
+ }
1159
+
1030
1160
  /**
1031
1161
  * List all persons associated with a deal
1032
1162
  * Lists all persons associated with a deal, regardless of whether the person is the primary contact of the deal, or added as a participant.<br>If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also return the `data.marketing_status` field.
@@ -11,6 +11,7 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
11
11
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
12
12
  var _AddOrganizationFollowerRequest = _interopRequireDefault(require("../model/AddOrganizationFollowerRequest"));
13
13
  var _AllOrganizationsGetResponse = _interopRequireDefault(require("../model/AllOrganizationsGetResponse"));
14
+ var _ChangelogResponse = _interopRequireDefault(require("../model/ChangelogResponse"));
14
15
  var _FailResponse = _interopRequireDefault(require("../model/FailResponse"));
15
16
  var _InlineResponse = _interopRequireDefault(require("../model/InlineResponse2001"));
16
17
  var _ListActivitiesResponse = _interopRequireDefault(require("../model/ListActivitiesResponse"));
@@ -464,6 +465,70 @@ var OrganizationsApi = /*#__PURE__*/function () {
464
465
  });
465
466
  }
466
467
 
468
+ /**
469
+ * List updates about organization field values
470
+ * Lists updates about field values of an organization.
471
+ * @param {Number} id The ID of the organization
472
+ * @param {Object} opts Optional parameters
473
+ * @param {String} opts.cursor For pagination, the marker (an opaque string value) representing the first item on the next page
474
+ * @param {Number} opts.limit Items shown per page
475
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ChangelogResponse} and HTTP response
476
+ */
477
+ }, {
478
+ key: "getOrganizationChangelogWithHttpInfo",
479
+ value: function getOrganizationChangelogWithHttpInfo(id, opts) {
480
+ opts = opts || {};
481
+ var postBody = null;
482
+
483
+ // verify the required parameter 'id' is set
484
+ if (id === undefined || id === null) {
485
+ throw new Error("Missing the required parameter 'id' when calling getOrganizationChangelog");
486
+ }
487
+ var pathParams = {
488
+ 'id': id
489
+ };
490
+ var queryParams = {
491
+ 'cursor': opts['cursor'] === undefined ? opts['cursor'] : opts['cursor'],
492
+ 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit']
493
+ };
494
+ var headerParams = {};
495
+ var formParams = {};
496
+ var formParamArray = [];
497
+ var contentTypes = [];
498
+ var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
499
+ var isJSON = contentTypes.includes('application/json');
500
+ if (isJSON) {
501
+ postBody = _objectSpread(_objectSpread({}, postBody), opts);
502
+ } else if (isURLEncoded) {
503
+ for (var key in opts) {
504
+ if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) {
505
+ formParams[key] = opts[key];
506
+ }
507
+ }
508
+ }
509
+ var authNames = ['api_key', 'oauth2'];
510
+ var accepts = ['application/json'];
511
+ var returnType = _ChangelogResponse["default"];
512
+ return this.apiClient.callApi('/organizations/{id}/changelog', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
513
+ }
514
+
515
+ /**
516
+ * List updates about organization field values
517
+ * Lists updates about field values of an organization.
518
+ * @param {Number} id The ID of the organization
519
+ * @param {Object} opts Optional parameters
520
+ * @param {String} opts.cursor For pagination, the marker (an opaque string value) representing the first item on the next page
521
+ * @param {Number} opts.limit Items shown per page
522
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ChangelogResponse}
523
+ */
524
+ }, {
525
+ key: "getOrganizationChangelog",
526
+ value: function getOrganizationChangelog(id, opts) {
527
+ return this.getOrganizationChangelogWithHttpInfo(id, opts).then(function (response_and_data) {
528
+ return response_and_data;
529
+ });
530
+ }
531
+
467
532
  /**
468
533
  * List deals associated with an organization
469
534
  * Lists deals associated with an organization.
@@ -13,6 +13,7 @@ var _AddFollowerToPersonResponse = _interopRequireDefault(require("../model/AddF
13
13
  var _AddPersonFollowerRequest = _interopRequireDefault(require("../model/AddPersonFollowerRequest"));
14
14
  var _AddPersonPictureResponse = _interopRequireDefault(require("../model/AddPersonPictureResponse"));
15
15
  var _AddPersonResponse = _interopRequireDefault(require("../model/AddPersonResponse"));
16
+ var _ChangelogResponse = _interopRequireDefault(require("../model/ChangelogResponse"));
16
17
  var _DeletePersonResponse = _interopRequireDefault(require("../model/DeletePersonResponse"));
17
18
  var _DeletePersonsInBulkResponse = _interopRequireDefault(require("../model/DeletePersonsInBulkResponse"));
18
19
  var _FailResponse = _interopRequireDefault(require("../model/FailResponse"));
@@ -597,6 +598,70 @@ var PersonsApi = /*#__PURE__*/function () {
597
598
  });
598
599
  }
599
600
 
601
+ /**
602
+ * List updates about person field values
603
+ * Lists updates about field values of a person.
604
+ * @param {Number} id The ID of the person
605
+ * @param {Object} opts Optional parameters
606
+ * @param {String} opts.cursor For pagination, the marker (an opaque string value) representing the first item on the next page
607
+ * @param {Number} opts.limit Items shown per page
608
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ChangelogResponse} and HTTP response
609
+ */
610
+ }, {
611
+ key: "getPersonChangelogWithHttpInfo",
612
+ value: function getPersonChangelogWithHttpInfo(id, opts) {
613
+ opts = opts || {};
614
+ var postBody = null;
615
+
616
+ // verify the required parameter 'id' is set
617
+ if (id === undefined || id === null) {
618
+ throw new Error("Missing the required parameter 'id' when calling getPersonChangelog");
619
+ }
620
+ var pathParams = {
621
+ 'id': id
622
+ };
623
+ var queryParams = {
624
+ 'cursor': opts['cursor'] === undefined ? opts['cursor'] : opts['cursor'],
625
+ 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit']
626
+ };
627
+ var headerParams = {};
628
+ var formParams = {};
629
+ var formParamArray = [];
630
+ var contentTypes = [];
631
+ var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
632
+ var isJSON = contentTypes.includes('application/json');
633
+ if (isJSON) {
634
+ postBody = _objectSpread(_objectSpread({}, postBody), opts);
635
+ } else if (isURLEncoded) {
636
+ for (var key in opts) {
637
+ if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) {
638
+ formParams[key] = opts[key];
639
+ }
640
+ }
641
+ }
642
+ var authNames = ['api_key', 'oauth2'];
643
+ var accepts = ['application/json'];
644
+ var returnType = _ChangelogResponse["default"];
645
+ return this.apiClient.callApi('/persons/{id}/changelog', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
646
+ }
647
+
648
+ /**
649
+ * List updates about person field values
650
+ * Lists updates about field values of a person.
651
+ * @param {Number} id The ID of the person
652
+ * @param {Object} opts Optional parameters
653
+ * @param {String} opts.cursor For pagination, the marker (an opaque string value) representing the first item on the next page
654
+ * @param {Number} opts.limit Items shown per page
655
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ChangelogResponse}
656
+ */
657
+ }, {
658
+ key: "getPersonChangelog",
659
+ value: function getPersonChangelog(id, opts) {
660
+ return this.getPersonChangelogWithHttpInfo(id, opts).then(function (response_and_data) {
661
+ return response_and_data;
662
+ });
663
+ }
664
+
600
665
  /**
601
666
  * List deals associated with a person
602
667
  * Lists deals associated with a person.
package/dist/index.js CHANGED
@@ -856,6 +856,24 @@ Object.defineProperty(exports, "CallLogsResponseAdditionalData", {
856
856
  return _CallLogsResponseAdditionalData["default"];
857
857
  }
858
858
  });
859
+ Object.defineProperty(exports, "ChangelogResponse", {
860
+ enumerable: true,
861
+ get: function get() {
862
+ return _ChangelogResponse["default"];
863
+ }
864
+ });
865
+ Object.defineProperty(exports, "ChangelogResponseAllOf", {
866
+ enumerable: true,
867
+ get: function get() {
868
+ return _ChangelogResponseAllOf["default"];
869
+ }
870
+ });
871
+ Object.defineProperty(exports, "ChangelogResponseAllOfData", {
872
+ enumerable: true,
873
+ get: function get() {
874
+ return _ChangelogResponseAllOfData["default"];
875
+ }
876
+ });
859
877
  Object.defineProperty(exports, "ChannelObject", {
860
878
  enumerable: true,
861
879
  get: function get() {
@@ -1054,6 +1072,12 @@ Object.defineProperty(exports, "DealParticipants", {
1054
1072
  return _DealParticipants["default"];
1055
1073
  }
1056
1074
  });
1075
+ Object.defineProperty(exports, "DealParticipantsChangelog", {
1076
+ enumerable: true,
1077
+ get: function get() {
1078
+ return _DealParticipantsChangelog["default"];
1079
+ }
1080
+ });
1057
1081
  Object.defineProperty(exports, "DealPersonData", {
1058
1082
  enumerable: true,
1059
1083
  get: function get() {
@@ -3580,6 +3604,18 @@ Object.defineProperty(exports, "Params", {
3580
3604
  return _Params["default"];
3581
3605
  }
3582
3606
  });
3607
+ Object.defineProperty(exports, "ParticipantsChangelog", {
3608
+ enumerable: true,
3609
+ get: function get() {
3610
+ return _ParticipantsChangelog["default"];
3611
+ }
3612
+ });
3613
+ Object.defineProperty(exports, "ParticipantsChangelogItem", {
3614
+ enumerable: true,
3615
+ get: function get() {
3616
+ return _ParticipantsChangelogItem["default"];
3617
+ }
3618
+ });
3583
3619
  Object.defineProperty(exports, "PaymentItem", {
3584
3620
  enumerable: true,
3585
3621
  get: function get() {
@@ -5157,6 +5193,9 @@ var _CallLogResponse6 = _interopRequireDefault(require("./model/CallLogResponse4
5157
5193
  var _CallLogResponse7 = _interopRequireDefault(require("./model/CallLogResponse500"));
5158
5194
  var _CallLogsResponse = _interopRequireDefault(require("./model/CallLogsResponse"));
5159
5195
  var _CallLogsResponseAdditionalData = _interopRequireDefault(require("./model/CallLogsResponseAdditionalData"));
5196
+ var _ChangelogResponse = _interopRequireDefault(require("./model/ChangelogResponse"));
5197
+ var _ChangelogResponseAllOf = _interopRequireDefault(require("./model/ChangelogResponseAllOf"));
5198
+ var _ChangelogResponseAllOfData = _interopRequireDefault(require("./model/ChangelogResponseAllOfData"));
5160
5199
  var _ChannelObject = _interopRequireDefault(require("./model/ChannelObject"));
5161
5200
  var _ChannelObjectResponse = _interopRequireDefault(require("./model/ChannelObjectResponse"));
5162
5201
  var _ChannelObjectResponseData = _interopRequireDefault(require("./model/ChannelObjectResponseData"));
@@ -5187,6 +5226,7 @@ var _DealOrganizationDataWithId = _interopRequireDefault(require("./model/DealOr
5187
5226
  var _DealOrganizationDataWithIdAllOf = _interopRequireDefault(require("./model/DealOrganizationDataWithIdAllOf"));
5188
5227
  var _DealParticipantCountInfo = _interopRequireDefault(require("./model/DealParticipantCountInfo"));
5189
5228
  var _DealParticipants = _interopRequireDefault(require("./model/DealParticipants"));
5229
+ var _DealParticipantsChangelog = _interopRequireDefault(require("./model/DealParticipantsChangelog"));
5190
5230
  var _DealPersonData = _interopRequireDefault(require("./model/DealPersonData"));
5191
5231
  var _DealPersonDataEmail = _interopRequireDefault(require("./model/DealPersonDataEmail"));
5192
5232
  var _DealPersonDataPhone = _interopRequireDefault(require("./model/DealPersonDataPhone"));
@@ -5592,6 +5632,8 @@ var _OwnerAllOf = _interopRequireDefault(require("./model/OwnerAllOf"));
5592
5632
  var _PaginationDetails = _interopRequireDefault(require("./model/PaginationDetails"));
5593
5633
  var _PaginationDetailsAllOf = _interopRequireDefault(require("./model/PaginationDetailsAllOf"));
5594
5634
  var _Params = _interopRequireDefault(require("./model/Params"));
5635
+ var _ParticipantsChangelog = _interopRequireDefault(require("./model/ParticipantsChangelog"));
5636
+ var _ParticipantsChangelogItem = _interopRequireDefault(require("./model/ParticipantsChangelogItem"));
5595
5637
  var _PaymentItem = _interopRequireDefault(require("./model/PaymentItem"));
5596
5638
  var _PaymentsResponse = _interopRequireDefault(require("./model/PaymentsResponse"));
5597
5639
  var _PaymentsResponseAllOf = _interopRequireDefault(require("./model/PaymentsResponseAllOf"));
@@ -90,11 +90,11 @@ var ActivityTypeObjectResponse = /*#__PURE__*/function () {
90
90
  delete data['is_custom_flag'];
91
91
  }
92
92
  if (data.hasOwnProperty('add_time')) {
93
- obj['add_time'] = _ApiClient["default"].convertToType(data['add_time'], 'String');
93
+ obj['add_time'] = _ApiClient["default"].convertToType(data['add_time'], 'Date');
94
94
  delete data['add_time'];
95
95
  }
96
96
  if (data.hasOwnProperty('update_time')) {
97
- obj['update_time'] = _ApiClient["default"].convertToType(data['update_time'], 'String');
97
+ obj['update_time'] = _ApiClient["default"].convertToType(data['update_time'], 'Date');
98
98
  delete data['update_time'];
99
99
  }
100
100
  if (Object.keys(data).length > 0) {
@@ -155,13 +155,13 @@ ActivityTypeObjectResponse.prototype['is_custom_flag'] = undefined;
155
155
 
156
156
  /**
157
157
  * The creation time of the activity type
158
- * @member {String} add_time
158
+ * @member {Date} add_time
159
159
  */
160
160
  ActivityTypeObjectResponse.prototype['add_time'] = undefined;
161
161
 
162
162
  /**
163
163
  * The update time of the activity type
164
- * @member {String} update_time
164
+ * @member {Date} update_time
165
165
  */
166
166
  ActivityTypeObjectResponse.prototype['update_time'] = undefined;
167
167
  var _default = ActivityTypeObjectResponse;
@@ -119,7 +119,7 @@ AddWebhookRequest.prototype['event_action'] = undefined;
119
119
  AddWebhookRequest.prototype['event_object'] = undefined;
120
120
 
121
121
  /**
122
- * The ID of the user that this webhook will be authorized with. You have the option to use a different user's `user_id`. If it is not set, the current user's `user_id` will be used. As each webhook event is checked against a users permissions, the webhook will only be sent if the user has access to the specified object(s). If you want to receive notifications for all events, please use a top-level admin user’s `user_id`.
122
+ * The ID of the user that this webhook will be authorized with. You have the option to use a different user's `user_id`. If it is not set, the current user's `user_id` will be used. As each webhook event is checked against a user's permissions, the webhook will only be sent if the user has access to the specified object(s). If you want to receive notifications for all events, please use a top-level admin user’s `user_id`.
123
123
  * @member {Number} user_id
124
124
  */
125
125
  AddWebhookRequest.prototype['user_id'] = undefined;
@@ -57,6 +57,18 @@ var BasicDeal = /*#__PURE__*/function () {
57
57
  value: function constructFromObject(data, obj) {
58
58
  if (data) {
59
59
  obj = obj || new BasicDeal();
60
+ if (data.hasOwnProperty('won_time')) {
61
+ obj['won_time'] = _ApiClient["default"].convertToType(data['won_time'], 'String');
62
+ delete data['won_time'];
63
+ }
64
+ if (data.hasOwnProperty('lost_time')) {
65
+ obj['lost_time'] = _ApiClient["default"].convertToType(data['lost_time'], 'String');
66
+ delete data['lost_time'];
67
+ }
68
+ if (data.hasOwnProperty('close_time')) {
69
+ obj['close_time'] = _ApiClient["default"].convertToType(data['close_time'], 'String');
70
+ delete data['close_time'];
71
+ }
60
72
  if (data.hasOwnProperty('expected_close_date')) {
61
73
  obj['expected_close_date'] = _ApiClient["default"].convertToType(data['expected_close_date'], 'Date');
62
74
  delete data['expected_close_date'];
@@ -82,6 +94,24 @@ var BasicDeal = /*#__PURE__*/function () {
82
94
  }]);
83
95
  return BasicDeal;
84
96
  }();
97
+ /**
98
+ * The optional date and time of changing the deal status as won in UTC. Format: YYYY-MM-DD HH:MM:SS. Can be set only when deal `status` is already Won. Can not be used together with `lost_time`.
99
+ * @member {String} won_time
100
+ */
101
+ BasicDeal.prototype['won_time'] = undefined;
102
+
103
+ /**
104
+ * The optional date and time of changing the deal status as lost in UTC. Format: YYYY-MM-DD HH:MM:SS. Can be set only when deal `status` is already Lost. Can not be used together with `won_time`.
105
+ * @member {String} lost_time
106
+ */
107
+ BasicDeal.prototype['lost_time'] = undefined;
108
+
109
+ /**
110
+ * The optional date and time of closing the deal in UTC. Format: YYYY-MM-DD HH:MM:SS.
111
+ * @member {String} close_time
112
+ */
113
+ BasicDeal.prototype['close_time'] = undefined;
114
+
85
115
  /**
86
116
  * The expected close date of the deal. In ISO 8601 format: YYYY-MM-DD.
87
117
  * @member {Date} expected_close_date