pipedrive 16.0.4 → 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,27 @@ 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
+
17
+ ## 16.2.0
18
+ ### Changed
19
+ - Removed `matches_filters` field from the POST `/deals` and PUT `/deals/{id}` endpoints response
20
+ - Description for `GET/v1/filters/helpers` endpoint
21
+ - Changed `POST /v1/users` request body type from `application/x-www-form-urlencoded` to `application/json`
22
+ - Added `access` field to responses from `GET /v1/users`, `GET /v1/users/{id}`, etc.
23
+ - Added optional `access` parameter and made `name` optional in `POST /v1/users`
24
+ - Added `app`, `type` and `description` fields to responses from `GET /v1/permissionSets` and `GET v1/permissionSets/{id}`
25
+ - Added optional `app` parameter to `GET /v1/permissionSets`
26
+ - Deprecated `is_admin` and `signup_flow_variation` fields in responses from `GET /v1/users`, `GET /v1/users/{id}`, etc.
27
+
28
+ ## 16.1.0
29
+ ### Added
30
+ - Added `person_id` and `organization_id` query parameters to GET `/v1/leads`
31
+
11
32
  ## 16.0.4
12
33
  ### Changed
13
34
  - Description for api/v1/channels endpoints
package/README.md CHANGED
@@ -564,6 +564,7 @@ Class | Method | HTTP request | Description
564
564
  - [Pipedrive.AddProductFollowerRequest](docs/AddProductFollowerRequest.md)
565
565
  - [Pipedrive.AddProductRequestBody](docs/AddProductRequestBody.md)
566
566
  - [Pipedrive.AddTeamUserRequest](docs/AddTeamUserRequest.md)
567
+ - [Pipedrive.AddUserRequest](docs/AddUserRequest.md)
567
568
  - [Pipedrive.AddWebhookRequest](docs/AddWebhookRequest.md)
568
569
  - [Pipedrive.AddedDealFollower](docs/AddedDealFollower.md)
569
570
  - [Pipedrive.AddedDealFollowerData](docs/AddedDealFollowerData.md)
@@ -794,7 +795,6 @@ Class | Method | HTTP request | Description
794
795
  - [Pipedrive.GetAddProductAttachementDetails](docs/GetAddProductAttachementDetails.md)
795
796
  - [Pipedrive.GetAddUpdateStage](docs/GetAddUpdateStage.md)
796
797
  - [Pipedrive.GetAddedDeal](docs/GetAddedDeal.md)
797
- - [Pipedrive.GetAddedDealAdditionalData](docs/GetAddedDealAdditionalData.md)
798
798
  - [Pipedrive.GetAllFiles](docs/GetAllFiles.md)
799
799
  - [Pipedrive.GetAllPersonsResponse](docs/GetAllPersonsResponse.md)
800
800
  - [Pipedrive.GetAllPersonsResponseAllOf](docs/GetAllPersonsResponseAllOf.md)
@@ -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)
@@ -1194,6 +1197,7 @@ Class | Method | HTTP request | Description
1194
1197
  - [Pipedrive.UpdateTeamAllOf](docs/UpdateTeamAllOf.md)
1195
1198
  - [Pipedrive.UpdateTeamWithAdditionalProperties](docs/UpdateTeamWithAdditionalProperties.md)
1196
1199
  - [Pipedrive.User](docs/User.md)
1200
+ - [Pipedrive.UserAccess](docs/UserAccess.md)
1197
1201
  - [Pipedrive.UserAllOf](docs/UserAllOf.md)
1198
1202
  - [Pipedrive.UserAssignmentToPermissionSet](docs/UserAssignmentToPermissionSet.md)
1199
1203
  - [Pipedrive.UserAssignmentsToPermissionSet](docs/UserAssignmentsToPermissionSet.md)
@@ -291,7 +291,7 @@ var FiltersApi = /*#__PURE__*/function () {
291
291
  }
292
292
  /**
293
293
  * Get all filter helpers
294
- * Returns all supported filter helpers. It helps to know what conditions and helpers are available when you want to <a href=\"/docs/api/v1/Filters#addFilter\">add</a> or <a href=\"/docs/api/v1/Filters#updateFilter\">update</a> filters. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/adding-a-filter\" target=\"_blank\" rel=\"noopener noreferrer\">adding a filter</a>.
294
+ * Returns all supported filter helpers. It helps to know what conditions and helpers are available when you want to <a href=\"/docs/api/v1/Filters#addFilter\">add</a> or <a href=\"/docs/api/v1/Filters#updateFilter\">update</a> filters. Additionally, an exact date must be inserted in YYYY-MM-DD format and an exact time in HH:MM. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/adding-a-filter\" target=\"_blank\" rel=\"noopener noreferrer\">adding a filter</a>.
295
295
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
296
296
  */
297
297
 
@@ -326,7 +326,7 @@ var FiltersApi = /*#__PURE__*/function () {
326
326
  }
327
327
  /**
328
328
  * Get all filter helpers
329
- * Returns all supported filter helpers. It helps to know what conditions and helpers are available when you want to <a href=\"/docs/api/v1/Filters#addFilter\">add</a> or <a href=\"/docs/api/v1/Filters#updateFilter\">update</a> filters. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/adding-a-filter\" target=\"_blank\" rel=\"noopener noreferrer\">adding a filter</a>.
329
+ * Returns all supported filter helpers. It helps to know what conditions and helpers are available when you want to <a href=\"/docs/api/v1/Filters#addFilter\">add</a> or <a href=\"/docs/api/v1/Filters#updateFilter\">update</a> filters. Additionally, an exact date must be inserted in YYYY-MM-DD format and an exact time in HH:MM. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/adding-a-filter\" target=\"_blank\" rel=\"noopener noreferrer\">adding a filter</a>.
330
330
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
331
331
  */
332
332
 
@@ -230,6 +230,8 @@ var LeadsApi = /*#__PURE__*/function () {
230
230
  * @param {Number} opts.start For pagination, the position that represents the first result for the page
231
231
  * @param {module:model/String} opts.archivedStatus Filtering based on the archived status of a lead. If not provided, `All` is used.
232
232
  * @param {Number} opts.ownerId If supplied, only leads matching the given user will be returned. However, `filter_id` takes precedence over `owner_id` when supplied.
233
+ * @param {Number} opts.personId If supplied, only leads matching the given person will be returned. However, `filter_id` takes precedence over `person_id` when supplied.
234
+ * @param {Number} opts.organizationId If supplied, only leads matching the given organization will be returned. However, `filter_id` takes precedence over `organization_id` when supplied.
233
235
  * @param {Number} opts.filterId The ID of the filter to use
234
236
  * @param {module:model/String} opts.sort The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys).
235
237
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetLeadsResponse200} and HTTP response
@@ -246,6 +248,8 @@ var LeadsApi = /*#__PURE__*/function () {
246
248
  'start': opts['start'],
247
249
  'archived_status': opts['archivedStatus'],
248
250
  'owner_id': opts['ownerId'],
251
+ 'person_id': opts['personId'],
252
+ 'organization_id': opts['organizationId'],
249
253
  'filter_id': opts['filterId'],
250
254
  'sort': opts['sort']
251
255
  };
@@ -279,6 +283,8 @@ var LeadsApi = /*#__PURE__*/function () {
279
283
  * @param {Number} opts.start For pagination, the position that represents the first result for the page
280
284
  * @param {module:model/String} opts.archivedStatus Filtering based on the archived status of a lead. If not provided, `All` is used.
281
285
  * @param {Number} opts.ownerId If supplied, only leads matching the given user will be returned. However, `filter_id` takes precedence over `owner_id` when supplied.
286
+ * @param {Number} opts.personId If supplied, only leads matching the given person will be returned. However, `filter_id` takes precedence over `person_id` when supplied.
287
+ * @param {Number} opts.organizationId If supplied, only leads matching the given organization will be returned. However, `filter_id` takes precedence over `organization_id` when supplied.
282
288
  * @param {Number} opts.filterId The ID of the filter to use
283
289
  * @param {module:model/String} opts.sort The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys).
284
290
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetLeadsResponse200}
@@ -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
 
@@ -44,6 +44,7 @@ var PermissionSetsApi = /*#__PURE__*/function () {
44
44
  }
45
45
  /**
46
46
  * Get one permission set
47
+ * Returns data about a specific permission set.
47
48
  * @param {String} id The ID of the permission set
48
49
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SinglePermissionSetsItem} and HTTP response
49
50
  */
@@ -87,6 +88,7 @@ var PermissionSetsApi = /*#__PURE__*/function () {
87
88
  }
88
89
  /**
89
90
  * Get one permission set
91
+ * Returns data about a specific permission set.
90
92
  * @param {String} id The ID of the permission set
91
93
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SinglePermissionSetsItem}
92
94
  */
@@ -100,7 +102,7 @@ var PermissionSetsApi = /*#__PURE__*/function () {
100
102
  }
101
103
  /**
102
104
  * List permission set assignments
103
- * The list of assignments for a permission set.
105
+ * Returns the list of assignments for a permission set.
104
106
  * @param {String} id The ID of the permission set
105
107
  * @param {Object} opts Optional parameters
106
108
  * @param {Number} opts.start Pagination start (default to 0)
@@ -149,7 +151,7 @@ var PermissionSetsApi = /*#__PURE__*/function () {
149
151
  }
150
152
  /**
151
153
  * List permission set assignments
152
- * The list of assignments for a permission set.
154
+ * Returns the list of assignments for a permission set.
153
155
  * @param {String} id The ID of the permission set
154
156
  * @param {Object} opts Optional parameters
155
157
  * @param {Number} opts.start Pagination start (default to 0)
@@ -166,16 +168,21 @@ var PermissionSetsApi = /*#__PURE__*/function () {
166
168
  }
167
169
  /**
168
170
  * Get all permission sets
171
+ * Returns data about all permission sets.
172
+ * @param {Object} opts Optional parameters
173
+ * @param {module:model/String} opts.app The app to filter the permission sets by
169
174
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PermissionSets} and HTTP response
170
175
  */
171
176
 
172
177
  }, {
173
178
  key: "getPermissionSetsWithHttpInfo",
174
- value: function getPermissionSetsWithHttpInfo() {
175
- var opts = {};
179
+ value: function getPermissionSetsWithHttpInfo(opts) {
180
+ opts = opts || {};
176
181
  var postBody = null;
177
182
  var pathParams = {};
178
- var queryParams = {};
183
+ var queryParams = {
184
+ 'app': opts['app']
185
+ };
179
186
  var headerParams = {};
180
187
  var formParams = {};
181
188
  var formParamArray = [];
@@ -200,13 +207,16 @@ var PermissionSetsApi = /*#__PURE__*/function () {
200
207
  }
201
208
  /**
202
209
  * Get all permission sets
210
+ * Returns data about all permission sets.
211
+ * @param {Object} opts Optional parameters
212
+ * @param {module:model/String} opts.app The app to filter the permission sets by
203
213
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PermissionSets}
204
214
  */
205
215
 
206
216
  }, {
207
217
  key: "getPermissionSets",
208
- value: function getPermissionSets() {
209
- return this.getPermissionSetsWithHttpInfo().then(function (response_and_data) {
218
+ value: function getPermissionSets(opts) {
219
+ return this.getPermissionSetsWithHttpInfo(opts).then(function (response_and_data) {
210
220
  return response_and_data;
211
221
  });
212
222
  }
@@ -15,6 +15,8 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
15
15
 
16
16
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
17
17
 
18
+ var _AddUserRequest = _interopRequireDefault(require("../model/AddUserRequest"));
19
+
18
20
  var _DeleteRoleAssignment = _interopRequireDefault(require("../model/DeleteRoleAssignment"));
19
21
 
20
22
  var _FailResponse = _interopRequireDefault(require("../model/FailResponse"));
@@ -63,43 +65,28 @@ var UsersApi = /*#__PURE__*/function () {
63
65
  /**
64
66
  * Add a new user
65
67
  * Adds a new user to the company, returns the ID upon success.
66
- * @param {String} name The name of the user
67
- * @param {String} email The email of the user
68
- * @param {Boolean} activeFlag Whether the user is active or not. `false` = Not activated, `true` = Activated
68
+ * @param {Object} opts Optional parameters
69
+ * @param {module:model/AddUserRequest} opts.addUserRequest
69
70
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/User} and HTTP response
70
71
  */
71
72
 
72
73
 
73
74
  (0, _createClass2["default"])(UsersApi, [{
74
75
  key: "addUserWithHttpInfo",
75
- value: function addUserWithHttpInfo(name, email, activeFlag) {
76
- var opts = {};
77
- var postBody = null; // verify the required parameter 'name' is set
78
-
79
- if (name === undefined || name === null) {
80
- throw new Error("Missing the required parameter 'name' when calling addUser");
81
- } // verify the required parameter 'email' is set
82
-
76
+ value: function addUserWithHttpInfo(opts) {
77
+ opts = opts || {};
78
+ var postBody = opts['addUserRequest'];
83
79
 
84
- if (email === undefined || email === null) {
80
+ if (opts['email'] === undefined || opts['email'] === null) {
85
81
  throw new Error("Missing the required parameter 'email' when calling addUser");
86
- } // verify the required parameter 'activeFlag' is set
87
-
88
-
89
- if (activeFlag === undefined || activeFlag === null) {
90
- throw new Error("Missing the required parameter 'activeFlag' when calling addUser");
91
82
  }
92
83
 
93
84
  var pathParams = {};
94
85
  var queryParams = {};
95
86
  var headerParams = {};
96
- var formParams = {
97
- 'name': name,
98
- 'email': email,
99
- 'active_flag': activeFlag
100
- };
101
- var formParamArray = ['name', 'email', 'activeFlag'];
102
- var contentTypes = ['application/x-www-form-urlencoded'];
87
+ var formParams = {};
88
+ var formParamArray = [];
89
+ var contentTypes = ['application/json'];
103
90
  var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
104
91
  var isJSON = contentTypes.includes('application/json');
105
92
 
@@ -121,16 +108,15 @@ var UsersApi = /*#__PURE__*/function () {
121
108
  /**
122
109
  * Add a new user
123
110
  * Adds a new user to the company, returns the ID upon success.
124
- * @param {String} name The name of the user
125
- * @param {String} email The email of the user
126
- * @param {Boolean} activeFlag Whether the user is active or not. `false` = Not activated, `true` = Activated
111
+ * @param {Object} opts Optional parameters
112
+ * @param {module:model/AddUserRequest} opts.addUserRequest
127
113
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/User}
128
114
  */
129
115
 
130
116
  }, {
131
117
  key: "addUser",
132
- value: function addUser(name, email, activeFlag) {
133
- return this.addUserWithHttpInfo(name, email, activeFlag).then(function (response_and_data) {
118
+ value: function addUser(opts) {
119
+ return this.addUserWithHttpInfo(opts).then(function (response_and_data) {
134
120
  return response_and_data;
135
121
  });
136
122
  }
package/dist/index.js CHANGED
@@ -329,6 +329,12 @@ Object.defineProperty(exports, "AddTeamUserRequest", {
329
329
  return _AddTeamUserRequest["default"];
330
330
  }
331
331
  });
332
+ Object.defineProperty(exports, "AddUserRequest", {
333
+ enumerable: true,
334
+ get: function get() {
335
+ return _AddUserRequest["default"];
336
+ }
337
+ });
332
338
  Object.defineProperty(exports, "AddWebhookRequest", {
333
339
  enumerable: true,
334
340
  get: function get() {
@@ -1763,12 +1769,6 @@ Object.defineProperty(exports, "GetAddedDeal", {
1763
1769
  return _GetAddedDeal["default"];
1764
1770
  }
1765
1771
  });
1766
- Object.defineProperty(exports, "GetAddedDealAdditionalData", {
1767
- enumerable: true,
1768
- get: function get() {
1769
- return _GetAddedDealAdditionalData["default"];
1770
- }
1771
- });
1772
1772
  Object.defineProperty(exports, "GetAllFiles", {
1773
1773
  enumerable: true,
1774
1774
  get: function get() {
@@ -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() {
@@ -4301,6 +4319,12 @@ Object.defineProperty(exports, "User", {
4301
4319
  return _User["default"];
4302
4320
  }
4303
4321
  });
4322
+ Object.defineProperty(exports, "UserAccess", {
4323
+ enumerable: true,
4324
+ get: function get() {
4325
+ return _UserAccess["default"];
4326
+ }
4327
+ });
4304
4328
  Object.defineProperty(exports, "UserAllOf", {
4305
4329
  enumerable: true,
4306
4330
  get: function get() {
@@ -4610,6 +4634,8 @@ var _AddProductRequestBody = _interopRequireDefault(require("./model/AddProductR
4610
4634
 
4611
4635
  var _AddTeamUserRequest = _interopRequireDefault(require("./model/AddTeamUserRequest"));
4612
4636
 
4637
+ var _AddUserRequest = _interopRequireDefault(require("./model/AddUserRequest"));
4638
+
4613
4639
  var _AddWebhookRequest = _interopRequireDefault(require("./model/AddWebhookRequest"));
4614
4640
 
4615
4641
  var _AddedDealFollower = _interopRequireDefault(require("./model/AddedDealFollower"));
@@ -5070,8 +5096,6 @@ var _GetAddUpdateStage = _interopRequireDefault(require("./model/GetAddUpdateSta
5070
5096
 
5071
5097
  var _GetAddedDeal = _interopRequireDefault(require("./model/GetAddedDeal"));
5072
5098
 
5073
- var _GetAddedDealAdditionalData = _interopRequireDefault(require("./model/GetAddedDealAdditionalData"));
5074
-
5075
5099
  var _GetAllFiles = _interopRequireDefault(require("./model/GetAllFiles"));
5076
5100
 
5077
5101
  var _GetAllPersonsResponse = _interopRequireDefault(require("./model/GetAllPersonsResponse"));
@@ -5432,6 +5456,8 @@ var _NewProductField = _interopRequireDefault(require("./model/NewProductField")
5432
5456
 
5433
5457
  var _Note = _interopRequireDefault(require("./model/Note"));
5434
5458
 
5459
+ var _NoteAllOf = _interopRequireDefault(require("./model/NoteAllOf"));
5460
+
5435
5461
  var _NoteConnectToParams = _interopRequireDefault(require("./model/NoteConnectToParams"));
5436
5462
 
5437
5463
  var _NoteCreatorUser = _interopRequireDefault(require("./model/NoteCreatorUser"));
@@ -5846,6 +5872,10 @@ var _UpdateLeadLabelRequest = _interopRequireDefault(require("./model/UpdateLead
5846
5872
 
5847
5873
  var _UpdateLeadRequest = _interopRequireDefault(require("./model/UpdateLeadRequest"));
5848
5874
 
5875
+ var _UpdateOrganization = _interopRequireDefault(require("./model/UpdateOrganization"));
5876
+
5877
+ var _UpdateOrganizationAllOf = _interopRequireDefault(require("./model/UpdateOrganizationAllOf"));
5878
+
5849
5879
  var _UpdatePerson = _interopRequireDefault(require("./model/UpdatePerson"));
5850
5880
 
5851
5881
  var _UpdatePersonAllOf = _interopRequireDefault(require("./model/UpdatePersonAllOf"));
@@ -5870,6 +5900,8 @@ var _UpdateTeamWithAdditionalProperties = _interopRequireDefault(require("./mode
5870
5900
 
5871
5901
  var _User = _interopRequireDefault(require("./model/User"));
5872
5902
 
5903
+ var _UserAccess = _interopRequireDefault(require("./model/UserAccess"));
5904
+
5873
5905
  var _UserAllOf = _interopRequireDefault(require("./model/UserAllOf"));
5874
5906
 
5875
5907
  var _UserAssignmentToPermissionSet = _interopRequireDefault(require("./model/UserAssignmentToPermissionSet"));
@@ -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.