pipedrive 22.6.1 → 22.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. package/README.md +9 -4
  2. package/dist/api/DealsApi.js +2 -2
  3. package/dist/api/LeadsApi.js +2 -2
  4. package/dist/index.js +63 -28
  5. package/dist/model/AddLeadRequest.js +30 -0
  6. package/dist/model/AddProductAttachmentDetails.js +60 -23
  7. package/dist/model/AddProductRequestBody.js +50 -14
  8. package/dist/model/AddProductRequestBodyAllOf.js +78 -0
  9. package/dist/model/BaseDeal.js +40 -0
  10. package/dist/model/BaseProduct.js +60 -1
  11. package/dist/model/BasicDealProduct.js +139 -16
  12. package/dist/model/BasicDealProductAllOf.js +235 -0
  13. package/dist/model/BillingFrequency.js +86 -0
  14. package/dist/model/BillingFrequency1.js +86 -0
  15. package/dist/model/DealNonStrict.js +60 -0
  16. package/dist/model/DealNonStrictWithDetails.js +60 -0
  17. package/dist/model/DealProductRequestBody.js +235 -0
  18. package/dist/model/DealStrict.js +60 -0
  19. package/dist/model/DealStrictWithMergeId.js +60 -0
  20. package/dist/model/LeadResponse.js +40 -0
  21. package/dist/model/NameObject.js +78 -0
  22. package/dist/model/NewDeal.js +45 -0
  23. package/dist/model/NewDealParameters.js +30 -0
  24. package/dist/model/NewDealProduct.js +95 -43
  25. package/dist/model/NewDealProductAllOf.js +9 -12
  26. package/dist/model/NewDealProductAllOf1.js +78 -0
  27. package/dist/model/NewDealProductAllOf2.js +78 -0
  28. package/dist/model/PersonListProduct.js +1 -1
  29. package/dist/model/ProductAttachmentDetails.js +60 -23
  30. package/dist/model/ProductListItem.js +6 -6
  31. package/dist/model/ProductRequest.js +1 -1
  32. package/dist/model/ProductWithArrayPrices.js +72 -2
  33. package/dist/model/UpdateDealParameters.js +20 -0
  34. package/dist/model/UpdateDealProduct.js +135 -5
  35. package/dist/model/UpdateDealRequest.js +30 -0
  36. package/dist/model/UpdateLeadRequest.js +20 -0
  37. package/dist/model/UpdateProductRequestBody.js +50 -14
  38. package/dist/model/UpdateProductResponse.js +3 -3
  39. package/package.json +1 -1
package/README.md CHANGED
@@ -684,6 +684,7 @@ Class | Method | HTTP request | Description
684
684
  - [Pipedrive.AddProductAttachmentDetailsAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddProductAttachmentDetailsAllOf.md)
685
685
  - [Pipedrive.AddProductFollowerRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddProductFollowerRequest.md)
686
686
  - [Pipedrive.AddProductRequestBody](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddProductRequestBody.md)
687
+ - [Pipedrive.AddProductRequestBodyAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddProductRequestBodyAllOf.md)
687
688
  - [Pipedrive.AddProjectResponse201](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddProjectResponse201.md)
688
689
  - [Pipedrive.AddRole](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddRole.md)
689
690
  - [Pipedrive.AddRoleAssignmentRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddRoleAssignmentRequest.md)
@@ -747,10 +748,13 @@ Class | Method | HTTP request | Description
747
748
  - [Pipedrive.BaseWebhook](https://github.com/pipedrive/client-nodejs/blob/master/docs/BaseWebhook.md)
748
749
  - [Pipedrive.BasicDeal](https://github.com/pipedrive/client-nodejs/blob/master/docs/BasicDeal.md)
749
750
  - [Pipedrive.BasicDealProduct](https://github.com/pipedrive/client-nodejs/blob/master/docs/BasicDealProduct.md)
751
+ - [Pipedrive.BasicDealProductAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/BasicDealProductAllOf.md)
750
752
  - [Pipedrive.BasicGoal](https://github.com/pipedrive/client-nodejs/blob/master/docs/BasicGoal.md)
751
753
  - [Pipedrive.BasicOrganization](https://github.com/pipedrive/client-nodejs/blob/master/docs/BasicOrganization.md)
752
754
  - [Pipedrive.BasicPerson](https://github.com/pipedrive/client-nodejs/blob/master/docs/BasicPerson.md)
753
755
  - [Pipedrive.BasicPersonEmail](https://github.com/pipedrive/client-nodejs/blob/master/docs/BasicPersonEmail.md)
756
+ - [Pipedrive.BillingFrequency](https://github.com/pipedrive/client-nodejs/blob/master/docs/BillingFrequency.md)
757
+ - [Pipedrive.BillingFrequency1](https://github.com/pipedrive/client-nodejs/blob/master/docs/BillingFrequency1.md)
754
758
  - [Pipedrive.BulkDeleteResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/BulkDeleteResponse.md)
755
759
  - [Pipedrive.BulkDeleteResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/BulkDeleteResponseAllOf.md)
756
760
  - [Pipedrive.BulkDeleteResponseAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/BulkDeleteResponseAllOfData.md)
@@ -804,6 +808,7 @@ Class | Method | HTTP request | Description
804
808
  - [Pipedrive.DealPersonDataPhone](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealPersonDataPhone.md)
805
809
  - [Pipedrive.DealPersonDataWithId](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealPersonDataWithId.md)
806
810
  - [Pipedrive.DealPersonDataWithIdAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealPersonDataWithIdAllOf.md)
811
+ - [Pipedrive.DealProductRequestBody](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealProductRequestBody.md)
807
812
  - [Pipedrive.DealProductUnitDuration](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealProductUnitDuration.md)
808
813
  - [Pipedrive.DealSearchItem](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealSearchItem.md)
809
814
  - [Pipedrive.DealSearchItemItem](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealSearchItemItem.md)
@@ -1119,9 +1124,13 @@ Class | Method | HTTP request | Description
1119
1124
  - [Pipedrive.MergePersonsResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/MergePersonsResponseAllOf.md)
1120
1125
  - [Pipedrive.MessageObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/MessageObject.md)
1121
1126
  - [Pipedrive.MessageObjectAttachments](https://github.com/pipedrive/client-nodejs/blob/master/docs/MessageObjectAttachments.md)
1127
+ - [Pipedrive.NameObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/NameObject.md)
1122
1128
  - [Pipedrive.NewDeal](https://github.com/pipedrive/client-nodejs/blob/master/docs/NewDeal.md)
1123
1129
  - [Pipedrive.NewDealParameters](https://github.com/pipedrive/client-nodejs/blob/master/docs/NewDealParameters.md)
1124
1130
  - [Pipedrive.NewDealProduct](https://github.com/pipedrive/client-nodejs/blob/master/docs/NewDealProduct.md)
1131
+ - [Pipedrive.NewDealProductAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/NewDealProductAllOf.md)
1132
+ - [Pipedrive.NewDealProductAllOf1](https://github.com/pipedrive/client-nodejs/blob/master/docs/NewDealProductAllOf1.md)
1133
+ - [Pipedrive.NewDealProductAllOf2](https://github.com/pipedrive/client-nodejs/blob/master/docs/NewDealProductAllOf2.md)
1125
1134
  - [Pipedrive.NewFollowerResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/NewFollowerResponse.md)
1126
1135
  - [Pipedrive.NewFollowerResponseData](https://github.com/pipedrive/client-nodejs/blob/master/docs/NewFollowerResponseData.md)
1127
1136
  - [Pipedrive.NewGoal](https://github.com/pipedrive/client-nodejs/blob/master/docs/NewGoal.md)
@@ -1142,9 +1151,7 @@ Class | Method | HTTP request | Description
1142
1151
  - [Pipedrive.NumberBoolean](https://github.com/pipedrive/client-nodejs/blob/master/docs/NumberBoolean.md)
1143
1152
  - [Pipedrive.NumberBooleanDefault0](https://github.com/pipedrive/client-nodejs/blob/master/docs/NumberBooleanDefault0.md)
1144
1153
  - [Pipedrive.NumberBooleanDefault1](https://github.com/pipedrive/client-nodejs/blob/master/docs/NumberBooleanDefault1.md)
1145
- - [Pipedrive.ObjectPrices](https://github.com/pipedrive/client-nodejs/blob/master/docs/ObjectPrices.md)
1146
1154
  - [Pipedrive.OneLeadResponse200](https://github.com/pipedrive/client-nodejs/blob/master/docs/OneLeadResponse200.md)
1147
- - [Pipedrive.OptionalNameObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/OptionalNameObject.md)
1148
1155
  - [Pipedrive.OrgAndOwnerId](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrgAndOwnerId.md)
1149
1156
  - [Pipedrive.OrganizationAddressInfo](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationAddressInfo.md)
1150
1157
  - [Pipedrive.OrganizationCountAndAddressInfo](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationCountAndAddressInfo.md)
@@ -1275,7 +1282,6 @@ Class | Method | HTTP request | Description
1275
1282
  - [Pipedrive.ProductSearchResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductSearchResponseAllOf.md)
1276
1283
  - [Pipedrive.ProductSearchResponseAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductSearchResponseAllOfData.md)
1277
1284
  - [Pipedrive.ProductWithArrayPrices](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductWithArrayPrices.md)
1278
- - [Pipedrive.ProductWithObjectPrices](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductWithObjectPrices.md)
1279
1285
  - [Pipedrive.ProductsResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductsResponse.md)
1280
1286
  - [Pipedrive.ProjectBoardObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectBoardObject.md)
1281
1287
  - [Pipedrive.ProjectGroupsObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectGroupsObject.md)
@@ -1320,7 +1326,6 @@ Class | Method | HTTP request | Description
1320
1326
  - [Pipedrive.RelationshipOrganizationInfoItem](https://github.com/pipedrive/client-nodejs/blob/master/docs/RelationshipOrganizationInfoItem.md)
1321
1327
  - [Pipedrive.RelationshipOrganizationInfoItemAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/RelationshipOrganizationInfoItemAllOf.md)
1322
1328
  - [Pipedrive.RelationshipOrganizationInfoItemWithActiveFlag](https://github.com/pipedrive/client-nodejs/blob/master/docs/RelationshipOrganizationInfoItemWithActiveFlag.md)
1323
- - [Pipedrive.RequiredNameObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/RequiredNameObject.md)
1324
1329
  - [Pipedrive.RequiredPostProjectParameters](https://github.com/pipedrive/client-nodejs/blob/master/docs/RequiredPostProjectParameters.md)
1325
1330
  - [Pipedrive.RequiredPostTaskParameters](https://github.com/pipedrive/client-nodejs/blob/master/docs/RequiredPostTaskParameters.md)
1326
1331
  - [Pipedrive.RequredTitleParameter](https://github.com/pipedrive/client-nodejs/blob/master/docs/RequredTitleParameter.md)
@@ -80,7 +80,7 @@ var DealsApi = /*#__PURE__*/function () {
80
80
 
81
81
  /**
82
82
  * Add a deal
83
- * Adds a new deal. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. To determine which custom fields exists, fetch the dealFields and look for `key` values. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/creating-a-deal\" target=\"_blank\" rel=\"noopener noreferrer\">adding a deal</a>.
83
+ * Adds a new deal. All deals created through the Pipedrive API will have a `origin` set to `API`. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. To determine which custom fields exists, fetch the dealFields and look for `key` values. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/creating-a-deal\" target=\"_blank\" rel=\"noopener noreferrer\">adding a deal</a>.
84
84
  * @param {Object} opts Optional parameters
85
85
  * @param {module:model/NewDeal} opts.newDeal
86
86
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetAddedDeal} and HTTP response
@@ -115,7 +115,7 @@ var DealsApi = /*#__PURE__*/function () {
115
115
 
116
116
  /**
117
117
  * Add a deal
118
- * Adds a new deal. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. To determine which custom fields exists, fetch the dealFields and look for `key` values. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/creating-a-deal\" target=\"_blank\" rel=\"noopener noreferrer\">adding a deal</a>.
118
+ * Adds a new deal. All deals created through the Pipedrive API will have a `origin` set to `API`. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. To determine which custom fields exists, fetch the dealFields and look for `key` values. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/creating-a-deal\" target=\"_blank\" rel=\"noopener noreferrer\">adding a deal</a>.
119
119
  * @param {Object} opts Optional parameters
120
120
  * @param {module:model/NewDeal} opts.newDeal
121
121
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetAddedDeal}
@@ -50,7 +50,7 @@ var LeadsApi = /*#__PURE__*/function () {
50
50
 
51
51
  /**
52
52
  * Add a lead
53
- * Creates a lead. A lead always has to be linked to a person or an organization or both. All leads created through the Pipedrive API will have a lead source `API` assigned. Here's the tutorial for <a href=\"https://pipedrive.readme.io/docs/adding-a-lead\" target=\"_blank\" rel=\"noopener noreferrer\">adding a lead</a>. If a lead contains custom fields, the fields' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field's value hasn't been set for the lead, it won't appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields' structure from deals. See an example given in the <a href=\"https://pipedrive.readme.io/docs/updating-custom-field-value\" target=\"_blank\" rel=\"noopener noreferrer\">updating custom fields' values tutorial</a>.
53
+ * Creates a lead. A lead always has to be linked to a person or an organization or both. All leads created through the Pipedrive API will have a lead source and origin set to `API`. Here's the tutorial for <a href=\"https://pipedrive.readme.io/docs/adding-a-lead\" target=\"_blank\" rel=\"noopener noreferrer\">adding a lead</a>. If a lead contains custom fields, the fields' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field's value hasn't been set for the lead, it won't appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields' structure from deals. See an example given in the <a href=\"https://pipedrive.readme.io/docs/updating-custom-field-value\" target=\"_blank\" rel=\"noopener noreferrer\">updating custom fields' values tutorial</a>.
54
54
  * @param {Object} opts Optional parameters
55
55
  * @param {module:model/AddLeadRequest} opts.addLeadRequest
56
56
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OneLeadResponse200} and HTTP response
@@ -88,7 +88,7 @@ var LeadsApi = /*#__PURE__*/function () {
88
88
 
89
89
  /**
90
90
  * Add a lead
91
- * Creates a lead. A lead always has to be linked to a person or an organization or both. All leads created through the Pipedrive API will have a lead source `API` assigned. Here's the tutorial for <a href=\"https://pipedrive.readme.io/docs/adding-a-lead\" target=\"_blank\" rel=\"noopener noreferrer\">adding a lead</a>. If a lead contains custom fields, the fields' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field's value hasn't been set for the lead, it won't appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields' structure from deals. See an example given in the <a href=\"https://pipedrive.readme.io/docs/updating-custom-field-value\" target=\"_blank\" rel=\"noopener noreferrer\">updating custom fields' values tutorial</a>.
91
+ * Creates a lead. A lead always has to be linked to a person or an organization or both. All leads created through the Pipedrive API will have a lead source and origin set to `API`. Here's the tutorial for <a href=\"https://pipedrive.readme.io/docs/adding-a-lead\" target=\"_blank\" rel=\"noopener noreferrer\">adding a lead</a>. If a lead contains custom fields, the fields' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field's value hasn't been set for the lead, it won't appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields' structure from deals. See an example given in the <a href=\"https://pipedrive.readme.io/docs/updating-custom-field-value\" target=\"_blank\" rel=\"noopener noreferrer\">updating custom fields' values tutorial</a>.
92
92
  * @param {Object} opts Optional parameters
93
93
  * @param {module:model/AddLeadRequest} opts.addLeadRequest
94
94
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OneLeadResponse200}
package/dist/index.js CHANGED
@@ -352,6 +352,12 @@ Object.defineProperty(exports, "AddProductRequestBody", {
352
352
  return _AddProductRequestBody["default"];
353
353
  }
354
354
  });
355
+ Object.defineProperty(exports, "AddProductRequestBodyAllOf", {
356
+ enumerable: true,
357
+ get: function get() {
358
+ return _AddProductRequestBodyAllOf["default"];
359
+ }
360
+ });
355
361
  Object.defineProperty(exports, "AddProjectResponse201", {
356
362
  enumerable: true,
357
363
  get: function get() {
@@ -736,6 +742,12 @@ Object.defineProperty(exports, "BasicDealProduct", {
736
742
  return _BasicDealProduct["default"];
737
743
  }
738
744
  });
745
+ Object.defineProperty(exports, "BasicDealProductAllOf", {
746
+ enumerable: true,
747
+ get: function get() {
748
+ return _BasicDealProductAllOf["default"];
749
+ }
750
+ });
739
751
  Object.defineProperty(exports, "BasicGoal", {
740
752
  enumerable: true,
741
753
  get: function get() {
@@ -766,6 +778,18 @@ Object.defineProperty(exports, "BillingApi", {
766
778
  return _BillingApi["default"];
767
779
  }
768
780
  });
781
+ Object.defineProperty(exports, "BillingFrequency", {
782
+ enumerable: true,
783
+ get: function get() {
784
+ return _BillingFrequency["default"];
785
+ }
786
+ });
787
+ Object.defineProperty(exports, "BillingFrequency1", {
788
+ enumerable: true,
789
+ get: function get() {
790
+ return _BillingFrequency2["default"];
791
+ }
792
+ });
769
793
  Object.defineProperty(exports, "BulkDeleteResponse", {
770
794
  enumerable: true,
771
795
  get: function get() {
@@ -1108,6 +1132,12 @@ Object.defineProperty(exports, "DealPersonDataWithIdAllOf", {
1108
1132
  return _DealPersonDataWithIdAllOf["default"];
1109
1133
  }
1110
1134
  });
1135
+ Object.defineProperty(exports, "DealProductRequestBody", {
1136
+ enumerable: true,
1137
+ get: function get() {
1138
+ return _DealProductRequestBody["default"];
1139
+ }
1140
+ });
1111
1141
  Object.defineProperty(exports, "DealProductUnitDuration", {
1112
1142
  enumerable: true,
1113
1143
  get: function get() {
@@ -3064,6 +3094,12 @@ Object.defineProperty(exports, "MessageObjectAttachments", {
3064
3094
  return _MessageObjectAttachments["default"];
3065
3095
  }
3066
3096
  });
3097
+ Object.defineProperty(exports, "NameObject", {
3098
+ enumerable: true,
3099
+ get: function get() {
3100
+ return _NameObject["default"];
3101
+ }
3102
+ });
3067
3103
  Object.defineProperty(exports, "NewDeal", {
3068
3104
  enumerable: true,
3069
3105
  get: function get() {
@@ -3082,6 +3118,24 @@ Object.defineProperty(exports, "NewDealProduct", {
3082
3118
  return _NewDealProduct["default"];
3083
3119
  }
3084
3120
  });
3121
+ Object.defineProperty(exports, "NewDealProductAllOf", {
3122
+ enumerable: true,
3123
+ get: function get() {
3124
+ return _NewDealProductAllOf["default"];
3125
+ }
3126
+ });
3127
+ Object.defineProperty(exports, "NewDealProductAllOf1", {
3128
+ enumerable: true,
3129
+ get: function get() {
3130
+ return _NewDealProductAllOf2["default"];
3131
+ }
3132
+ });
3133
+ Object.defineProperty(exports, "NewDealProductAllOf2", {
3134
+ enumerable: true,
3135
+ get: function get() {
3136
+ return _NewDealProductAllOf3["default"];
3137
+ }
3138
+ });
3085
3139
  Object.defineProperty(exports, "NewFollowerResponse", {
3086
3140
  enumerable: true,
3087
3141
  get: function get() {
@@ -3214,24 +3268,12 @@ Object.defineProperty(exports, "NumberBooleanDefault1", {
3214
3268
  return _NumberBooleanDefault2["default"];
3215
3269
  }
3216
3270
  });
3217
- Object.defineProperty(exports, "ObjectPrices", {
3218
- enumerable: true,
3219
- get: function get() {
3220
- return _ObjectPrices["default"];
3221
- }
3222
- });
3223
3271
  Object.defineProperty(exports, "OneLeadResponse200", {
3224
3272
  enumerable: true,
3225
3273
  get: function get() {
3226
3274
  return _OneLeadResponse["default"];
3227
3275
  }
3228
3276
  });
3229
- Object.defineProperty(exports, "OptionalNameObject", {
3230
- enumerable: true,
3231
- get: function get() {
3232
- return _OptionalNameObject["default"];
3233
- }
3234
- });
3235
3277
  Object.defineProperty(exports, "OrgAndOwnerId", {
3236
3278
  enumerable: true,
3237
3279
  get: function get() {
@@ -4060,12 +4102,6 @@ Object.defineProperty(exports, "ProductWithArrayPrices", {
4060
4102
  return _ProductWithArrayPrices["default"];
4061
4103
  }
4062
4104
  });
4063
- Object.defineProperty(exports, "ProductWithObjectPrices", {
4064
- enumerable: true,
4065
- get: function get() {
4066
- return _ProductWithObjectPrices["default"];
4067
- }
4068
- });
4069
4105
  Object.defineProperty(exports, "ProductsApi", {
4070
4106
  enumerable: true,
4071
4107
  get: function get() {
@@ -4354,12 +4390,6 @@ Object.defineProperty(exports, "RelationshipOrganizationInfoItemWithActiveFlag",
4354
4390
  return _RelationshipOrganizationInfoItemWithActiveFlag["default"];
4355
4391
  }
4356
4392
  });
4357
- Object.defineProperty(exports, "RequiredNameObject", {
4358
- enumerable: true,
4359
- get: function get() {
4360
- return _RequiredNameObject["default"];
4361
- }
4362
- });
4363
4393
  Object.defineProperty(exports, "RequiredPostProjectParameters", {
4364
4394
  enumerable: true,
4365
4395
  get: function get() {
@@ -5100,6 +5130,7 @@ var _AddProductAttachmentDetails = _interopRequireDefault(require("./model/AddPr
5100
5130
  var _AddProductAttachmentDetailsAllOf = _interopRequireDefault(require("./model/AddProductAttachmentDetailsAllOf"));
5101
5131
  var _AddProductFollowerRequest = _interopRequireDefault(require("./model/AddProductFollowerRequest"));
5102
5132
  var _AddProductRequestBody = _interopRequireDefault(require("./model/AddProductRequestBody"));
5133
+ var _AddProductRequestBodyAllOf = _interopRequireDefault(require("./model/AddProductRequestBodyAllOf"));
5103
5134
  var _AddProjectResponse = _interopRequireDefault(require("./model/AddProjectResponse201"));
5104
5135
  var _AddRole = _interopRequireDefault(require("./model/AddRole"));
5105
5136
  var _AddRoleAssignmentRequest = _interopRequireDefault(require("./model/AddRoleAssignmentRequest"));
@@ -5163,10 +5194,13 @@ var _BaseUserMeAllOfLanguage = _interopRequireDefault(require("./model/BaseUserM
5163
5194
  var _BaseWebhook = _interopRequireDefault(require("./model/BaseWebhook"));
5164
5195
  var _BasicDeal = _interopRequireDefault(require("./model/BasicDeal"));
5165
5196
  var _BasicDealProduct = _interopRequireDefault(require("./model/BasicDealProduct"));
5197
+ var _BasicDealProductAllOf = _interopRequireDefault(require("./model/BasicDealProductAllOf"));
5166
5198
  var _BasicGoal = _interopRequireDefault(require("./model/BasicGoal"));
5167
5199
  var _BasicOrganization = _interopRequireDefault(require("./model/BasicOrganization"));
5168
5200
  var _BasicPerson = _interopRequireDefault(require("./model/BasicPerson"));
5169
5201
  var _BasicPersonEmail = _interopRequireDefault(require("./model/BasicPersonEmail"));
5202
+ var _BillingFrequency = _interopRequireDefault(require("./model/BillingFrequency"));
5203
+ var _BillingFrequency2 = _interopRequireDefault(require("./model/BillingFrequency1"));
5170
5204
  var _BulkDeleteResponse = _interopRequireDefault(require("./model/BulkDeleteResponse"));
5171
5205
  var _BulkDeleteResponseAllOf = _interopRequireDefault(require("./model/BulkDeleteResponseAllOf"));
5172
5206
  var _BulkDeleteResponseAllOfData = _interopRequireDefault(require("./model/BulkDeleteResponseAllOfData"));
@@ -5220,6 +5254,7 @@ var _DealPersonDataEmail = _interopRequireDefault(require("./model/DealPersonDat
5220
5254
  var _DealPersonDataPhone = _interopRequireDefault(require("./model/DealPersonDataPhone"));
5221
5255
  var _DealPersonDataWithId = _interopRequireDefault(require("./model/DealPersonDataWithId"));
5222
5256
  var _DealPersonDataWithIdAllOf = _interopRequireDefault(require("./model/DealPersonDataWithIdAllOf"));
5257
+ var _DealProductRequestBody = _interopRequireDefault(require("./model/DealProductRequestBody"));
5223
5258
  var _DealProductUnitDuration = _interopRequireDefault(require("./model/DealProductUnitDuration"));
5224
5259
  var _DealSearchItem = _interopRequireDefault(require("./model/DealSearchItem"));
5225
5260
  var _DealSearchItemItem = _interopRequireDefault(require("./model/DealSearchItemItem"));
@@ -5535,9 +5570,13 @@ var _MergePersonsResponse = _interopRequireDefault(require("./model/MergePersons
5535
5570
  var _MergePersonsResponseAllOf = _interopRequireDefault(require("./model/MergePersonsResponseAllOf"));
5536
5571
  var _MessageObject = _interopRequireDefault(require("./model/MessageObject"));
5537
5572
  var _MessageObjectAttachments = _interopRequireDefault(require("./model/MessageObjectAttachments"));
5573
+ var _NameObject = _interopRequireDefault(require("./model/NameObject"));
5538
5574
  var _NewDeal = _interopRequireDefault(require("./model/NewDeal"));
5539
5575
  var _NewDealParameters = _interopRequireDefault(require("./model/NewDealParameters"));
5540
5576
  var _NewDealProduct = _interopRequireDefault(require("./model/NewDealProduct"));
5577
+ var _NewDealProductAllOf = _interopRequireDefault(require("./model/NewDealProductAllOf"));
5578
+ var _NewDealProductAllOf2 = _interopRequireDefault(require("./model/NewDealProductAllOf1"));
5579
+ var _NewDealProductAllOf3 = _interopRequireDefault(require("./model/NewDealProductAllOf2"));
5541
5580
  var _NewFollowerResponse = _interopRequireDefault(require("./model/NewFollowerResponse"));
5542
5581
  var _NewFollowerResponseData = _interopRequireDefault(require("./model/NewFollowerResponseData"));
5543
5582
  var _NewGoal = _interopRequireDefault(require("./model/NewGoal"));
@@ -5558,9 +5597,7 @@ var _NoteParams = _interopRequireDefault(require("./model/NoteParams"));
5558
5597
  var _NumberBoolean = _interopRequireDefault(require("./model/NumberBoolean"));
5559
5598
  var _NumberBooleanDefault = _interopRequireDefault(require("./model/NumberBooleanDefault0"));
5560
5599
  var _NumberBooleanDefault2 = _interopRequireDefault(require("./model/NumberBooleanDefault1"));
5561
- var _ObjectPrices = _interopRequireDefault(require("./model/ObjectPrices"));
5562
5600
  var _OneLeadResponse = _interopRequireDefault(require("./model/OneLeadResponse200"));
5563
- var _OptionalNameObject = _interopRequireDefault(require("./model/OptionalNameObject"));
5564
5601
  var _OrgAndOwnerId = _interopRequireDefault(require("./model/OrgAndOwnerId"));
5565
5602
  var _OrganizationAddressInfo = _interopRequireDefault(require("./model/OrganizationAddressInfo"));
5566
5603
  var _OrganizationCountAndAddressInfo = _interopRequireDefault(require("./model/OrganizationCountAndAddressInfo"));
@@ -5691,7 +5728,6 @@ var _ProductSearchResponse = _interopRequireDefault(require("./model/ProductSear
5691
5728
  var _ProductSearchResponseAllOf = _interopRequireDefault(require("./model/ProductSearchResponseAllOf"));
5692
5729
  var _ProductSearchResponseAllOfData = _interopRequireDefault(require("./model/ProductSearchResponseAllOfData"));
5693
5730
  var _ProductWithArrayPrices = _interopRequireDefault(require("./model/ProductWithArrayPrices"));
5694
- var _ProductWithObjectPrices = _interopRequireDefault(require("./model/ProductWithObjectPrices"));
5695
5731
  var _ProductsResponse = _interopRequireDefault(require("./model/ProductsResponse"));
5696
5732
  var _ProjectBoardObject = _interopRequireDefault(require("./model/ProjectBoardObject"));
5697
5733
  var _ProjectGroupsObject = _interopRequireDefault(require("./model/ProjectGroupsObject"));
@@ -5736,7 +5772,6 @@ var _RelatedUserData = _interopRequireDefault(require("./model/RelatedUserData")
5736
5772
  var _RelationshipOrganizationInfoItem = _interopRequireDefault(require("./model/RelationshipOrganizationInfoItem"));
5737
5773
  var _RelationshipOrganizationInfoItemAllOf = _interopRequireDefault(require("./model/RelationshipOrganizationInfoItemAllOf"));
5738
5774
  var _RelationshipOrganizationInfoItemWithActiveFlag = _interopRequireDefault(require("./model/RelationshipOrganizationInfoItemWithActiveFlag"));
5739
- var _RequiredNameObject = _interopRequireDefault(require("./model/RequiredNameObject"));
5740
5775
  var _RequiredPostProjectParameters = _interopRequireDefault(require("./model/RequiredPostProjectParameters"));
5741
5776
  var _RequiredPostTaskParameters = _interopRequireDefault(require("./model/RequiredPostTaskParameters"));
5742
5777
  var _RequredTitleParameter = _interopRequireDefault(require("./model/RequredTitleParameter"));
@@ -97,6 +97,18 @@ var AddLeadRequest = /*#__PURE__*/function () {
97
97
  obj['was_seen'] = _ApiClient["default"].convertToType(data['was_seen'], 'Boolean');
98
98
  delete data['was_seen'];
99
99
  }
100
+ if (data.hasOwnProperty('origin_id')) {
101
+ obj['origin_id'] = _ApiClient["default"].convertToType(data['origin_id'], 'String');
102
+ delete data['origin_id'];
103
+ }
104
+ if (data.hasOwnProperty('channel')) {
105
+ obj['channel'] = _ApiClient["default"].convertToType(data['channel'], 'Number');
106
+ delete data['channel'];
107
+ }
108
+ if (data.hasOwnProperty('channel_id')) {
109
+ obj['channel_id'] = _ApiClient["default"].convertToType(data['channel_id'], 'String');
110
+ delete data['channel_id'];
111
+ }
100
112
  if (Object.keys(data).length > 0) {
101
113
  Object.assign(obj, data);
102
114
  }
@@ -158,5 +170,23 @@ AddLeadRequest.prototype['visible_to'] = undefined;
158
170
  * @member {Boolean} was_seen
159
171
  */
160
172
  AddLeadRequest.prototype['was_seen'] = undefined;
173
+
174
+ /**
175
+ * The optional ID to further distinguish the origin of the lead - e.g. Which API integration created this lead. If omitted, `origin_id` will be set to null.
176
+ * @member {String} origin_id
177
+ */
178
+ AddLeadRequest.prototype['origin_id'] = undefined;
179
+
180
+ /**
181
+ * The ID of Marketing channel this lead was created from. Provided value must be one of the channels configured for your company. You can fetch allowed values with <a href=\"https://developers.pipedrive.com/docs/api/v1/DealFields#getDealField\" target=\"_blank\" rel=\"noopener noreferrer\">GET /v1/dealFields</a>. If omitted, channel will be set to null.
182
+ * @member {Number} channel
183
+ */
184
+ AddLeadRequest.prototype['channel'] = undefined;
185
+
186
+ /**
187
+ * The optional ID to further distinguish the Marketing channel. If omitted, `channel_id` will be set to null.
188
+ * @member {String} channel_id
189
+ */
190
+ AddLeadRequest.prototype['channel_id'] = undefined;
161
191
  var _default = AddLeadRequest;
162
192
  exports["default"] = _default;
@@ -9,6 +9,7 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
9
9
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
10
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
11
11
  var _AddProductAttachmentDetailsAllOf = _interopRequireDefault(require("./AddProductAttachmentDetailsAllOf"));
12
+ var _BillingFrequency = _interopRequireDefault(require("./BillingFrequency"));
12
13
  var _ProductAttachmentDetails = _interopRequireDefault(require("./ProductAttachmentDetails"));
13
14
  /**
14
15
  * Pipedrive API v1
@@ -33,15 +34,12 @@ var AddProductAttachmentDetails = /*#__PURE__*/function () {
33
34
  * @alias module:model/AddProductAttachmentDetails
34
35
  * @implements module:model/ProductAttachmentDetails
35
36
  * @implements module:model/AddProductAttachmentDetailsAllOf
36
- * @param productId {Number} The ID of the product
37
- * @param itemPrice {Number} The price at which this product will be added to the deal
38
- * @param quantity {Number} Quantity – e.g. how many items of this product will be added to the deal
39
37
  */
40
- function AddProductAttachmentDetails(productId, itemPrice, quantity) {
38
+ function AddProductAttachmentDetails() {
41
39
  (0, _classCallCheck2["default"])(this, AddProductAttachmentDetails);
42
- _ProductAttachmentDetails["default"].initialize(this, productId, itemPrice, quantity);
40
+ _ProductAttachmentDetails["default"].initialize(this);
43
41
  _AddProductAttachmentDetailsAllOf["default"].initialize(this);
44
- AddProductAttachmentDetails.initialize(this, productId, itemPrice, quantity);
42
+ AddProductAttachmentDetails.initialize(this);
45
43
  }
46
44
 
47
45
  /**
@@ -51,11 +49,7 @@ var AddProductAttachmentDetails = /*#__PURE__*/function () {
51
49
  */
52
50
  (0, _createClass2["default"])(AddProductAttachmentDetails, null, [{
53
51
  key: "initialize",
54
- value: function initialize(obj, productId, itemPrice, quantity) {
55
- obj['product_id'] = productId;
56
- obj['item_price'] = itemPrice;
57
- obj['quantity'] = quantity;
58
- }
52
+ value: function initialize(obj) {}
59
53
 
60
54
  /**
61
55
  * Constructs a <code>AddProductAttachmentDetails</code> from a plain JavaScript object, optionally creating a new instance.
@@ -119,6 +113,18 @@ var AddProductAttachmentDetails = /*#__PURE__*/function () {
119
113
  obj['enabled_flag'] = _ApiClient["default"].convertToType(data['enabled_flag'], 'Boolean');
120
114
  delete data['enabled_flag'];
121
115
  }
116
+ if (data.hasOwnProperty('billing_frequency')) {
117
+ obj['billing_frequency'] = _BillingFrequency["default"].constructFromObject(data['billing_frequency']);
118
+ delete data['billing_frequency'];
119
+ }
120
+ if (data.hasOwnProperty('billing_frequency_cycles')) {
121
+ obj['billing_frequency_cycles'] = _ApiClient["default"].convertToType(data['billing_frequency_cycles'], 'Number');
122
+ delete data['billing_frequency_cycles'];
123
+ }
124
+ if (data.hasOwnProperty('billing_start_date')) {
125
+ obj['billing_start_date'] = _ApiClient["default"].convertToType(data['billing_start_date'], 'String');
126
+ delete data['billing_start_date'];
127
+ }
122
128
  if (data.hasOwnProperty('id')) {
123
129
  obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
124
130
  delete data['id'];
@@ -187,21 +193,21 @@ AddProductAttachmentDetails.prototype['item_price'] = undefined;
187
193
  AddProductAttachmentDetails.prototype['quantity'] = undefined;
188
194
 
189
195
  /**
190
- * The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage.
196
+ * The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage
191
197
  * @member {Number} discount
192
198
  * @default 0
193
199
  */
194
200
  AddProductAttachmentDetails.prototype['discount'] = 0;
195
201
 
196
202
  /**
197
- * The type of the discount's value.
203
+ * The type of the discount's value
198
204
  * @member {module:model/AddProductAttachmentDetails.DiscountTypeEnum} discount_type
199
205
  * @default 'percentage'
200
206
  */
201
207
  AddProductAttachmentDetails.prototype['discount_type'] = 'percentage';
202
208
 
203
209
  /**
204
- * The duration of the product. If omitted, will be set to 1.
210
+ * The duration of the product. If omitted, will be set to 1
205
211
  * @member {Number} duration
206
212
  * @default 1
207
213
  */
@@ -214,7 +220,7 @@ AddProductAttachmentDetails.prototype['duration'] = 1;
214
220
  AddProductAttachmentDetails.prototype['duration_unit'] = undefined;
215
221
 
216
222
  /**
217
- * The ID of the product variation to use. When omitted, no variation will be used.
223
+ * The ID of the product variation to use. When omitted, no variation will be used
218
224
  * @member {Number} product_variation_id
219
225
  */
220
226
  AddProductAttachmentDetails.prototype['product_variation_id'] = undefined;
@@ -232,18 +238,35 @@ AddProductAttachmentDetails.prototype['comments'] = undefined;
232
238
  AddProductAttachmentDetails.prototype['tax'] = undefined;
233
239
 
234
240
  /**
235
- * The tax option to be applied to the products. When using `inclusive`, the tax percentage will already be included in the price. When using `exclusive`, the tax will not be included in the price. When using `none`, no tax will be added. Use the `tax` field for defining the tax percentage amount. By default, the user setting value for tax options will be used. Changing this in one product affects the rest of the products attached to the deal.
241
+ * The tax option to be applied to the products. When using `inclusive`, the tax percentage will already be included in the price. When using `exclusive`, the tax will not be included in the price. When using `none`, no tax will be added. Use the `tax` field for defining the tax percentage amount. By default, the user setting value for tax options will be used. Changing this in one product affects the rest of the products attached to the deal
236
242
  * @member {module:model/AddProductAttachmentDetails.TaxMethodEnum} tax_method
237
243
  */
238
244
  AddProductAttachmentDetails.prototype['tax_method'] = undefined;
239
245
 
240
246
  /**
241
- * Whether the product is enabled for a deal or not. This makes it possible to add products to a deal with a specific price and discount criteria, but keep them disabled, which refrains them from being included in the deal value calculation. When omitted, the product will be marked as enabled by default.
247
+ * Whether the product is enabled for a deal or not. This makes it possible to add products to a deal with a specific price and discount criteria, but keep them disabled, which refrains them from being included in the deal value calculation. When omitted, the product will be marked as enabled by default
242
248
  * @member {Boolean} enabled_flag
243
249
  * @default true
244
250
  */
245
251
  AddProductAttachmentDetails.prototype['enabled_flag'] = true;
246
252
 
253
+ /**
254
+ * @member {module:model/BillingFrequency} billing_frequency
255
+ */
256
+ AddProductAttachmentDetails.prototype['billing_frequency'] = undefined;
257
+
258
+ /**
259
+ * Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field must be `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 312
260
+ * @member {Number} billing_frequency_cycles
261
+ */
262
+ AddProductAttachmentDetails.prototype['billing_frequency_cycles'] = undefined;
263
+
264
+ /**
265
+ * Only available in Advanced and above plans The billing start date. Must be between 15 years in the past and 15 years in the future
266
+ * @member {String} billing_start_date
267
+ */
268
+ AddProductAttachmentDetails.prototype['billing_start_date'] = undefined;
269
+
247
270
  /**
248
271
  * The ID of the deal-product (the ID of the product attached to the deal)
249
272
  * @member {Number} id
@@ -321,19 +344,19 @@ _ProductAttachmentDetails["default"].prototype['item_price'] = undefined;
321
344
  */
322
345
  _ProductAttachmentDetails["default"].prototype['quantity'] = undefined;
323
346
  /**
324
- * The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage.
347
+ * The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage
325
348
  * @member {Number} discount
326
349
  * @default 0
327
350
  */
328
351
  _ProductAttachmentDetails["default"].prototype['discount'] = 0;
329
352
  /**
330
- * The type of the discount's value.
353
+ * The type of the discount's value
331
354
  * @member {module:model/ProductAttachmentDetails.DiscountTypeEnum} discount_type
332
355
  * @default 'percentage'
333
356
  */
334
357
  _ProductAttachmentDetails["default"].prototype['discount_type'] = 'percentage';
335
358
  /**
336
- * The duration of the product. If omitted, will be set to 1.
359
+ * The duration of the product. If omitted, will be set to 1
337
360
  * @member {Number} duration
338
361
  * @default 1
339
362
  */
@@ -344,7 +367,7 @@ _ProductAttachmentDetails["default"].prototype['duration'] = 1;
344
367
  */
345
368
  _ProductAttachmentDetails["default"].prototype['duration_unit'] = undefined;
346
369
  /**
347
- * The ID of the product variation to use. When omitted, no variation will be used.
370
+ * The ID of the product variation to use. When omitted, no variation will be used
348
371
  * @member {Number} product_variation_id
349
372
  */
350
373
  _ProductAttachmentDetails["default"].prototype['product_variation_id'] = undefined;
@@ -359,16 +382,30 @@ _ProductAttachmentDetails["default"].prototype['comments'] = undefined;
359
382
  */
360
383
  _ProductAttachmentDetails["default"].prototype['tax'] = undefined;
361
384
  /**
362
- * The tax option to be applied to the products. When using `inclusive`, the tax percentage will already be included in the price. When using `exclusive`, the tax will not be included in the price. When using `none`, no tax will be added. Use the `tax` field for defining the tax percentage amount. By default, the user setting value for tax options will be used. Changing this in one product affects the rest of the products attached to the deal.
385
+ * The tax option to be applied to the products. When using `inclusive`, the tax percentage will already be included in the price. When using `exclusive`, the tax will not be included in the price. When using `none`, no tax will be added. Use the `tax` field for defining the tax percentage amount. By default, the user setting value for tax options will be used. Changing this in one product affects the rest of the products attached to the deal
363
386
  * @member {module:model/ProductAttachmentDetails.TaxMethodEnum} tax_method
364
387
  */
365
388
  _ProductAttachmentDetails["default"].prototype['tax_method'] = undefined;
366
389
  /**
367
- * Whether the product is enabled for a deal or not. This makes it possible to add products to a deal with a specific price and discount criteria, but keep them disabled, which refrains them from being included in the deal value calculation. When omitted, the product will be marked as enabled by default.
390
+ * Whether the product is enabled for a deal or not. This makes it possible to add products to a deal with a specific price and discount criteria, but keep them disabled, which refrains them from being included in the deal value calculation. When omitted, the product will be marked as enabled by default
368
391
  * @member {Boolean} enabled_flag
369
392
  * @default true
370
393
  */
371
394
  _ProductAttachmentDetails["default"].prototype['enabled_flag'] = true;
395
+ /**
396
+ * @member {module:model/BillingFrequency} billing_frequency
397
+ */
398
+ _ProductAttachmentDetails["default"].prototype['billing_frequency'] = undefined;
399
+ /**
400
+ * Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field must be `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 312
401
+ * @member {Number} billing_frequency_cycles
402
+ */
403
+ _ProductAttachmentDetails["default"].prototype['billing_frequency_cycles'] = undefined;
404
+ /**
405
+ * Only available in Advanced and above plans The billing start date. Must be between 15 years in the past and 15 years in the future
406
+ * @member {String} billing_start_date
407
+ */
408
+ _ProductAttachmentDetails["default"].prototype['billing_start_date'] = undefined;
372
409
  /**
373
410
  * The ID of the deal-product (the ID of the product attached to the deal)
374
411
  * @member {Number} id