pipedrive 14.0.0 → 14.0.1

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -6,7 +6,9 @@ The file format of it is based on [Keep a Changelog](http://keepachangelog.com/e
6
6
 
7
7
  For public Changelog covering all changes done to Pipedrive’s API, webhooks and app extensions platforms, see [public Changelog](https://pipedrive.readme.io/docs/changelog) with discussion area in [Developers Community](https://devcommunity.pipedrive.com/c/documentation/changelog/19).
8
8
 
9
- ## [Unreleased]
9
+ ## 14.0.1
10
+ ### Fixed
11
+ - Updated `PUT /persons/{id}`: parameter `name` is not required
10
12
 
11
13
  ## 14.0.0
12
14
  ### Changed
@@ -15,7 +17,7 @@ For public Changelog covering all changes done to Pipedrive’s API, webhooks an
15
17
 
16
18
  ## 13.3.4
17
19
  ### Changed
18
- - Updated `PUT /productFields/{id}`: parameter `name` is not
20
+ - Updated `PUT /productFields/{id}`: parameter `name` is not
19
21
 
20
22
  ## 13.3.3
21
23
  ### Changed
package/README.md CHANGED
@@ -1182,6 +1182,8 @@ Class | Method | HTTP request | Description
1182
1182
  - [Pipedrive.UpdateFilterRequest](docs/UpdateFilterRequest.md)
1183
1183
  - [Pipedrive.UpdateLeadLabelRequest](docs/UpdateLeadLabelRequest.md)
1184
1184
  - [Pipedrive.UpdateLeadRequest](docs/UpdateLeadRequest.md)
1185
+ - [Pipedrive.UpdatePerson](docs/UpdatePerson.md)
1186
+ - [Pipedrive.UpdatePersonAllOf](docs/UpdatePersonAllOf.md)
1185
1187
  - [Pipedrive.UpdatePersonResponse](docs/UpdatePersonResponse.md)
1186
1188
  - [Pipedrive.UpdateProductField](docs/UpdateProductField.md)
1187
1189
  - [Pipedrive.UpdateProductRequestBody](docs/UpdateProductRequestBody.md)
@@ -23,8 +23,6 @@ var _AddPersonPictureResponse = _interopRequireDefault(require("../model/AddPers
23
23
 
24
24
  var _AddPersonResponse = _interopRequireDefault(require("../model/AddPersonResponse"));
25
25
 
26
- var _BasicPerson = _interopRequireDefault(require("../model/BasicPerson"));
27
-
28
26
  var _DeletePersonResponse = _interopRequireDefault(require("../model/DeletePersonResponse"));
29
27
 
30
28
  var _DeletePersonsInBulkResponse = _interopRequireDefault(require("../model/DeletePersonsInBulkResponse"));
@@ -59,6 +57,8 @@ var _PersonFlowResponse = _interopRequireDefault(require("../model/PersonFlowRes
59
57
 
60
58
  var _PersonSearchResponse = _interopRequireDefault(require("../model/PersonSearchResponse"));
61
59
 
60
+ var _UpdatePerson = _interopRequireDefault(require("../model/UpdatePerson"));
61
+
62
62
  var _UpdatePersonResponse = _interopRequireDefault(require("../model/UpdatePersonResponse"));
63
63
 
64
64
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
@@ -1323,7 +1323,7 @@ var PersonsApi = /*#__PURE__*/function () {
1323
1323
  * Updates the properties of a person. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/updating-a-person\" target=\"_blank\" rel=\"noopener noreferrer\">updating a person</a>.<br>If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `data.marketing_status` field.
1324
1324
  * @param {Number} id The ID of the person
1325
1325
  * @param {Object} opts Optional parameters
1326
- * @param {module:model/BasicPerson} opts.basicPerson
1326
+ * @param {module:model/UpdatePerson} opts.updatePerson
1327
1327
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdatePersonResponse} and HTTP response
1328
1328
  */
1329
1329
 
@@ -1331,16 +1331,12 @@ var PersonsApi = /*#__PURE__*/function () {
1331
1331
  key: "updatePersonWithHttpInfo",
1332
1332
  value: function updatePersonWithHttpInfo(id, opts) {
1333
1333
  opts = opts || {};
1334
- var postBody = opts['basicPerson']; // verify the required parameter 'id' is set
1334
+ var postBody = opts['updatePerson']; // verify the required parameter 'id' is set
1335
1335
 
1336
1336
  if (id === undefined || id === null) {
1337
1337
  throw new Error("Missing the required parameter 'id' when calling updatePerson");
1338
1338
  }
1339
1339
 
1340
- if (opts['name'] === undefined || opts['name'] === null) {
1341
- throw new Error("Missing the required parameter 'name' when calling updatePerson");
1342
- }
1343
-
1344
1340
  var pathParams = {
1345
1341
  'id': id
1346
1342
  };
@@ -1372,7 +1368,7 @@ var PersonsApi = /*#__PURE__*/function () {
1372
1368
  * Updates the properties of a person. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/updating-a-person\" target=\"_blank\" rel=\"noopener noreferrer\">updating a person</a>.<br>If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `data.marketing_status` field.
1373
1369
  * @param {Number} id The ID of the person
1374
1370
  * @param {Object} opts Optional parameters
1375
- * @param {module:model/BasicPerson} opts.basicPerson
1371
+ * @param {module:model/UpdatePerson} opts.updatePerson
1376
1372
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdatePersonResponse}
1377
1373
  */
1378
1374
 
package/dist/index.js CHANGED
@@ -4229,6 +4229,18 @@ Object.defineProperty(exports, "UpdateLeadRequest", {
4229
4229
  return _UpdateLeadRequest["default"];
4230
4230
  }
4231
4231
  });
4232
+ Object.defineProperty(exports, "UpdatePerson", {
4233
+ enumerable: true,
4234
+ get: function get() {
4235
+ return _UpdatePerson["default"];
4236
+ }
4237
+ });
4238
+ Object.defineProperty(exports, "UpdatePersonAllOf", {
4239
+ enumerable: true,
4240
+ get: function get() {
4241
+ return _UpdatePersonAllOf["default"];
4242
+ }
4243
+ });
4232
4244
  Object.defineProperty(exports, "UpdatePersonResponse", {
4233
4245
  enumerable: true,
4234
4246
  get: function get() {
@@ -5834,6 +5846,10 @@ var _UpdateLeadLabelRequest = _interopRequireDefault(require("./model/UpdateLead
5834
5846
 
5835
5847
  var _UpdateLeadRequest = _interopRequireDefault(require("./model/UpdateLeadRequest"));
5836
5848
 
5849
+ var _UpdatePerson = _interopRequireDefault(require("./model/UpdatePerson"));
5850
+
5851
+ var _UpdatePersonAllOf = _interopRequireDefault(require("./model/UpdatePersonAllOf"));
5852
+
5837
5853
  var _UpdatePersonResponse = _interopRequireDefault(require("./model/UpdatePersonResponse"));
5838
5854
 
5839
5855
  var _UpdateProductField = _interopRequireDefault(require("./model/UpdateProductField"));
@@ -43,11 +43,10 @@ var BasicPerson = /*#__PURE__*/function () {
43
43
  /**
44
44
  * Constructs a new <code>BasicPerson</code>.
45
45
  * @alias module:model/BasicPerson
46
- * @param name {String} The name of the person
47
46
  */
48
- function BasicPerson(name) {
47
+ function BasicPerson() {
49
48
  (0, _classCallCheck2["default"])(this, BasicPerson);
50
- BasicPerson.initialize(this, name);
49
+ BasicPerson.initialize(this);
51
50
  }
52
51
  /**
53
52
  * Initializes the fields of this object.
@@ -58,9 +57,7 @@ var BasicPerson = /*#__PURE__*/function () {
58
57
 
59
58
  (0, _createClass2["default"])(BasicPerson, null, [{
60
59
  key: "initialize",
61
- value: function initialize(obj, name) {
62
- obj['name'] = name;
63
- }
60
+ value: function initialize(obj) {}
64
61
  /**
65
62
  * Constructs a <code>BasicPerson</code> from a plain JavaScript object, optionally creating a new instance.
66
63
  * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
@@ -75,11 +72,6 @@ var BasicPerson = /*#__PURE__*/function () {
75
72
  if (data) {
76
73
  obj = obj || new BasicPerson();
77
74
 
78
- if (data.hasOwnProperty('name')) {
79
- obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
80
- delete data['name'];
81
- }
82
-
83
75
  if (data.hasOwnProperty('owner_id')) {
84
76
  obj['owner_id'] = _ApiClient["default"].convertToType(data['owner_id'], 'Number');
85
77
  delete data['owner_id'];
@@ -110,6 +102,11 @@ var BasicPerson = /*#__PURE__*/function () {
110
102
  delete data['marketing_status'];
111
103
  }
112
104
 
105
+ if (data.hasOwnProperty('add_time')) {
106
+ obj['add_time'] = _ApiClient["default"].convertToType(data['add_time'], 'String');
107
+ delete data['add_time'];
108
+ }
109
+
113
110
  if (Object.keys(data).length > 0) {
114
111
  Object.assign(obj, data);
115
112
  }
@@ -120,18 +117,12 @@ var BasicPerson = /*#__PURE__*/function () {
120
117
  }]);
121
118
  return BasicPerson;
122
119
  }();
123
- /**
124
- * The name of the person
125
- * @member {String} name
126
- */
127
-
128
-
129
- BasicPerson.prototype['name'] = undefined;
130
120
  /**
131
121
  * The ID of the user who will be marked as the owner of this person. When omitted, the authorized user ID will be used.
132
122
  * @member {Number} owner_id
133
123
  */
134
124
 
125
+
135
126
  BasicPerson.prototype['owner_id'] = undefined;
136
127
  /**
137
128
  * The ID of the organization this person will belong to
@@ -163,5 +154,11 @@ BasicPerson.prototype['visible_to'] = undefined;
163
154
  */
164
155
 
165
156
  BasicPerson.prototype['marketing_status'] = undefined;
157
+ /**
158
+ * The optional creation date & time of the person in UTC. Requires admin user API token. Format: YYYY-MM-DD HH:MM:SS
159
+ * @member {String} add_time
160
+ */
161
+
162
+ BasicPerson.prototype['add_time'] = undefined;
166
163
  var _default = BasicPerson;
167
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;
@@ -35,10 +35,11 @@ var NewPersonAllOf = /*#__PURE__*/function () {
35
35
  /**
36
36
  * Constructs a new <code>NewPersonAllOf</code>.
37
37
  * @alias module:model/NewPersonAllOf
38
+ * @param name {String} The name of the person
38
39
  */
39
- function NewPersonAllOf() {
40
+ function NewPersonAllOf(name) {
40
41
  (0, _classCallCheck2["default"])(this, NewPersonAllOf);
41
- NewPersonAllOf.initialize(this);
42
+ NewPersonAllOf.initialize(this, name);
42
43
  }
43
44
  /**
44
45
  * Initializes the fields of this object.
@@ -49,7 +50,9 @@ var NewPersonAllOf = /*#__PURE__*/function () {
49
50
 
50
51
  (0, _createClass2["default"])(NewPersonAllOf, 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>NewPersonAllOf</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,9 +67,9 @@ var NewPersonAllOf = /*#__PURE__*/function () {
64
67
  if (data) {
65
68
  obj = obj || new NewPersonAllOf();
66
69
 
67
- if (data.hasOwnProperty('add_time')) {
68
- obj['add_time'] = _ApiClient["default"].convertToType(data['add_time'], 'String');
69
- delete data['add_time'];
70
+ if (data.hasOwnProperty('name')) {
71
+ obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
72
+ delete data['name'];
70
73
  }
71
74
 
72
75
  if (Object.keys(data).length > 0) {
@@ -80,11 +83,11 @@ var NewPersonAllOf = /*#__PURE__*/function () {
80
83
  return NewPersonAllOf;
81
84
  }();
82
85
  /**
83
- * The optional creation date & time of the person in UTC. Requires admin user API token. Format: YYYY-MM-DD HH:MM:SS
84
- * @member {String} add_time
86
+ * The name of the person
87
+ * @member {String} name
85
88
  */
86
89
 
87
90
 
88
- NewPersonAllOf.prototype['add_time'] = undefined;
91
+ NewPersonAllOf.prototype['name'] = undefined;
89
92
  var _default = NewPersonAllOf;
90
93
  exports["default"] = _default;
@@ -0,0 +1,240 @@
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 _BasePersonItemPhone = _interopRequireDefault(require("./BasePersonItemPhone"));
17
+
18
+ var _BasicPerson = _interopRequireDefault(require("./BasicPerson"));
19
+
20
+ var _BasicPersonEmail = _interopRequireDefault(require("./BasicPersonEmail"));
21
+
22
+ var _MarketingStatus = _interopRequireDefault(require("./MarketingStatus"));
23
+
24
+ var _UpdatePersonAllOf = _interopRequireDefault(require("./UpdatePersonAllOf"));
25
+
26
+ var _VisibleTo = _interopRequireDefault(require("./VisibleTo"));
27
+
28
+ /**
29
+ * Pipedrive API v1
30
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
31
+ *
32
+ * The version of the OpenAPI document: 1.0.0
33
+ *
34
+ *
35
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
36
+ * https://openapi-generator.tech
37
+ * Do not edit the class manually.
38
+ *
39
+ */
40
+
41
+ /**
42
+ * The UpdatePerson model module.
43
+ * @module model/UpdatePerson
44
+ * @version 1.0.0
45
+ */
46
+ var UpdatePerson = /*#__PURE__*/function () {
47
+ /**
48
+ * Constructs a new <code>UpdatePerson</code>.
49
+ * @alias module:model/UpdatePerson
50
+ * @implements module:model/UpdatePersonAllOf
51
+ * @implements module:model/BasicPerson
52
+ */
53
+ function UpdatePerson() {
54
+ (0, _classCallCheck2["default"])(this, UpdatePerson);
55
+
56
+ _UpdatePersonAllOf["default"].initialize(this);
57
+
58
+ _BasicPerson["default"].initialize(this);
59
+
60
+ UpdatePerson.initialize(this);
61
+ }
62
+ /**
63
+ * Initializes the fields of this object.
64
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
65
+ * Only for internal use.
66
+ */
67
+
68
+
69
+ (0, _createClass2["default"])(UpdatePerson, null, [{
70
+ key: "initialize",
71
+ value: function initialize(obj) {}
72
+ /**
73
+ * Constructs a <code>UpdatePerson</code> from a plain JavaScript object, optionally creating a new instance.
74
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
75
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
76
+ * @param {module:model/UpdatePerson} obj Optional instance to populate.
77
+ * @return {module:model/UpdatePerson} The populated <code>UpdatePerson</code> instance.
78
+ */
79
+
80
+ }, {
81
+ key: "constructFromObject",
82
+ value: function constructFromObject(data, obj) {
83
+ if (data) {
84
+ obj = obj || new UpdatePerson();
85
+
86
+ _UpdatePersonAllOf["default"].constructFromObject(data, obj);
87
+
88
+ _BasicPerson["default"].constructFromObject(data, obj);
89
+
90
+ if (data.hasOwnProperty('name')) {
91
+ obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
92
+ delete data['name'];
93
+ }
94
+
95
+ if (data.hasOwnProperty('owner_id')) {
96
+ obj['owner_id'] = _ApiClient["default"].convertToType(data['owner_id'], 'Number');
97
+ delete data['owner_id'];
98
+ }
99
+
100
+ if (data.hasOwnProperty('org_id')) {
101
+ obj['org_id'] = _ApiClient["default"].convertToType(data['org_id'], 'Number');
102
+ delete data['org_id'];
103
+ }
104
+
105
+ if (data.hasOwnProperty('email')) {
106
+ obj['email'] = _ApiClient["default"].convertToType(data['email'], [_BasicPersonEmail["default"]]);
107
+ delete data['email'];
108
+ }
109
+
110
+ if (data.hasOwnProperty('phone')) {
111
+ obj['phone'] = _ApiClient["default"].convertToType(data['phone'], [_BasePersonItemPhone["default"]]);
112
+ delete data['phone'];
113
+ }
114
+
115
+ if (data.hasOwnProperty('visible_to')) {
116
+ obj['visible_to'] = _ApiClient["default"].convertToType(data['visible_to'], _VisibleTo["default"]);
117
+ delete data['visible_to'];
118
+ }
119
+
120
+ if (data.hasOwnProperty('marketing_status')) {
121
+ obj['marketing_status'] = _ApiClient["default"].convertToType(data['marketing_status'], _MarketingStatus["default"]);
122
+ delete data['marketing_status'];
123
+ }
124
+
125
+ if (data.hasOwnProperty('add_time')) {
126
+ obj['add_time'] = _ApiClient["default"].convertToType(data['add_time'], 'String');
127
+ delete data['add_time'];
128
+ }
129
+
130
+ if (Object.keys(data).length > 0) {
131
+ Object.assign(obj, data);
132
+ }
133
+ }
134
+
135
+ return obj;
136
+ }
137
+ }]);
138
+ return UpdatePerson;
139
+ }();
140
+ /**
141
+ * The name of the person
142
+ * @member {String} name
143
+ */
144
+
145
+
146
+ UpdatePerson.prototype['name'] = undefined;
147
+ /**
148
+ * The ID of the user who will be marked as the owner of this person. When omitted, the authorized user ID will be used.
149
+ * @member {Number} owner_id
150
+ */
151
+
152
+ UpdatePerson.prototype['owner_id'] = undefined;
153
+ /**
154
+ * The ID of the organization this person will belong to
155
+ * @member {Number} org_id
156
+ */
157
+
158
+ UpdatePerson.prototype['org_id'] = undefined;
159
+ /**
160
+ * List of email data related to the person
161
+ * @member {Array.<module:model/BasicPersonEmail>} email
162
+ */
163
+
164
+ UpdatePerson.prototype['email'] = undefined;
165
+ /**
166
+ * List of phone data related to the person
167
+ * @member {Array.<module:model/BasePersonItemPhone>} phone
168
+ */
169
+
170
+ UpdatePerson.prototype['phone'] = undefined;
171
+ /**
172
+ * The visibility of the person. 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
+ * @member {module:model/VisibleTo} visible_to
174
+ */
175
+
176
+ UpdatePerson.prototype['visible_to'] = undefined;
177
+ /**
178
+ * If the person does not have a valid email address, then the marketing status is **not set** and `no_consent` is returned for the `marketing_status` value when the new person is created. If the change is forbidden, the status will remain unchanged for every call that tries to modify the marketing status. Please be aware that it is only allowed **once** to change the marketing status from an old status to a new one.<table><tr><th>Value</th><th>Description</th></tr><tr><td>`no_consent`</td><td>The customer has not given consent to receive any marketing communications</td></tr><tr><td>`unsubscribed`</td><td>The customers have unsubscribed from ALL marketing communications</td></tr><tr><td>`subscribed`</td><td>The customers are subscribed and are counted towards marketing caps</td></tr><tr><td>`archived`</td><td>The customers with `subscribed` status can be moved to `archived` to save consent, but they are not paid for</td></tr></table>
179
+ * @member {module:model/MarketingStatus} marketing_status
180
+ */
181
+
182
+ UpdatePerson.prototype['marketing_status'] = undefined;
183
+ /**
184
+ * The optional creation date & time of the person in UTC. Requires admin user API token. Format: YYYY-MM-DD HH:MM:SS
185
+ * @member {String} add_time
186
+ */
187
+
188
+ UpdatePerson.prototype['add_time'] = undefined; // Implement UpdatePersonAllOf interface:
189
+
190
+ /**
191
+ * The name of the person
192
+ * @member {String} name
193
+ */
194
+
195
+ _UpdatePersonAllOf["default"].prototype['name'] = undefined; // Implement BasicPerson interface:
196
+
197
+ /**
198
+ * The ID of the user who will be marked as the owner of this person. When omitted, the authorized user ID will be used.
199
+ * @member {Number} owner_id
200
+ */
201
+
202
+ _BasicPerson["default"].prototype['owner_id'] = undefined;
203
+ /**
204
+ * The ID of the organization this person will belong to
205
+ * @member {Number} org_id
206
+ */
207
+
208
+ _BasicPerson["default"].prototype['org_id'] = undefined;
209
+ /**
210
+ * List of email data related to the person
211
+ * @member {Array.<module:model/BasicPersonEmail>} email
212
+ */
213
+
214
+ _BasicPerson["default"].prototype['email'] = undefined;
215
+ /**
216
+ * List of phone data related to the person
217
+ * @member {Array.<module:model/BasePersonItemPhone>} phone
218
+ */
219
+
220
+ _BasicPerson["default"].prototype['phone'] = undefined;
221
+ /**
222
+ * The visibility of the person. 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>
223
+ * @member {module:model/VisibleTo} visible_to
224
+ */
225
+
226
+ _BasicPerson["default"].prototype['visible_to'] = undefined;
227
+ /**
228
+ * If the person does not have a valid email address, then the marketing status is **not set** and `no_consent` is returned for the `marketing_status` value when the new person is created. If the change is forbidden, the status will remain unchanged for every call that tries to modify the marketing status. Please be aware that it is only allowed **once** to change the marketing status from an old status to a new one.<table><tr><th>Value</th><th>Description</th></tr><tr><td>`no_consent`</td><td>The customer has not given consent to receive any marketing communications</td></tr><tr><td>`unsubscribed`</td><td>The customers have unsubscribed from ALL marketing communications</td></tr><tr><td>`subscribed`</td><td>The customers are subscribed and are counted towards marketing caps</td></tr><tr><td>`archived`</td><td>The customers with `subscribed` status can be moved to `archived` to save consent, but they are not paid for</td></tr></table>
229
+ * @member {module:model/MarketingStatus} marketing_status
230
+ */
231
+
232
+ _BasicPerson["default"].prototype['marketing_status'] = undefined;
233
+ /**
234
+ * The optional creation date & time of the person in UTC. Requires admin user API token. Format: YYYY-MM-DD HH:MM:SS
235
+ * @member {String} add_time
236
+ */
237
+
238
+ _BasicPerson["default"].prototype['add_time'] = undefined;
239
+ var _default = UpdatePerson;
240
+ 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 UpdatePersonAllOf model module.
31
+ * @module model/UpdatePersonAllOf
32
+ * @version 1.0.0
33
+ */
34
+ var UpdatePersonAllOf = /*#__PURE__*/function () {
35
+ /**
36
+ * Constructs a new <code>UpdatePersonAllOf</code>.
37
+ * @alias module:model/UpdatePersonAllOf
38
+ */
39
+ function UpdatePersonAllOf() {
40
+ (0, _classCallCheck2["default"])(this, UpdatePersonAllOf);
41
+ UpdatePersonAllOf.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"])(UpdatePersonAllOf, null, [{
51
+ key: "initialize",
52
+ value: function initialize(obj) {}
53
+ /**
54
+ * Constructs a <code>UpdatePersonAllOf</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/UpdatePersonAllOf} obj Optional instance to populate.
58
+ * @return {module:model/UpdatePersonAllOf} The populated <code>UpdatePersonAllOf</code> instance.
59
+ */
60
+
61
+ }, {
62
+ key: "constructFromObject",
63
+ value: function constructFromObject(data, obj) {
64
+ if (data) {
65
+ obj = obj || new UpdatePersonAllOf();
66
+
67
+ if (data.hasOwnProperty('name')) {
68
+ obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
69
+ delete data['name'];
70
+ }
71
+
72
+ if (Object.keys(data).length > 0) {
73
+ Object.assign(obj, data);
74
+ }
75
+ }
76
+
77
+ return obj;
78
+ }
79
+ }]);
80
+ return UpdatePersonAllOf;
81
+ }();
82
+ /**
83
+ * The name of the person
84
+ * @member {String} name
85
+ */
86
+
87
+
88
+ UpdatePersonAllOf.prototype['name'] = undefined;
89
+ var _default = UpdatePersonAllOf;
90
+ exports["default"] = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pipedrive",
3
- "version": "14.0.0",
3
+ "version": "14.0.1",
4
4
  "description": "Pipedrive REST client for NodeJS",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",