pipedrive 13.3.3 → 14.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,122 @@
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 _InlineResponse404AdditionalData = _interopRequireDefault(require("./InlineResponse404AdditionalData"));
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 InlineResponse404 model module.
33
+ * @module model/InlineResponse404
34
+ * @version 1.0.0
35
+ */
36
+ var InlineResponse404 = /*#__PURE__*/function () {
37
+ /**
38
+ * Constructs a new <code>InlineResponse404</code>.
39
+ * @alias module:model/InlineResponse404
40
+ */
41
+ function InlineResponse404() {
42
+ (0, _classCallCheck2["default"])(this, InlineResponse404);
43
+ InlineResponse404.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"])(InlineResponse404, null, [{
53
+ key: "initialize",
54
+ value: function initialize(obj) {}
55
+ /**
56
+ * Constructs a <code>InlineResponse404</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/InlineResponse404} obj Optional instance to populate.
60
+ * @return {module:model/InlineResponse404} The populated <code>InlineResponse404</code> instance.
61
+ */
62
+
63
+ }, {
64
+ key: "constructFromObject",
65
+ value: function constructFromObject(data, obj) {
66
+ if (data) {
67
+ obj = obj || new InlineResponse404();
68
+
69
+ if (data.hasOwnProperty('success')) {
70
+ obj['success'] = _ApiClient["default"].convertToType(data['success'], 'Boolean');
71
+ delete data['success'];
72
+ }
73
+
74
+ if (data.hasOwnProperty('error')) {
75
+ obj['error'] = _ApiClient["default"].convertToType(data['error'], 'String');
76
+ delete data['error'];
77
+ }
78
+
79
+ if (data.hasOwnProperty('error_info')) {
80
+ obj['error_info'] = _ApiClient["default"].convertToType(data['error_info'], 'String');
81
+ delete data['error_info'];
82
+ }
83
+
84
+ if (data.hasOwnProperty('additional_data')) {
85
+ obj['additional_data'] = _InlineResponse404AdditionalData["default"].constructFromObject(data['additional_data']);
86
+ delete data['additional_data'];
87
+ }
88
+
89
+ if (Object.keys(data).length > 0) {
90
+ Object.assign(obj, data);
91
+ }
92
+ }
93
+
94
+ return obj;
95
+ }
96
+ }]);
97
+ return InlineResponse404;
98
+ }();
99
+ /**
100
+ * @member {Boolean} success
101
+ */
102
+
103
+
104
+ InlineResponse404.prototype['success'] = undefined;
105
+ /**
106
+ * The error description
107
+ * @member {String} error
108
+ */
109
+
110
+ InlineResponse404.prototype['error'] = undefined;
111
+ /**
112
+ * @member {String} error_info
113
+ */
114
+
115
+ InlineResponse404.prototype['error_info'] = undefined;
116
+ /**
117
+ * @member {module:model/InlineResponse404AdditionalData} additional_data
118
+ */
119
+
120
+ InlineResponse404.prototype['additional_data'] = undefined;
121
+ var _default = InlineResponse404;
122
+ exports["default"] = _default;
@@ -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 InlineResponse404AdditionalData model module.
31
+ * @module model/InlineResponse404AdditionalData
32
+ * @version 1.0.0
33
+ */
34
+ var InlineResponse404AdditionalData = /*#__PURE__*/function () {
35
+ /**
36
+ * Constructs a new <code>InlineResponse404AdditionalData</code>.
37
+ * @alias module:model/InlineResponse404AdditionalData
38
+ */
39
+ function InlineResponse404AdditionalData() {
40
+ (0, _classCallCheck2["default"])(this, InlineResponse404AdditionalData);
41
+ InlineResponse404AdditionalData.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"])(InlineResponse404AdditionalData, null, [{
51
+ key: "initialize",
52
+ value: function initialize(obj) {}
53
+ /**
54
+ * Constructs a <code>InlineResponse404AdditionalData</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/InlineResponse404AdditionalData} obj Optional instance to populate.
58
+ * @return {module:model/InlineResponse404AdditionalData} The populated <code>InlineResponse404AdditionalData</code> instance.
59
+ */
60
+
61
+ }, {
62
+ key: "constructFromObject",
63
+ value: function constructFromObject(data, obj) {
64
+ if (data) {
65
+ obj = obj || new InlineResponse404AdditionalData();
66
+
67
+ if (data.hasOwnProperty('code')) {
68
+ obj['code'] = _ApiClient["default"].convertToType(data['code'], 'String');
69
+ delete data['code'];
70
+ }
71
+
72
+ if (Object.keys(data).length > 0) {
73
+ Object.assign(obj, data);
74
+ }
75
+ }
76
+
77
+ return obj;
78
+ }
79
+ }]);
80
+ return InlineResponse404AdditionalData;
81
+ }();
82
+ /**
83
+ * An error code sent by the API
84
+ * @member {String} code
85
+ */
86
+
87
+
88
+ InlineResponse404AdditionalData.prototype['code'] = undefined;
89
+ var _default = InlineResponse404AdditionalData;
90
+ exports["default"] = _default;
@@ -0,0 +1,237 @@
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 _MessageObjectAttachments = _interopRequireDefault(require("./MessageObjectAttachments"));
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 MessageObject model module.
33
+ * @module model/MessageObject
34
+ * @version 1.0.0
35
+ */
36
+ var MessageObject = /*#__PURE__*/function () {
37
+ /**
38
+ * Constructs a new <code>MessageObject</code>.
39
+ * @alias module:model/MessageObject
40
+ * @param id {String} The ID of the message
41
+ * @param channelId {String} The channel ID as in the provider
42
+ * @param senderId {String} The ID of the provider's user that sent the message
43
+ * @param conversationId {String} The ID of the conversation
44
+ * @param message {String} The body of the message
45
+ * @param status {module:model/MessageObject.StatusEnum} The status of the message
46
+ * @param createdAt {Date} The date and time when the message was created in the provider, in UTC. Format: YYYY-MM-DD HH:MM
47
+ */
48
+ function MessageObject(id, channelId, senderId, conversationId, message, status, createdAt) {
49
+ (0, _classCallCheck2["default"])(this, MessageObject);
50
+ MessageObject.initialize(this, id, channelId, senderId, conversationId, message, status, createdAt);
51
+ }
52
+ /**
53
+ * Initializes the fields of this object.
54
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
55
+ * Only for internal use.
56
+ */
57
+
58
+
59
+ (0, _createClass2["default"])(MessageObject, null, [{
60
+ key: "initialize",
61
+ value: function initialize(obj, id, channelId, senderId, conversationId, message, status, createdAt) {
62
+ obj['id'] = id;
63
+ obj['channel_id'] = channelId;
64
+ obj['sender_id'] = senderId;
65
+ obj['conversation_id'] = conversationId;
66
+ obj['message'] = message;
67
+ obj['status'] = status;
68
+ obj['created_at'] = createdAt;
69
+ }
70
+ /**
71
+ * Constructs a <code>MessageObject</code> from a plain JavaScript object, optionally creating a new instance.
72
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
73
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
74
+ * @param {module:model/MessageObject} obj Optional instance to populate.
75
+ * @return {module:model/MessageObject} The populated <code>MessageObject</code> instance.
76
+ */
77
+
78
+ }, {
79
+ key: "constructFromObject",
80
+ value: function constructFromObject(data, obj) {
81
+ if (data) {
82
+ obj = obj || new MessageObject();
83
+
84
+ if (data.hasOwnProperty('id')) {
85
+ obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
86
+ delete data['id'];
87
+ }
88
+
89
+ if (data.hasOwnProperty('channel_id')) {
90
+ obj['channel_id'] = _ApiClient["default"].convertToType(data['channel_id'], 'String');
91
+ delete data['channel_id'];
92
+ }
93
+
94
+ if (data.hasOwnProperty('sender_id')) {
95
+ obj['sender_id'] = _ApiClient["default"].convertToType(data['sender_id'], 'String');
96
+ delete data['sender_id'];
97
+ }
98
+
99
+ if (data.hasOwnProperty('conversation_id')) {
100
+ obj['conversation_id'] = _ApiClient["default"].convertToType(data['conversation_id'], 'String');
101
+ delete data['conversation_id'];
102
+ }
103
+
104
+ if (data.hasOwnProperty('message')) {
105
+ obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String');
106
+ delete data['message'];
107
+ }
108
+
109
+ if (data.hasOwnProperty('status')) {
110
+ obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
111
+ delete data['status'];
112
+ }
113
+
114
+ if (data.hasOwnProperty('created_at')) {
115
+ obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date');
116
+ delete data['created_at'];
117
+ }
118
+
119
+ if (data.hasOwnProperty('reply_by')) {
120
+ obj['reply_by'] = _ApiClient["default"].convertToType(data['reply_by'], 'Date');
121
+ delete data['reply_by'];
122
+ }
123
+
124
+ if (data.hasOwnProperty('conversation_link')) {
125
+ obj['conversation_link'] = _ApiClient["default"].convertToType(data['conversation_link'], 'String');
126
+ delete data['conversation_link'];
127
+ }
128
+
129
+ if (data.hasOwnProperty('attachments')) {
130
+ obj['attachments'] = _ApiClient["default"].convertToType(data['attachments'], [_MessageObjectAttachments["default"]]);
131
+ delete data['attachments'];
132
+ }
133
+
134
+ if (Object.keys(data).length > 0) {
135
+ Object.assign(obj, data);
136
+ }
137
+ }
138
+
139
+ return obj;
140
+ }
141
+ }]);
142
+ return MessageObject;
143
+ }();
144
+ /**
145
+ * The ID of the message
146
+ * @member {String} id
147
+ */
148
+
149
+
150
+ MessageObject.prototype['id'] = undefined;
151
+ /**
152
+ * The channel ID as in the provider
153
+ * @member {String} channel_id
154
+ */
155
+
156
+ MessageObject.prototype['channel_id'] = undefined;
157
+ /**
158
+ * The ID of the provider's user that sent the message
159
+ * @member {String} sender_id
160
+ */
161
+
162
+ MessageObject.prototype['sender_id'] = undefined;
163
+ /**
164
+ * The ID of the conversation
165
+ * @member {String} conversation_id
166
+ */
167
+
168
+ MessageObject.prototype['conversation_id'] = undefined;
169
+ /**
170
+ * The body of the message
171
+ * @member {String} message
172
+ */
173
+
174
+ MessageObject.prototype['message'] = undefined;
175
+ /**
176
+ * The status of the message
177
+ * @member {module:model/MessageObject.StatusEnum} status
178
+ */
179
+
180
+ MessageObject.prototype['status'] = undefined;
181
+ /**
182
+ * The date and time when the message was created in the provider, in UTC. Format: YYYY-MM-DD HH:MM
183
+ * @member {Date} created_at
184
+ */
185
+
186
+ MessageObject.prototype['created_at'] = undefined;
187
+ /**
188
+ * The date and time when the message can no longer receive a reply, in UTC. Format: YYYY-MM-DD HH:MM
189
+ * @member {Date} reply_by
190
+ */
191
+
192
+ MessageObject.prototype['reply_by'] = undefined;
193
+ /**
194
+ * A URL that can open the conversation in the provider's side
195
+ * @member {String} conversation_link
196
+ */
197
+
198
+ MessageObject.prototype['conversation_link'] = undefined;
199
+ /**
200
+ * The list of attachments available in the message
201
+ * @member {Array.<module:model/MessageObjectAttachments>} attachments
202
+ */
203
+
204
+ MessageObject.prototype['attachments'] = undefined;
205
+ /**
206
+ * Allowed values for the <code>status</code> property.
207
+ * @enum {String}
208
+ * @readonly
209
+ */
210
+
211
+ MessageObject['StatusEnum'] = {
212
+ /**
213
+ * value: "sent"
214
+ * @const
215
+ */
216
+ "sent": "sent",
217
+
218
+ /**
219
+ * value: "delivered"
220
+ * @const
221
+ */
222
+ "delivered": "delivered",
223
+
224
+ /**
225
+ * value: "read"
226
+ * @const
227
+ */
228
+ "read": "read",
229
+
230
+ /**
231
+ * value: "failed"
232
+ * @const
233
+ */
234
+ "failed": "failed"
235
+ };
236
+ var _default = MessageObject;
237
+ exports["default"] = _default;
@@ -0,0 +1,164 @@
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 MessageObjectAttachments model module.
31
+ * @module model/MessageObjectAttachments
32
+ * @version 1.0.0
33
+ */
34
+ var MessageObjectAttachments = /*#__PURE__*/function () {
35
+ /**
36
+ * Constructs a new <code>MessageObjectAttachments</code>.
37
+ * @alias module:model/MessageObjectAttachments
38
+ * @param id {String} The ID of the attachment
39
+ * @param type {String} The mime-type of the attachment
40
+ * @param url {String} A URL to the file
41
+ */
42
+ function MessageObjectAttachments(id, type, url) {
43
+ (0, _classCallCheck2["default"])(this, MessageObjectAttachments);
44
+ MessageObjectAttachments.initialize(this, id, type, url);
45
+ }
46
+ /**
47
+ * Initializes the fields of this object.
48
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
49
+ * Only for internal use.
50
+ */
51
+
52
+
53
+ (0, _createClass2["default"])(MessageObjectAttachments, null, [{
54
+ key: "initialize",
55
+ value: function initialize(obj, id, type, url) {
56
+ obj['id'] = id;
57
+ obj['type'] = type;
58
+ obj['url'] = url;
59
+ }
60
+ /**
61
+ * Constructs a <code>MessageObjectAttachments</code> from a plain JavaScript object, optionally creating a new instance.
62
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
63
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
64
+ * @param {module:model/MessageObjectAttachments} obj Optional instance to populate.
65
+ * @return {module:model/MessageObjectAttachments} The populated <code>MessageObjectAttachments</code> instance.
66
+ */
67
+
68
+ }, {
69
+ key: "constructFromObject",
70
+ value: function constructFromObject(data, obj) {
71
+ if (data) {
72
+ obj = obj || new MessageObjectAttachments();
73
+
74
+ if (data.hasOwnProperty('id')) {
75
+ obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
76
+ delete data['id'];
77
+ }
78
+
79
+ if (data.hasOwnProperty('type')) {
80
+ obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String');
81
+ delete data['type'];
82
+ }
83
+
84
+ if (data.hasOwnProperty('name')) {
85
+ obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
86
+ delete data['name'];
87
+ }
88
+
89
+ if (data.hasOwnProperty('size')) {
90
+ obj['size'] = _ApiClient["default"].convertToType(data['size'], 'Number');
91
+ delete data['size'];
92
+ }
93
+
94
+ if (data.hasOwnProperty('url')) {
95
+ obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String');
96
+ delete data['url'];
97
+ }
98
+
99
+ if (data.hasOwnProperty('preview_url')) {
100
+ obj['preview_url'] = _ApiClient["default"].convertToType(data['preview_url'], 'String');
101
+ delete data['preview_url'];
102
+ }
103
+
104
+ if (data.hasOwnProperty('link_expires')) {
105
+ obj['link_expires'] = _ApiClient["default"].convertToType(data['link_expires'], 'Boolean');
106
+ delete data['link_expires'];
107
+ }
108
+
109
+ if (Object.keys(data).length > 0) {
110
+ Object.assign(obj, data);
111
+ }
112
+ }
113
+
114
+ return obj;
115
+ }
116
+ }]);
117
+ return MessageObjectAttachments;
118
+ }();
119
+ /**
120
+ * The ID of the attachment
121
+ * @member {String} id
122
+ */
123
+
124
+
125
+ MessageObjectAttachments.prototype['id'] = undefined;
126
+ /**
127
+ * The mime-type of the attachment
128
+ * @member {String} type
129
+ */
130
+
131
+ MessageObjectAttachments.prototype['type'] = undefined;
132
+ /**
133
+ * The name of the attachment
134
+ * @member {String} name
135
+ */
136
+
137
+ MessageObjectAttachments.prototype['name'] = undefined;
138
+ /**
139
+ * The size of the attachment
140
+ * @member {Number} size
141
+ */
142
+
143
+ MessageObjectAttachments.prototype['size'] = undefined;
144
+ /**
145
+ * A URL to the file
146
+ * @member {String} url
147
+ */
148
+
149
+ MessageObjectAttachments.prototype['url'] = undefined;
150
+ /**
151
+ * A URL to a preview picture of the file
152
+ * @member {String} preview_url
153
+ */
154
+
155
+ MessageObjectAttachments.prototype['preview_url'] = undefined;
156
+ /**
157
+ * If true, it will use the getMessageById endpoint for fetching updated attachment's urls. Find out more [here](https://pipedrive.readme.io/docs/implementing-messaging-app-extension)
158
+ * @member {Boolean} link_expires
159
+ * @default false
160
+ */
161
+
162
+ MessageObjectAttachments.prototype['link_expires'] = false;
163
+ var _default = MessageObjectAttachments;
164
+ exports["default"] = _default;
@@ -47,16 +47,16 @@ var NewPerson = /*#__PURE__*/function () {
47
47
  /**
48
48
  * Constructs a new <code>NewPerson</code>.
49
49
  * @alias module:model/NewPerson
50
- * @implements module:model/BasicPerson
51
50
  * @implements module:model/NewPersonAllOf
51
+ * @implements module:model/BasicPerson
52
52
  * @param name {String} The name of the person
53
53
  */
54
54
  function NewPerson(name) {
55
55
  (0, _classCallCheck2["default"])(this, NewPerson);
56
56
 
57
- _BasicPerson["default"].initialize(this, name);
57
+ _NewPersonAllOf["default"].initialize(this, name);
58
58
 
59
- _NewPersonAllOf["default"].initialize(this);
59
+ _BasicPerson["default"].initialize(this);
60
60
 
61
61
  NewPerson.initialize(this, name);
62
62
  }
@@ -86,10 +86,10 @@ var NewPerson = /*#__PURE__*/function () {
86
86
  if (data) {
87
87
  obj = obj || new NewPerson();
88
88
 
89
- _BasicPerson["default"].constructFromObject(data, obj);
90
-
91
89
  _NewPersonAllOf["default"].constructFromObject(data, obj);
92
90
 
91
+ _BasicPerson["default"].constructFromObject(data, obj);
92
+
93
93
  if (data.hasOwnProperty('name')) {
94
94
  obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
95
95
  delete data['name'];
@@ -188,14 +188,15 @@ NewPerson.prototype['marketing_status'] = undefined;
188
188
  * @member {String} add_time
189
189
  */
190
190
 
191
- NewPerson.prototype['add_time'] = undefined; // Implement BasicPerson interface:
191
+ NewPerson.prototype['add_time'] = undefined; // Implement NewPersonAllOf interface:
192
192
 
193
193
  /**
194
194
  * The name of the person
195
195
  * @member {String} name
196
196
  */
197
197
 
198
- _BasicPerson["default"].prototype['name'] = undefined;
198
+ _NewPersonAllOf["default"].prototype['name'] = undefined; // Implement BasicPerson interface:
199
+
199
200
  /**
200
201
  * The ID of the user who will be marked as the owner of this person. When omitted, the authorized user ID will be used.
201
202
  * @member {Number} owner_id
@@ -231,13 +232,12 @@ _BasicPerson["default"].prototype['visible_to'] = undefined;
231
232
  * @member {module:model/MarketingStatus} marketing_status
232
233
  */
233
234
 
234
- _BasicPerson["default"].prototype['marketing_status'] = undefined; // Implement NewPersonAllOf interface:
235
-
235
+ _BasicPerson["default"].prototype['marketing_status'] = undefined;
236
236
  /**
237
237
  * The optional creation date & time of the person in UTC. Requires admin user API token. Format: YYYY-MM-DD HH:MM:SS
238
238
  * @member {String} add_time
239
239
  */
240
240
 
241
- _NewPersonAllOf["default"].prototype['add_time'] = undefined;
241
+ _BasicPerson["default"].prototype['add_time'] = undefined;
242
242
  var _default = NewPerson;
243
243
  exports["default"] = _default;