pipedrive 17.5.1 → 17.5.2

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,22 @@ The file format of it is based on [Keep a Changelog](http://keepachangelog.com/e
7
7
  For public Changelog covering all changes done to Pipedrive’s API, webhooks and app extensions platforms, see [public Changelog](https://pipedrive.readme.io/docs/changelog) with discussion area in [Developers Community](https://devcommunity.pipedrive.com/c/documentation/changelog/19).
8
8
 
9
9
  ## [Unreleased]
10
+
11
+ ## 17.5.2
12
+ ### Changed
13
+ - Updated endpoint descriptions to warn about permanently removing deleted entities:
14
+ - `DELETE /activities`
15
+ - `DELETE /activities/{id}`
16
+ - `DELETE /deals`
17
+ - `DELETE /deals/{id}`
18
+ - `DELETE /files/{id}`
19
+ - `DELETE /organizations`
20
+ - `DELETE /organizations/{id}`
21
+ - `DELETE /persons`
22
+ - `DELETE /persons/{id}`
23
+ - `DELETE /products/{id}`
24
+ - Updated `conditions` parameter description for `POST /filters` and `PUT /filters/{id}`
25
+
10
26
  ## 17.5.1
11
27
  ### Fixed
12
28
  - Fixed custom field value (it should return null if the value is null)
@@ -109,7 +109,7 @@ var ActivitiesApi = /*#__PURE__*/function () {
109
109
  }
110
110
  /**
111
111
  * Delete multiple activities in bulk
112
- * Marks multiple activities as deleted.
112
+ * Marks multiple activities as deleted. After 30 days, the activities will be permanently deleted.
113
113
  * @param {String} ids The comma-separated IDs of activities that will be deleted
114
114
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteActivitiesResponse200} and HTTP response
115
115
  */
@@ -152,7 +152,7 @@ var ActivitiesApi = /*#__PURE__*/function () {
152
152
  }
153
153
  /**
154
154
  * Delete multiple activities in bulk
155
- * Marks multiple activities as deleted.
155
+ * Marks multiple activities as deleted. After 30 days, the activities will be permanently deleted.
156
156
  * @param {String} ids The comma-separated IDs of activities that will be deleted
157
157
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteActivitiesResponse200}
158
158
  */
@@ -166,7 +166,7 @@ var ActivitiesApi = /*#__PURE__*/function () {
166
166
  }
167
167
  /**
168
168
  * Delete an activity
169
- * Marks an activity as deleted.
169
+ * Marks an activity as deleted. After 30 days, the activity will be permanently deleted.
170
170
  * @param {Number} id The ID of the activity
171
171
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteActivityResponse200} and HTTP response
172
172
  */
@@ -209,7 +209,7 @@ var ActivitiesApi = /*#__PURE__*/function () {
209
209
  }
210
210
  /**
211
211
  * Delete an activity
212
- * Marks an activity as deleted.
212
+ * Marks an activity as deleted. After 30 days, the activity will be permanently deleted.
213
213
  * @param {Number} id The ID of the activity
214
214
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteActivityResponse200}
215
215
  */
@@ -350,7 +350,7 @@ var DealsApi = /*#__PURE__*/function () {
350
350
  }
351
351
  /**
352
352
  * Delete a deal
353
- * Marks a deal as deleted.
353
+ * Marks a deal as deleted. After 30 days, the deal will be permanently deleted.
354
354
  * @param {Number} id The ID of the deal
355
355
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteDeal} and HTTP response
356
356
  */
@@ -393,7 +393,7 @@ var DealsApi = /*#__PURE__*/function () {
393
393
  }
394
394
  /**
395
395
  * Delete a deal
396
- * Marks a deal as deleted.
396
+ * Marks a deal as deleted. After 30 days, the deal will be permanently deleted.
397
397
  * @param {Number} id The ID of the deal
398
398
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteDeal}
399
399
  */
@@ -602,7 +602,7 @@ var DealsApi = /*#__PURE__*/function () {
602
602
  }
603
603
  /**
604
604
  * Delete multiple deals in bulk
605
- * Marks multiple deals as deleted.
605
+ * Marks multiple deals as deleted. After 30 days, the deals will be permanently deleted.
606
606
  * @param {String} ids The comma-separated IDs that will be deleted
607
607
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteMultipleDeals} and HTTP response
608
608
  */
@@ -645,7 +645,7 @@ var DealsApi = /*#__PURE__*/function () {
645
645
  }
646
646
  /**
647
647
  * Delete multiple deals in bulk
648
- * Marks multiple deals as deleted.
648
+ * Marks multiple deals as deleted. After 30 days, the deals will be permanently deleted.
649
649
  * @param {String} ids The comma-separated IDs that will be deleted
650
650
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteMultipleDeals}
651
651
  */
@@ -216,7 +216,7 @@ var FilesApi = /*#__PURE__*/function () {
216
216
  }
217
217
  /**
218
218
  * Delete a file
219
- * Marks a file as deleted.
219
+ * Marks a file as deleted. After 30 days, the file will be permanently deleted.
220
220
  * @param {Number} id The ID of the file
221
221
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteFile} and HTTP response
222
222
  */
@@ -259,7 +259,7 @@ var FilesApi = /*#__PURE__*/function () {
259
259
  }
260
260
  /**
261
261
  * Delete a file
262
- * Marks a file as deleted.
262
+ * Marks a file as deleted. After 30 days, the file will be permanently deleted.
263
263
  * @param {Number} id The ID of the file
264
264
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteFile}
265
265
  */
@@ -202,7 +202,7 @@ var OrganizationsApi = /*#__PURE__*/function () {
202
202
  }
203
203
  /**
204
204
  * Delete an organization
205
- * Marks an organization as deleted.
205
+ * Marks an organization as deleted. After 30 days, the organization will be permanently deleted.
206
206
  * @param {Number} id The ID of the organization
207
207
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OrganizationDeleteResponse} and HTTP response
208
208
  */
@@ -245,7 +245,7 @@ var OrganizationsApi = /*#__PURE__*/function () {
245
245
  }
246
246
  /**
247
247
  * Delete an organization
248
- * Marks an organization as deleted.
248
+ * Marks an organization as deleted. After 30 days, the organization will be permanently deleted.
249
249
  * @param {Number} id The ID of the organization
250
250
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OrganizationDeleteResponse}
251
251
  */
@@ -324,7 +324,7 @@ var OrganizationsApi = /*#__PURE__*/function () {
324
324
  }
325
325
  /**
326
326
  * Delete multiple organizations in bulk
327
- * Marks multiple organizations as deleted.
327
+ * Marks multiple organizations as deleted. After 30 days, the organizations will be permanently deleted.
328
328
  * @param {String} ids The comma-separated IDs that will be deleted
329
329
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OrganizationsDeleteResponse} and HTTP response
330
330
  */
@@ -367,7 +367,7 @@ var OrganizationsApi = /*#__PURE__*/function () {
367
367
  }
368
368
  /**
369
369
  * Delete multiple organizations in bulk
370
- * Marks multiple organizations as deleted.
370
+ * Marks multiple organizations as deleted. After 30 days, the organizations will be permanently deleted.
371
371
  * @param {String} ids The comma-separated IDs that will be deleted
372
372
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OrganizationsDeleteResponse}
373
373
  */
@@ -381,7 +381,7 @@ var OrganizationsApi = /*#__PURE__*/function () {
381
381
  }
382
382
  /**
383
383
  * Get details of an organization
384
- * Returns details of an organization. Note that this also returns some additional fields which are not present when asking for all organizations. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of organizationFields.
384
+ * Returns the details of an organization. Note that this also returns some additional fields which are not present when asking for all organizations. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of organizationFields.
385
385
  * @param {Number} id The ID of the organization
386
386
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OrganizationDetailsGetResponse} and HTTP response
387
387
  */
@@ -424,7 +424,7 @@ var OrganizationsApi = /*#__PURE__*/function () {
424
424
  }
425
425
  /**
426
426
  * Get details of an organization
427
- * Returns details of an organization. Note that this also returns some additional fields which are not present when asking for all organizations. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of organizationFields.
427
+ * Returns the details of an organization. Note that this also returns some additional fields which are not present when asking for all organizations. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of organizationFields.
428
428
  * @param {Number} id The ID of the organization
429
429
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OrganizationDetailsGetResponse}
430
430
  */
@@ -282,7 +282,7 @@ var PersonsApi = /*#__PURE__*/function () {
282
282
  }
283
283
  /**
284
284
  * Delete a person
285
- * Marks a person as deleted.
285
+ * Marks a person as deleted. After 30 days, the person will be permanently deleted.
286
286
  * @param {Number} id The ID of the person
287
287
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeletePersonResponse} and HTTP response
288
288
  */
@@ -325,7 +325,7 @@ var PersonsApi = /*#__PURE__*/function () {
325
325
  }
326
326
  /**
327
327
  * Delete a person
328
- * Marks a person as deleted.
328
+ * Marks a person as deleted. After 30 days, the person will be permanently deleted.
329
329
  * @param {Number} id The ID of the person
330
330
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeletePersonResponse}
331
331
  */
@@ -461,7 +461,7 @@ var PersonsApi = /*#__PURE__*/function () {
461
461
  }
462
462
  /**
463
463
  * Delete multiple persons in bulk
464
- * Marks multiple persons as deleted.
464
+ * Marks multiple persons as deleted. After 30 days, the persons will be permanently deleted.
465
465
  * @param {String} ids The comma-separated IDs that will be deleted
466
466
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeletePersonsInBulkResponse} and HTTP response
467
467
  */
@@ -504,7 +504,7 @@ var PersonsApi = /*#__PURE__*/function () {
504
504
  }
505
505
  /**
506
506
  * Delete multiple persons in bulk
507
- * Marks multiple persons as deleted.
507
+ * Marks multiple persons as deleted. After 30 days, the persons will be permanently deleted.
508
508
  * @param {String} ids The comma-separated IDs that will be deleted
509
509
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeletePersonsInBulkResponse}
510
510
  */
@@ -184,7 +184,7 @@ var ProductsApi = /*#__PURE__*/function () {
184
184
  }
185
185
  /**
186
186
  * Delete a product
187
- * Marks a product as deleted.
187
+ * Marks a product as deleted. After 30 days, the product will be permanently deleted.
188
188
  * @param {Number} id The ID of the product
189
189
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteProductResponse} and HTTP response
190
190
  */
@@ -227,7 +227,7 @@ var ProductsApi = /*#__PURE__*/function () {
227
227
  }
228
228
  /**
229
229
  * Delete a product
230
- * Marks a product as deleted.
230
+ * Marks a product as deleted. After 30 days, the product will be permanently deleted.
231
231
  * @param {Number} id The ID of the product
232
232
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteProductResponse}
233
233
  */
@@ -38,7 +38,7 @@ var AddFilterRequest = /*#__PURE__*/function () {
38
38
  * Constructs a new <code>AddFilterRequest</code>.
39
39
  * @alias module:model/AddFilterRequest
40
40
  * @param name {String} The name of the filter
41
- * @param conditions {Object} The conditions of the filter as a JSON object. It requires a minimum structure as follows: `{\"glue\":\"and\",\"conditions\":[{\"glue\":\"and\",\"conditions\": [CONDITION_OBJECTS]},{\"glue\":\"or\",\"conditions\":[CONDITION_OBJECTS]}]}`. Replace `CONDITION_OBJECTS` with JSON objects of the following structure: `{\"object\":\"\",\"field_id\":\"\", \"operator\":\"\",\"value\":\"\", \"extra_value\":\"\"}` or leave the array empty. Depending on the object type you should use another API endpoint to get `field_id`. There are five types of objects you can choose from: `\"person\"`, `\"deal\"`, `\"organization\"`, `\"product\"`, `\"activity\"` and you can use these types of operators depending on what type of a field you have: `\"IS NOT NULL\"`, `\"IS NULL\"`, `\"<=\"`, `\">=\"`, `\"<\"`, `\">\"`, `\"!=\"`, `\"=\"`, `\"LIKE '$%'\"`, `\"LIKE '%$%'\"`, `\"NOT LIKE '$%'\"`. To get a better understanding of how filters work try creating them directly from the Pipedrive application.
41
+ * @param conditions {Object} The conditions of the filter as a JSON object. Please note that a maximum of 16 conditions is allowed per filter. It requires a minimum structure as follows: `{\"glue\":\"and\",\"conditions\":[{\"glue\":\"and\",\"conditions\": [CONDITION_OBJECTS]},{\"glue\":\"or\",\"conditions\":[CONDITION_OBJECTS]}]}`. Replace `CONDITION_OBJECTS` with JSON objects of the following structure: `{\"object\":\"\",\"field_id\":\"\", \"operator\":\"\",\"value\":\"\", \"extra_value\":\"\"}` or leave the array empty. Depending on the object type you should use another API endpoint to get `field_id`. There are five types of objects you can choose from: `\"person\"`, `\"deal\"`, `\"organization\"`, `\"product\"`, `\"activity\"` and you can use these types of operators depending on what type of a field you have: `\"IS NOT NULL\"`, `\"IS NULL\"`, `\"<=\"`, `\">=\"`, `\"<\"`, `\">\"`, `\"!=\"`, `\"=\"`, `\"LIKE '$%'\"`, `\"LIKE '%$%'\"`, `\"NOT LIKE '$%'\"`. To get a better understanding of how filters work try creating them directly from the Pipedrive application.
42
42
  * @param type {module:model/FilterType} The type of filter to create
43
43
  */
44
44
  function AddFilterRequest(name, conditions, type) {
@@ -106,7 +106,7 @@ var AddFilterRequest = /*#__PURE__*/function () {
106
106
 
107
107
  AddFilterRequest.prototype['name'] = undefined;
108
108
  /**
109
- * The conditions of the filter as a JSON object. It requires a minimum structure as follows: `{\"glue\":\"and\",\"conditions\":[{\"glue\":\"and\",\"conditions\": [CONDITION_OBJECTS]},{\"glue\":\"or\",\"conditions\":[CONDITION_OBJECTS]}]}`. Replace `CONDITION_OBJECTS` with JSON objects of the following structure: `{\"object\":\"\",\"field_id\":\"\", \"operator\":\"\",\"value\":\"\", \"extra_value\":\"\"}` or leave the array empty. Depending on the object type you should use another API endpoint to get `field_id`. There are five types of objects you can choose from: `\"person\"`, `\"deal\"`, `\"organization\"`, `\"product\"`, `\"activity\"` and you can use these types of operators depending on what type of a field you have: `\"IS NOT NULL\"`, `\"IS NULL\"`, `\"<=\"`, `\">=\"`, `\"<\"`, `\">\"`, `\"!=\"`, `\"=\"`, `\"LIKE '$%'\"`, `\"LIKE '%$%'\"`, `\"NOT LIKE '$%'\"`. To get a better understanding of how filters work try creating them directly from the Pipedrive application.
109
+ * The conditions of the filter as a JSON object. Please note that a maximum of 16 conditions is allowed per filter. It requires a minimum structure as follows: `{\"glue\":\"and\",\"conditions\":[{\"glue\":\"and\",\"conditions\": [CONDITION_OBJECTS]},{\"glue\":\"or\",\"conditions\":[CONDITION_OBJECTS]}]}`. Replace `CONDITION_OBJECTS` with JSON objects of the following structure: `{\"object\":\"\",\"field_id\":\"\", \"operator\":\"\",\"value\":\"\", \"extra_value\":\"\"}` or leave the array empty. Depending on the object type you should use another API endpoint to get `field_id`. There are five types of objects you can choose from: `\"person\"`, `\"deal\"`, `\"organization\"`, `\"product\"`, `\"activity\"` and you can use these types of operators depending on what type of a field you have: `\"IS NOT NULL\"`, `\"IS NULL\"`, `\"<=\"`, `\">=\"`, `\"<\"`, `\">\"`, `\"!=\"`, `\"=\"`, `\"LIKE '$%'\"`, `\"LIKE '%$%'\"`, `\"NOT LIKE '$%'\"`. To get a better understanding of how filters work try creating them directly from the Pipedrive application.
110
110
  * @member {Object} conditions
111
111
  */
112
112
 
@@ -35,7 +35,7 @@ var UpdateFilterRequest = /*#__PURE__*/function () {
35
35
  /**
36
36
  * Constructs a new <code>UpdateFilterRequest</code>.
37
37
  * @alias module:model/UpdateFilterRequest
38
- * @param conditions {Object} The conditions of the filter as a JSON object. It requires a minimum structure as follows: `{\"glue\":\"and\",\"conditions\":[{\"glue\":\"and\",\"conditions\": [CONDITION_OBJECTS]},{\"glue\":\"or\",\"conditions\":[CONDITION_OBJECTS]}]}`. Replace `CONDITION_OBJECTS` with JSON objects of the following structure: `{\"object\":\"\",\"field_id\":\"\", \"operator\":\"\",\"value\":\"\", \"extra_value\":\"\"}` or leave the array empty. Depending on the object type you should use another API endpoint to get `field_id`. There are five types of objects you can choose from: `\"person\"`, `\"deal\"`, `\"organization\"`, `\"product\"`, `\"activity\"` and you can use these types of operators depending on what type of a field you have: `\"IS NOT NULL\"`, `\"IS NULL\"`, `\"<=\"`, `\">=\"`, `\"<\"`, `\">\"`, `\"!=\"`, `\"=\"`, `\"LIKE '$%'\"`, `\"LIKE '%$%'\"`, `\"NOT LIKE '$%'\"`. To get a better understanding of how filters work try creating them directly from the Pipedrive application.
38
+ * @param conditions {Object} The conditions of the filter as a JSON object. Please note that a maximum of 16 conditions is allowed per filter. It requires a minimum structure as follows: `{\"glue\":\"and\",\"conditions\":[{\"glue\":\"and\",\"conditions\": [CONDITION_OBJECTS]},{\"glue\":\"or\",\"conditions\":[CONDITION_OBJECTS]}]}`. Replace `CONDITION_OBJECTS` with JSON objects of the following structure: `{\"object\":\"\",\"field_id\":\"\", \"operator\":\"\",\"value\":\"\", \"extra_value\":\"\"}` or leave the array empty. Depending on the object type you should use another API endpoint to get `field_id`. There are five types of objects you can choose from: `\"person\"`, `\"deal\"`, `\"organization\"`, `\"product\"`, `\"activity\"` and you can use these types of operators depending on what type of a field you have: `\"IS NOT NULL\"`, `\"IS NULL\"`, `\"<=\"`, `\">=\"`, `\"<\"`, `\">\"`, `\"!=\"`, `\"=\"`, `\"LIKE '$%'\"`, `\"LIKE '%$%'\"`, `\"NOT LIKE '$%'\"`. To get a better understanding of how filters work try creating them directly from the Pipedrive application.
39
39
  */
40
40
  function UpdateFilterRequest(conditions) {
41
41
  (0, _classCallCheck2["default"])(this, UpdateFilterRequest);
@@ -95,7 +95,7 @@ var UpdateFilterRequest = /*#__PURE__*/function () {
95
95
 
96
96
  UpdateFilterRequest.prototype['name'] = undefined;
97
97
  /**
98
- * The conditions of the filter as a JSON object. It requires a minimum structure as follows: `{\"glue\":\"and\",\"conditions\":[{\"glue\":\"and\",\"conditions\": [CONDITION_OBJECTS]},{\"glue\":\"or\",\"conditions\":[CONDITION_OBJECTS]}]}`. Replace `CONDITION_OBJECTS` with JSON objects of the following structure: `{\"object\":\"\",\"field_id\":\"\", \"operator\":\"\",\"value\":\"\", \"extra_value\":\"\"}` or leave the array empty. Depending on the object type you should use another API endpoint to get `field_id`. There are five types of objects you can choose from: `\"person\"`, `\"deal\"`, `\"organization\"`, `\"product\"`, `\"activity\"` and you can use these types of operators depending on what type of a field you have: `\"IS NOT NULL\"`, `\"IS NULL\"`, `\"<=\"`, `\">=\"`, `\"<\"`, `\">\"`, `\"!=\"`, `\"=\"`, `\"LIKE '$%'\"`, `\"LIKE '%$%'\"`, `\"NOT LIKE '$%'\"`. To get a better understanding of how filters work try creating them directly from the Pipedrive application.
98
+ * The conditions of the filter as a JSON object. Please note that a maximum of 16 conditions is allowed per filter. It requires a minimum structure as follows: `{\"glue\":\"and\",\"conditions\":[{\"glue\":\"and\",\"conditions\": [CONDITION_OBJECTS]},{\"glue\":\"or\",\"conditions\":[CONDITION_OBJECTS]}]}`. Replace `CONDITION_OBJECTS` with JSON objects of the following structure: `{\"object\":\"\",\"field_id\":\"\", \"operator\":\"\",\"value\":\"\", \"extra_value\":\"\"}` or leave the array empty. Depending on the object type you should use another API endpoint to get `field_id`. There are five types of objects you can choose from: `\"person\"`, `\"deal\"`, `\"organization\"`, `\"product\"`, `\"activity\"` and you can use these types of operators depending on what type of a field you have: `\"IS NOT NULL\"`, `\"IS NULL\"`, `\"<=\"`, `\">=\"`, `\"<\"`, `\">\"`, `\"!=\"`, `\"=\"`, `\"LIKE '$%'\"`, `\"LIKE '%$%'\"`, `\"NOT LIKE '$%'\"`. To get a better understanding of how filters work try creating them directly from the Pipedrive application.
99
99
  * @member {Object} conditions
100
100
  */
101
101
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pipedrive",
3
- "version": "17.5.1",
3
+ "version": "17.5.2",
4
4
  "description": "Pipedrive REST client for NodeJS",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",