pipedrive 15.1.0 → 16.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -5,7 +5,24 @@ The Changelog file gives an overview of all of the notable changes affecting the
5
5
  The file format of it is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/), and the project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
6
 
7
7
  For public Changelog covering all changes done to Pipedrive’s API, webhooks and app extensions platforms, see [public Changelog](https://pipedrive.readme.io/docs/changelog) with discussion area in [Developers Community](https://devcommunity.pipedrive.com/c/documentation/changelog/19).
8
+
8
9
  ## [Unreleased]
10
+ ## 16.0.2
11
+ ### Fixed
12
+ - Fixed issue with custom monetary field currency
13
+
14
+ ## 16.0.1
15
+ ### Added
16
+ - Added restriction of maximum 16 conditions per filter.
17
+ ### Changed
18
+ - Removed support for `NOT LIKE '%$%': does not contain, LIKE '%$': ends with, NOT LIKE '%$': does not end with` varchar and title filter conditions.
19
+
20
+ ## 16.0.0
21
+ ### Changed
22
+ - Changed `id` parameter data type to `string` for GET `/permissionSets/{id}` and GET `/permissionSets/{id}/assignments` endpoints
23
+ - Changed `id` field data type to `string` for response from GET `/permissionSets` and GET `/permissionSets/{id}` endpoints
24
+ - Changed `permission_set_id` field data type to `string` for response GET `/permissionSets/{id}/assignments` endpoints
25
+ - Removed `id` field from response for GET `/permissionSets/{id}/assignments` endpoints
9
26
 
10
27
  ## 15.0.3
11
28
  ### Changed
package/dist/ApiClient.js CHANGED
@@ -690,7 +690,7 @@ var ApiClient = /*#__PURE__*/function () {
690
690
  var keyValue = obj[key];
691
691
  var isArray = Array.isArray(keyValue);
692
692
  var isObject = (0, _typeof2["default"])(keyValue) === 'object' && !isArray;
693
- var isHash = /^[a-f0-9]{40}$/i.test(key);
693
+ var isHash = /^[a-f0-9]{40}$|^[a-f0-9]{40}_[a-z0-9]+$/i.test(key);
694
694
  if (isArray) keyValue = keyValue.map(function (kv) {
695
695
  return (0, _typeof2["default"])(kv) === 'object' ? _this3.replaceCamelCaseObj(kv) : kv;
696
696
  });
@@ -44,7 +44,7 @@ var PermissionSetsApi = /*#__PURE__*/function () {
44
44
  }
45
45
  /**
46
46
  * Get one permission set
47
- * @param {Number} id The ID of the permission set
47
+ * @param {String} id The ID of the permission set
48
48
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SinglePermissionSetsItem} and HTTP response
49
49
  */
50
50
 
@@ -87,7 +87,7 @@ var PermissionSetsApi = /*#__PURE__*/function () {
87
87
  }
88
88
  /**
89
89
  * Get one permission set
90
- * @param {Number} id The ID of the permission set
90
+ * @param {String} id The ID of the permission set
91
91
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SinglePermissionSetsItem}
92
92
  */
93
93
 
@@ -101,7 +101,7 @@ var PermissionSetsApi = /*#__PURE__*/function () {
101
101
  /**
102
102
  * List permission set assignments
103
103
  * The list of assignments for a permission set.
104
- * @param {Number} id The ID of the permission set
104
+ * @param {String} id The ID of the permission set
105
105
  * @param {Object} opts Optional parameters
106
106
  * @param {Number} opts.start Pagination start (default to 0)
107
107
  * @param {Number} opts.limit Items shown per page
@@ -150,7 +150,7 @@ var PermissionSetsApi = /*#__PURE__*/function () {
150
150
  /**
151
151
  * List permission set assignments
152
152
  * The list of assignments for a permission set.
153
- * @param {Number} id The ID of the permission set
153
+ * @param {String} id The ID of the permission set
154
154
  * @param {Object} opts Optional parameters
155
155
  * @param {Number} opts.start Pagination start (default to 0)
156
156
  * @param {Number} opts.limit Items shown per page
@@ -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 '%$%'\", \"NOT LIKE '%$%'\", \"LIKE '$%'\", \"NOT 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. 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 '%$%'\", \"NOT LIKE '%$%'\", \"LIKE '$%'\", \"NOT 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. 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
 
@@ -65,7 +65,7 @@ var PermissionSetsItem = /*#__PURE__*/function () {
65
65
  obj = obj || new PermissionSetsItem();
66
66
 
67
67
  if (data.hasOwnProperty('id')) {
68
- obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
68
+ obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
69
69
  delete data['id'];
70
70
  }
71
71
 
@@ -91,7 +91,7 @@ var PermissionSetsItem = /*#__PURE__*/function () {
91
91
  }();
92
92
  /**
93
93
  * The ID of user permission set
94
- * @member {Number} id
94
+ * @member {String} id
95
95
  */
96
96
 
97
97
 
@@ -80,7 +80,7 @@ var SinglePermissionSetsItem = /*#__PURE__*/function () {
80
80
  _SinglePermissionSetsItemAllOf["default"].constructFromObject(data, obj);
81
81
 
82
82
  if (data.hasOwnProperty('id')) {
83
- obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
83
+ obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
84
84
  delete data['id'];
85
85
  }
86
86
 
@@ -111,7 +111,7 @@ var SinglePermissionSetsItem = /*#__PURE__*/function () {
111
111
  }();
112
112
  /**
113
113
  * The ID of user permission set
114
- * @member {Number} id
114
+ * @member {String} id
115
115
  */
116
116
 
117
117
 
@@ -137,7 +137,7 @@ SinglePermissionSetsItem.prototype['contents'] = undefined; // Implement Permiss
137
137
 
138
138
  /**
139
139
  * The ID of user permission set
140
- * @member {Number} id
140
+ * @member {String} id
141
141
  */
142
142
 
143
143
  _PermissionSetsItem["default"].prototype['id'] = undefined;
@@ -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 '%$%'\", \"NOT LIKE '%$%'\", \"LIKE '$%'\", \"NOT 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. 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 '%$%'\", \"NOT LIKE '%$%'\", \"LIKE '$%'\", \"NOT 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. 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
 
@@ -64,18 +64,13 @@ var UserAssignmentToPermissionSet = /*#__PURE__*/function () {
64
64
  if (data) {
65
65
  obj = obj || new UserAssignmentToPermissionSet();
66
66
 
67
- if (data.hasOwnProperty('id')) {
68
- obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
69
- delete data['id'];
70
- }
71
-
72
67
  if (data.hasOwnProperty('user_id')) {
73
68
  obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'Number');
74
69
  delete data['user_id'];
75
70
  }
76
71
 
77
72
  if (data.hasOwnProperty('permission_set_id')) {
78
- obj['permission_set_id'] = _ApiClient["default"].convertToType(data['permission_set_id'], 'Number');
73
+ obj['permission_set_id'] = _ApiClient["default"].convertToType(data['permission_set_id'], 'String');
79
74
  delete data['permission_set_id'];
80
75
  }
81
76
 
@@ -94,22 +89,16 @@ var UserAssignmentToPermissionSet = /*#__PURE__*/function () {
94
89
  }]);
95
90
  return UserAssignmentToPermissionSet;
96
91
  }();
97
- /**
98
- * The ID of the assignment of the permission set
99
- * @member {Number} id
100
- */
101
-
102
-
103
- UserAssignmentToPermissionSet.prototype['id'] = undefined;
104
92
  /**
105
93
  * The ID of the user in the permission set
106
94
  * @member {Number} user_id
107
95
  */
108
96
 
97
+
109
98
  UserAssignmentToPermissionSet.prototype['user_id'] = undefined;
110
99
  /**
111
100
  * The ID of the permission set
112
- * @member {Number} permission_set_id
101
+ * @member {String} permission_set_id
113
102
  */
114
103
 
115
104
  UserAssignmentToPermissionSet.prototype['permission_set_id'] = undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pipedrive",
3
- "version": "15.1.0",
3
+ "version": "16.0.3",
4
4
  "description": "Pipedrive REST client for NodeJS",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",