pipedrive 16.2.0 → 17.1.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +16 -0
- package/README.md +3 -9
- package/dist/api/OrganizationsApi.js +5 -9
- package/dist/index.js +24 -64
- package/dist/model/AddNoteRequest.js +20 -20
- package/dist/model/AddNoteRequestAllOf.js +18 -4
- package/dist/model/AddProductRequestBody.js +2 -2
- package/dist/model/BasicOrganization.js +4 -18
- package/dist/model/NewOrganization.js +26 -26
- package/dist/model/NewOrganizationAllOf.js +18 -4
- package/dist/model/Note.js +31 -26
- package/dist/model/NoteAllOf.js +90 -0
- package/dist/model/NoteParams.js +4 -18
- package/dist/model/ProductRequest.js +1 -1
- package/dist/model/RecentDataProduct.js +1 -1
- package/dist/model/UpdateOrganization.js +149 -0
- package/dist/model/UpdateOrganizationAllOf.js +90 -0
- package/dist/model/UpdateProductRequestBody.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -8,6 +8,22 @@ For public Changelog covering all changes done to Pipedrive’s API, webhooks an
|
|
8
8
|
|
9
9
|
## [Unreleased]
|
10
10
|
|
11
|
+
## 17.1.1
|
12
|
+
### Changed
|
13
|
+
- Description for product requests
|
14
|
+
|
15
|
+
## 17.1.0
|
16
|
+
### Removed
|
17
|
+
- Removed deprecated endpoints that were deleted:
|
18
|
+
- `GET /globalMessages`
|
19
|
+
- `DELETE /globalMessages/{id}`
|
20
|
+
|
21
|
+
## 17.0.0
|
22
|
+
### Changed
|
23
|
+
- Updated `PUT /organizations/{id}`: parameter `name` is not required
|
24
|
+
- Updated `PUT /notes/{id}`: parameter `content` is not required
|
25
|
+
- Changed models related to the endpoints to reflect the changes
|
26
|
+
|
11
27
|
## 16.2.0
|
12
28
|
### Changed
|
13
29
|
- Removed `matches_filters` field from the POST `/deals` and PUT `/deals/{id}` endpoints response
|
package/README.md
CHANGED
@@ -335,8 +335,6 @@ Class | Method | HTTP request | Description
|
|
335
335
|
*Pipedrive.FiltersApi* | [**getFilterHelpers**](docs/FiltersApi.md#getFilterHelpers) | **GET** /filters/helpers | Get all filter helpers
|
336
336
|
*Pipedrive.FiltersApi* | [**getFilters**](docs/FiltersApi.md#getFilters) | **GET** /filters | Get all filters
|
337
337
|
*Pipedrive.FiltersApi* | [**updateFilter**](docs/FiltersApi.md#updateFilter) | **PUT** /filters/{id} | Update filter
|
338
|
-
*Pipedrive.GlobalMessagesApi* | [**deleteGlobalMessage**](docs/GlobalMessagesApi.md#deleteGlobalMessage) | **DELETE** /globalMessages/{id} | Dismiss a global message
|
339
|
-
*Pipedrive.GlobalMessagesApi* | [**getGlobalMessages**](docs/GlobalMessagesApi.md#getGlobalMessages) | **GET** /globalMessages | Get global messages
|
340
338
|
*Pipedrive.GoalsApi* | [**addGoal**](docs/GoalsApi.md#addGoal) | **POST** /goals | Add a new goal
|
341
339
|
*Pipedrive.GoalsApi* | [**deleteGoal**](docs/GoalsApi.md#deleteGoal) | **DELETE** /goals/{id} | Delete existing goal
|
342
340
|
*Pipedrive.GoalsApi* | [**getGoalResult**](docs/GoalsApi.md#getGoalResult) | **GET** /goals/{id}/results | Get result of a goal
|
@@ -855,13 +853,6 @@ Class | Method | HTTP request | Description
|
|
855
853
|
- [Pipedrive.GetRolesAllOf](docs/GetRolesAllOf.md)
|
856
854
|
- [Pipedrive.GetStageDeals](docs/GetStageDeals.md)
|
857
855
|
- [Pipedrive.GetStages](docs/GetStages.md)
|
858
|
-
- [Pipedrive.GlobalMessageBaseResponse](docs/GlobalMessageBaseResponse.md)
|
859
|
-
- [Pipedrive.GlobalMessageData](docs/GlobalMessageData.md)
|
860
|
-
- [Pipedrive.GlobalMessageDelete](docs/GlobalMessageDelete.md)
|
861
|
-
- [Pipedrive.GlobalMessageDeleteAllOf](docs/GlobalMessageDeleteAllOf.md)
|
862
|
-
- [Pipedrive.GlobalMessageGet](docs/GlobalMessageGet.md)
|
863
|
-
- [Pipedrive.GlobalMessageGetAllOf](docs/GlobalMessageGetAllOf.md)
|
864
|
-
- [Pipedrive.GlobalMessageUserData](docs/GlobalMessageUserData.md)
|
865
856
|
- [Pipedrive.GoalResults](docs/GoalResults.md)
|
866
857
|
- [Pipedrive.GoalType](docs/GoalType.md)
|
867
858
|
- [Pipedrive.GoalsResponseComponent](docs/GoalsResponseComponent.md)
|
@@ -975,6 +966,7 @@ Class | Method | HTTP request | Description
|
|
975
966
|
- [Pipedrive.NewPersonAllOf](docs/NewPersonAllOf.md)
|
976
967
|
- [Pipedrive.NewProductField](docs/NewProductField.md)
|
977
968
|
- [Pipedrive.Note](docs/Note.md)
|
969
|
+
- [Pipedrive.NoteAllOf](docs/NoteAllOf.md)
|
978
970
|
- [Pipedrive.NoteConnectToParams](docs/NoteConnectToParams.md)
|
979
971
|
- [Pipedrive.NoteCreatorUser](docs/NoteCreatorUser.md)
|
980
972
|
- [Pipedrive.NoteField](docs/NoteField.md)
|
@@ -1182,6 +1174,8 @@ Class | Method | HTTP request | Description
|
|
1182
1174
|
- [Pipedrive.UpdateFilterRequest](docs/UpdateFilterRequest.md)
|
1183
1175
|
- [Pipedrive.UpdateLeadLabelRequest](docs/UpdateLeadLabelRequest.md)
|
1184
1176
|
- [Pipedrive.UpdateLeadRequest](docs/UpdateLeadRequest.md)
|
1177
|
+
- [Pipedrive.UpdateOrganization](docs/UpdateOrganization.md)
|
1178
|
+
- [Pipedrive.UpdateOrganizationAllOf](docs/UpdateOrganizationAllOf.md)
|
1185
1179
|
- [Pipedrive.UpdatePerson](docs/UpdatePerson.md)
|
1186
1180
|
- [Pipedrive.UpdatePersonAllOf](docs/UpdatePersonAllOf.md)
|
1187
1181
|
- [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/
|
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['
|
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/
|
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
@@ -2129,54 +2129,6 @@ Object.defineProperty(exports, "GetStages", {
|
|
2129
2129
|
return _GetStages["default"];
|
2130
2130
|
}
|
2131
2131
|
});
|
2132
|
-
Object.defineProperty(exports, "GlobalMessageBaseResponse", {
|
2133
|
-
enumerable: true,
|
2134
|
-
get: function get() {
|
2135
|
-
return _GlobalMessageBaseResponse["default"];
|
2136
|
-
}
|
2137
|
-
});
|
2138
|
-
Object.defineProperty(exports, "GlobalMessageData", {
|
2139
|
-
enumerable: true,
|
2140
|
-
get: function get() {
|
2141
|
-
return _GlobalMessageData["default"];
|
2142
|
-
}
|
2143
|
-
});
|
2144
|
-
Object.defineProperty(exports, "GlobalMessageDelete", {
|
2145
|
-
enumerable: true,
|
2146
|
-
get: function get() {
|
2147
|
-
return _GlobalMessageDelete["default"];
|
2148
|
-
}
|
2149
|
-
});
|
2150
|
-
Object.defineProperty(exports, "GlobalMessageDeleteAllOf", {
|
2151
|
-
enumerable: true,
|
2152
|
-
get: function get() {
|
2153
|
-
return _GlobalMessageDeleteAllOf["default"];
|
2154
|
-
}
|
2155
|
-
});
|
2156
|
-
Object.defineProperty(exports, "GlobalMessageGet", {
|
2157
|
-
enumerable: true,
|
2158
|
-
get: function get() {
|
2159
|
-
return _GlobalMessageGet["default"];
|
2160
|
-
}
|
2161
|
-
});
|
2162
|
-
Object.defineProperty(exports, "GlobalMessageGetAllOf", {
|
2163
|
-
enumerable: true,
|
2164
|
-
get: function get() {
|
2165
|
-
return _GlobalMessageGetAllOf["default"];
|
2166
|
-
}
|
2167
|
-
});
|
2168
|
-
Object.defineProperty(exports, "GlobalMessageUserData", {
|
2169
|
-
enumerable: true,
|
2170
|
-
get: function get() {
|
2171
|
-
return _GlobalMessageUserData["default"];
|
2172
|
-
}
|
2173
|
-
});
|
2174
|
-
Object.defineProperty(exports, "GlobalMessagesApi", {
|
2175
|
-
enumerable: true,
|
2176
|
-
get: function get() {
|
2177
|
-
return _GlobalMessagesApi["default"];
|
2178
|
-
}
|
2179
|
-
});
|
2180
2132
|
Object.defineProperty(exports, "GoalResults", {
|
2181
2133
|
enumerable: true,
|
2182
2134
|
get: function get() {
|
@@ -2897,6 +2849,12 @@ Object.defineProperty(exports, "Note", {
|
|
2897
2849
|
return _Note["default"];
|
2898
2850
|
}
|
2899
2851
|
});
|
2852
|
+
Object.defineProperty(exports, "NoteAllOf", {
|
2853
|
+
enumerable: true,
|
2854
|
+
get: function get() {
|
2855
|
+
return _NoteAllOf["default"];
|
2856
|
+
}
|
2857
|
+
});
|
2900
2858
|
Object.defineProperty(exports, "NoteConnectToParams", {
|
2901
2859
|
enumerable: true,
|
2902
2860
|
get: function get() {
|
@@ -4229,6 +4187,18 @@ Object.defineProperty(exports, "UpdateLeadRequest", {
|
|
4229
4187
|
return _UpdateLeadRequest["default"];
|
4230
4188
|
}
|
4231
4189
|
});
|
4190
|
+
Object.defineProperty(exports, "UpdateOrganization", {
|
4191
|
+
enumerable: true,
|
4192
|
+
get: function get() {
|
4193
|
+
return _UpdateOrganization["default"];
|
4194
|
+
}
|
4195
|
+
});
|
4196
|
+
Object.defineProperty(exports, "UpdateOrganizationAllOf", {
|
4197
|
+
enumerable: true,
|
4198
|
+
get: function get() {
|
4199
|
+
return _UpdateOrganizationAllOf["default"];
|
4200
|
+
}
|
4201
|
+
});
|
4232
4202
|
Object.defineProperty(exports, "UpdatePerson", {
|
4233
4203
|
enumerable: true,
|
4234
4204
|
get: function get() {
|
@@ -5198,20 +5168,6 @@ var _GetStageDeals = _interopRequireDefault(require("./model/GetStageDeals"));
|
|
5198
5168
|
|
5199
5169
|
var _GetStages = _interopRequireDefault(require("./model/GetStages"));
|
5200
5170
|
|
5201
|
-
var _GlobalMessageBaseResponse = _interopRequireDefault(require("./model/GlobalMessageBaseResponse"));
|
5202
|
-
|
5203
|
-
var _GlobalMessageData = _interopRequireDefault(require("./model/GlobalMessageData"));
|
5204
|
-
|
5205
|
-
var _GlobalMessageDelete = _interopRequireDefault(require("./model/GlobalMessageDelete"));
|
5206
|
-
|
5207
|
-
var _GlobalMessageDeleteAllOf = _interopRequireDefault(require("./model/GlobalMessageDeleteAllOf"));
|
5208
|
-
|
5209
|
-
var _GlobalMessageGet = _interopRequireDefault(require("./model/GlobalMessageGet"));
|
5210
|
-
|
5211
|
-
var _GlobalMessageGetAllOf = _interopRequireDefault(require("./model/GlobalMessageGetAllOf"));
|
5212
|
-
|
5213
|
-
var _GlobalMessageUserData = _interopRequireDefault(require("./model/GlobalMessageUserData"));
|
5214
|
-
|
5215
5171
|
var _GoalResults = _interopRequireDefault(require("./model/GoalResults"));
|
5216
5172
|
|
5217
5173
|
var _GoalType = _interopRequireDefault(require("./model/GoalType"));
|
@@ -5438,6 +5394,8 @@ var _NewProductField = _interopRequireDefault(require("./model/NewProductField")
|
|
5438
5394
|
|
5439
5395
|
var _Note = _interopRequireDefault(require("./model/Note"));
|
5440
5396
|
|
5397
|
+
var _NoteAllOf = _interopRequireDefault(require("./model/NoteAllOf"));
|
5398
|
+
|
5441
5399
|
var _NoteConnectToParams = _interopRequireDefault(require("./model/NoteConnectToParams"));
|
5442
5400
|
|
5443
5401
|
var _NoteCreatorUser = _interopRequireDefault(require("./model/NoteCreatorUser"));
|
@@ -5852,6 +5810,10 @@ var _UpdateLeadLabelRequest = _interopRequireDefault(require("./model/UpdateLead
|
|
5852
5810
|
|
5853
5811
|
var _UpdateLeadRequest = _interopRequireDefault(require("./model/UpdateLeadRequest"));
|
5854
5812
|
|
5813
|
+
var _UpdateOrganization = _interopRequireDefault(require("./model/UpdateOrganization"));
|
5814
|
+
|
5815
|
+
var _UpdateOrganizationAllOf = _interopRequireDefault(require("./model/UpdateOrganizationAllOf"));
|
5816
|
+
|
5855
5817
|
var _UpdatePerson = _interopRequireDefault(require("./model/UpdatePerson"));
|
5856
5818
|
|
5857
5819
|
var _UpdatePersonAllOf = _interopRequireDefault(require("./model/UpdatePersonAllOf"));
|
@@ -5960,8 +5922,6 @@ var _FilesApi = _interopRequireDefault(require("./api/FilesApi"));
|
|
5960
5922
|
|
5961
5923
|
var _FiltersApi = _interopRequireDefault(require("./api/FiltersApi"));
|
5962
5924
|
|
5963
|
-
var _GlobalMessagesApi = _interopRequireDefault(require("./api/GlobalMessagesApi"));
|
5964
|
-
|
5965
5925
|
var _GoalsApi = _interopRequireDefault(require("./api/GoalsApi"));
|
5966
5926
|
|
5967
5927
|
var _ItemSearchApi = _interopRequireDefault(require("./api/ItemSearchApi"));
|
@@ -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
|
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.
|
@@ -190,7 +190,7 @@ AddProductRequestBody.prototype['visible_to'] = undefined;
|
|
190
190
|
|
191
191
|
AddProductRequestBody.prototype['owner_id'] = undefined;
|
192
192
|
/**
|
193
|
-
* An array of objects, each containing: `currency` (string), `price` (number), `cost` (number, optional), `overhead_cost` (number, optional). Note that there can only be one price per product per currency. When `prices` is omitted altogether,
|
193
|
+
* An array of objects, each containing: `currency` (string), `price` (number), `cost` (number, optional), `overhead_cost` (number, optional). Note that there can only be one price per product per currency. When `prices` is omitted altogether, a default price of 0 and a default currency based on the company's currency will be assigned.
|
194
194
|
* @member {Array.<Object>} prices
|
195
195
|
*/
|
196
196
|
|
@@ -245,7 +245,7 @@ _ProductRequest["default"].prototype['visible_to'] = undefined;
|
|
245
245
|
|
246
246
|
_ProductRequest["default"].prototype['owner_id'] = undefined;
|
247
247
|
/**
|
248
|
-
* An array of objects, each containing: `currency` (string), `price` (number), `cost` (number, optional), `overhead_cost` (number, optional). Note that there can only be one price per product per currency. When `prices` is omitted altogether,
|
248
|
+
* An array of objects, each containing: `currency` (string), `price` (number), `cost` (number, optional), `overhead_cost` (number, optional). Note that there can only be one price per product per currency. When `prices` is omitted altogether, a default price of 0 and a default currency based on the company's currency will be assigned.
|
249
249
|
* @member {Array.<Object>} prices
|
250
250
|
*/
|
251
251
|
|
@@ -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(
|
41
|
+
function BasicOrganization() {
|
43
42
|
(0, _classCallCheck2["default"])(this, BasicOrganization);
|
44
|
-
BasicOrganization.initialize(this
|
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
|
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 & 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
|
-
|
51
|
+
_NewOrganizationAllOf["default"].initialize(this, name);
|
52
52
|
|
53
|
-
|
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
|
-
|
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;
|
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;
|
package/dist/model/Note.js
CHANGED
@@ -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(
|
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
|
57
|
+
_NoteParams["default"].initialize(this);
|
54
58
|
|
55
|
-
Note.initialize(this
|
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
|
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
|
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;
|
package/dist/model/NoteParams.js
CHANGED
@@ -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(
|
41
|
+
function NoteParams() {
|
43
42
|
(0, _classCallCheck2["default"])(this, NoteParams);
|
44
|
-
NoteParams.initialize(this
|
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
|
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
|
@@ -161,7 +161,7 @@ ProductRequest.prototype['visible_to'] = undefined;
|
|
161
161
|
|
162
162
|
ProductRequest.prototype['owner_id'] = undefined;
|
163
163
|
/**
|
164
|
-
* An array of objects, each containing: `currency` (string), `price` (number), `cost` (number, optional), `overhead_cost` (number, optional). Note that there can only be one price per product per currency. When `prices` is omitted altogether,
|
164
|
+
* An array of objects, each containing: `currency` (string), `price` (number), `cost` (number, optional), `overhead_cost` (number, optional). Note that there can only be one price per product per currency. When `prices` is omitted altogether, a default price of 0 and a default currency based on the company's currency will be assigned.
|
165
165
|
* @member {Array.<Object>} prices
|
166
166
|
*/
|
167
167
|
|
@@ -258,7 +258,7 @@ RecentDataProduct.prototype['add_time'] = undefined;
|
|
258
258
|
|
259
259
|
RecentDataProduct.prototype['update_time'] = undefined;
|
260
260
|
/**
|
261
|
-
* Array of objects, each containing: `currency` (string), `price` (number), `cost` (number, optional), `overhead_cost` (number, optional). Note that there can only be one price per product per currency. When `prices` is omitted altogether,
|
261
|
+
* Array of objects, each containing: `currency` (string), `price` (number), `cost` (number, optional), `overhead_cost` (number, optional). Note that there can only be one price per product per currency. When `prices` is omitted altogether, a default price of 0 and a default currency based on the company's currency will be assigned.
|
262
262
|
* @member {Array.<Object>} prices
|
263
263
|
*/
|
264
264
|
|
@@ -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 & 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 & 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;
|
@@ -190,7 +190,7 @@ UpdateProductRequestBody.prototype['visible_to'] = undefined;
|
|
190
190
|
|
191
191
|
UpdateProductRequestBody.prototype['owner_id'] = undefined;
|
192
192
|
/**
|
193
|
-
* An array of objects, each containing: `currency` (string), `price` (number), `cost` (number, optional), `overhead_cost` (number, optional). Note that there can only be one price per product per currency. When `prices` is omitted altogether,
|
193
|
+
* An array of objects, each containing: `currency` (string), `price` (number), `cost` (number, optional), `overhead_cost` (number, optional). Note that there can only be one price per product per currency. When `prices` is omitted altogether, a default price of 0 and a default currency based on the company's currency will be assigned.
|
194
194
|
* @member {Array.<Object>} prices
|
195
195
|
*/
|
196
196
|
|
@@ -245,7 +245,7 @@ _ProductRequest["default"].prototype['visible_to'] = undefined;
|
|
245
245
|
|
246
246
|
_ProductRequest["default"].prototype['owner_id'] = undefined;
|
247
247
|
/**
|
248
|
-
* An array of objects, each containing: `currency` (string), `price` (number), `cost` (number, optional), `overhead_cost` (number, optional). Note that there can only be one price per product per currency. When `prices` is omitted altogether,
|
248
|
+
* An array of objects, each containing: `currency` (string), `price` (number), `cost` (number, optional), `overhead_cost` (number, optional). Note that there can only be one price per product per currency. When `prices` is omitted altogether, a default price of 0 and a default currency based on the company's currency will be assigned.
|
249
249
|
* @member {Array.<Object>} prices
|
250
250
|
*/
|
251
251
|
|