pipedrive 12.0.2 → 13.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -359,6 +359,12 @@ Object.defineProperty(exports, "AdditionalData", {
359
359
  return _AdditionalData["default"];
360
360
  }
361
361
  });
362
+ Object.defineProperty(exports, "AdditionalDataWithPagination", {
363
+ enumerable: true,
364
+ get: function get() {
365
+ return _AdditionalDataWithPagination["default"];
366
+ }
367
+ });
362
368
  Object.defineProperty(exports, "AdditionalDataWithPaginationDetails", {
363
369
  enumerable: true,
364
370
  get: function get() {
@@ -1073,6 +1079,12 @@ Object.defineProperty(exports, "DealSummaryPerStagesSTAGEIDCURRENCYID", {
1073
1079
  return _DealSummaryPerStagesSTAGEIDCURRENCYID["default"];
1074
1080
  }
1075
1081
  });
1082
+ Object.defineProperty(exports, "DealTitleParameter", {
1083
+ enumerable: true,
1084
+ get: function get() {
1085
+ return _DealTitleParameter["default"];
1086
+ }
1087
+ });
1076
1088
  Object.defineProperty(exports, "DealUserData", {
1077
1089
  enumerable: true,
1078
1090
  get: function get() {
@@ -1637,18 +1649,6 @@ Object.defineProperty(exports, "FindGoalResponse", {
1637
1649
  return _FindGoalResponse["default"];
1638
1650
  }
1639
1651
  });
1640
- Object.defineProperty(exports, "FindProductsByNameResponse", {
1641
- enumerable: true,
1642
- get: function get() {
1643
- return _FindProductsByNameResponse["default"];
1644
- }
1645
- });
1646
- Object.defineProperty(exports, "FindProductsByNameResponseData", {
1647
- enumerable: true,
1648
- get: function get() {
1649
- return _FindProductsByNameResponseData["default"];
1650
- }
1651
- });
1652
1652
  Object.defineProperty(exports, "FollowerData", {
1653
1653
  enumerable: true,
1654
1654
  get: function get() {
@@ -1781,24 +1781,6 @@ Object.defineProperty(exports, "GetDeals", {
1781
1781
  return _GetDeals["default"];
1782
1782
  }
1783
1783
  });
1784
- Object.defineProperty(exports, "GetDealsByName", {
1785
- enumerable: true,
1786
- get: function get() {
1787
- return _GetDealsByName["default"];
1788
- }
1789
- });
1790
- Object.defineProperty(exports, "GetDealsByNameAdditionalData", {
1791
- enumerable: true,
1792
- get: function get() {
1793
- return _GetDealsByNameAdditionalData["default"];
1794
- }
1795
- });
1796
- Object.defineProperty(exports, "GetDealsByNameData", {
1797
- enumerable: true,
1798
- get: function get() {
1799
- return _GetDealsByNameData["default"];
1800
- }
1801
- });
1802
1784
  Object.defineProperty(exports, "GetDealsConversionRatesInPipeline", {
1803
1785
  enumerable: true,
1804
1786
  get: function get() {
@@ -3809,6 +3791,12 @@ Object.defineProperty(exports, "RelationshipOrganizationInfoItemWithActiveFlag",
3809
3791
  return _RelationshipOrganizationInfoItemWithActiveFlag["default"];
3810
3792
  }
3811
3793
  });
3794
+ Object.defineProperty(exports, "RequredTitleParameter", {
3795
+ enumerable: true,
3796
+ get: function get() {
3797
+ return _RequredTitleParameter["default"];
3798
+ }
3799
+ });
3812
3800
  Object.defineProperty(exports, "ResponseCallLogObject", {
3813
3801
  enumerable: true,
3814
3802
  get: function get() {
@@ -3857,12 +3845,6 @@ Object.defineProperty(exports, "RolesApi", {
3857
3845
  return _RolesApi["default"];
3858
3846
  }
3859
3847
  });
3860
- Object.defineProperty(exports, "SearchResultsApi", {
3861
- enumerable: true,
3862
- get: function get() {
3863
- return _SearchResultsApi["default"];
3864
- }
3865
- });
3866
3848
  Object.defineProperty(exports, "SinglePermissionSetsItem", {
3867
3849
  enumerable: true,
3868
3850
  get: function get() {
@@ -4025,6 +4007,12 @@ Object.defineProperty(exports, "UpdateActivityResponse200", {
4025
4007
  return _UpdateActivityResponse["default"];
4026
4008
  }
4027
4009
  });
4010
+ Object.defineProperty(exports, "UpdateDealRequest", {
4011
+ enumerable: true,
4012
+ get: function get() {
4013
+ return _UpdateDealRequest["default"];
4014
+ }
4015
+ });
4028
4016
  Object.defineProperty(exports, "UpdateFile", {
4029
4017
  enumerable: true,
4030
4018
  get: function get() {
@@ -4416,6 +4404,8 @@ var _AdditionalBaseOrganizationItemInfo = _interopRequireDefault(require("./mode
4416
4404
 
4417
4405
  var _AdditionalData = _interopRequireDefault(require("./model/AdditionalData"));
4418
4406
 
4407
+ var _AdditionalDataWithPagination = _interopRequireDefault(require("./model/AdditionalDataWithPagination"));
4408
+
4419
4409
  var _AdditionalDataWithPaginationDetails = _interopRequireDefault(require("./model/AdditionalDataWithPaginationDetails"));
4420
4410
 
4421
4411
  var _AdditionalMergePersonInfo = _interopRequireDefault(require("./model/AdditionalMergePersonInfo"));
@@ -4646,6 +4636,8 @@ var _DealSummaryPerStagesSTAGEID = _interopRequireDefault(require("./model/DealS
4646
4636
 
4647
4637
  var _DealSummaryPerStagesSTAGEIDCURRENCYID = _interopRequireDefault(require("./model/DealSummaryPerStagesSTAGEIDCURRENCYID"));
4648
4638
 
4639
+ var _DealTitleParameter = _interopRequireDefault(require("./model/DealTitleParameter"));
4640
+
4649
4641
  var _DealUserData = _interopRequireDefault(require("./model/DealUserData"));
4650
4642
 
4651
4643
  var _DealUserDataWithId = _interopRequireDefault(require("./model/DealUserDataWithId"));
@@ -4828,10 +4820,6 @@ var _FiltersPostResponseAllOfData = _interopRequireDefault(require("./model/Filt
4828
4820
 
4829
4821
  var _FindGoalResponse = _interopRequireDefault(require("./model/FindGoalResponse"));
4830
4822
 
4831
- var _FindProductsByNameResponse = _interopRequireDefault(require("./model/FindProductsByNameResponse"));
4832
-
4833
- var _FindProductsByNameResponseData = _interopRequireDefault(require("./model/FindProductsByNameResponseData"));
4834
-
4835
4823
  var _FollowerData = _interopRequireDefault(require("./model/FollowerData"));
4836
4824
 
4837
4825
  var _FollowerDataWithID = _interopRequireDefault(require("./model/FollowerDataWithID"));
@@ -4876,12 +4864,6 @@ var _GetDealAdditionalData = _interopRequireDefault(require("./model/GetDealAddi
4876
4864
 
4877
4865
  var _GetDeals = _interopRequireDefault(require("./model/GetDeals"));
4878
4866
 
4879
- var _GetDealsByName = _interopRequireDefault(require("./model/GetDealsByName"));
4880
-
4881
- var _GetDealsByNameAdditionalData = _interopRequireDefault(require("./model/GetDealsByNameAdditionalData"));
4882
-
4883
- var _GetDealsByNameData = _interopRequireDefault(require("./model/GetDealsByNameData"));
4884
-
4885
4867
  var _GetDealsConversionRatesInPipeline = _interopRequireDefault(require("./model/GetDealsConversionRatesInPipeline"));
4886
4868
 
4887
4869
  var _GetDealsConversionRatesInPipelineAllOf = _interopRequireDefault(require("./model/GetDealsConversionRatesInPipelineAllOf"));
@@ -5514,6 +5496,8 @@ var _RelationshipOrganizationInfoItemAllOf = _interopRequireDefault(require("./m
5514
5496
 
5515
5497
  var _RelationshipOrganizationInfoItemWithActiveFlag = _interopRequireDefault(require("./model/RelationshipOrganizationInfoItemWithActiveFlag"));
5516
5498
 
5499
+ var _RequredTitleParameter = _interopRequireDefault(require("./model/RequredTitleParameter"));
5500
+
5517
5501
  var _ResponseCallLogObject = _interopRequireDefault(require("./model/ResponseCallLogObject"));
5518
5502
 
5519
5503
  var _ResponseCallLogObjectAllOf = _interopRequireDefault(require("./model/ResponseCallLogObjectAllOf"));
@@ -5576,6 +5560,8 @@ var _Unauthorized = _interopRequireDefault(require("./model/Unauthorized"));
5576
5560
 
5577
5561
  var _UpdateActivityResponse = _interopRequireDefault(require("./model/UpdateActivityResponse200"));
5578
5562
 
5563
+ var _UpdateDealRequest = _interopRequireDefault(require("./model/UpdateDealRequest"));
5564
+
5579
5565
  var _UpdateFile = _interopRequireDefault(require("./model/UpdateFile"));
5580
5566
 
5581
5567
  var _UpdateFilterRequest = _interopRequireDefault(require("./model/UpdateFilterRequest"));
@@ -5718,8 +5704,6 @@ var _RecentsApi = _interopRequireDefault(require("./api/RecentsApi"));
5718
5704
 
5719
5705
  var _RolesApi = _interopRequireDefault(require("./api/RolesApi"));
5720
5706
 
5721
- var _SearchResultsApi = _interopRequireDefault(require("./api/SearchResultsApi"));
5722
-
5723
5707
  var _StagesApi = _interopRequireDefault(require("./api/StagesApi"));
5724
5708
 
5725
5709
  var _SubscriptionsApi = _interopRequireDefault(require("./api/SubscriptionsApi"));
@@ -0,0 +1,92 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = void 0;
9
+
10
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
11
+
12
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
13
+
14
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
15
+
16
+ var _AdditionalData = _interopRequireDefault(require("./AdditionalData"));
17
+
18
+ /**
19
+ * Pipedrive API v1
20
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
21
+ *
22
+ * The version of the OpenAPI document: 1.0.0
23
+ *
24
+ *
25
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
26
+ * https://openapi-generator.tech
27
+ * Do not edit the class manually.
28
+ *
29
+ */
30
+
31
+ /**
32
+ * The AdditionalDataWithPagination model module.
33
+ * @module model/AdditionalDataWithPagination
34
+ * @version 1.0.0
35
+ */
36
+ var AdditionalDataWithPagination = /*#__PURE__*/function () {
37
+ /**
38
+ * Constructs a new <code>AdditionalDataWithPagination</code>.
39
+ * @alias module:model/AdditionalDataWithPagination
40
+ */
41
+ function AdditionalDataWithPagination() {
42
+ (0, _classCallCheck2["default"])(this, AdditionalDataWithPagination);
43
+ AdditionalDataWithPagination.initialize(this);
44
+ }
45
+ /**
46
+ * Initializes the fields of this object.
47
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
48
+ * Only for internal use.
49
+ */
50
+
51
+
52
+ (0, _createClass2["default"])(AdditionalDataWithPagination, null, [{
53
+ key: "initialize",
54
+ value: function initialize(obj) {}
55
+ /**
56
+ * Constructs a <code>AdditionalDataWithPagination</code> from a plain JavaScript object, optionally creating a new instance.
57
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
58
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
59
+ * @param {module:model/AdditionalDataWithPagination} obj Optional instance to populate.
60
+ * @return {module:model/AdditionalDataWithPagination} The populated <code>AdditionalDataWithPagination</code> instance.
61
+ */
62
+
63
+ }, {
64
+ key: "constructFromObject",
65
+ value: function constructFromObject(data, obj) {
66
+ if (data) {
67
+ obj = obj || new AdditionalDataWithPagination();
68
+
69
+ if (data.hasOwnProperty('pagination')) {
70
+ obj['pagination'] = _ApiClient["default"].convertToType(data['pagination'], _AdditionalData["default"]);
71
+ delete data['pagination'];
72
+ }
73
+
74
+ if (Object.keys(data).length > 0) {
75
+ Object.assign(obj, data);
76
+ }
77
+ }
78
+
79
+ return obj;
80
+ }
81
+ }]);
82
+ return AdditionalDataWithPagination;
83
+ }();
84
+ /**
85
+ * Pagination details of the list
86
+ * @member {module:model/AdditionalData} pagination
87
+ */
88
+
89
+
90
+ AdditionalDataWithPagination.prototype['pagination'] = undefined;
91
+ var _default = AdditionalDataWithPagination;
92
+ exports["default"] = _default;
@@ -57,11 +57,6 @@ var BasicDeal = /*#__PURE__*/function () {
57
57
  if (data) {
58
58
  obj = obj || new BasicDeal();
59
59
 
60
- if (data.hasOwnProperty('title')) {
61
- obj['title'] = _ApiClient["default"].convertToType(data['title'], 'String');
62
- delete data['title'];
63
- }
64
-
65
60
  if (data.hasOwnProperty('value')) {
66
61
  obj['value'] = _ApiClient["default"].convertToType(data['value'], 'String');
67
62
  delete data['value'];
@@ -127,18 +122,12 @@ var BasicDeal = /*#__PURE__*/function () {
127
122
  }]);
128
123
  return BasicDeal;
129
124
  }();
130
- /**
131
- * Deal title
132
- * @member {String} title
133
- */
134
-
135
-
136
- BasicDeal.prototype['title'] = undefined;
137
125
  /**
138
126
  * Value of the deal. If omitted, value will be set to 0.
139
127
  * @member {String} value
140
128
  */
141
129
 
130
+
142
131
  BasicDeal.prototype['value'] = undefined;
143
132
  /**
144
133
  * Currency of the deal. Accepts a 3-character currency code. If omitted, currency will be set to the default currency of the authorized user.
@@ -147,25 +136,25 @@ BasicDeal.prototype['value'] = undefined;
147
136
 
148
137
  BasicDeal.prototype['currency'] = undefined;
149
138
  /**
150
- * ID of the user who will be marked as the owner of this deal. If omitted, the authorized user ID will be used.
139
+ * The ID of the User which will be the owner of the created Deal. If not provided, the user making the request will be used.
151
140
  * @member {Number} user_id
152
141
  */
153
142
 
154
143
  BasicDeal.prototype['user_id'] = undefined;
155
144
  /**
156
- * ID of the person this deal will be associated with
145
+ * The ID of a Person which this Deal will be linked to. If the Person does not exist yet, it needs to be created first. This property is required unless `org_id` is specified.
157
146
  * @member {Number} person_id
158
147
  */
159
148
 
160
149
  BasicDeal.prototype['person_id'] = undefined;
161
150
  /**
162
- * ID of the organization this deal will be associated with
151
+ * The ID of an Organization which this Deal will be linked to. If the Organization does not exist yet, it needs to be created first. This property is required unless `person_id` is specified.
163
152
  * @member {Number} org_id
164
153
  */
165
154
 
166
155
  BasicDeal.prototype['org_id'] = undefined;
167
156
  /**
168
- * ID of the stage this deal will be placed in a pipeline (note that you can't supply the ID of the pipeline as this will be assigned automatically based on `stage_id`). If omitted, the deal will be placed in the first stage of the default pipeline.
157
+ * The ID of a stage this Deal will be placed in a pipeline (note that you can't supply the ID of the pipeline as this will be assigned automatically based on `stage_id`). If omitted, the deal will be placed in the first stage of the default pipeline.
169
158
  * @member {Number} stage_id
170
159
  */
171
160
 
@@ -0,0 +1,90 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = void 0;
9
+
10
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
11
+
12
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
13
+
14
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
15
+
16
+ /**
17
+ * Pipedrive API v1
18
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
19
+ *
20
+ * The version of the OpenAPI document: 1.0.0
21
+ *
22
+ *
23
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
24
+ * https://openapi-generator.tech
25
+ * Do not edit the class manually.
26
+ *
27
+ */
28
+
29
+ /**
30
+ * The DealTitleParameter model module.
31
+ * @module model/DealTitleParameter
32
+ * @version 1.0.0
33
+ */
34
+ var DealTitleParameter = /*#__PURE__*/function () {
35
+ /**
36
+ * Constructs a new <code>DealTitleParameter</code>.
37
+ * @alias module:model/DealTitleParameter
38
+ */
39
+ function DealTitleParameter() {
40
+ (0, _classCallCheck2["default"])(this, DealTitleParameter);
41
+ DealTitleParameter.initialize(this);
42
+ }
43
+ /**
44
+ * Initializes the fields of this object.
45
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
46
+ * Only for internal use.
47
+ */
48
+
49
+
50
+ (0, _createClass2["default"])(DealTitleParameter, null, [{
51
+ key: "initialize",
52
+ value: function initialize(obj) {}
53
+ /**
54
+ * Constructs a <code>DealTitleParameter</code> from a plain JavaScript object, optionally creating a new instance.
55
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
56
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
57
+ * @param {module:model/DealTitleParameter} obj Optional instance to populate.
58
+ * @return {module:model/DealTitleParameter} The populated <code>DealTitleParameter</code> instance.
59
+ */
60
+
61
+ }, {
62
+ key: "constructFromObject",
63
+ value: function constructFromObject(data, obj) {
64
+ if (data) {
65
+ obj = obj || new DealTitleParameter();
66
+
67
+ if (data.hasOwnProperty('title')) {
68
+ obj['title'] = _ApiClient["default"].convertToType(data['title'], 'String');
69
+ delete data['title'];
70
+ }
71
+
72
+ if (Object.keys(data).length > 0) {
73
+ Object.assign(obj, data);
74
+ }
75
+ }
76
+
77
+ return obj;
78
+ }
79
+ }]);
80
+ return DealTitleParameter;
81
+ }();
82
+ /**
83
+ * Deal title
84
+ * @member {String} title
85
+ */
86
+
87
+
88
+ DealTitleParameter.prototype['title'] = undefined;
89
+ var _default = DealTitleParameter;
90
+ exports["default"] = _default;
@@ -41,7 +41,6 @@ var FieldTypeAsString = /*#__PURE__*/function () {
41
41
  (0, _defineProperty2["default"])(this, "daterange", "daterange");
42
42
  (0, _defineProperty2["default"])(this, "double", "double");
43
43
  (0, _defineProperty2["default"])(this, "enum", "enum");
44
- (0, _defineProperty2["default"])(this, "int", "int");
45
44
  (0, _defineProperty2["default"])(this, "monetary", "monetary");
46
45
  (0, _defineProperty2["default"])(this, "org", "org");
47
46
  (0, _defineProperty2["default"])(this, "people", "people");
@@ -13,7 +13,7 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
13
13
 
14
14
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
15
15
 
16
- var _AdditionalData = _interopRequireDefault(require("./AdditionalData"));
16
+ var _AdditionalDataWithPagination = _interopRequireDefault(require("./AdditionalDataWithPagination"));
17
17
 
18
18
  var _BaseComment = _interopRequireDefault(require("./BaseComment"));
19
19
 
@@ -79,7 +79,7 @@ var GetComments = /*#__PURE__*/function () {
79
79
  }
80
80
 
81
81
  if (data.hasOwnProperty('additional_data')) {
82
- obj['additional_data'] = _AdditionalData["default"].constructFromObject(data['additional_data']);
82
+ obj['additional_data'] = _AdditionalDataWithPagination["default"].constructFromObject(data['additional_data']);
83
83
  delete data['additional_data'];
84
84
  }
85
85
 
@@ -107,7 +107,7 @@ GetComments.prototype['success'] = undefined;
107
107
 
108
108
  GetComments.prototype['data'] = undefined;
109
109
  /**
110
- * @member {module:model/AdditionalData} additional_data
110
+ * @member {module:model/AdditionalDataWithPagination} additional_data
111
111
  */
112
112
 
113
113
  GetComments.prototype['additional_data'] = undefined;
@@ -13,7 +13,7 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
13
13
 
14
14
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
15
15
 
16
- var _AdditionalData = _interopRequireDefault(require("./AdditionalData"));
16
+ var _AdditionalDataWithPagination = _interopRequireDefault(require("./AdditionalDataWithPagination"));
17
17
 
18
18
  var _BaseNote = _interopRequireDefault(require("./BaseNote"));
19
19
 
@@ -79,7 +79,7 @@ var GetNotes = /*#__PURE__*/function () {
79
79
  }
80
80
 
81
81
  if (data.hasOwnProperty('additional_data')) {
82
- obj['additional_data'] = _AdditionalData["default"].constructFromObject(data['additional_data']);
82
+ obj['additional_data'] = _AdditionalDataWithPagination["default"].constructFromObject(data['additional_data']);
83
83
  delete data['additional_data'];
84
84
  }
85
85
 
@@ -107,7 +107,7 @@ GetNotes.prototype['success'] = undefined;
107
107
 
108
108
  GetNotes.prototype['data'] = undefined;
109
109
  /**
110
- * @member {module:model/AdditionalData} additional_data
110
+ * @member {module:model/AdditionalDataWithPagination} additional_data
111
111
  */
112
112
 
113
113
  GetNotes.prototype['additional_data'] = undefined;
@@ -19,6 +19,8 @@ var _BasicDeal = _interopRequireDefault(require("./BasicDeal"));
19
19
 
20
20
  var _NewDealAllOf = _interopRequireDefault(require("./NewDealAllOf"));
21
21
 
22
+ var _RequredTitleParameter = _interopRequireDefault(require("./RequredTitleParameter"));
23
+
22
24
  var _VisibleTo = _interopRequireDefault(require("./VisibleTo"));
23
25
 
24
26
  var _NewDeal$StatusEnum;
@@ -32,6 +34,7 @@ var NewDeal = /*#__PURE__*/function () {
32
34
  /**
33
35
  * Constructs a new <code>NewDeal</code>.
34
36
  * @alias module:model/NewDeal
37
+ * @implements module:model/RequredTitleParameter
35
38
  * @implements module:model/BasicDeal
36
39
  * @implements module:model/NewDealAllOf
37
40
  * @param title {String} Deal title
@@ -39,6 +42,8 @@ var NewDeal = /*#__PURE__*/function () {
39
42
  function NewDeal(title) {
40
43
  (0, _classCallCheck2["default"])(this, NewDeal);
41
44
 
45
+ _RequredTitleParameter["default"].initialize(this, title);
46
+
42
47
  _BasicDeal["default"].initialize(this);
43
48
 
44
49
  _NewDealAllOf["default"].initialize(this);
@@ -71,6 +76,8 @@ var NewDeal = /*#__PURE__*/function () {
71
76
  if (data) {
72
77
  obj = obj || new NewDeal();
73
78
 
79
+ _RequredTitleParameter["default"].constructFromObject(data, obj);
80
+
74
81
  _BasicDeal["default"].constructFromObject(data, obj);
75
82
 
76
83
  _NewDealAllOf["default"].constructFromObject(data, obj);
@@ -170,25 +177,25 @@ NewDeal.prototype['value'] = undefined;
170
177
 
171
178
  NewDeal.prototype['currency'] = undefined;
172
179
  /**
173
- * ID of the user who will be marked as the owner of this deal. If omitted, the authorized user ID will be used.
180
+ * The ID of the User which will be the owner of the created Deal. If not provided, the user making the request will be used.
174
181
  * @member {Number} user_id
175
182
  */
176
183
 
177
184
  NewDeal.prototype['user_id'] = undefined;
178
185
  /**
179
- * ID of the person this deal will be associated with
186
+ * The ID of a Person which this Deal will be linked to. If the Person does not exist yet, it needs to be created first. This property is required unless `org_id` is specified.
180
187
  * @member {Number} person_id
181
188
  */
182
189
 
183
190
  NewDeal.prototype['person_id'] = undefined;
184
191
  /**
185
- * ID of the organization this deal will be associated with
192
+ * The ID of an Organization which this Deal will be linked to. If the Organization does not exist yet, it needs to be created first. This property is required unless `person_id` is specified.
186
193
  * @member {Number} org_id
187
194
  */
188
195
 
189
196
  NewDeal.prototype['org_id'] = undefined;
190
197
  /**
191
- * ID of the stage this deal will be placed in a pipeline (note that you can't supply the ID of the pipeline as this will be assigned automatically based on `stage_id`). If omitted, the deal will be placed in the first stage of the default pipeline.
198
+ * The ID of a stage this Deal will be placed in a pipeline (note that you can't supply the ID of the pipeline as this will be assigned automatically based on `stage_id`). If omitted, the deal will be placed in the first stage of the default pipeline.
192
199
  * @member {Number} stage_id
193
200
  */
194
201
 
@@ -228,14 +235,15 @@ NewDeal.prototype['visible_to'] = undefined;
228
235
  * @member {String} add_time
229
236
  */
230
237
 
231
- NewDeal.prototype['add_time'] = undefined; // Implement BasicDeal interface:
238
+ NewDeal.prototype['add_time'] = undefined; // Implement RequredTitleParameter interface:
232
239
 
233
240
  /**
234
241
  * Deal title
235
242
  * @member {String} title
236
243
  */
237
244
 
238
- _BasicDeal["default"].prototype['title'] = undefined;
245
+ _RequredTitleParameter["default"].prototype['title'] = undefined; // Implement BasicDeal interface:
246
+
239
247
  /**
240
248
  * Value of the deal. If omitted, value will be set to 0.
241
249
  * @member {String} value
@@ -249,25 +257,25 @@ _BasicDeal["default"].prototype['value'] = undefined;
249
257
 
250
258
  _BasicDeal["default"].prototype['currency'] = undefined;
251
259
  /**
252
- * ID of the user who will be marked as the owner of this deal. If omitted, the authorized user ID will be used.
260
+ * The ID of the User which will be the owner of the created Deal. If not provided, the user making the request will be used.
253
261
  * @member {Number} user_id
254
262
  */
255
263
 
256
264
  _BasicDeal["default"].prototype['user_id'] = undefined;
257
265
  /**
258
- * ID of the person this deal will be associated with
266
+ * The ID of a Person which this Deal will be linked to. If the Person does not exist yet, it needs to be created first. This property is required unless `org_id` is specified.
259
267
  * @member {Number} person_id
260
268
  */
261
269
 
262
270
  _BasicDeal["default"].prototype['person_id'] = undefined;
263
271
  /**
264
- * ID of the organization this deal will be associated with
272
+ * The ID of an Organization which this Deal will be linked to. If the Organization does not exist yet, it needs to be created first. This property is required unless `person_id` is specified.
265
273
  * @member {Number} org_id
266
274
  */
267
275
 
268
276
  _BasicDeal["default"].prototype['org_id'] = undefined;
269
277
  /**
270
- * ID of the stage this deal will be placed in a pipeline (note that you can't supply the ID of the pipeline as this will be assigned automatically based on `stage_id`). If omitted, the deal will be placed in the first stage of the default pipeline.
278
+ * The ID of a stage this Deal will be placed in a pipeline (note that you can't supply the ID of the pipeline as this will be assigned automatically based on `stage_id`). If omitted, the deal will be placed in the first stage of the default pipeline.
271
279
  * @member {Number} stage_id
272
280
  */
273
281