pipedrive 16.2.0 → 17.0.0

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -8,6 +8,12 @@ For public Changelog covering all changes done to Pipedrive’s API, webhooks an
8
8
 
9
9
  ## [Unreleased]
10
10
 
11
+ ## 17.0.0
12
+ ### Changed
13
+ - Updated `PUT /organizations/{id}`: parameter `name` is not required
14
+ - Updated `PUT /notes/{id}`: parameter `content` is not required
15
+ - Changed models related to the endpoints to reflect the changes
16
+
11
17
  ## 16.2.0
12
18
  ### Changed
13
19
  - Removed `matches_filters` field from the POST `/deals` and PUT `/deals/{id}` endpoints response
package/README.md CHANGED
@@ -975,6 +975,7 @@ Class | Method | HTTP request | Description
975
975
  - [Pipedrive.NewPersonAllOf](docs/NewPersonAllOf.md)
976
976
  - [Pipedrive.NewProductField](docs/NewProductField.md)
977
977
  - [Pipedrive.Note](docs/Note.md)
978
+ - [Pipedrive.NoteAllOf](docs/NoteAllOf.md)
978
979
  - [Pipedrive.NoteConnectToParams](docs/NoteConnectToParams.md)
979
980
  - [Pipedrive.NoteCreatorUser](docs/NoteCreatorUser.md)
980
981
  - [Pipedrive.NoteField](docs/NoteField.md)
@@ -1182,6 +1183,8 @@ Class | Method | HTTP request | Description
1182
1183
  - [Pipedrive.UpdateFilterRequest](docs/UpdateFilterRequest.md)
1183
1184
  - [Pipedrive.UpdateLeadLabelRequest](docs/UpdateLeadLabelRequest.md)
1184
1185
  - [Pipedrive.UpdateLeadRequest](docs/UpdateLeadRequest.md)
1186
+ - [Pipedrive.UpdateOrganization](docs/UpdateOrganization.md)
1187
+ - [Pipedrive.UpdateOrganizationAllOf](docs/UpdateOrganizationAllOf.md)
1185
1188
  - [Pipedrive.UpdatePerson](docs/UpdatePerson.md)
1186
1189
  - [Pipedrive.UpdatePersonAllOf](docs/UpdatePersonAllOf.md)
1187
1190
  - [Pipedrive.UpdatePersonResponse](docs/UpdatePersonResponse.md)
@@ -19,8 +19,6 @@ var _AddOrganizationFollowerRequest = _interopRequireDefault(require("../model/A
19
19
 
20
20
  var _AllOrganizationsGetResponse = _interopRequireDefault(require("../model/AllOrganizationsGetResponse"));
21
21
 
22
- var _BasicOrganization = _interopRequireDefault(require("../model/BasicOrganization"));
23
-
24
22
  var _ListActivitiesResponse = _interopRequireDefault(require("../model/ListActivitiesResponse"));
25
23
 
26
24
  var _ListDealsResponse = _interopRequireDefault(require("../model/ListDealsResponse"));
@@ -61,6 +59,8 @@ var _OrganizationsDeleteResponse = _interopRequireDefault(require("../model/Orga
61
59
 
62
60
  var _OrganizationsMergeResponse = _interopRequireDefault(require("../model/OrganizationsMergeResponse"));
63
61
 
62
+ var _UpdateOrganization = _interopRequireDefault(require("../model/UpdateOrganization"));
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; }
65
65
 
66
66
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
@@ -1183,7 +1183,7 @@ var OrganizationsApi = /*#__PURE__*/function () {
1183
1183
  * Updates the properties of an organization.
1184
1184
  * @param {Number} id The ID of the organization
1185
1185
  * @param {Object} opts Optional parameters
1186
- * @param {module:model/BasicOrganization} opts.basicOrganization
1186
+ * @param {module:model/UpdateOrganization} opts.updateOrganization
1187
1187
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OrganizationUpdateResponse} and HTTP response
1188
1188
  */
1189
1189
 
@@ -1191,16 +1191,12 @@ var OrganizationsApi = /*#__PURE__*/function () {
1191
1191
  key: "updateOrganizationWithHttpInfo",
1192
1192
  value: function updateOrganizationWithHttpInfo(id, opts) {
1193
1193
  opts = opts || {};
1194
- var postBody = opts['basicOrganization']; // verify the required parameter 'id' is set
1194
+ var postBody = opts['updateOrganization']; // verify the required parameter 'id' is set
1195
1195
 
1196
1196
  if (id === undefined || id === null) {
1197
1197
  throw new Error("Missing the required parameter 'id' when calling updateOrganization");
1198
1198
  }
1199
1199
 
1200
- if (opts['name'] === undefined || opts['name'] === null) {
1201
- throw new Error("Missing the required parameter 'name' when calling updateOrganization");
1202
- }
1203
-
1204
1200
  var pathParams = {
1205
1201
  'id': id
1206
1202
  };
@@ -1232,7 +1228,7 @@ var OrganizationsApi = /*#__PURE__*/function () {
1232
1228
  * Updates the properties of an organization.
1233
1229
  * @param {Number} id The ID of the organization
1234
1230
  * @param {Object} opts Optional parameters
1235
- * @param {module:model/BasicOrganization} opts.basicOrganization
1231
+ * @param {module:model/UpdateOrganization} opts.updateOrganization
1236
1232
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OrganizationUpdateResponse}
1237
1233
  */
1238
1234
 
package/dist/index.js CHANGED
@@ -2897,6 +2897,12 @@ Object.defineProperty(exports, "Note", {
2897
2897
  return _Note["default"];
2898
2898
  }
2899
2899
  });
2900
+ Object.defineProperty(exports, "NoteAllOf", {
2901
+ enumerable: true,
2902
+ get: function get() {
2903
+ return _NoteAllOf["default"];
2904
+ }
2905
+ });
2900
2906
  Object.defineProperty(exports, "NoteConnectToParams", {
2901
2907
  enumerable: true,
2902
2908
  get: function get() {
@@ -4229,6 +4235,18 @@ Object.defineProperty(exports, "UpdateLeadRequest", {
4229
4235
  return _UpdateLeadRequest["default"];
4230
4236
  }
4231
4237
  });
4238
+ Object.defineProperty(exports, "UpdateOrganization", {
4239
+ enumerable: true,
4240
+ get: function get() {
4241
+ return _UpdateOrganization["default"];
4242
+ }
4243
+ });
4244
+ Object.defineProperty(exports, "UpdateOrganizationAllOf", {
4245
+ enumerable: true,
4246
+ get: function get() {
4247
+ return _UpdateOrganizationAllOf["default"];
4248
+ }
4249
+ });
4232
4250
  Object.defineProperty(exports, "UpdatePerson", {
4233
4251
  enumerable: true,
4234
4252
  get: function get() {
@@ -5438,6 +5456,8 @@ var _NewProductField = _interopRequireDefault(require("./model/NewProductField")
5438
5456
 
5439
5457
  var _Note = _interopRequireDefault(require("./model/Note"));
5440
5458
 
5459
+ var _NoteAllOf = _interopRequireDefault(require("./model/NoteAllOf"));
5460
+
5441
5461
  var _NoteConnectToParams = _interopRequireDefault(require("./model/NoteConnectToParams"));
5442
5462
 
5443
5463
  var _NoteCreatorUser = _interopRequireDefault(require("./model/NoteCreatorUser"));
@@ -5852,6 +5872,10 @@ var _UpdateLeadLabelRequest = _interopRequireDefault(require("./model/UpdateLead
5852
5872
 
5853
5873
  var _UpdateLeadRequest = _interopRequireDefault(require("./model/UpdateLeadRequest"));
5854
5874
 
5875
+ var _UpdateOrganization = _interopRequireDefault(require("./model/UpdateOrganization"));
5876
+
5877
+ var _UpdateOrganizationAllOf = _interopRequireDefault(require("./model/UpdateOrganizationAllOf"));
5878
+
5855
5879
  var _UpdatePerson = _interopRequireDefault(require("./model/UpdatePerson"));
5856
5880
 
5857
5881
  var _UpdatePersonAllOf = _interopRequireDefault(require("./model/UpdatePersonAllOf"));
@@ -48,9 +48,9 @@ var AddNoteRequest = /*#__PURE__*/function () {
48
48
  function AddNoteRequest(content) {
49
49
  (0, _classCallCheck2["default"])(this, AddNoteRequest);
50
50
 
51
- _AddNoteRequestAllOf["default"].initialize(this);
51
+ _AddNoteRequestAllOf["default"].initialize(this, content);
52
52
 
53
- _NoteParams["default"].initialize(this, content);
53
+ _NoteParams["default"].initialize(this);
54
54
 
55
55
  AddNoteRequest.initialize(this, content);
56
56
  }
@@ -84,6 +84,11 @@ var AddNoteRequest = /*#__PURE__*/function () {
84
84
 
85
85
  _NoteParams["default"].constructFromObject(data, obj);
86
86
 
87
+ if (data.hasOwnProperty('content')) {
88
+ obj['content'] = _ApiClient["default"].convertToType(data['content'], 'String');
89
+ delete data['content'];
90
+ }
91
+
87
92
  if (data.hasOwnProperty('lead_id')) {
88
93
  obj['lead_id'] = _ApiClient["default"].convertToType(data['lead_id'], 'String');
89
94
  delete data['lead_id'];
@@ -104,11 +109,6 @@ var AddNoteRequest = /*#__PURE__*/function () {
104
109
  delete data['org_id'];
105
110
  }
106
111
 
107
- if (data.hasOwnProperty('content')) {
108
- obj['content'] = _ApiClient["default"].convertToType(data['content'], 'String');
109
- delete data['content'];
110
- }
111
-
112
112
  if (data.hasOwnProperty('user_id')) {
113
113
  obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'Number');
114
114
  delete data['user_id'];
@@ -149,12 +149,18 @@ var AddNoteRequest = /*#__PURE__*/function () {
149
149
  }]);
150
150
  return AddNoteRequest;
151
151
  }();
152
+ /**
153
+ * The content of the note in HTML format. Subject to sanitization on the back-end.
154
+ * @member {String} content
155
+ */
156
+
157
+
158
+ AddNoteRequest.prototype['content'] = undefined;
152
159
  /**
153
160
  * The ID of the lead the note will be attached to. This property is required unless one of (`deal_id/person_id/org_id`) is specified.
154
161
  * @member {String} lead_id
155
162
  */
156
163
 
157
-
158
164
  AddNoteRequest.prototype['lead_id'] = undefined;
159
165
  /**
160
166
  * The ID of the deal the note will be attached to. This property is required unless one of (`lead_id/person_id/org_id`) is specified.
@@ -174,12 +180,6 @@ AddNoteRequest.prototype['person_id'] = undefined;
174
180
  */
175
181
 
176
182
  AddNoteRequest.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
- AddNoteRequest.prototype['content'] = undefined;
183
183
  /**
184
184
  * The ID of the user who will be marked as the author of the note. Only an admin can change the author.
185
185
  * @member {Number} user_id
@@ -217,6 +217,12 @@ AddNoteRequest.prototype['pinned_to_organization_flag'] = undefined;
217
217
 
218
218
  AddNoteRequest.prototype['pinned_to_person_flag'] = undefined; // Implement AddNoteRequestAllOf interface:
219
219
 
220
+ /**
221
+ * The content of the note in HTML format. Subject to sanitization on the back-end.
222
+ * @member {String} content
223
+ */
224
+
225
+ _AddNoteRequestAllOf["default"].prototype['content'] = undefined;
220
226
  /**
221
227
  * The ID of the lead the note will be attached to. This property is required unless one of (`deal_id/person_id/org_id`) is specified.
222
228
  * @member {String} lead_id
@@ -242,12 +248,6 @@ _AddNoteRequestAllOf["default"].prototype['person_id'] = undefined;
242
248
 
243
249
  _AddNoteRequestAllOf["default"].prototype['org_id'] = undefined; // Implement NoteParams interface:
244
250
 
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
251
  /**
252
252
  * The ID of the user who will be marked as the author of the note. Only an admin can change the author.
253
253
  * @member {Number} user_id
@@ -35,10 +35,11 @@ var AddNoteRequestAllOf = /*#__PURE__*/function () {
35
35
  /**
36
36
  * Constructs a new <code>AddNoteRequestAllOf</code>.
37
37
  * @alias module:model/AddNoteRequestAllOf
38
+ * @param content {String} The content of the note in HTML format. Subject to sanitization on the back-end.
38
39
  */
39
- function AddNoteRequestAllOf() {
40
+ function AddNoteRequestAllOf(content) {
40
41
  (0, _classCallCheck2["default"])(this, AddNoteRequestAllOf);
41
- AddNoteRequestAllOf.initialize(this);
42
+ AddNoteRequestAllOf.initialize(this, content);
42
43
  }
43
44
  /**
44
45
  * Initializes the fields of this object.
@@ -49,7 +50,9 @@ var AddNoteRequestAllOf = /*#__PURE__*/function () {
49
50
 
50
51
  (0, _createClass2["default"])(AddNoteRequestAllOf, null, [{
51
52
  key: "initialize",
52
- value: function initialize(obj) {}
53
+ value: function initialize(obj, content) {
54
+ obj['content'] = content;
55
+ }
53
56
  /**
54
57
  * Constructs a <code>AddNoteRequestAllOf</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 AddNoteRequestAllOf = /*#__PURE__*/function () {
64
67
  if (data) {
65
68
  obj = obj || new AddNoteRequestAllOf();
66
69
 
70
+ if (data.hasOwnProperty('content')) {
71
+ obj['content'] = _ApiClient["default"].convertToType(data['content'], 'String');
72
+ delete data['content'];
73
+ }
74
+
67
75
  if (data.hasOwnProperty('lead_id')) {
68
76
  obj['lead_id'] = _ApiClient["default"].convertToType(data['lead_id'], 'String');
69
77
  delete data['lead_id'];
@@ -94,12 +102,18 @@ var AddNoteRequestAllOf = /*#__PURE__*/function () {
94
102
  }]);
95
103
  return AddNoteRequestAllOf;
96
104
  }();
105
+ /**
106
+ * The content of the note in HTML format. Subject to sanitization on the back-end.
107
+ * @member {String} content
108
+ */
109
+
110
+
111
+ AddNoteRequestAllOf.prototype['content'] = undefined;
97
112
  /**
98
113
  * The ID of the lead the note will be attached to. This property is required unless one of (`deal_id/person_id/org_id`) is specified.
99
114
  * @member {String} lead_id
100
115
  */
101
116
 
102
-
103
117
  AddNoteRequestAllOf.prototype['lead_id'] = undefined;
104
118
  /**
105
119
  * The ID of the deal the note will be attached to. This property is required unless one of (`lead_id/person_id/org_id`) is specified.
@@ -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>
@@ -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
@@ -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 NoteAllOf model module.
31
+ * @module model/NoteAllOf
32
+ * @version 1.0.0
33
+ */
34
+ var NoteAllOf = /*#__PURE__*/function () {
35
+ /**
36
+ * Constructs a new <code>NoteAllOf</code>.
37
+ * @alias module:model/NoteAllOf
38
+ */
39
+ function NoteAllOf() {
40
+ (0, _classCallCheck2["default"])(this, NoteAllOf);
41
+ NoteAllOf.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"])(NoteAllOf, null, [{
51
+ key: "initialize",
52
+ value: function initialize(obj) {}
53
+ /**
54
+ * Constructs a <code>NoteAllOf</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/NoteAllOf} obj Optional instance to populate.
58
+ * @return {module:model/NoteAllOf} The populated <code>NoteAllOf</code> instance.
59
+ */
60
+
61
+ }, {
62
+ key: "constructFromObject",
63
+ value: function constructFromObject(data, obj) {
64
+ if (data) {
65
+ obj = obj || new NoteAllOf();
66
+
67
+ if (data.hasOwnProperty('content')) {
68
+ obj['content'] = _ApiClient["default"].convertToType(data['content'], 'String');
69
+ delete data['content'];
70
+ }
71
+
72
+ if (Object.keys(data).length > 0) {
73
+ Object.assign(obj, data);
74
+ }
75
+ }
76
+
77
+ return obj;
78
+ }
79
+ }]);
80
+ return NoteAllOf;
81
+ }();
82
+ /**
83
+ * The content of the note in HTML format. Subject to sanitization on the back-end.
84
+ * @member {String} content
85
+ */
86
+
87
+
88
+ NoteAllOf.prototype['content'] = undefined;
89
+ var _default = NoteAllOf;
90
+ exports["default"] = _default;
@@ -37,11 +37,10 @@ var NoteParams = /*#__PURE__*/function () {
37
37
  /**
38
38
  * Constructs a new <code>NoteParams</code>.
39
39
  * @alias module:model/NoteParams
40
- * @param content {String} The content of the note in HTML format. Subject to sanitization on the back-end.
41
40
  */
42
- function NoteParams(content) {
41
+ function NoteParams() {
43
42
  (0, _classCallCheck2["default"])(this, NoteParams);
44
- NoteParams.initialize(this, content);
43
+ NoteParams.initialize(this);
45
44
  }
46
45
  /**
47
46
  * Initializes the fields of this object.
@@ -52,9 +51,7 @@ var NoteParams = /*#__PURE__*/function () {
52
51
 
53
52
  (0, _createClass2["default"])(NoteParams, null, [{
54
53
  key: "initialize",
55
- value: function initialize(obj, content) {
56
- obj['content'] = content;
57
- }
54
+ value: function initialize(obj) {}
58
55
  /**
59
56
  * Constructs a <code>NoteParams</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 NoteParams = /*#__PURE__*/function () {
69
66
  if (data) {
70
67
  obj = obj || new NoteParams();
71
68
 
72
- if (data.hasOwnProperty('content')) {
73
- obj['content'] = _ApiClient["default"].convertToType(data['content'], 'String');
74
- delete data['content'];
75
- }
76
-
77
69
  if (data.hasOwnProperty('user_id')) {
78
70
  obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'Number');
79
71
  delete data['user_id'];
@@ -114,18 +106,12 @@ var NoteParams = /*#__PURE__*/function () {
114
106
  }]);
115
107
  return NoteParams;
116
108
  }();
117
- /**
118
- * The content of the note in HTML format. Subject to sanitization on the back-end.
119
- * @member {String} content
120
- */
121
-
122
-
123
- NoteParams.prototype['content'] = undefined;
124
109
  /**
125
110
  * The ID of the user who will be marked as the author of the note. Only an admin can change the author.
126
111
  * @member {Number} user_id
127
112
  */
128
113
 
114
+
129
115
  NoteParams.prototype['user_id'] = undefined;
130
116
  /**
131
117
  * The optional creation date & time of the note in UTC. Can be set in the past or in the future. Requires admin user API token. Format: YYYY-MM-DD HH:MM:SS
@@ -0,0 +1,149 @@
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 _BasicOrganization = _interopRequireDefault(require("./BasicOrganization"));
17
+
18
+ var _UpdateOrganizationAllOf = _interopRequireDefault(require("./UpdateOrganizationAllOf"));
19
+
20
+ var _VisibleTo = _interopRequireDefault(require("./VisibleTo"));
21
+
22
+ /**
23
+ * Pipedrive API v1
24
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
25
+ *
26
+ * The version of the OpenAPI document: 1.0.0
27
+ *
28
+ *
29
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
30
+ * https://openapi-generator.tech
31
+ * Do not edit the class manually.
32
+ *
33
+ */
34
+
35
+ /**
36
+ * The UpdateOrganization model module.
37
+ * @module model/UpdateOrganization
38
+ * @version 1.0.0
39
+ */
40
+ var UpdateOrganization = /*#__PURE__*/function () {
41
+ /**
42
+ * Constructs a new <code>UpdateOrganization</code>.
43
+ * @alias module:model/UpdateOrganization
44
+ * @implements module:model/UpdateOrganizationAllOf
45
+ * @implements module:model/BasicOrganization
46
+ */
47
+ function UpdateOrganization() {
48
+ (0, _classCallCheck2["default"])(this, UpdateOrganization);
49
+
50
+ _UpdateOrganizationAllOf["default"].initialize(this);
51
+
52
+ _BasicOrganization["default"].initialize(this);
53
+
54
+ UpdateOrganization.initialize(this);
55
+ }
56
+ /**
57
+ * Initializes the fields of this object.
58
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
59
+ * Only for internal use.
60
+ */
61
+
62
+
63
+ (0, _createClass2["default"])(UpdateOrganization, null, [{
64
+ key: "initialize",
65
+ value: function initialize(obj) {}
66
+ /**
67
+ * Constructs a <code>UpdateOrganization</code> from a plain JavaScript object, optionally creating a new instance.
68
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
69
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
70
+ * @param {module:model/UpdateOrganization} obj Optional instance to populate.
71
+ * @return {module:model/UpdateOrganization} The populated <code>UpdateOrganization</code> instance.
72
+ */
73
+
74
+ }, {
75
+ key: "constructFromObject",
76
+ value: function constructFromObject(data, obj) {
77
+ if (data) {
78
+ obj = obj || new UpdateOrganization();
79
+
80
+ _UpdateOrganizationAllOf["default"].constructFromObject(data, obj);
81
+
82
+ _BasicOrganization["default"].constructFromObject(data, obj);
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('owner_id')) {
90
+ obj['owner_id'] = _ApiClient["default"].convertToType(data['owner_id'], 'Number');
91
+ delete data['owner_id'];
92
+ }
93
+
94
+ if (data.hasOwnProperty('visible_to')) {
95
+ obj['visible_to'] = _ApiClient["default"].convertToType(data['visible_to'], _VisibleTo["default"]);
96
+ delete data['visible_to'];
97
+ }
98
+
99
+ if (Object.keys(data).length > 0) {
100
+ Object.assign(obj, data);
101
+ }
102
+ }
103
+
104
+ return obj;
105
+ }
106
+ }]);
107
+ return UpdateOrganization;
108
+ }();
109
+ /**
110
+ * The name of the organization
111
+ * @member {String} name
112
+ */
113
+
114
+
115
+ UpdateOrganization.prototype['name'] = undefined;
116
+ /**
117
+ * The ID of the user who will be marked as the owner of this organization. When omitted, the authorized user ID will be used.
118
+ * @member {Number} owner_id
119
+ */
120
+
121
+ UpdateOrganization.prototype['owner_id'] = undefined;
122
+ /**
123
+ * 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>
124
+ * @member {module:model/VisibleTo} visible_to
125
+ */
126
+
127
+ UpdateOrganization.prototype['visible_to'] = undefined; // Implement UpdateOrganizationAllOf interface:
128
+
129
+ /**
130
+ * The name of the organization
131
+ * @member {String} name
132
+ */
133
+
134
+ _UpdateOrganizationAllOf["default"].prototype['name'] = undefined; // Implement BasicOrganization interface:
135
+
136
+ /**
137
+ * The ID of the user who will be marked as the owner of this organization. When omitted, the authorized user ID will be used.
138
+ * @member {Number} owner_id
139
+ */
140
+
141
+ _BasicOrganization["default"].prototype['owner_id'] = undefined;
142
+ /**
143
+ * 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>
144
+ * @member {module:model/VisibleTo} visible_to
145
+ */
146
+
147
+ _BasicOrganization["default"].prototype['visible_to'] = undefined;
148
+ var _default = UpdateOrganization;
149
+ 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 UpdateOrganizationAllOf model module.
31
+ * @module model/UpdateOrganizationAllOf
32
+ * @version 1.0.0
33
+ */
34
+ var UpdateOrganizationAllOf = /*#__PURE__*/function () {
35
+ /**
36
+ * Constructs a new <code>UpdateOrganizationAllOf</code>.
37
+ * @alias module:model/UpdateOrganizationAllOf
38
+ */
39
+ function UpdateOrganizationAllOf() {
40
+ (0, _classCallCheck2["default"])(this, UpdateOrganizationAllOf);
41
+ UpdateOrganizationAllOf.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"])(UpdateOrganizationAllOf, null, [{
51
+ key: "initialize",
52
+ value: function initialize(obj) {}
53
+ /**
54
+ * Constructs a <code>UpdateOrganizationAllOf</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/UpdateOrganizationAllOf} obj Optional instance to populate.
58
+ * @return {module:model/UpdateOrganizationAllOf} The populated <code>UpdateOrganizationAllOf</code> instance.
59
+ */
60
+
61
+ }, {
62
+ key: "constructFromObject",
63
+ value: function constructFromObject(data, obj) {
64
+ if (data) {
65
+ obj = obj || new UpdateOrganizationAllOf();
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 UpdateOrganizationAllOf;
81
+ }();
82
+ /**
83
+ * The name of the organization
84
+ * @member {String} name
85
+ */
86
+
87
+
88
+ UpdateOrganizationAllOf.prototype['name'] = undefined;
89
+ var _default = UpdateOrganizationAllOf;
90
+ exports["default"] = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pipedrive",
3
- "version": "16.2.0",
3
+ "version": "17.0.0",
4
4
  "description": "Pipedrive REST client for NodeJS",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",