pipedrive 18.1.4 → 19.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. package/README.md +21 -1
  2. package/dist/api/ActivitiesApi.js +76 -5
  3. package/dist/api/DealsApi.js +91 -25
  4. package/dist/api/LeadsApi.js +56 -0
  5. package/dist/api/ProductsApi.js +6 -6
  6. package/dist/api/RolesApi.js +125 -0
  7. package/dist/api/StagesApi.js +7 -1
  8. package/dist/index.js +108 -3
  9. package/dist/model/ActivityCollectionResponseObject.js +637 -0
  10. package/dist/model/ActivityCollectionResponseObjectAllOf.js +346 -0
  11. package/dist/model/ActivityObjectFragment.js +11 -11
  12. package/dist/model/ActivityPostObject.js +32 -17
  13. package/dist/model/ActivityPostObjectAllOf.js +10 -0
  14. package/dist/model/ActivityPutObject.js +32 -17
  15. package/dist/model/ActivityPutObjectAllOf.js +10 -0
  16. package/dist/model/ActivityResponseObject.js +55 -45
  17. package/dist/model/ActivityResponseObjectAllOf.js +22 -22
  18. package/dist/model/AddProductAttachmentDetails.js +29 -28
  19. package/dist/model/AddProductRequestBody.js +18 -11
  20. package/dist/model/AddWebhookRequest.js +29 -0
  21. package/dist/model/AdditionalDataWithCursorPagination.js +79 -0
  22. package/dist/model/AdditionalDataWithOffsetPagination.js +79 -0
  23. package/dist/model/BaseDeal.js +1 -1
  24. package/dist/model/BaseProduct.js +10 -7
  25. package/dist/model/BasicDealProduct.js +19 -8
  26. package/dist/model/DealCollectionResponseObject.js +278 -0
  27. package/dist/model/DealNonStrict.js +2 -2
  28. package/dist/model/DealNonStrictWithDetails.js +2 -2
  29. package/dist/model/DealProductUnitDuration.js +61 -0
  30. package/dist/model/DealStrict.js +2 -2
  31. package/dist/model/DealStrictWithMergeId.js +2 -2
  32. package/dist/model/DeleteDealProductData.js +0 -10
  33. package/dist/model/GetActivitiesCollectionResponse200.js +97 -0
  34. package/dist/model/GetComments.js +3 -3
  35. package/dist/model/GetDealsCollection.js +98 -0
  36. package/dist/model/GetNotes.js +3 -3
  37. package/dist/model/GetRolePipelines.js +108 -0
  38. package/dist/model/GetRolePipelinesAllOf.js +78 -0
  39. package/dist/model/GetRolePipelinesAllOfData.js +89 -0
  40. package/dist/model/ListProductFilesResponse.js +124 -0
  41. package/dist/model/ListProductFilesResponseAllOf.js +89 -0
  42. package/dist/model/NewDealProduct.js +30 -13
  43. package/dist/model/PersonListProduct.js +10 -7
  44. package/dist/model/ProductAttachmentDetails.js +29 -23
  45. package/dist/model/ProductBaseDeal.js +1 -1
  46. package/dist/model/ProductFileItem.js +219 -0
  47. package/dist/model/ProductRequest.js +10 -7
  48. package/dist/model/ProductWithArrayPrices.js +18 -11
  49. package/dist/model/ProductWithObjectPrices.js +18 -11
  50. package/dist/model/PutRolePipelinesBody.js +81 -0
  51. package/dist/model/UpdateDealProduct.js +176 -0
  52. package/dist/model/UpdateProductRequestBody.js +18 -11
  53. package/package.json +1 -1
@@ -0,0 +1,346 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports["default"] = void 0;
8
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
11
+ /**
12
+ * Pipedrive API v1
13
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
14
+ *
15
+ * The version of the OpenAPI document: 1.0.0
16
+ *
17
+ *
18
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
19
+ * https://openapi-generator.tech
20
+ * Do not edit the class manually.
21
+ *
22
+ */
23
+ /**
24
+ * The ActivityCollectionResponseObjectAllOf model module.
25
+ * @module model/ActivityCollectionResponseObjectAllOf
26
+ * @version 1.0.0
27
+ */
28
+ var ActivityCollectionResponseObjectAllOf = /*#__PURE__*/function () {
29
+ /**
30
+ * Constructs a new <code>ActivityCollectionResponseObjectAllOf</code>.
31
+ * @alias module:model/ActivityCollectionResponseObjectAllOf
32
+ */
33
+ function ActivityCollectionResponseObjectAllOf() {
34
+ (0, _classCallCheck2["default"])(this, ActivityCollectionResponseObjectAllOf);
35
+ ActivityCollectionResponseObjectAllOf.initialize(this);
36
+ }
37
+
38
+ /**
39
+ * Initializes the fields of this object.
40
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
41
+ * Only for internal use.
42
+ */
43
+ (0, _createClass2["default"])(ActivityCollectionResponseObjectAllOf, null, [{
44
+ key: "initialize",
45
+ value: function initialize(obj) {}
46
+
47
+ /**
48
+ * Constructs a <code>ActivityCollectionResponseObjectAllOf</code> from a plain JavaScript object, optionally creating a new instance.
49
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
50
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
51
+ * @param {module:model/ActivityCollectionResponseObjectAllOf} obj Optional instance to populate.
52
+ * @return {module:model/ActivityCollectionResponseObjectAllOf} The populated <code>ActivityCollectionResponseObjectAllOf</code> instance.
53
+ */
54
+ }, {
55
+ key: "constructFromObject",
56
+ value: function constructFromObject(data, obj) {
57
+ if (data) {
58
+ obj = obj || new ActivityCollectionResponseObjectAllOf();
59
+ if (data.hasOwnProperty('id')) {
60
+ obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
61
+ delete data['id'];
62
+ }
63
+ if (data.hasOwnProperty('done')) {
64
+ obj['done'] = _ApiClient["default"].convertToType(data['done'], 'Boolean');
65
+ delete data['done'];
66
+ }
67
+ if (data.hasOwnProperty('subject')) {
68
+ obj['subject'] = _ApiClient["default"].convertToType(data['subject'], 'String');
69
+ delete data['subject'];
70
+ }
71
+ if (data.hasOwnProperty('type')) {
72
+ obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String');
73
+ delete data['type'];
74
+ }
75
+ if (data.hasOwnProperty('user_id')) {
76
+ obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'Number');
77
+ delete data['user_id'];
78
+ }
79
+ if (data.hasOwnProperty('busy_flag')) {
80
+ obj['busy_flag'] = _ApiClient["default"].convertToType(data['busy_flag'], 'Boolean');
81
+ delete data['busy_flag'];
82
+ }
83
+ if (data.hasOwnProperty('company_id')) {
84
+ obj['company_id'] = _ApiClient["default"].convertToType(data['company_id'], 'Number');
85
+ delete data['company_id'];
86
+ }
87
+ if (data.hasOwnProperty('conference_meeting_client')) {
88
+ obj['conference_meeting_client'] = _ApiClient["default"].convertToType(data['conference_meeting_client'], 'String');
89
+ delete data['conference_meeting_client'];
90
+ }
91
+ if (data.hasOwnProperty('conference_meeting_url')) {
92
+ obj['conference_meeting_url'] = _ApiClient["default"].convertToType(data['conference_meeting_url'], 'String');
93
+ delete data['conference_meeting_url'];
94
+ }
95
+ if (data.hasOwnProperty('conference_meeting_id')) {
96
+ obj['conference_meeting_id'] = _ApiClient["default"].convertToType(data['conference_meeting_id'], 'String');
97
+ delete data['conference_meeting_id'];
98
+ }
99
+ if (data.hasOwnProperty('add_time')) {
100
+ obj['add_time'] = _ApiClient["default"].convertToType(data['add_time'], 'String');
101
+ delete data['add_time'];
102
+ }
103
+ if (data.hasOwnProperty('marked_as_done_time')) {
104
+ obj['marked_as_done_time'] = _ApiClient["default"].convertToType(data['marked_as_done_time'], 'String');
105
+ delete data['marked_as_done_time'];
106
+ }
107
+ if (data.hasOwnProperty('active_flag')) {
108
+ obj['active_flag'] = _ApiClient["default"].convertToType(data['active_flag'], 'Boolean');
109
+ delete data['active_flag'];
110
+ }
111
+ if (data.hasOwnProperty('update_time')) {
112
+ obj['update_time'] = _ApiClient["default"].convertToType(data['update_time'], 'String');
113
+ delete data['update_time'];
114
+ }
115
+ if (data.hasOwnProperty('update_user_id')) {
116
+ obj['update_user_id'] = _ApiClient["default"].convertToType(data['update_user_id'], 'Number');
117
+ delete data['update_user_id'];
118
+ }
119
+ if (data.hasOwnProperty('source_timezone')) {
120
+ obj['source_timezone'] = _ApiClient["default"].convertToType(data['source_timezone'], 'String');
121
+ delete data['source_timezone'];
122
+ }
123
+ if (data.hasOwnProperty('location_subpremise')) {
124
+ obj['location_subpremise'] = _ApiClient["default"].convertToType(data['location_subpremise'], 'String');
125
+ delete data['location_subpremise'];
126
+ }
127
+ if (data.hasOwnProperty('location_street_number')) {
128
+ obj['location_street_number'] = _ApiClient["default"].convertToType(data['location_street_number'], 'String');
129
+ delete data['location_street_number'];
130
+ }
131
+ if (data.hasOwnProperty('location_route')) {
132
+ obj['location_route'] = _ApiClient["default"].convertToType(data['location_route'], 'String');
133
+ delete data['location_route'];
134
+ }
135
+ if (data.hasOwnProperty('location_sublocality')) {
136
+ obj['location_sublocality'] = _ApiClient["default"].convertToType(data['location_sublocality'], 'String');
137
+ delete data['location_sublocality'];
138
+ }
139
+ if (data.hasOwnProperty('location_locality')) {
140
+ obj['location_locality'] = _ApiClient["default"].convertToType(data['location_locality'], 'String');
141
+ delete data['location_locality'];
142
+ }
143
+ if (data.hasOwnProperty('location_admin_area_level_1')) {
144
+ obj['location_admin_area_level_1'] = _ApiClient["default"].convertToType(data['location_admin_area_level_1'], 'String');
145
+ delete data['location_admin_area_level_1'];
146
+ }
147
+ if (data.hasOwnProperty('location_admin_area_level_2')) {
148
+ obj['location_admin_area_level_2'] = _ApiClient["default"].convertToType(data['location_admin_area_level_2'], 'String');
149
+ delete data['location_admin_area_level_2'];
150
+ }
151
+ if (data.hasOwnProperty('location_country')) {
152
+ obj['location_country'] = _ApiClient["default"].convertToType(data['location_country'], 'String');
153
+ delete data['location_country'];
154
+ }
155
+ if (data.hasOwnProperty('location_postal_code')) {
156
+ obj['location_postal_code'] = _ApiClient["default"].convertToType(data['location_postal_code'], 'String');
157
+ delete data['location_postal_code'];
158
+ }
159
+ if (data.hasOwnProperty('location_formatted_address')) {
160
+ obj['location_formatted_address'] = _ApiClient["default"].convertToType(data['location_formatted_address'], 'String');
161
+ delete data['location_formatted_address'];
162
+ }
163
+ if (Object.keys(data).length > 0) {
164
+ Object.assign(obj, data);
165
+ }
166
+ }
167
+ return obj;
168
+ }
169
+ }]);
170
+ return ActivityCollectionResponseObjectAllOf;
171
+ }();
172
+ /**
173
+ * The ID of the activity, generated when the activity was created
174
+ * @member {Number} id
175
+ */
176
+ ActivityCollectionResponseObjectAllOf.prototype['id'] = undefined;
177
+
178
+ /**
179
+ * Whether the activity is done or not
180
+ * @member {Boolean} done
181
+ */
182
+ ActivityCollectionResponseObjectAllOf.prototype['done'] = undefined;
183
+
184
+ /**
185
+ * The subject of the activity
186
+ * @member {String} subject
187
+ */
188
+ ActivityCollectionResponseObjectAllOf.prototype['subject'] = undefined;
189
+
190
+ /**
191
+ * The type of the activity. This is in correlation with the `key_string` parameter of ActivityTypes.
192
+ * @member {String} type
193
+ */
194
+ ActivityCollectionResponseObjectAllOf.prototype['type'] = undefined;
195
+
196
+ /**
197
+ * The ID of the user whom the activity is assigned to
198
+ * @member {Number} user_id
199
+ */
200
+ ActivityCollectionResponseObjectAllOf.prototype['user_id'] = undefined;
201
+
202
+ /**
203
+ * Marks if the activity is set as 'Busy' or 'Free'. If the flag is set to `true`, your customers will not be able to book that time slot through any Scheduler links. The flag can also be unset. When the value of the flag is unset (`null`), the flag defaults to 'Busy' if it has a time set, and 'Free' if it is an all-day event without specified time.
204
+ * @member {module:model/ActivityCollectionResponseObjectAllOf.BusyFlagEnum} busy_flag
205
+ */
206
+ ActivityCollectionResponseObjectAllOf.prototype['busy_flag'] = undefined;
207
+
208
+ /**
209
+ * The user's company ID
210
+ * @member {Number} company_id
211
+ */
212
+ ActivityCollectionResponseObjectAllOf.prototype['company_id'] = undefined;
213
+
214
+ /**
215
+ * The ID of the Marketplace app, which is connected to this activity
216
+ * @member {String} conference_meeting_client
217
+ */
218
+ ActivityCollectionResponseObjectAllOf.prototype['conference_meeting_client'] = undefined;
219
+
220
+ /**
221
+ * The link to join the meeting which is associated with this activity
222
+ * @member {String} conference_meeting_url
223
+ */
224
+ ActivityCollectionResponseObjectAllOf.prototype['conference_meeting_url'] = undefined;
225
+
226
+ /**
227
+ * The meeting ID of the meeting provider (Zoom, MS Teams etc.) that is associated with this activity
228
+ * @member {String} conference_meeting_id
229
+ */
230
+ ActivityCollectionResponseObjectAllOf.prototype['conference_meeting_id'] = undefined;
231
+
232
+ /**
233
+ * The creation date and time of the activity in UTC. Format: YYYY-MM-DD HH:MM:SS.
234
+ * @member {String} add_time
235
+ */
236
+ ActivityCollectionResponseObjectAllOf.prototype['add_time'] = undefined;
237
+
238
+ /**
239
+ * The date and time this activity was marked as done. Format: YYYY-MM-DD HH:MM:SS.
240
+ * @member {String} marked_as_done_time
241
+ */
242
+ ActivityCollectionResponseObjectAllOf.prototype['marked_as_done_time'] = undefined;
243
+
244
+ /**
245
+ * Whether the activity is active or not
246
+ * @member {Boolean} active_flag
247
+ */
248
+ ActivityCollectionResponseObjectAllOf.prototype['active_flag'] = undefined;
249
+
250
+ /**
251
+ * The last update date and time of the activity. Format: YYYY-MM-DD HH:MM:SS.
252
+ * @member {String} update_time
253
+ */
254
+ ActivityCollectionResponseObjectAllOf.prototype['update_time'] = undefined;
255
+
256
+ /**
257
+ * The ID of the user who was the last to update this activity
258
+ * @member {Number} update_user_id
259
+ */
260
+ ActivityCollectionResponseObjectAllOf.prototype['update_user_id'] = undefined;
261
+
262
+ /**
263
+ * The timezone the activity was created in an external calendar
264
+ * @member {String} source_timezone
265
+ */
266
+ ActivityCollectionResponseObjectAllOf.prototype['source_timezone'] = undefined;
267
+
268
+ /**
269
+ * A subfield of the location field. Indicates apartment/suite number.
270
+ * @member {String} location_subpremise
271
+ */
272
+ ActivityCollectionResponseObjectAllOf.prototype['location_subpremise'] = undefined;
273
+
274
+ /**
275
+ * A subfield of the location field. Indicates house number.
276
+ * @member {String} location_street_number
277
+ */
278
+ ActivityCollectionResponseObjectAllOf.prototype['location_street_number'] = undefined;
279
+
280
+ /**
281
+ * A subfield of the location field. Indicates street name.
282
+ * @member {String} location_route
283
+ */
284
+ ActivityCollectionResponseObjectAllOf.prototype['location_route'] = undefined;
285
+
286
+ /**
287
+ * A subfield of the location field. Indicates district/sublocality.
288
+ * @member {String} location_sublocality
289
+ */
290
+ ActivityCollectionResponseObjectAllOf.prototype['location_sublocality'] = undefined;
291
+
292
+ /**
293
+ * A subfield of the location field. Indicates city/town/village/locality.
294
+ * @member {String} location_locality
295
+ */
296
+ ActivityCollectionResponseObjectAllOf.prototype['location_locality'] = undefined;
297
+
298
+ /**
299
+ * A subfield of the location field. Indicates state/county.
300
+ * @member {String} location_admin_area_level_1
301
+ */
302
+ ActivityCollectionResponseObjectAllOf.prototype['location_admin_area_level_1'] = undefined;
303
+
304
+ /**
305
+ * A subfield of the location field. Indicates region.
306
+ * @member {String} location_admin_area_level_2
307
+ */
308
+ ActivityCollectionResponseObjectAllOf.prototype['location_admin_area_level_2'] = undefined;
309
+
310
+ /**
311
+ * A subfield of the location field. Indicates country.
312
+ * @member {String} location_country
313
+ */
314
+ ActivityCollectionResponseObjectAllOf.prototype['location_country'] = undefined;
315
+
316
+ /**
317
+ * A subfield of the location field. Indicates ZIP/postal code.
318
+ * @member {String} location_postal_code
319
+ */
320
+ ActivityCollectionResponseObjectAllOf.prototype['location_postal_code'] = undefined;
321
+
322
+ /**
323
+ * A subfield of the location field. Indicates full/combined address.
324
+ * @member {String} location_formatted_address
325
+ */
326
+ ActivityCollectionResponseObjectAllOf.prototype['location_formatted_address'] = undefined;
327
+
328
+ /**
329
+ * Allowed values for the <code>busy_flag</code> property.
330
+ * @enum {Boolean}
331
+ * @readonly
332
+ */
333
+ ActivityCollectionResponseObjectAllOf['BusyFlagEnum'] = {
334
+ /**
335
+ * value: "true"
336
+ * @const
337
+ */
338
+ "true": "true",
339
+ /**
340
+ * value: "false"
341
+ * @const
342
+ */
343
+ "false": "false"
344
+ };
345
+ var _default = ActivityCollectionResponseObjectAllOf;
346
+ exports["default"] = _default;
@@ -80,14 +80,14 @@ var ActivityObjectFragment = /*#__PURE__*/function () {
80
80
  obj['person_id'] = _ApiClient["default"].convertToType(data['person_id'], 'Number');
81
81
  delete data['person_id'];
82
82
  }
83
+ if (data.hasOwnProperty('project_id')) {
84
+ obj['project_id'] = _ApiClient["default"].convertToType(data['project_id'], 'Number');
85
+ delete data['project_id'];
86
+ }
83
87
  if (data.hasOwnProperty('org_id')) {
84
88
  obj['org_id'] = _ApiClient["default"].convertToType(data['org_id'], 'Number');
85
89
  delete data['org_id'];
86
90
  }
87
- if (data.hasOwnProperty('note')) {
88
- obj['note'] = _ApiClient["default"].convertToType(data['note'], 'String');
89
- delete data['note'];
90
- }
91
91
  if (data.hasOwnProperty('location')) {
92
92
  obj['location'] = _ApiClient["default"].convertToType(data['location'], 'String');
93
93
  delete data['location'];
@@ -130,7 +130,7 @@ ActivityObjectFragment.prototype['duration'] = undefined;
130
130
  ActivityObjectFragment.prototype['deal_id'] = undefined;
131
131
 
132
132
  /**
133
- * The ID of the lead this activity is associated with
133
+ * The ID of the lead in the UUID format this activity is associated with
134
134
  * @member {String} lead_id
135
135
  */
136
136
  ActivityObjectFragment.prototype['lead_id'] = undefined;
@@ -142,16 +142,16 @@ ActivityObjectFragment.prototype['lead_id'] = undefined;
142
142
  ActivityObjectFragment.prototype['person_id'] = undefined;
143
143
 
144
144
  /**
145
- * The ID of the organization this activity is associated with
146
- * @member {Number} org_id
145
+ * The ID of the project this activity is associated with
146
+ * @member {Number} project_id
147
147
  */
148
- ActivityObjectFragment.prototype['org_id'] = undefined;
148
+ ActivityObjectFragment.prototype['project_id'] = undefined;
149
149
 
150
150
  /**
151
- * The note of the activity (HTML format)
152
- * @member {String} note
151
+ * The ID of the organization this activity is associated with
152
+ * @member {Number} org_id
153
153
  */
154
- ActivityObjectFragment.prototype['note'] = undefined;
154
+ ActivityObjectFragment.prototype['org_id'] = undefined;
155
155
 
156
156
  /**
157
157
  * The address of the activity. Pipedrive will automatically check if the location matches a geo-location on Google maps.
@@ -89,14 +89,14 @@ var ActivityPostObject = /*#__PURE__*/function () {
89
89
  obj['person_id'] = _ApiClient["default"].convertToType(data['person_id'], 'Number');
90
90
  delete data['person_id'];
91
91
  }
92
+ if (data.hasOwnProperty('project_id')) {
93
+ obj['project_id'] = _ApiClient["default"].convertToType(data['project_id'], 'Number');
94
+ delete data['project_id'];
95
+ }
92
96
  if (data.hasOwnProperty('org_id')) {
93
97
  obj['org_id'] = _ApiClient["default"].convertToType(data['org_id'], 'Number');
94
98
  delete data['org_id'];
95
99
  }
96
- if (data.hasOwnProperty('note')) {
97
- obj['note'] = _ApiClient["default"].convertToType(data['note'], 'String');
98
- delete data['note'];
99
- }
100
100
  if (data.hasOwnProperty('location')) {
101
101
  obj['location'] = _ApiClient["default"].convertToType(data['location'], 'String');
102
102
  delete data['location'];
@@ -105,6 +105,10 @@ var ActivityPostObject = /*#__PURE__*/function () {
105
105
  obj['public_description'] = _ApiClient["default"].convertToType(data['public_description'], 'String');
106
106
  delete data['public_description'];
107
107
  }
108
+ if (data.hasOwnProperty('note')) {
109
+ obj['note'] = _ApiClient["default"].convertToType(data['note'], 'String');
110
+ delete data['note'];
111
+ }
108
112
  if (data.hasOwnProperty('subject')) {
109
113
  obj['subject'] = _ApiClient["default"].convertToType(data['subject'], 'String');
110
114
  delete data['subject'];
@@ -167,7 +171,7 @@ ActivityPostObject.prototype['duration'] = undefined;
167
171
  ActivityPostObject.prototype['deal_id'] = undefined;
168
172
 
169
173
  /**
170
- * The ID of the lead this activity is associated with
174
+ * The ID of the lead in the UUID format this activity is associated with
171
175
  * @member {String} lead_id
172
176
  */
173
177
  ActivityPostObject.prototype['lead_id'] = undefined;
@@ -179,16 +183,16 @@ ActivityPostObject.prototype['lead_id'] = undefined;
179
183
  ActivityPostObject.prototype['person_id'] = undefined;
180
184
 
181
185
  /**
182
- * The ID of the organization this activity is associated with
183
- * @member {Number} org_id
186
+ * The ID of the project this activity is associated with
187
+ * @member {Number} project_id
184
188
  */
185
- ActivityPostObject.prototype['org_id'] = undefined;
189
+ ActivityPostObject.prototype['project_id'] = undefined;
186
190
 
187
191
  /**
188
- * The note of the activity (HTML format)
189
- * @member {String} note
192
+ * The ID of the organization this activity is associated with
193
+ * @member {Number} org_id
190
194
  */
191
- ActivityPostObject.prototype['note'] = undefined;
195
+ ActivityPostObject.prototype['org_id'] = undefined;
192
196
 
193
197
  /**
194
198
  * The address of the activity. Pipedrive will automatically check if the location matches a geo-location on Google maps.
@@ -202,6 +206,12 @@ ActivityPostObject.prototype['location'] = undefined;
202
206
  */
203
207
  ActivityPostObject.prototype['public_description'] = undefined;
204
208
 
209
+ /**
210
+ * The note of the activity (HTML format)
211
+ * @member {String} note
212
+ */
213
+ ActivityPostObject.prototype['note'] = undefined;
214
+
205
215
  /**
206
216
  * The subject of the activity. When value for subject is not set, it will be given a default value `Call`.
207
217
  * @member {String} subject
@@ -266,7 +276,7 @@ _ActivityObjectFragment["default"].prototype['duration'] = undefined;
266
276
  */
267
277
  _ActivityObjectFragment["default"].prototype['deal_id'] = undefined;
268
278
  /**
269
- * The ID of the lead this activity is associated with
279
+ * The ID of the lead in the UUID format this activity is associated with
270
280
  * @member {String} lead_id
271
281
  */
272
282
  _ActivityObjectFragment["default"].prototype['lead_id'] = undefined;
@@ -275,16 +285,16 @@ _ActivityObjectFragment["default"].prototype['lead_id'] = undefined;
275
285
  * @member {Number} person_id
276
286
  */
277
287
  _ActivityObjectFragment["default"].prototype['person_id'] = undefined;
288
+ /**
289
+ * The ID of the project this activity is associated with
290
+ * @member {Number} project_id
291
+ */
292
+ _ActivityObjectFragment["default"].prototype['project_id'] = undefined;
278
293
  /**
279
294
  * The ID of the organization this activity is associated with
280
295
  * @member {Number} org_id
281
296
  */
282
297
  _ActivityObjectFragment["default"].prototype['org_id'] = undefined;
283
- /**
284
- * The note of the activity (HTML format)
285
- * @member {String} note
286
- */
287
- _ActivityObjectFragment["default"].prototype['note'] = undefined;
288
298
  /**
289
299
  * The address of the activity. Pipedrive will automatically check if the location matches a geo-location on Google maps.
290
300
  * @member {String} location
@@ -296,6 +306,11 @@ _ActivityObjectFragment["default"].prototype['location'] = undefined;
296
306
  */
297
307
  _ActivityObjectFragment["default"].prototype['public_description'] = undefined;
298
308
  // Implement ActivityPostObjectAllOf interface:
309
+ /**
310
+ * The note of the activity (HTML format)
311
+ * @member {String} note
312
+ */
313
+ _ActivityPostObjectAllOf["default"].prototype['note'] = undefined;
299
314
  /**
300
315
  * The subject of the activity. When value for subject is not set, it will be given a default value `Call`.
301
316
  * @member {String} subject
@@ -57,6 +57,10 @@ var ActivityPostObjectAllOf = /*#__PURE__*/function () {
57
57
  value: function constructFromObject(data, obj) {
58
58
  if (data) {
59
59
  obj = obj || new ActivityPostObjectAllOf();
60
+ if (data.hasOwnProperty('note')) {
61
+ obj['note'] = _ApiClient["default"].convertToType(data['note'], 'String');
62
+ delete data['note'];
63
+ }
60
64
  if (data.hasOwnProperty('subject')) {
61
65
  obj['subject'] = _ApiClient["default"].convertToType(data['subject'], 'String');
62
66
  delete data['subject'];
@@ -94,6 +98,12 @@ var ActivityPostObjectAllOf = /*#__PURE__*/function () {
94
98
  }]);
95
99
  return ActivityPostObjectAllOf;
96
100
  }();
101
+ /**
102
+ * The note of the activity (HTML format)
103
+ * @member {String} note
104
+ */
105
+ ActivityPostObjectAllOf.prototype['note'] = undefined;
106
+
97
107
  /**
98
108
  * The subject of the activity. When value for subject is not set, it will be given a default value `Call`.
99
109
  * @member {String} subject
@@ -89,14 +89,14 @@ var ActivityPutObject = /*#__PURE__*/function () {
89
89
  obj['person_id'] = _ApiClient["default"].convertToType(data['person_id'], 'Number');
90
90
  delete data['person_id'];
91
91
  }
92
+ if (data.hasOwnProperty('project_id')) {
93
+ obj['project_id'] = _ApiClient["default"].convertToType(data['project_id'], 'Number');
94
+ delete data['project_id'];
95
+ }
92
96
  if (data.hasOwnProperty('org_id')) {
93
97
  obj['org_id'] = _ApiClient["default"].convertToType(data['org_id'], 'Number');
94
98
  delete data['org_id'];
95
99
  }
96
- if (data.hasOwnProperty('note')) {
97
- obj['note'] = _ApiClient["default"].convertToType(data['note'], 'String');
98
- delete data['note'];
99
- }
100
100
  if (data.hasOwnProperty('location')) {
101
101
  obj['location'] = _ApiClient["default"].convertToType(data['location'], 'String');
102
102
  delete data['location'];
@@ -105,6 +105,10 @@ var ActivityPutObject = /*#__PURE__*/function () {
105
105
  obj['public_description'] = _ApiClient["default"].convertToType(data['public_description'], 'String');
106
106
  delete data['public_description'];
107
107
  }
108
+ if (data.hasOwnProperty('note')) {
109
+ obj['note'] = _ApiClient["default"].convertToType(data['note'], 'String');
110
+ delete data['note'];
111
+ }
108
112
  if (data.hasOwnProperty('subject')) {
109
113
  obj['subject'] = _ApiClient["default"].convertToType(data['subject'], 'String');
110
114
  delete data['subject'];
@@ -167,7 +171,7 @@ ActivityPutObject.prototype['duration'] = undefined;
167
171
  ActivityPutObject.prototype['deal_id'] = undefined;
168
172
 
169
173
  /**
170
- * The ID of the lead this activity is associated with
174
+ * The ID of the lead in the UUID format this activity is associated with
171
175
  * @member {String} lead_id
172
176
  */
173
177
  ActivityPutObject.prototype['lead_id'] = undefined;
@@ -179,16 +183,16 @@ ActivityPutObject.prototype['lead_id'] = undefined;
179
183
  ActivityPutObject.prototype['person_id'] = undefined;
180
184
 
181
185
  /**
182
- * The ID of the organization this activity is associated with
183
- * @member {Number} org_id
186
+ * The ID of the project this activity is associated with
187
+ * @member {Number} project_id
184
188
  */
185
- ActivityPutObject.prototype['org_id'] = undefined;
189
+ ActivityPutObject.prototype['project_id'] = undefined;
186
190
 
187
191
  /**
188
- * The note of the activity (HTML format)
189
- * @member {String} note
192
+ * The ID of the organization this activity is associated with
193
+ * @member {Number} org_id
190
194
  */
191
- ActivityPutObject.prototype['note'] = undefined;
195
+ ActivityPutObject.prototype['org_id'] = undefined;
192
196
 
193
197
  /**
194
198
  * The address of the activity. Pipedrive will automatically check if the location matches a geo-location on Google maps.
@@ -202,6 +206,12 @@ ActivityPutObject.prototype['location'] = undefined;
202
206
  */
203
207
  ActivityPutObject.prototype['public_description'] = undefined;
204
208
 
209
+ /**
210
+ * The note of the activity (HTML format)
211
+ * @member {String} note
212
+ */
213
+ ActivityPutObject.prototype['note'] = undefined;
214
+
205
215
  /**
206
216
  * The subject of the activity
207
217
  * @member {String} subject
@@ -266,7 +276,7 @@ _ActivityObjectFragment["default"].prototype['duration'] = undefined;
266
276
  */
267
277
  _ActivityObjectFragment["default"].prototype['deal_id'] = undefined;
268
278
  /**
269
- * The ID of the lead this activity is associated with
279
+ * The ID of the lead in the UUID format this activity is associated with
270
280
  * @member {String} lead_id
271
281
  */
272
282
  _ActivityObjectFragment["default"].prototype['lead_id'] = undefined;
@@ -275,16 +285,16 @@ _ActivityObjectFragment["default"].prototype['lead_id'] = undefined;
275
285
  * @member {Number} person_id
276
286
  */
277
287
  _ActivityObjectFragment["default"].prototype['person_id'] = undefined;
288
+ /**
289
+ * The ID of the project this activity is associated with
290
+ * @member {Number} project_id
291
+ */
292
+ _ActivityObjectFragment["default"].prototype['project_id'] = undefined;
278
293
  /**
279
294
  * The ID of the organization this activity is associated with
280
295
  * @member {Number} org_id
281
296
  */
282
297
  _ActivityObjectFragment["default"].prototype['org_id'] = undefined;
283
- /**
284
- * The note of the activity (HTML format)
285
- * @member {String} note
286
- */
287
- _ActivityObjectFragment["default"].prototype['note'] = undefined;
288
298
  /**
289
299
  * The address of the activity. Pipedrive will automatically check if the location matches a geo-location on Google maps.
290
300
  * @member {String} location
@@ -296,6 +306,11 @@ _ActivityObjectFragment["default"].prototype['location'] = undefined;
296
306
  */
297
307
  _ActivityObjectFragment["default"].prototype['public_description'] = undefined;
298
308
  // Implement ActivityPutObjectAllOf interface:
309
+ /**
310
+ * The note of the activity (HTML format)
311
+ * @member {String} note
312
+ */
313
+ _ActivityPutObjectAllOf["default"].prototype['note'] = undefined;
299
314
  /**
300
315
  * The subject of the activity
301
316
  * @member {String} subject
@@ -57,6 +57,10 @@ var ActivityPutObjectAllOf = /*#__PURE__*/function () {
57
57
  value: function constructFromObject(data, obj) {
58
58
  if (data) {
59
59
  obj = obj || new ActivityPutObjectAllOf();
60
+ if (data.hasOwnProperty('note')) {
61
+ obj['note'] = _ApiClient["default"].convertToType(data['note'], 'String');
62
+ delete data['note'];
63
+ }
60
64
  if (data.hasOwnProperty('subject')) {
61
65
  obj['subject'] = _ApiClient["default"].convertToType(data['subject'], 'String');
62
66
  delete data['subject'];
@@ -94,6 +98,12 @@ var ActivityPutObjectAllOf = /*#__PURE__*/function () {
94
98
  }]);
95
99
  return ActivityPutObjectAllOf;
96
100
  }();
101
+ /**
102
+ * The note of the activity (HTML format)
103
+ * @member {String} note
104
+ */
105
+ ActivityPutObjectAllOf.prototype['note'] = undefined;
106
+
97
107
  /**
98
108
  * The subject of the activity
99
109
  * @member {String} subject