pipedrive 13.2.5 → 13.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/CHANGELOG.md +17 -2
  2. package/README.md +12 -1
  3. package/dist/api/DealsApi.js +8 -0
  4. package/dist/api/LeadsApi.js +92 -1
  5. package/dist/api/ProductsApi.js +5 -5
  6. package/dist/api/StagesApi.js +11 -5
  7. package/dist/index.js +88 -8
  8. package/dist/model/ActivityObjectFragment.js +11 -0
  9. package/dist/model/ActivityPostObject.js +17 -0
  10. package/dist/model/ActivityPutObject.js +17 -0
  11. package/dist/model/ActivityResponseObject.js +17 -11
  12. package/dist/model/AddLeadRequest.js +1 -1
  13. package/dist/model/AddProductAttachmentDetails.js +11 -4
  14. package/dist/model/AddProductRequestBody.js +16 -5
  15. package/dist/model/BaseStage.js +6 -6
  16. package/dist/model/BasicDeal.js +12 -1
  17. package/dist/model/BasicDealProduct.js +8 -3
  18. package/dist/model/FilterType.js +1 -0
  19. package/dist/model/LeadSearchItem.js +102 -0
  20. package/dist/model/LeadSearchItemItem.js +234 -0
  21. package/dist/model/LeadSearchItemItemOrganization.js +101 -0
  22. package/dist/model/LeadSearchItemItemOwner.js +90 -0
  23. package/dist/model/LeadSearchItemItemPerson.js +101 -0
  24. package/dist/model/LeadSearchResponse.js +147 -0
  25. package/dist/model/LeadSearchResponseAllOf.js +103 -0
  26. package/dist/model/LeadSearchResponseAllOfData.js +92 -0
  27. package/dist/model/NewDeal.js +19 -2
  28. package/dist/model/NewDealProduct.js +6 -33
  29. package/dist/model/OptionalNameObject.js +90 -0
  30. package/dist/model/ProductAttachmentDetails.js +11 -4
  31. package/dist/model/ProductRequest.js +1 -12
  32. package/dist/model/RequiredNameObject.js +93 -0
  33. package/dist/model/Stage.js +6 -6
  34. package/dist/model/StageDetails.js +6 -6
  35. package/dist/model/StageWithPipelineInfo.js +6 -6
  36. package/dist/model/UpdateDealRequest.js +19 -2
  37. package/dist/model/UpdateLeadRequest.js +1 -1
  38. package/dist/model/UpdateProductRequestBody.js +254 -0
  39. package/dist/model/UpdateStageRequest.js +6 -6
  40. package/package.json +1 -1
@@ -169,7 +169,7 @@ AddLeadRequest.prototype['value'] = undefined;
169
169
 
170
170
  AddLeadRequest.prototype['expected_close_date'] = undefined;
171
171
  /**
172
- * The visibility of the lead. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user.<table><tr><th>Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner &amp; followers (private)</td></tr><tr><td>`3`</td><td>Entire company (shared)</td></tr></table>
172
+ * The visibility of the lead. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups <a href=\"https://support.pipedrive.com/en/article/visibility-groups\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.<h4>Essential / Advanced plan</h4><table><tr><th style=\"width: 40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner &amp; followers</td><tr><td>`3`</td><td>Entire company</td></tr></table><h4>Professional / Enterprise plan</h4><table><tr><th style=\"width: 40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner only</td><tr><td>`3`</td><td>Owner's visibility group</td></tr><tr><td>`5`</td><td>Owner's visibility group and sub-groups</td></tr><tr><td>`7`</td><td>Entire company</td></tr></table>
173
173
  * @member {module:model/VisibleTo} visible_to
174
174
  */
175
175
 
@@ -43,15 +43,18 @@ var AddProductAttachmentDetails = /*#__PURE__*/function () {
43
43
  * @alias module:model/AddProductAttachmentDetails
44
44
  * @implements module:model/ProductAttachmentDetails
45
45
  * @implements module:model/AddProductAttachmentDetailsAllOf
46
+ * @param itemPrice {Number} The price at which this product will be added to the deal
47
+ * @param quantity {Number} Quantity – e.g. how many items of this product will be added to the deal
48
+ * @param productId {Number} The ID of the product
46
49
  */
47
- function AddProductAttachmentDetails() {
50
+ function AddProductAttachmentDetails(itemPrice, quantity, productId) {
48
51
  (0, _classCallCheck2["default"])(this, AddProductAttachmentDetails);
49
52
 
50
- _ProductAttachmentDetails["default"].initialize(this);
53
+ _ProductAttachmentDetails["default"].initialize(this, itemPrice, quantity, productId);
51
54
 
52
55
  _AddProductAttachmentDetailsAllOf["default"].initialize(this);
53
56
 
54
- AddProductAttachmentDetails.initialize(this);
57
+ AddProductAttachmentDetails.initialize(this, itemPrice, quantity, productId);
55
58
  }
56
59
  /**
57
60
  * Initializes the fields of this object.
@@ -62,7 +65,11 @@ var AddProductAttachmentDetails = /*#__PURE__*/function () {
62
65
 
63
66
  (0, _createClass2["default"])(AddProductAttachmentDetails, null, [{
64
67
  key: "initialize",
65
- value: function initialize(obj) {}
68
+ value: function initialize(obj, itemPrice, quantity, productId) {
69
+ obj['item_price'] = itemPrice;
70
+ obj['quantity'] = quantity;
71
+ obj['product_id'] = productId;
72
+ }
66
73
  /**
67
74
  * Constructs a <code>AddProductAttachmentDetails</code> from a plain JavaScript object, optionally creating a new instance.
68
75
  * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
@@ -17,6 +17,8 @@ var _NumberBooleanDefault = _interopRequireDefault(require("./NumberBooleanDefau
17
17
 
18
18
  var _ProductRequest = _interopRequireDefault(require("./ProductRequest"));
19
19
 
20
+ var _RequiredNameObject = _interopRequireDefault(require("./RequiredNameObject"));
21
+
20
22
  var _VisibleTo = _interopRequireDefault(require("./VisibleTo"));
21
23
 
22
24
  /**
@@ -41,14 +43,18 @@ var AddProductRequestBody = /*#__PURE__*/function () {
41
43
  /**
42
44
  * Constructs a new <code>AddProductRequestBody</code>.
43
45
  * @alias module:model/AddProductRequestBody
46
+ * @implements module:model/RequiredNameObject
44
47
  * @implements module:model/ProductRequest
48
+ * @param name {String} The name of the product
45
49
  */
46
- function AddProductRequestBody() {
50
+ function AddProductRequestBody(name) {
47
51
  (0, _classCallCheck2["default"])(this, AddProductRequestBody);
48
52
 
53
+ _RequiredNameObject["default"].initialize(this, name);
54
+
49
55
  _ProductRequest["default"].initialize(this);
50
56
 
51
- AddProductRequestBody.initialize(this);
57
+ AddProductRequestBody.initialize(this, name);
52
58
  }
53
59
  /**
54
60
  * Initializes the fields of this object.
@@ -59,7 +65,9 @@ var AddProductRequestBody = /*#__PURE__*/function () {
59
65
 
60
66
  (0, _createClass2["default"])(AddProductRequestBody, null, [{
61
67
  key: "initialize",
62
- value: function initialize(obj) {}
68
+ value: function initialize(obj, name) {
69
+ obj['name'] = name;
70
+ }
63
71
  /**
64
72
  * Constructs a <code>AddProductRequestBody</code> from a plain JavaScript object, optionally creating a new instance.
65
73
  * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
@@ -74,6 +82,8 @@ var AddProductRequestBody = /*#__PURE__*/function () {
74
82
  if (data) {
75
83
  obj = obj || new AddProductRequestBody();
76
84
 
85
+ _RequiredNameObject["default"].constructFromObject(data, obj);
86
+
77
87
  _ProductRequest["default"].constructFromObject(data, obj);
78
88
 
79
89
  if (data.hasOwnProperty('name')) {
@@ -184,14 +194,15 @@ AddProductRequestBody.prototype['owner_id'] = undefined;
184
194
  * @member {Array.<Object>} prices
185
195
  */
186
196
 
187
- AddProductRequestBody.prototype['prices'] = undefined; // Implement ProductRequest interface:
197
+ AddProductRequestBody.prototype['prices'] = undefined; // Implement RequiredNameObject interface:
188
198
 
189
199
  /**
190
200
  * The name of the product
191
201
  * @member {String} name
192
202
  */
193
203
 
194
- _ProductRequest["default"].prototype['name'] = undefined;
204
+ _RequiredNameObject["default"].prototype['name'] = undefined; // Implement ProductRequest interface:
205
+
195
206
  /**
196
207
  * The product code
197
208
  * @member {String} code
@@ -95,7 +95,7 @@ var BaseStage = /*#__PURE__*/function () {
95
95
  }
96
96
 
97
97
  if (data.hasOwnProperty('rotten_flag')) {
98
- obj['rotten_flag'] = _ApiClient["default"].convertToType(data['rotten_flag'], 'Number');
98
+ obj['rotten_flag'] = _ApiClient["default"].convertToType(data['rotten_flag'], 'Boolean');
99
99
  delete data['rotten_flag'];
100
100
  }
101
101
 
@@ -187,22 +187,22 @@ BaseStage.prototype['add_time'] = undefined;
187
187
  BaseStage.prototype['update_time'] = undefined;
188
188
  /**
189
189
  * Allowed values for the <code>rotten_flag</code> property.
190
- * @enum {Number}
190
+ * @enum {Boolean}
191
191
  * @readonly
192
192
  */
193
193
 
194
194
  BaseStage['RottenFlagEnum'] = {
195
195
  /**
196
- * value: 0
196
+ * value: "true"
197
197
  * @const
198
198
  */
199
- "0": 0,
199
+ "true": "true",
200
200
 
201
201
  /**
202
- * value: 1
202
+ * value: "false"
203
203
  * @const
204
204
  */
205
- "1": 1
205
+ "false": "false"
206
206
  };
207
207
  var _default = BaseStage;
208
208
  exports["default"] = _default;
@@ -91,6 +91,11 @@ var BasicDeal = /*#__PURE__*/function () {
91
91
  delete data['org_id'];
92
92
  }
93
93
 
94
+ if (data.hasOwnProperty('pipeline_id')) {
95
+ obj['pipeline_id'] = _ApiClient["default"].convertToType(data['pipeline_id'], 'Number');
96
+ delete data['pipeline_id'];
97
+ }
98
+
94
99
  if (data.hasOwnProperty('stage_id')) {
95
100
  obj['stage_id'] = _ApiClient["default"].convertToType(data['stage_id'], 'Number');
96
101
  delete data['stage_id'];
@@ -163,7 +168,13 @@ BasicDeal.prototype['person_id'] = undefined;
163
168
 
164
169
  BasicDeal.prototype['org_id'] = undefined;
165
170
  /**
166
- * 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.
171
+ * The ID of the pipeline this deal will be added to. By default, the deal will be added to the first stage of the specified pipeline. Please note that `pipeline_id` and `stage_id` should not be used together as `pipeline_id` will be ignored.
172
+ * @member {Number} pipeline_id
173
+ */
174
+
175
+ BasicDeal.prototype['pipeline_id'] = undefined;
176
+ /**
177
+ * The ID of the stage this deal will be added to. Please note that a pipeline will be assigned automatically based on the `stage_id`. If omitted, the deal will be placed in the first stage of the default pipeline.
167
178
  * @member {Number} stage_id
168
179
  */
169
180
 
@@ -37,10 +37,12 @@ var BasicDealProduct = /*#__PURE__*/function () {
37
37
  /**
38
38
  * Constructs a new <code>BasicDealProduct</code>.
39
39
  * @alias module:model/BasicDealProduct
40
+ * @param itemPrice {Number} The price at which this product will be added to the deal
41
+ * @param quantity {Number} Quantity – e.g. how many items of this product will be added to the deal
40
42
  */
41
- function BasicDealProduct() {
43
+ function BasicDealProduct(itemPrice, quantity) {
42
44
  (0, _classCallCheck2["default"])(this, BasicDealProduct);
43
- BasicDealProduct.initialize(this);
45
+ BasicDealProduct.initialize(this, itemPrice, quantity);
44
46
  }
45
47
  /**
46
48
  * Initializes the fields of this object.
@@ -51,7 +53,10 @@ var BasicDealProduct = /*#__PURE__*/function () {
51
53
 
52
54
  (0, _createClass2["default"])(BasicDealProduct, null, [{
53
55
  key: "initialize",
54
- value: function initialize(obj) {}
56
+ value: function initialize(obj, itemPrice, quantity) {
57
+ obj['item_price'] = itemPrice;
58
+ obj['quantity'] = quantity;
59
+ }
55
60
  /**
56
61
  * Constructs a <code>BasicDealProduct</code> from a plain JavaScript object, optionally creating a new instance.
57
62
  * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
@@ -37,6 +37,7 @@ var FilterType = /*#__PURE__*/function () {
37
37
  function FilterType() {
38
38
  (0, _classCallCheck2["default"])(this, FilterType);
39
39
  (0, _defineProperty2["default"])(this, "deals", "deals");
40
+ (0, _defineProperty2["default"])(this, "leads", "leads");
40
41
  (0, _defineProperty2["default"])(this, "org", "org");
41
42
  (0, _defineProperty2["default"])(this, "people", "people");
42
43
  (0, _defineProperty2["default"])(this, "products", "products");
@@ -0,0 +1,102 @@
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 _LeadSearchItemItem = _interopRequireDefault(require("./LeadSearchItemItem"));
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 LeadSearchItem model module.
33
+ * @module model/LeadSearchItem
34
+ * @version 1.0.0
35
+ */
36
+ var LeadSearchItem = /*#__PURE__*/function () {
37
+ /**
38
+ * Constructs a new <code>LeadSearchItem</code>.
39
+ * @alias module:model/LeadSearchItem
40
+ */
41
+ function LeadSearchItem() {
42
+ (0, _classCallCheck2["default"])(this, LeadSearchItem);
43
+ LeadSearchItem.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"])(LeadSearchItem, null, [{
53
+ key: "initialize",
54
+ value: function initialize(obj) {}
55
+ /**
56
+ * Constructs a <code>LeadSearchItem</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/LeadSearchItem} obj Optional instance to populate.
60
+ * @return {module:model/LeadSearchItem} The populated <code>LeadSearchItem</code> instance.
61
+ */
62
+
63
+ }, {
64
+ key: "constructFromObject",
65
+ value: function constructFromObject(data, obj) {
66
+ if (data) {
67
+ obj = obj || new LeadSearchItem();
68
+
69
+ if (data.hasOwnProperty('result_score')) {
70
+ obj['result_score'] = _ApiClient["default"].convertToType(data['result_score'], 'Number');
71
+ delete data['result_score'];
72
+ }
73
+
74
+ if (data.hasOwnProperty('item')) {
75
+ obj['item'] = _LeadSearchItemItem["default"].constructFromObject(data['item']);
76
+ delete data['item'];
77
+ }
78
+
79
+ if (Object.keys(data).length > 0) {
80
+ Object.assign(obj, data);
81
+ }
82
+ }
83
+
84
+ return obj;
85
+ }
86
+ }]);
87
+ return LeadSearchItem;
88
+ }();
89
+ /**
90
+ * Search result relevancy
91
+ * @member {Number} result_score
92
+ */
93
+
94
+
95
+ LeadSearchItem.prototype['result_score'] = undefined;
96
+ /**
97
+ * @member {module:model/LeadSearchItemItem} item
98
+ */
99
+
100
+ LeadSearchItem.prototype['item'] = undefined;
101
+ var _default = LeadSearchItem;
102
+ exports["default"] = _default;
@@ -0,0 +1,234 @@
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 _LeadSearchItemItemOrganization = _interopRequireDefault(require("./LeadSearchItemItemOrganization"));
17
+
18
+ var _LeadSearchItemItemOwner = _interopRequireDefault(require("./LeadSearchItemItemOwner"));
19
+
20
+ var _LeadSearchItemItemPerson = _interopRequireDefault(require("./LeadSearchItemItemPerson"));
21
+
22
+ /**
23
+ * Pipedrive API v1
24
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
25
+ *
26
+ * The version of the OpenAPI document: 1.0.0
27
+ *
28
+ *
29
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
30
+ * https://openapi-generator.tech
31
+ * Do not edit the class manually.
32
+ *
33
+ */
34
+
35
+ /**
36
+ * The LeadSearchItemItem model module.
37
+ * @module model/LeadSearchItemItem
38
+ * @version 1.0.0
39
+ */
40
+ var LeadSearchItemItem = /*#__PURE__*/function () {
41
+ /**
42
+ * Constructs a new <code>LeadSearchItemItem</code>.
43
+ * @alias module:model/LeadSearchItemItem
44
+ */
45
+ function LeadSearchItemItem() {
46
+ (0, _classCallCheck2["default"])(this, LeadSearchItemItem);
47
+ LeadSearchItemItem.initialize(this);
48
+ }
49
+ /**
50
+ * Initializes the fields of this object.
51
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
52
+ * Only for internal use.
53
+ */
54
+
55
+
56
+ (0, _createClass2["default"])(LeadSearchItemItem, null, [{
57
+ key: "initialize",
58
+ value: function initialize(obj) {}
59
+ /**
60
+ * Constructs a <code>LeadSearchItemItem</code> from a plain JavaScript object, optionally creating a new instance.
61
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
62
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
63
+ * @param {module:model/LeadSearchItemItem} obj Optional instance to populate.
64
+ * @return {module:model/LeadSearchItemItem} The populated <code>LeadSearchItemItem</code> instance.
65
+ */
66
+
67
+ }, {
68
+ key: "constructFromObject",
69
+ value: function constructFromObject(data, obj) {
70
+ if (data) {
71
+ obj = obj || new LeadSearchItemItem();
72
+
73
+ if (data.hasOwnProperty('id')) {
74
+ obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
75
+ delete data['id'];
76
+ }
77
+
78
+ if (data.hasOwnProperty('type')) {
79
+ obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String');
80
+ delete data['type'];
81
+ }
82
+
83
+ if (data.hasOwnProperty('title')) {
84
+ obj['title'] = _ApiClient["default"].convertToType(data['title'], 'String');
85
+ delete data['title'];
86
+ }
87
+
88
+ if (data.hasOwnProperty('owner')) {
89
+ obj['owner'] = _LeadSearchItemItemOwner["default"].constructFromObject(data['owner']);
90
+ delete data['owner'];
91
+ }
92
+
93
+ if (data.hasOwnProperty('person')) {
94
+ obj['person'] = _LeadSearchItemItemPerson["default"].constructFromObject(data['person']);
95
+ delete data['person'];
96
+ }
97
+
98
+ if (data.hasOwnProperty('organization')) {
99
+ obj['organization'] = _LeadSearchItemItemOrganization["default"].constructFromObject(data['organization']);
100
+ delete data['organization'];
101
+ }
102
+
103
+ if (data.hasOwnProperty('phones')) {
104
+ obj['phones'] = _ApiClient["default"].convertToType(data['phones'], ['String']);
105
+ delete data['phones'];
106
+ }
107
+
108
+ if (data.hasOwnProperty('emails')) {
109
+ obj['emails'] = _ApiClient["default"].convertToType(data['emails'], ['String']);
110
+ delete data['emails'];
111
+ }
112
+
113
+ if (data.hasOwnProperty('custom_fields')) {
114
+ obj['custom_fields'] = _ApiClient["default"].convertToType(data['custom_fields'], 'Number');
115
+ delete data['custom_fields'];
116
+ }
117
+
118
+ if (data.hasOwnProperty('notes')) {
119
+ obj['notes'] = _ApiClient["default"].convertToType(data['notes'], ['String']);
120
+ delete data['notes'];
121
+ }
122
+
123
+ if (data.hasOwnProperty('value')) {
124
+ obj['value'] = _ApiClient["default"].convertToType(data['value'], 'Number');
125
+ delete data['value'];
126
+ }
127
+
128
+ if (data.hasOwnProperty('currency')) {
129
+ obj['currency'] = _ApiClient["default"].convertToType(data['currency'], 'String');
130
+ delete data['currency'];
131
+ }
132
+
133
+ if (data.hasOwnProperty('visible_to')) {
134
+ obj['visible_to'] = _ApiClient["default"].convertToType(data['visible_to'], 'Number');
135
+ delete data['visible_to'];
136
+ }
137
+
138
+ if (data.hasOwnProperty('is_archived')) {
139
+ obj['is_archived'] = _ApiClient["default"].convertToType(data['is_archived'], 'Boolean');
140
+ delete data['is_archived'];
141
+ }
142
+
143
+ if (Object.keys(data).length > 0) {
144
+ Object.assign(obj, data);
145
+ }
146
+ }
147
+
148
+ return obj;
149
+ }
150
+ }]);
151
+ return LeadSearchItemItem;
152
+ }();
153
+ /**
154
+ * The ID of the lead
155
+ * @member {String} id
156
+ */
157
+
158
+
159
+ LeadSearchItemItem.prototype['id'] = undefined;
160
+ /**
161
+ * The type of the item
162
+ * @member {String} type
163
+ */
164
+
165
+ LeadSearchItemItem.prototype['type'] = undefined;
166
+ /**
167
+ * The title of the lead
168
+ * @member {String} title
169
+ */
170
+
171
+ LeadSearchItemItem.prototype['title'] = undefined;
172
+ /**
173
+ * @member {module:model/LeadSearchItemItemOwner} owner
174
+ */
175
+
176
+ LeadSearchItemItem.prototype['owner'] = undefined;
177
+ /**
178
+ * @member {module:model/LeadSearchItemItemPerson} person
179
+ */
180
+
181
+ LeadSearchItemItem.prototype['person'] = undefined;
182
+ /**
183
+ * @member {module:model/LeadSearchItemItemOrganization} organization
184
+ */
185
+
186
+ LeadSearchItemItem.prototype['organization'] = undefined;
187
+ /**
188
+ * @member {Array.<String>} phones
189
+ */
190
+
191
+ LeadSearchItemItem.prototype['phones'] = undefined;
192
+ /**
193
+ * @member {Array.<String>} emails
194
+ */
195
+
196
+ LeadSearchItemItem.prototype['emails'] = undefined;
197
+ /**
198
+ * Custom fields
199
+ * @member {Number} custom_fields
200
+ */
201
+
202
+ LeadSearchItemItem.prototype['custom_fields'] = undefined;
203
+ /**
204
+ * An array of notes
205
+ * @member {Array.<String>} notes
206
+ */
207
+
208
+ LeadSearchItemItem.prototype['notes'] = undefined;
209
+ /**
210
+ * The value of the lead
211
+ * @member {Number} value
212
+ */
213
+
214
+ LeadSearchItemItem.prototype['value'] = undefined;
215
+ /**
216
+ * The currency of the lead
217
+ * @member {String} currency
218
+ */
219
+
220
+ LeadSearchItemItem.prototype['currency'] = undefined;
221
+ /**
222
+ * The visibility of the lead
223
+ * @member {Number} visible_to
224
+ */
225
+
226
+ LeadSearchItemItem.prototype['visible_to'] = undefined;
227
+ /**
228
+ * A flag indicating whether the lead is archived or not
229
+ * @member {Boolean} is_archived
230
+ */
231
+
232
+ LeadSearchItemItem.prototype['is_archived'] = undefined;
233
+ var _default = LeadSearchItemItem;
234
+ exports["default"] = _default;
@@ -0,0 +1,101 @@
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 LeadSearchItemItemOrganization model module.
31
+ * @module model/LeadSearchItemItemOrganization
32
+ * @version 1.0.0
33
+ */
34
+ var LeadSearchItemItemOrganization = /*#__PURE__*/function () {
35
+ /**
36
+ * Constructs a new <code>LeadSearchItemItemOrganization</code>.
37
+ * @alias module:model/LeadSearchItemItemOrganization
38
+ */
39
+ function LeadSearchItemItemOrganization() {
40
+ (0, _classCallCheck2["default"])(this, LeadSearchItemItemOrganization);
41
+ LeadSearchItemItemOrganization.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"])(LeadSearchItemItemOrganization, null, [{
51
+ key: "initialize",
52
+ value: function initialize(obj) {}
53
+ /**
54
+ * Constructs a <code>LeadSearchItemItemOrganization</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/LeadSearchItemItemOrganization} obj Optional instance to populate.
58
+ * @return {module:model/LeadSearchItemItemOrganization} The populated <code>LeadSearchItemItemOrganization</code> instance.
59
+ */
60
+
61
+ }, {
62
+ key: "constructFromObject",
63
+ value: function constructFromObject(data, obj) {
64
+ if (data) {
65
+ obj = obj || new LeadSearchItemItemOrganization();
66
+
67
+ if (data.hasOwnProperty('id')) {
68
+ obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
69
+ delete data['id'];
70
+ }
71
+
72
+ if (data.hasOwnProperty('name')) {
73
+ obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
74
+ delete data['name'];
75
+ }
76
+
77
+ if (Object.keys(data).length > 0) {
78
+ Object.assign(obj, data);
79
+ }
80
+ }
81
+
82
+ return obj;
83
+ }
84
+ }]);
85
+ return LeadSearchItemItemOrganization;
86
+ }();
87
+ /**
88
+ * The ID of the organization the lead is associated with
89
+ * @member {Number} id
90
+ */
91
+
92
+
93
+ LeadSearchItemItemOrganization.prototype['id'] = undefined;
94
+ /**
95
+ * The name of the organization the lead is associated with
96
+ * @member {String} name
97
+ */
98
+
99
+ LeadSearchItemItemOrganization.prototype['name'] = undefined;
100
+ var _default = LeadSearchItemItemOrganization;
101
+ exports["default"] = _default;