pipedrive 16.0.4 → 17.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,6 +13,8 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
13
13
 
14
14
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
15
15
 
16
+ var _UserAccess = _interopRequireDefault(require("./UserAccess"));
17
+
16
18
  /**
17
19
  * Pipedrive API v1
18
20
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
@@ -35,13 +37,11 @@ var AddUserRequest = /*#__PURE__*/function () {
35
37
  /**
36
38
  * Constructs a new <code>AddUserRequest</code>.
37
39
  * @alias module:model/AddUserRequest
38
- * @param name {String} Name of the user
39
- * @param email {String} Email of the user
40
- * @param activeFlag {Boolean} Whether the user is active or not. `false` = Not activated, `true` = Activated
40
+ * @param email {String} The email of the user
41
41
  */
42
- function AddUserRequest(name, email, activeFlag) {
42
+ function AddUserRequest(email) {
43
43
  (0, _classCallCheck2["default"])(this, AddUserRequest);
44
- AddUserRequest.initialize(this, name, email, activeFlag);
44
+ AddUserRequest.initialize(this, email);
45
45
  }
46
46
  /**
47
47
  * Initializes the fields of this object.
@@ -52,10 +52,8 @@ var AddUserRequest = /*#__PURE__*/function () {
52
52
 
53
53
  (0, _createClass2["default"])(AddUserRequest, null, [{
54
54
  key: "initialize",
55
- value: function initialize(obj, name, email, activeFlag) {
56
- obj['name'] = name;
55
+ value: function initialize(obj, email) {
57
56
  obj['email'] = email;
58
- obj['active_flag'] = activeFlag || true;
59
57
  }
60
58
  /**
61
59
  * Constructs a <code>AddUserRequest</code> from a plain JavaScript object, optionally creating a new instance.
@@ -71,14 +69,19 @@ var AddUserRequest = /*#__PURE__*/function () {
71
69
  if (data) {
72
70
  obj = obj || new AddUserRequest();
73
71
 
72
+ if (data.hasOwnProperty('email')) {
73
+ obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String');
74
+ delete data['email'];
75
+ }
76
+
74
77
  if (data.hasOwnProperty('name')) {
75
78
  obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
76
79
  delete data['name'];
77
80
  }
78
81
 
79
- if (data.hasOwnProperty('email')) {
80
- obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String');
81
- delete data['email'];
82
+ if (data.hasOwnProperty('access')) {
83
+ obj['access'] = _ApiClient["default"].convertToType(data['access'], [_UserAccess["default"]]);
84
+ delete data['access'];
82
85
  }
83
86
 
84
87
  if (data.hasOwnProperty('active_flag')) {
@@ -87,7 +90,7 @@ var AddUserRequest = /*#__PURE__*/function () {
87
90
  }
88
91
 
89
92
  if (Object.keys(data).length > 0) {
90
- obj['extra'] = data;
93
+ Object.assign(obj, data);
91
94
  }
92
95
  }
93
96
 
@@ -97,18 +100,24 @@ var AddUserRequest = /*#__PURE__*/function () {
97
100
  return AddUserRequest;
98
101
  }();
99
102
  /**
100
- * Name of the user
101
- * @member {String} name
103
+ * The email of the user
104
+ * @member {String} email
102
105
  */
103
106
 
104
107
 
108
+ AddUserRequest.prototype['email'] = undefined;
109
+ /**
110
+ * The name of the user
111
+ * @member {String} name
112
+ */
113
+
105
114
  AddUserRequest.prototype['name'] = undefined;
106
115
  /**
107
- * Email of the user
108
- * @member {String} email
116
+ * The access given to the user. Each item in the array represents access to a specific app. Optionally may include either admin flag or permission set ID to specify which access to give within the app. If both are omitted, the default access for the corresponding app will be used. It requires structure as follows: `[{ app: 'sales', permission_set_id: '62cc4d7f-4038-4352-abf3-a8c1c822b631' }, { app: 'global', admin: true }, { app: 'account_settings' }]`
117
+ * @member {Array.<module:model/UserAccess>} access
109
118
  */
110
119
 
111
- AddUserRequest.prototype['email'] = undefined;
120
+ AddUserRequest.prototype['access'] = undefined;
112
121
  /**
113
122
  * Whether the user is active or not. `false` = Not activated, `true` = Activated
114
123
  * @member {Boolean} active_flag
@@ -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 _NumberBoolean = _interopRequireDefault(require("./NumberBoolean"));
16
+ var _UserAccess = _interopRequireDefault(require("./UserAccess"));
17
17
 
18
18
  /**
19
19
  * Pipedrive API v1
@@ -121,19 +121,14 @@ var BaseUser = /*#__PURE__*/function () {
121
121
  delete data['modified'];
122
122
  }
123
123
 
124
- if (data.hasOwnProperty('signup_flow_variation')) {
125
- obj['signup_flow_variation'] = _ApiClient["default"].convertToType(data['signup_flow_variation'], 'String');
126
- delete data['signup_flow_variation'];
127
- }
128
-
129
124
  if (data.hasOwnProperty('has_created_company')) {
130
125
  obj['has_created_company'] = _ApiClient["default"].convertToType(data['has_created_company'], 'Boolean');
131
126
  delete data['has_created_company'];
132
127
  }
133
128
 
134
- if (data.hasOwnProperty('is_admin')) {
135
- obj['is_admin'] = _ApiClient["default"].convertToType(data['is_admin'], _NumberBoolean["default"]);
136
- delete data['is_admin'];
129
+ if (data.hasOwnProperty('access')) {
130
+ obj['access'] = _ApiClient["default"].convertToType(data['access'], [_UserAccess["default"]]);
131
+ delete data['access'];
137
132
  }
138
133
 
139
134
  if (data.hasOwnProperty('active_flag')) {
@@ -243,12 +238,6 @@ BaseUser.prototype['created'] = undefined;
243
238
  */
244
239
 
245
240
  BaseUser.prototype['modified'] = undefined;
246
- /**
247
- * The variation of signup flow (if exists). E.g. google
248
- * @member {String} signup_flow_variation
249
- */
250
-
251
- BaseUser.prototype['signup_flow_variation'] = undefined;
252
241
  /**
253
242
  * Boolean that indicates whether the user has created a company
254
243
  * @member {Boolean} has_created_company
@@ -256,11 +245,10 @@ BaseUser.prototype['signup_flow_variation'] = undefined;
256
245
 
257
246
  BaseUser.prototype['has_created_company'] = undefined;
258
247
  /**
259
- * Indication if the user is admin (1 = true, 0 = false)
260
- * @member {module:model/NumberBoolean} is_admin
248
+ * @member {Array.<module:model/UserAccess>} access
261
249
  */
262
250
 
263
- BaseUser.prototype['is_admin'] = undefined;
251
+ BaseUser.prototype['access'] = undefined;
264
252
  /**
265
253
  * Boolean that indicates whether the user is activated
266
254
  * @member {Boolean} active_flag
@@ -19,7 +19,7 @@ var _BaseUserMeAllOf = _interopRequireDefault(require("./BaseUserMeAllOf"));
19
19
 
20
20
  var _BaseUserMeAllOfLanguage = _interopRequireDefault(require("./BaseUserMeAllOfLanguage"));
21
21
 
22
- var _NumberBoolean = _interopRequireDefault(require("./NumberBoolean"));
22
+ var _UserAccess = _interopRequireDefault(require("./UserAccess"));
23
23
 
24
24
  /**
25
25
  * Pipedrive API v1
@@ -138,19 +138,14 @@ var BaseUserMe = /*#__PURE__*/function () {
138
138
  delete data['modified'];
139
139
  }
140
140
 
141
- if (data.hasOwnProperty('signup_flow_variation')) {
142
- obj['signup_flow_variation'] = _ApiClient["default"].convertToType(data['signup_flow_variation'], 'String');
143
- delete data['signup_flow_variation'];
144
- }
145
-
146
141
  if (data.hasOwnProperty('has_created_company')) {
147
142
  obj['has_created_company'] = _ApiClient["default"].convertToType(data['has_created_company'], 'Boolean');
148
143
  delete data['has_created_company'];
149
144
  }
150
145
 
151
- if (data.hasOwnProperty('is_admin')) {
152
- obj['is_admin'] = _ApiClient["default"].convertToType(data['is_admin'], _NumberBoolean["default"]);
153
- delete data['is_admin'];
146
+ if (data.hasOwnProperty('access')) {
147
+ obj['access'] = _ApiClient["default"].convertToType(data['access'], [_UserAccess["default"]]);
148
+ delete data['access'];
154
149
  }
155
150
 
156
151
  if (data.hasOwnProperty('active_flag')) {
@@ -290,12 +285,6 @@ BaseUserMe.prototype['created'] = undefined;
290
285
  */
291
286
 
292
287
  BaseUserMe.prototype['modified'] = undefined;
293
- /**
294
- * The variation of signup flow (if exists). E.g. google
295
- * @member {String} signup_flow_variation
296
- */
297
-
298
- BaseUserMe.prototype['signup_flow_variation'] = undefined;
299
288
  /**
300
289
  * Boolean that indicates whether the user has created a company
301
290
  * @member {Boolean} has_created_company
@@ -303,11 +292,10 @@ BaseUserMe.prototype['signup_flow_variation'] = undefined;
303
292
 
304
293
  BaseUserMe.prototype['has_created_company'] = undefined;
305
294
  /**
306
- * Indication if the user is admin (1 = true, 0 = false)
307
- * @member {module:model/NumberBoolean} is_admin
295
+ * @member {Array.<module:model/UserAccess>} access
308
296
  */
309
297
 
310
- BaseUserMe.prototype['is_admin'] = undefined;
298
+ BaseUserMe.prototype['access'] = undefined;
311
299
  /**
312
300
  * Boolean that indicates whether the user is activated
313
301
  * @member {Boolean} active_flag
@@ -446,12 +434,6 @@ _BaseUser["default"].prototype['created'] = undefined;
446
434
  */
447
435
 
448
436
  _BaseUser["default"].prototype['modified'] = undefined;
449
- /**
450
- * The variation of signup flow (if exists). E.g. google
451
- * @member {String} signup_flow_variation
452
- */
453
-
454
- _BaseUser["default"].prototype['signup_flow_variation'] = undefined;
455
437
  /**
456
438
  * Boolean that indicates whether the user has created a company
457
439
  * @member {Boolean} has_created_company
@@ -459,11 +441,10 @@ _BaseUser["default"].prototype['signup_flow_variation'] = undefined;
459
441
 
460
442
  _BaseUser["default"].prototype['has_created_company'] = undefined;
461
443
  /**
462
- * Indication if the user is admin (1 = true, 0 = false)
463
- * @member {module:model/NumberBoolean} is_admin
444
+ * @member {Array.<module:model/UserAccess>} access
464
445
  */
465
446
 
466
- _BaseUser["default"].prototype['is_admin'] = undefined;
447
+ _BaseUser["default"].prototype['access'] = undefined;
467
448
  /**
468
449
  * Boolean that indicates whether the user is activated
469
450
  * @member {Boolean} active_flag
@@ -37,11 +37,10 @@ var BasicOrganization = /*#__PURE__*/function () {
37
37
  /**
38
38
  * Constructs a new <code>BasicOrganization</code>.
39
39
  * @alias module:model/BasicOrganization
40
- * @param name {String} The name of the organization
41
40
  */
42
- function BasicOrganization(name) {
41
+ function BasicOrganization() {
43
42
  (0, _classCallCheck2["default"])(this, BasicOrganization);
44
- BasicOrganization.initialize(this, name);
43
+ BasicOrganization.initialize(this);
45
44
  }
46
45
  /**
47
46
  * Initializes the fields of this object.
@@ -52,9 +51,7 @@ var BasicOrganization = /*#__PURE__*/function () {
52
51
 
53
52
  (0, _createClass2["default"])(BasicOrganization, null, [{
54
53
  key: "initialize",
55
- value: function initialize(obj, name) {
56
- obj['name'] = name;
57
- }
54
+ value: function initialize(obj) {}
58
55
  /**
59
56
  * Constructs a <code>BasicOrganization</code> from a plain JavaScript object, optionally creating a new instance.
60
57
  * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
@@ -69,11 +66,6 @@ var BasicOrganization = /*#__PURE__*/function () {
69
66
  if (data) {
70
67
  obj = obj || new BasicOrganization();
71
68
 
72
- if (data.hasOwnProperty('name')) {
73
- obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
74
- delete data['name'];
75
- }
76
-
77
69
  if (data.hasOwnProperty('owner_id')) {
78
70
  obj['owner_id'] = _ApiClient["default"].convertToType(data['owner_id'], 'Number');
79
71
  delete data['owner_id'];
@@ -94,18 +86,12 @@ var BasicOrganization = /*#__PURE__*/function () {
94
86
  }]);
95
87
  return BasicOrganization;
96
88
  }();
97
- /**
98
- * The name of the organization
99
- * @member {String} name
100
- */
101
-
102
-
103
- BasicOrganization.prototype['name'] = undefined;
104
89
  /**
105
90
  * The ID of the user who will be marked as the owner of this organization. When omitted, the authorized user ID will be used.
106
91
  * @member {Number} owner_id
107
92
  */
108
93
 
94
+
109
95
  BasicOrganization.prototype['owner_id'] = undefined;
110
96
  /**
111
97
  * The visibility of the organization. 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>
@@ -15,8 +15,6 @@ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
15
15
 
16
16
  var _DealNonStrict = _interopRequireDefault(require("./DealNonStrict"));
17
17
 
18
- var _GetAddedDealAdditionalData = _interopRequireDefault(require("./GetAddedDealAdditionalData"));
19
-
20
18
  var _GetDealsRelatedObjects = _interopRequireDefault(require("./GetDealsRelatedObjects"));
21
19
 
22
20
  /**
@@ -80,11 +78,6 @@ var GetAddedDeal = /*#__PURE__*/function () {
80
78
  delete data['data'];
81
79
  }
82
80
 
83
- if (data.hasOwnProperty('additional_data')) {
84
- obj['additional_data'] = _GetAddedDealAdditionalData["default"].constructFromObject(data['additional_data']);
85
- delete data['additional_data'];
86
- }
87
-
88
81
  if (data.hasOwnProperty('related_objects')) {
89
82
  obj['related_objects'] = _GetDealsRelatedObjects["default"].constructFromObject(data['related_objects']);
90
83
  delete data['related_objects'];
@@ -113,11 +106,6 @@ GetAddedDeal.prototype['success'] = undefined;
113
106
  */
114
107
 
115
108
  GetAddedDeal.prototype['data'] = undefined;
116
- /**
117
- * @member {module:model/GetAddedDealAdditionalData} additional_data
118
- */
119
-
120
- GetAddedDeal.prototype['additional_data'] = undefined;
121
109
  /**
122
110
  * @member {module:model/GetDealsRelatedObjects} related_objects
123
111
  */
@@ -41,16 +41,16 @@ var NewOrganization = /*#__PURE__*/function () {
41
41
  /**
42
42
  * Constructs a new <code>NewOrganization</code>.
43
43
  * @alias module:model/NewOrganization
44
- * @implements module:model/BasicOrganization
45
44
  * @implements module:model/NewOrganizationAllOf
45
+ * @implements module:model/BasicOrganization
46
46
  * @param name {String} The name of the organization
47
47
  */
48
48
  function NewOrganization(name) {
49
49
  (0, _classCallCheck2["default"])(this, NewOrganization);
50
50
 
51
- _BasicOrganization["default"].initialize(this, name);
51
+ _NewOrganizationAllOf["default"].initialize(this, name);
52
52
 
53
- _NewOrganizationAllOf["default"].initialize(this);
53
+ _BasicOrganization["default"].initialize(this);
54
54
 
55
55
  NewOrganization.initialize(this, name);
56
56
  }
@@ -80,15 +80,20 @@ var NewOrganization = /*#__PURE__*/function () {
80
80
  if (data) {
81
81
  obj = obj || new NewOrganization();
82
82
 
83
- _BasicOrganization["default"].constructFromObject(data, obj);
84
-
85
83
  _NewOrganizationAllOf["default"].constructFromObject(data, obj);
86
84
 
85
+ _BasicOrganization["default"].constructFromObject(data, obj);
86
+
87
87
  if (data.hasOwnProperty('name')) {
88
88
  obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
89
89
  delete data['name'];
90
90
  }
91
91
 
92
+ if (data.hasOwnProperty('add_time')) {
93
+ obj['add_time'] = _ApiClient["default"].convertToType(data['add_time'], 'String');
94
+ delete data['add_time'];
95
+ }
96
+
92
97
  if (data.hasOwnProperty('owner_id')) {
93
98
  obj['owner_id'] = _ApiClient["default"].convertToType(data['owner_id'], 'Number');
94
99
  delete data['owner_id'];
@@ -99,11 +104,6 @@ var NewOrganization = /*#__PURE__*/function () {
99
104
  delete data['visible_to'];
100
105
  }
101
106
 
102
- if (data.hasOwnProperty('add_time')) {
103
- obj['add_time'] = _ApiClient["default"].convertToType(data['add_time'], 'String');
104
- delete data['add_time'];
105
- }
106
-
107
107
  if (Object.keys(data).length > 0) {
108
108
  Object.assign(obj, data);
109
109
  }
@@ -121,6 +121,12 @@ var NewOrganization = /*#__PURE__*/function () {
121
121
 
122
122
 
123
123
  NewOrganization.prototype['name'] = undefined;
124
+ /**
125
+ * The optional creation date & time of the organization in UTC. Requires admin user API token. Format: YYYY-MM-DD HH:MM:SS
126
+ * @member {String} add_time
127
+ */
128
+
129
+ NewOrganization.prototype['add_time'] = undefined;
124
130
  /**
125
131
  * The ID of the user who will be marked as the owner of this organization. When omitted, the authorized user ID will be used.
126
132
  * @member {Number} owner_id
@@ -132,20 +138,21 @@ NewOrganization.prototype['owner_id'] = undefined;
132
138
  * @member {module:model/VisibleTo} visible_to
133
139
  */
134
140
 
135
- NewOrganization.prototype['visible_to'] = undefined;
136
- /**
137
- * The optional creation date & time of the organization in UTC. Requires admin user API token. Format: YYYY-MM-DD HH:MM:SS
138
- * @member {String} add_time
139
- */
140
-
141
- NewOrganization.prototype['add_time'] = undefined; // Implement BasicOrganization interface:
141
+ NewOrganization.prototype['visible_to'] = undefined; // Implement NewOrganizationAllOf interface:
142
142
 
143
143
  /**
144
144
  * The name of the organization
145
145
  * @member {String} name
146
146
  */
147
147
 
148
- _BasicOrganization["default"].prototype['name'] = undefined;
148
+ _NewOrganizationAllOf["default"].prototype['name'] = undefined;
149
+ /**
150
+ * The optional creation date & time of the organization in UTC. Requires admin user API token. Format: YYYY-MM-DD HH:MM:SS
151
+ * @member {String} add_time
152
+ */
153
+
154
+ _NewOrganizationAllOf["default"].prototype['add_time'] = undefined; // Implement BasicOrganization interface:
155
+
149
156
  /**
150
157
  * The ID of the user who will be marked as the owner of this organization. When omitted, the authorized user ID will be used.
151
158
  * @member {Number} owner_id
@@ -157,13 +164,6 @@ _BasicOrganization["default"].prototype['owner_id'] = undefined;
157
164
  * @member {module:model/VisibleTo} visible_to
158
165
  */
159
166
 
160
- _BasicOrganization["default"].prototype['visible_to'] = undefined; // Implement NewOrganizationAllOf interface:
161
-
162
- /**
163
- * The optional creation date & time of the organization in UTC. Requires admin user API token. Format: YYYY-MM-DD HH:MM:SS
164
- * @member {String} add_time
165
- */
166
-
167
- _NewOrganizationAllOf["default"].prototype['add_time'] = undefined;
167
+ _BasicOrganization["default"].prototype['visible_to'] = undefined;
168
168
  var _default = NewOrganization;
169
169
  exports["default"] = _default;
@@ -35,10 +35,11 @@ var NewOrganizationAllOf = /*#__PURE__*/function () {
35
35
  /**
36
36
  * Constructs a new <code>NewOrganizationAllOf</code>.
37
37
  * @alias module:model/NewOrganizationAllOf
38
+ * @param name {String} The name of the organization
38
39
  */
39
- function NewOrganizationAllOf() {
40
+ function NewOrganizationAllOf(name) {
40
41
  (0, _classCallCheck2["default"])(this, NewOrganizationAllOf);
41
- NewOrganizationAllOf.initialize(this);
42
+ NewOrganizationAllOf.initialize(this, name);
42
43
  }
43
44
  /**
44
45
  * Initializes the fields of this object.
@@ -49,7 +50,9 @@ var NewOrganizationAllOf = /*#__PURE__*/function () {
49
50
 
50
51
  (0, _createClass2["default"])(NewOrganizationAllOf, null, [{
51
52
  key: "initialize",
52
- value: function initialize(obj) {}
53
+ value: function initialize(obj, name) {
54
+ obj['name'] = name;
55
+ }
53
56
  /**
54
57
  * Constructs a <code>NewOrganizationAllOf</code> from a plain JavaScript object, optionally creating a new instance.
55
58
  * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
@@ -64,6 +67,11 @@ var NewOrganizationAllOf = /*#__PURE__*/function () {
64
67
  if (data) {
65
68
  obj = obj || new NewOrganizationAllOf();
66
69
 
70
+ if (data.hasOwnProperty('name')) {
71
+ obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
72
+ delete data['name'];
73
+ }
74
+
67
75
  if (data.hasOwnProperty('add_time')) {
68
76
  obj['add_time'] = _ApiClient["default"].convertToType(data['add_time'], 'String');
69
77
  delete data['add_time'];
@@ -79,12 +87,18 @@ var NewOrganizationAllOf = /*#__PURE__*/function () {
79
87
  }]);
80
88
  return NewOrganizationAllOf;
81
89
  }();
90
+ /**
91
+ * The name of the organization
92
+ * @member {String} name
93
+ */
94
+
95
+
96
+ NewOrganizationAllOf.prototype['name'] = undefined;
82
97
  /**
83
98
  * The optional creation date & time of the organization in UTC. Requires admin user API token. Format: YYYY-MM-DD HH:MM:SS
84
99
  * @member {String} add_time
85
100
  */
86
101
 
87
-
88
102
  NewOrganizationAllOf.prototype['add_time'] = undefined;
89
103
  var _default = NewOrganizationAllOf;
90
104
  exports["default"] = _default;
@@ -13,6 +13,8 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
13
13
 
14
14
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
15
15
 
16
+ var _NoteAllOf = _interopRequireDefault(require("./NoteAllOf"));
17
+
16
18
  var _NoteConnectToParams = _interopRequireDefault(require("./NoteConnectToParams"));
17
19
 
18
20
  var _NoteParams = _interopRequireDefault(require("./NoteParams"));
@@ -41,18 +43,20 @@ var Note = /*#__PURE__*/function () {
41
43
  /**
42
44
  * Constructs a new <code>Note</code>.
43
45
  * @alias module:model/Note
46
+ * @implements module:model/NoteAllOf
44
47
  * @implements module:model/NoteConnectToParams
45
48
  * @implements module:model/NoteParams
46
- * @param content {String} The content of the note in HTML format. Subject to sanitization on the back-end.
47
49
  */
48
- function Note(content) {
50
+ function Note() {
49
51
  (0, _classCallCheck2["default"])(this, Note);
50
52
 
53
+ _NoteAllOf["default"].initialize(this);
54
+
51
55
  _NoteConnectToParams["default"].initialize(this);
52
56
 
53
- _NoteParams["default"].initialize(this, content);
57
+ _NoteParams["default"].initialize(this);
54
58
 
55
- Note.initialize(this, content);
59
+ Note.initialize(this);
56
60
  }
57
61
  /**
58
62
  * Initializes the fields of this object.
@@ -63,9 +67,7 @@ var Note = /*#__PURE__*/function () {
63
67
 
64
68
  (0, _createClass2["default"])(Note, null, [{
65
69
  key: "initialize",
66
- value: function initialize(obj, content) {
67
- obj['content'] = content;
68
- }
70
+ value: function initialize(obj) {}
69
71
  /**
70
72
  * Constructs a <code>Note</code> from a plain JavaScript object, optionally creating a new instance.
71
73
  * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
@@ -80,10 +82,17 @@ var Note = /*#__PURE__*/function () {
80
82
  if (data) {
81
83
  obj = obj || new Note();
82
84
 
85
+ _NoteAllOf["default"].constructFromObject(data, obj);
86
+
83
87
  _NoteConnectToParams["default"].constructFromObject(data, obj);
84
88
 
85
89
  _NoteParams["default"].constructFromObject(data, obj);
86
90
 
91
+ if (data.hasOwnProperty('content')) {
92
+ obj['content'] = _ApiClient["default"].convertToType(data['content'], 'String');
93
+ delete data['content'];
94
+ }
95
+
87
96
  if (data.hasOwnProperty('lead_id')) {
88
97
  obj['lead_id'] = _ApiClient["default"].convertToType(data['lead_id'], 'String');
89
98
  delete data['lead_id'];
@@ -104,11 +113,6 @@ var Note = /*#__PURE__*/function () {
104
113
  delete data['org_id'];
105
114
  }
106
115
 
107
- if (data.hasOwnProperty('content')) {
108
- obj['content'] = _ApiClient["default"].convertToType(data['content'], 'String');
109
- delete data['content'];
110
- }
111
-
112
116
  if (data.hasOwnProperty('user_id')) {
113
117
  obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'Number');
114
118
  delete data['user_id'];
@@ -149,12 +153,18 @@ var Note = /*#__PURE__*/function () {
149
153
  }]);
150
154
  return Note;
151
155
  }();
156
+ /**
157
+ * The content of the note in HTML format. Subject to sanitization on the back-end.
158
+ * @member {String} content
159
+ */
160
+
161
+
162
+ Note.prototype['content'] = undefined;
152
163
  /**
153
164
  * The ID of the lead the note will be attached to
154
165
  * @member {String} lead_id
155
166
  */
156
167
 
157
-
158
168
  Note.prototype['lead_id'] = undefined;
159
169
  /**
160
170
  * The ID of the deal the note will be attached to
@@ -174,12 +184,6 @@ Note.prototype['person_id'] = undefined;
174
184
  */
175
185
 
176
186
  Note.prototype['org_id'] = undefined;
177
- /**
178
- * The content of the note in HTML format. Subject to sanitization on the back-end.
179
- * @member {String} content
180
- */
181
-
182
- Note.prototype['content'] = undefined;
183
187
  /**
184
188
  * The ID of the user who will be marked as the author of the note. Only an admin can change the author.
185
189
  * @member {Number} user_id
@@ -215,7 +219,14 @@ Note.prototype['pinned_to_organization_flag'] = undefined;
215
219
  * @member {module:model/NumberBoolean} pinned_to_person_flag
216
220
  */
217
221
 
218
- Note.prototype['pinned_to_person_flag'] = undefined; // Implement NoteConnectToParams interface:
222
+ Note.prototype['pinned_to_person_flag'] = undefined; // Implement NoteAllOf interface:
223
+
224
+ /**
225
+ * The content of the note in HTML format. Subject to sanitization on the back-end.
226
+ * @member {String} content
227
+ */
228
+
229
+ _NoteAllOf["default"].prototype['content'] = undefined; // Implement NoteConnectToParams interface:
219
230
 
220
231
  /**
221
232
  * The ID of the lead the note will be attached to
@@ -242,12 +253,6 @@ _NoteConnectToParams["default"].prototype['person_id'] = undefined;
242
253
 
243
254
  _NoteConnectToParams["default"].prototype['org_id'] = undefined; // Implement NoteParams interface:
244
255
 
245
- /**
246
- * The content of the note in HTML format. Subject to sanitization on the back-end.
247
- * @member {String} content
248
- */
249
-
250
- _NoteParams["default"].prototype['content'] = undefined;
251
256
  /**
252
257
  * The ID of the user who will be marked as the author of the note. Only an admin can change the author.
253
258
  * @member {Number} user_id