pipedrive 13.3.4 → 15.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -35,10 +35,11 @@ var NewPersonAllOf = /*#__PURE__*/function () {
35
35
  /**
36
36
  * Constructs a new <code>NewPersonAllOf</code>.
37
37
  * @alias module:model/NewPersonAllOf
38
+ * @param name {String} The name of the person
38
39
  */
39
- function NewPersonAllOf() {
40
+ function NewPersonAllOf(name) {
40
41
  (0, _classCallCheck2["default"])(this, NewPersonAllOf);
41
- NewPersonAllOf.initialize(this);
42
+ NewPersonAllOf.initialize(this, name);
42
43
  }
43
44
  /**
44
45
  * Initializes the fields of this object.
@@ -49,7 +50,9 @@ var NewPersonAllOf = /*#__PURE__*/function () {
49
50
 
50
51
  (0, _createClass2["default"])(NewPersonAllOf, 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>NewPersonAllOf</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,9 +67,9 @@ var NewPersonAllOf = /*#__PURE__*/function () {
64
67
  if (data) {
65
68
  obj = obj || new NewPersonAllOf();
66
69
 
67
- if (data.hasOwnProperty('add_time')) {
68
- obj['add_time'] = _ApiClient["default"].convertToType(data['add_time'], 'String');
69
- delete data['add_time'];
70
+ if (data.hasOwnProperty('name')) {
71
+ obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
72
+ delete data['name'];
70
73
  }
71
74
 
72
75
  if (Object.keys(data).length > 0) {
@@ -80,11 +83,11 @@ var NewPersonAllOf = /*#__PURE__*/function () {
80
83
  return NewPersonAllOf;
81
84
  }();
82
85
  /**
83
- * The optional creation date & time of the person in UTC. Requires admin user API token. Format: YYYY-MM-DD HH:MM:SS
84
- * @member {String} add_time
86
+ * The name of the person
87
+ * @member {String} name
85
88
  */
86
89
 
87
90
 
88
- NewPersonAllOf.prototype['add_time'] = undefined;
91
+ NewPersonAllOf.prototype['name'] = undefined;
89
92
  var _default = NewPersonAllOf;
90
93
  exports["default"] = _default;
@@ -0,0 +1,240 @@
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 _BasePersonItemPhone = _interopRequireDefault(require("./BasePersonItemPhone"));
17
+
18
+ var _BasicPerson = _interopRequireDefault(require("./BasicPerson"));
19
+
20
+ var _BasicPersonEmail = _interopRequireDefault(require("./BasicPersonEmail"));
21
+
22
+ var _MarketingStatus = _interopRequireDefault(require("./MarketingStatus"));
23
+
24
+ var _UpdatePersonAllOf = _interopRequireDefault(require("./UpdatePersonAllOf"));
25
+
26
+ var _VisibleTo = _interopRequireDefault(require("./VisibleTo"));
27
+
28
+ /**
29
+ * Pipedrive API v1
30
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
31
+ *
32
+ * The version of the OpenAPI document: 1.0.0
33
+ *
34
+ *
35
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
36
+ * https://openapi-generator.tech
37
+ * Do not edit the class manually.
38
+ *
39
+ */
40
+
41
+ /**
42
+ * The UpdatePerson model module.
43
+ * @module model/UpdatePerson
44
+ * @version 1.0.0
45
+ */
46
+ var UpdatePerson = /*#__PURE__*/function () {
47
+ /**
48
+ * Constructs a new <code>UpdatePerson</code>.
49
+ * @alias module:model/UpdatePerson
50
+ * @implements module:model/UpdatePersonAllOf
51
+ * @implements module:model/BasicPerson
52
+ */
53
+ function UpdatePerson() {
54
+ (0, _classCallCheck2["default"])(this, UpdatePerson);
55
+
56
+ _UpdatePersonAllOf["default"].initialize(this);
57
+
58
+ _BasicPerson["default"].initialize(this);
59
+
60
+ UpdatePerson.initialize(this);
61
+ }
62
+ /**
63
+ * Initializes the fields of this object.
64
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
65
+ * Only for internal use.
66
+ */
67
+
68
+
69
+ (0, _createClass2["default"])(UpdatePerson, null, [{
70
+ key: "initialize",
71
+ value: function initialize(obj) {}
72
+ /**
73
+ * Constructs a <code>UpdatePerson</code> from a plain JavaScript object, optionally creating a new instance.
74
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
75
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
76
+ * @param {module:model/UpdatePerson} obj Optional instance to populate.
77
+ * @return {module:model/UpdatePerson} The populated <code>UpdatePerson</code> instance.
78
+ */
79
+
80
+ }, {
81
+ key: "constructFromObject",
82
+ value: function constructFromObject(data, obj) {
83
+ if (data) {
84
+ obj = obj || new UpdatePerson();
85
+
86
+ _UpdatePersonAllOf["default"].constructFromObject(data, obj);
87
+
88
+ _BasicPerson["default"].constructFromObject(data, obj);
89
+
90
+ if (data.hasOwnProperty('name')) {
91
+ obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
92
+ delete data['name'];
93
+ }
94
+
95
+ if (data.hasOwnProperty('owner_id')) {
96
+ obj['owner_id'] = _ApiClient["default"].convertToType(data['owner_id'], 'Number');
97
+ delete data['owner_id'];
98
+ }
99
+
100
+ if (data.hasOwnProperty('org_id')) {
101
+ obj['org_id'] = _ApiClient["default"].convertToType(data['org_id'], 'Number');
102
+ delete data['org_id'];
103
+ }
104
+
105
+ if (data.hasOwnProperty('email')) {
106
+ obj['email'] = _ApiClient["default"].convertToType(data['email'], [_BasicPersonEmail["default"]]);
107
+ delete data['email'];
108
+ }
109
+
110
+ if (data.hasOwnProperty('phone')) {
111
+ obj['phone'] = _ApiClient["default"].convertToType(data['phone'], [_BasePersonItemPhone["default"]]);
112
+ delete data['phone'];
113
+ }
114
+
115
+ if (data.hasOwnProperty('visible_to')) {
116
+ obj['visible_to'] = _ApiClient["default"].convertToType(data['visible_to'], _VisibleTo["default"]);
117
+ delete data['visible_to'];
118
+ }
119
+
120
+ if (data.hasOwnProperty('marketing_status')) {
121
+ obj['marketing_status'] = _ApiClient["default"].convertToType(data['marketing_status'], _MarketingStatus["default"]);
122
+ delete data['marketing_status'];
123
+ }
124
+
125
+ if (data.hasOwnProperty('add_time')) {
126
+ obj['add_time'] = _ApiClient["default"].convertToType(data['add_time'], 'String');
127
+ delete data['add_time'];
128
+ }
129
+
130
+ if (Object.keys(data).length > 0) {
131
+ Object.assign(obj, data);
132
+ }
133
+ }
134
+
135
+ return obj;
136
+ }
137
+ }]);
138
+ return UpdatePerson;
139
+ }();
140
+ /**
141
+ * The name of the person
142
+ * @member {String} name
143
+ */
144
+
145
+
146
+ UpdatePerson.prototype['name'] = undefined;
147
+ /**
148
+ * The ID of the user who will be marked as the owner of this person. When omitted, the authorized user ID will be used.
149
+ * @member {Number} owner_id
150
+ */
151
+
152
+ UpdatePerson.prototype['owner_id'] = undefined;
153
+ /**
154
+ * The ID of the organization this person will belong to
155
+ * @member {Number} org_id
156
+ */
157
+
158
+ UpdatePerson.prototype['org_id'] = undefined;
159
+ /**
160
+ * List of email data related to the person
161
+ * @member {Array.<module:model/BasicPersonEmail>} email
162
+ */
163
+
164
+ UpdatePerson.prototype['email'] = undefined;
165
+ /**
166
+ * List of phone data related to the person
167
+ * @member {Array.<module:model/BasePersonItemPhone>} phone
168
+ */
169
+
170
+ UpdatePerson.prototype['phone'] = undefined;
171
+ /**
172
+ * The visibility of the person. 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 &amp; 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>
173
+ * @member {module:model/VisibleTo} visible_to
174
+ */
175
+
176
+ UpdatePerson.prototype['visible_to'] = undefined;
177
+ /**
178
+ * If the person does not have a valid email address, then the marketing status is **not set** and `no_consent` is returned for the `marketing_status` value when the new person is created. If the change is forbidden, the status will remain unchanged for every call that tries to modify the marketing status. Please be aware that it is only allowed **once** to change the marketing status from an old status to a new one.<table><tr><th>Value</th><th>Description</th></tr><tr><td>`no_consent`</td><td>The customer has not given consent to receive any marketing communications</td></tr><tr><td>`unsubscribed`</td><td>The customers have unsubscribed from ALL marketing communications</td></tr><tr><td>`subscribed`</td><td>The customers are subscribed and are counted towards marketing caps</td></tr><tr><td>`archived`</td><td>The customers with `subscribed` status can be moved to `archived` to save consent, but they are not paid for</td></tr></table>
179
+ * @member {module:model/MarketingStatus} marketing_status
180
+ */
181
+
182
+ UpdatePerson.prototype['marketing_status'] = undefined;
183
+ /**
184
+ * The optional creation date & time of the person in UTC. Requires admin user API token. Format: YYYY-MM-DD HH:MM:SS
185
+ * @member {String} add_time
186
+ */
187
+
188
+ UpdatePerson.prototype['add_time'] = undefined; // Implement UpdatePersonAllOf interface:
189
+
190
+ /**
191
+ * The name of the person
192
+ * @member {String} name
193
+ */
194
+
195
+ _UpdatePersonAllOf["default"].prototype['name'] = undefined; // Implement BasicPerson interface:
196
+
197
+ /**
198
+ * The ID of the user who will be marked as the owner of this person. When omitted, the authorized user ID will be used.
199
+ * @member {Number} owner_id
200
+ */
201
+
202
+ _BasicPerson["default"].prototype['owner_id'] = undefined;
203
+ /**
204
+ * The ID of the organization this person will belong to
205
+ * @member {Number} org_id
206
+ */
207
+
208
+ _BasicPerson["default"].prototype['org_id'] = undefined;
209
+ /**
210
+ * List of email data related to the person
211
+ * @member {Array.<module:model/BasicPersonEmail>} email
212
+ */
213
+
214
+ _BasicPerson["default"].prototype['email'] = undefined;
215
+ /**
216
+ * List of phone data related to the person
217
+ * @member {Array.<module:model/BasePersonItemPhone>} phone
218
+ */
219
+
220
+ _BasicPerson["default"].prototype['phone'] = undefined;
221
+ /**
222
+ * The visibility of the person. 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 &amp; 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>
223
+ * @member {module:model/VisibleTo} visible_to
224
+ */
225
+
226
+ _BasicPerson["default"].prototype['visible_to'] = undefined;
227
+ /**
228
+ * If the person does not have a valid email address, then the marketing status is **not set** and `no_consent` is returned for the `marketing_status` value when the new person is created. If the change is forbidden, the status will remain unchanged for every call that tries to modify the marketing status. Please be aware that it is only allowed **once** to change the marketing status from an old status to a new one.<table><tr><th>Value</th><th>Description</th></tr><tr><td>`no_consent`</td><td>The customer has not given consent to receive any marketing communications</td></tr><tr><td>`unsubscribed`</td><td>The customers have unsubscribed from ALL marketing communications</td></tr><tr><td>`subscribed`</td><td>The customers are subscribed and are counted towards marketing caps</td></tr><tr><td>`archived`</td><td>The customers with `subscribed` status can be moved to `archived` to save consent, but they are not paid for</td></tr></table>
229
+ * @member {module:model/MarketingStatus} marketing_status
230
+ */
231
+
232
+ _BasicPerson["default"].prototype['marketing_status'] = undefined;
233
+ /**
234
+ * The optional creation date & time of the person in UTC. Requires admin user API token. Format: YYYY-MM-DD HH:MM:SS
235
+ * @member {String} add_time
236
+ */
237
+
238
+ _BasicPerson["default"].prototype['add_time'] = undefined;
239
+ var _default = UpdatePerson;
240
+ 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 UpdatePersonAllOf model module.
31
+ * @module model/UpdatePersonAllOf
32
+ * @version 1.0.0
33
+ */
34
+ var UpdatePersonAllOf = /*#__PURE__*/function () {
35
+ /**
36
+ * Constructs a new <code>UpdatePersonAllOf</code>.
37
+ * @alias module:model/UpdatePersonAllOf
38
+ */
39
+ function UpdatePersonAllOf() {
40
+ (0, _classCallCheck2["default"])(this, UpdatePersonAllOf);
41
+ UpdatePersonAllOf.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"])(UpdatePersonAllOf, null, [{
51
+ key: "initialize",
52
+ value: function initialize(obj) {}
53
+ /**
54
+ * Constructs a <code>UpdatePersonAllOf</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/UpdatePersonAllOf} obj Optional instance to populate.
58
+ * @return {module:model/UpdatePersonAllOf} The populated <code>UpdatePersonAllOf</code> instance.
59
+ */
60
+
61
+ }, {
62
+ key: "constructFromObject",
63
+ value: function constructFromObject(data, obj) {
64
+ if (data) {
65
+ obj = obj || new UpdatePersonAllOf();
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 UpdatePersonAllOf;
81
+ }();
82
+ /**
83
+ * The name of the person
84
+ * @member {String} name
85
+ */
86
+
87
+
88
+ UpdatePersonAllOf.prototype['name'] = undefined;
89
+ var _default = UpdatePersonAllOf;
90
+ exports["default"] = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pipedrive",
3
- "version": "13.3.4",
3
+ "version": "15.0.0",
4
4
  "description": "Pipedrive REST client for NodeJS",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",