pipedrive 13.3.2 → 14.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,101 @@
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 UpdateProductField model module.
31
+ * @module model/UpdateProductField
32
+ * @version 1.0.0
33
+ */
34
+ var UpdateProductField = /*#__PURE__*/function () {
35
+ /**
36
+ * Constructs a new <code>UpdateProductField</code>.
37
+ * @alias module:model/UpdateProductField
38
+ */
39
+ function UpdateProductField() {
40
+ (0, _classCallCheck2["default"])(this, UpdateProductField);
41
+ UpdateProductField.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"])(UpdateProductField, null, [{
51
+ key: "initialize",
52
+ value: function initialize(obj) {}
53
+ /**
54
+ * Constructs a <code>UpdateProductField</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/UpdateProductField} obj Optional instance to populate.
58
+ * @return {module:model/UpdateProductField} The populated <code>UpdateProductField</code> instance.
59
+ */
60
+
61
+ }, {
62
+ key: "constructFromObject",
63
+ value: function constructFromObject(data, obj) {
64
+ if (data) {
65
+ obj = obj || new UpdateProductField();
66
+
67
+ if (data.hasOwnProperty('name')) {
68
+ obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
69
+ delete data['name'];
70
+ }
71
+
72
+ if (data.hasOwnProperty('options')) {
73
+ obj['options'] = _ApiClient["default"].convertToType(data['options'], [Object]);
74
+ delete data['options'];
75
+ }
76
+
77
+ if (Object.keys(data).length > 0) {
78
+ Object.assign(obj, data);
79
+ }
80
+ }
81
+
82
+ return obj;
83
+ }
84
+ }]);
85
+ return UpdateProductField;
86
+ }();
87
+ /**
88
+ * The name of the field
89
+ * @member {String} name
90
+ */
91
+
92
+
93
+ UpdateProductField.prototype['name'] = undefined;
94
+ /**
95
+ * When `field_type` is either set or enum, possible options on update must be supplied as an array of objects each containing id and label, for example: [{\"id\":1, \"label\":\"red\"},{\"id\":2, \"label\":\"blue\"},{\"id\":3, \"label\":\"lilac\"}]
96
+ * @member {Array.<Object>} options
97
+ */
98
+
99
+ UpdateProductField.prototype['options'] = undefined;
100
+ var _default = UpdateProductField;
101
+ exports["default"] = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pipedrive",
3
- "version": "13.3.2",
3
+ "version": "14.0.0",
4
4
  "description": "Pipedrive REST client for NodeJS",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -18,8 +18,9 @@
18
18
  "fs": false
19
19
  },
20
20
  "dependencies": {
21
- "superagent": "^5.3.0",
22
- "lodash": "^4.17.21"
21
+ "@babel/runtime": "^7.17.0",
22
+ "lodash": "^4.17.21",
23
+ "superagent": "^5.3.0"
23
24
  },
24
25
  "devDependencies": {
25
26
  "@babel/cli": "^7.0.0",