pipedrive 16.1.0 → 17.1.0

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.
@@ -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;
@@ -0,0 +1,146 @@
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 UserAccess model module.
31
+ * @module model/UserAccess
32
+ * @version 1.0.0
33
+ */
34
+ var UserAccess = /*#__PURE__*/function () {
35
+ /**
36
+ * Constructs a new <code>UserAccess</code>.
37
+ * @alias module:model/UserAccess
38
+ */
39
+ function UserAccess() {
40
+ (0, _classCallCheck2["default"])(this, UserAccess);
41
+ UserAccess.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"])(UserAccess, null, [{
51
+ key: "initialize",
52
+ value: function initialize(obj) {}
53
+ /**
54
+ * Constructs a <code>UserAccess</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/UserAccess} obj Optional instance to populate.
58
+ * @return {module:model/UserAccess} The populated <code>UserAccess</code> instance.
59
+ */
60
+
61
+ }, {
62
+ key: "constructFromObject",
63
+ value: function constructFromObject(data, obj) {
64
+ if (data) {
65
+ obj = obj || new UserAccess();
66
+
67
+ if (data.hasOwnProperty('app')) {
68
+ obj['app'] = _ApiClient["default"].convertToType(data['app'], 'String');
69
+ delete data['app'];
70
+ }
71
+
72
+ if (data.hasOwnProperty('admin')) {
73
+ obj['admin'] = _ApiClient["default"].convertToType(data['admin'], 'Boolean');
74
+ delete data['admin'];
75
+ }
76
+
77
+ if (data.hasOwnProperty('permission_set_id')) {
78
+ obj['permission_set_id'] = _ApiClient["default"].convertToType(data['permission_set_id'], 'String');
79
+ delete data['permission_set_id'];
80
+ }
81
+
82
+ if (Object.keys(data).length > 0) {
83
+ Object.assign(obj, data);
84
+ }
85
+ }
86
+
87
+ return obj;
88
+ }
89
+ }]);
90
+ return UserAccess;
91
+ }();
92
+ /**
93
+ * @member {module:model/UserAccess.AppEnum} app
94
+ */
95
+
96
+
97
+ UserAccess.prototype['app'] = undefined;
98
+ /**
99
+ * @member {Boolean} admin
100
+ */
101
+
102
+ UserAccess.prototype['admin'] = undefined;
103
+ /**
104
+ * @member {String} permission_set_id
105
+ */
106
+
107
+ UserAccess.prototype['permission_set_id'] = undefined;
108
+ /**
109
+ * Allowed values for the <code>app</code> property.
110
+ * @enum {String}
111
+ * @readonly
112
+ */
113
+
114
+ UserAccess['AppEnum'] = {
115
+ /**
116
+ * value: "sales"
117
+ * @const
118
+ */
119
+ "sales": "sales",
120
+
121
+ /**
122
+ * value: "projects"
123
+ * @const
124
+ */
125
+ "projects": "projects",
126
+
127
+ /**
128
+ * value: "campaigns"
129
+ * @const
130
+ */
131
+ "campaigns": "campaigns",
132
+
133
+ /**
134
+ * value: "global"
135
+ * @const
136
+ */
137
+ "global": "global",
138
+
139
+ /**
140
+ * value: "account_settings"
141
+ * @const
142
+ */
143
+ "account_settings": "account_settings"
144
+ };
145
+ var _default = UserAccess;
146
+ exports["default"] = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pipedrive",
3
- "version": "16.1.0",
3
+ "version": "17.1.0",
4
4
  "description": "Pipedrive REST client for NodeJS",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",