pipedrive 13.1.0 → 13.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -109,7 +109,7 @@ var ActivityTypeListResponse = /*#__PURE__*/function () {
109
109
 
110
110
  ActivityTypeListResponse.prototype['success'] = undefined;
111
111
  /**
112
- * The array of ActivityTypes
112
+ * The array of activity types
113
113
  * @member {Array.<module:model/ActivityTypeObjectResponse>} data
114
114
  */
115
115
 
@@ -123,7 +123,7 @@ ActivityTypeListResponse.prototype['data'] = undefined; // Implement BaseRespons
123
123
  _BaseResponse["default"].prototype['success'] = undefined; // Implement ActivityTypeListResponseAllOf interface:
124
124
 
125
125
  /**
126
- * The array of ActivityTypes
126
+ * The array of activity types
127
127
  * @member {Array.<module:model/ActivityTypeObjectResponse>} data
128
128
  */
129
129
 
@@ -82,7 +82,7 @@ var ActivityTypeListResponseAllOf = /*#__PURE__*/function () {
82
82
  return ActivityTypeListResponseAllOf;
83
83
  }();
84
84
  /**
85
- * The array of ActivityTypes
85
+ * The array of activity types
86
86
  * @member {Array.<module:model/ActivityTypeObjectResponse>} data
87
87
  */
88
88
 
@@ -127,14 +127,14 @@ var ActivityTypeObjectResponse = /*#__PURE__*/function () {
127
127
  return ActivityTypeObjectResponse;
128
128
  }();
129
129
  /**
130
- * The ID of the ActivityType
130
+ * The ID of the activity type
131
131
  * @member {Number} id
132
132
  */
133
133
 
134
134
 
135
135
  ActivityTypeObjectResponse.prototype['id'] = undefined;
136
136
  /**
137
- * The name of the ActivityType
137
+ * The name of the activity type
138
138
  * @member {String} name
139
139
  */
140
140
 
@@ -145,43 +145,43 @@ ActivityTypeObjectResponse.prototype['name'] = undefined;
145
145
 
146
146
  ActivityTypeObjectResponse.prototype['icon_key'] = undefined;
147
147
  /**
148
- * A designated color for the ActivityType in 6-character HEX format (e.g. `FFFFFF` for white, `000000` for black)
148
+ * A designated color for the activity type in 6-character HEX format (e.g. `FFFFFF` for white, `000000` for black)
149
149
  * @member {String} color
150
150
  */
151
151
 
152
152
  ActivityTypeObjectResponse.prototype['color'] = undefined;
153
153
  /**
154
- * An order number for this ActivityType. Order numbers should be used to order the types in the ActivityType selections.
154
+ * An order number for the activity type. Order numbers should be used to order the types in the activity type selections.
155
155
  * @member {Number} order_nr
156
156
  */
157
157
 
158
158
  ActivityTypeObjectResponse.prototype['order_nr'] = undefined;
159
159
  /**
160
- * A string that is generated by the API based on the given name of the ActivityType upon creation
160
+ * A string that is generated by the API based on the given name of the activity type upon creation
161
161
  * @member {String} key_string
162
162
  */
163
163
 
164
164
  ActivityTypeObjectResponse.prototype['key_string'] = undefined;
165
165
  /**
166
- * The active flag of the ActivityType
166
+ * The active flag of the activity type
167
167
  * @member {Boolean} active_flag
168
168
  */
169
169
 
170
170
  ActivityTypeObjectResponse.prototype['active_flag'] = undefined;
171
171
  /**
172
- * Whether the ActivityType is a custom one or not
172
+ * Whether the activity type is a custom one or not
173
173
  * @member {Boolean} is_custom_flag
174
174
  */
175
175
 
176
176
  ActivityTypeObjectResponse.prototype['is_custom_flag'] = undefined;
177
177
  /**
178
- * The creation time of the ActivityType
178
+ * The creation time of the activity type
179
179
  * @member {String} add_time
180
180
  */
181
181
 
182
182
  ActivityTypeObjectResponse.prototype['add_time'] = undefined;
183
183
  /**
184
- * The update time of the ActivityType
184
+ * The update time of the activity type
185
185
  * @member {String} update_time
186
186
  */
187
187
 
@@ -153,11 +153,6 @@ var BaseMailThread = /*#__PURE__*/function () {
153
153
  delete data['mail_link_tracking_enabled_flag'];
154
154
  }
155
155
 
156
- if (data.hasOwnProperty('write_flag')) {
157
- obj['write_flag'] = _ApiClient["default"].convertToType(data['write_flag'], 'Boolean');
158
- delete data['write_flag'];
159
- }
160
-
161
156
  if (data.hasOwnProperty('parties')) {
162
157
  obj['parties'] = _BaseMailThreadAllOfParties["default"].constructFromObject(data['parties']);
163
158
  delete data['parties'];
@@ -368,12 +363,6 @@ BaseMailThread.prototype['smart_bcc_flag'] = undefined;
368
363
  */
369
364
 
370
365
  BaseMailThread.prototype['mail_link_tracking_enabled_flag'] = undefined;
371
- /**
372
- * We strongly advise you to avoid the use of this property. We will soon deprecate this property
373
- * @member {Boolean} write_flag
374
- */
375
-
376
- BaseMailThread.prototype['write_flag'] = undefined;
377
366
  /**
378
367
  * @member {module:model/BaseMailThreadAllOfParties} parties
379
368
  */
@@ -595,13 +584,7 @@ _CommonMailThread["default"].prototype['smart_bcc_flag'] = undefined;
595
584
  * @member {module:model/NumberBooleanDefault0} mail_link_tracking_enabled_flag
596
585
  */
597
586
 
598
- _CommonMailThread["default"].prototype['mail_link_tracking_enabled_flag'] = undefined;
599
- /**
600
- * We strongly advise you to avoid the use of this property. We will soon deprecate this property
601
- * @member {Boolean} write_flag
602
- */
603
-
604
- _CommonMailThread["default"].prototype['write_flag'] = undefined; // Implement BaseMailThreadAllOf interface:
587
+ _CommonMailThread["default"].prototype['mail_link_tracking_enabled_flag'] = undefined; // Implement BaseMailThreadAllOf interface:
605
588
 
606
589
  /**
607
590
  * @member {module:model/BaseMailThreadAllOfParties} parties
@@ -153,11 +153,6 @@ var BaseMailThreadMessages = /*#__PURE__*/function () {
153
153
  delete data['mail_link_tracking_enabled_flag'];
154
154
  }
155
155
 
156
- if (data.hasOwnProperty('write_flag')) {
157
- obj['write_flag'] = _ApiClient["default"].convertToType(data['write_flag'], 'Boolean');
158
- delete data['write_flag'];
159
- }
160
-
161
156
  if (data.hasOwnProperty('from')) {
162
157
  obj['from'] = _ApiClient["default"].convertToType(data['from'], [_MailThreadParticipant["default"]]);
163
158
  delete data['from'];
@@ -318,12 +313,6 @@ BaseMailThreadMessages.prototype['smart_bcc_flag'] = undefined;
318
313
  */
319
314
 
320
315
  BaseMailThreadMessages.prototype['mail_link_tracking_enabled_flag'] = undefined;
321
- /**
322
- * We strongly advise you to avoid the use of this property. We will soon deprecate this property
323
- * @member {Boolean} write_flag
324
- */
325
-
326
- BaseMailThreadMessages.prototype['write_flag'] = undefined;
327
316
  /**
328
317
  * Senders of the mail thread
329
318
  * @member {Array.<module:model/MailThreadParticipant>} from
@@ -486,13 +475,7 @@ _CommonMailThread["default"].prototype['smart_bcc_flag'] = undefined;
486
475
  * @member {module:model/NumberBooleanDefault0} mail_link_tracking_enabled_flag
487
476
  */
488
477
 
489
- _CommonMailThread["default"].prototype['mail_link_tracking_enabled_flag'] = undefined;
490
- /**
491
- * We strongly advise you to avoid the use of this property. We will soon deprecate this property
492
- * @member {Boolean} write_flag
493
- */
494
-
495
- _CommonMailThread["default"].prototype['write_flag'] = undefined; // Implement BaseMailThreadMessagesAllOf interface:
478
+ _CommonMailThread["default"].prototype['mail_link_tracking_enabled_flag'] = undefined; // Implement BaseMailThreadMessagesAllOf interface:
496
479
 
497
480
  /**
498
481
  * Senders of the mail thread
@@ -17,6 +17,8 @@ var _BasePersonItemPhone = _interopRequireDefault(require("./BasePersonItemPhone
17
17
 
18
18
  var _BasicPersonEmail = _interopRequireDefault(require("./BasicPersonEmail"));
19
19
 
20
+ var _MarketingStatus = _interopRequireDefault(require("./MarketingStatus"));
21
+
20
22
  var _VisibleTo = _interopRequireDefault(require("./VisibleTo"));
21
23
 
22
24
  /**
@@ -100,6 +102,11 @@ var BasicPerson = /*#__PURE__*/function () {
100
102
  delete data['visible_to'];
101
103
  }
102
104
 
105
+ if (data.hasOwnProperty('marketing_status')) {
106
+ obj['marketing_status'] = _ApiClient["default"].convertToType(data['marketing_status'], _MarketingStatus["default"]);
107
+ delete data['marketing_status'];
108
+ }
109
+
103
110
  if (Object.keys(data).length > 0) {
104
111
  Object.assign(obj, data);
105
112
  }
@@ -147,5 +154,11 @@ BasicPerson.prototype['phone'] = undefined;
147
154
  */
148
155
 
149
156
  BasicPerson.prototype['visible_to'] = undefined;
157
+ /**
158
+ * 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>
159
+ * @member {module:model/MarketingStatus} marketing_status
160
+ */
161
+
162
+ BasicPerson.prototype['marketing_status'] = undefined;
150
163
  var _default = BasicPerson;
151
164
  exports["default"] = _default;
@@ -136,11 +136,6 @@ var CommonMailThread = /*#__PURE__*/function () {
136
136
  delete data['mail_link_tracking_enabled_flag'];
137
137
  }
138
138
 
139
- if (data.hasOwnProperty('write_flag')) {
140
- obj['write_flag'] = _ApiClient["default"].convertToType(data['write_flag'], 'Boolean');
141
- delete data['write_flag'];
142
- }
143
-
144
139
  if (Object.keys(data).length > 0) {
145
140
  Object.assign(obj, data);
146
141
  }
@@ -236,11 +231,5 @@ CommonMailThread.prototype['smart_bcc_flag'] = undefined;
236
231
  */
237
232
 
238
233
  CommonMailThread.prototype['mail_link_tracking_enabled_flag'] = undefined;
239
- /**
240
- * We strongly advise you to avoid the use of this property. We will soon deprecate this property
241
- * @member {Boolean} write_flag
242
- */
243
-
244
- CommonMailThread.prototype['write_flag'] = undefined;
245
234
  var _default = CommonMailThread;
246
235
  exports["default"] = _default;
@@ -208,11 +208,6 @@ var MailMessageData = /*#__PURE__*/function () {
208
208
  delete data['has_real_attachments_flag'];
209
209
  }
210
210
 
211
- if (data.hasOwnProperty('write_flag')) {
212
- obj['write_flag'] = _ApiClient["default"].convertToType(data['write_flag'], 'Boolean');
213
- delete data['write_flag'];
214
- }
215
-
216
211
  if (Object.keys(data).length > 0) {
217
212
  Object.assign(obj, data);
218
213
  }
@@ -392,12 +387,6 @@ MailMessageData.prototype['has_inline_attachments_flag'] = undefined;
392
387
  */
393
388
 
394
389
  MailMessageData.prototype['has_real_attachments_flag'] = undefined;
395
- /**
396
- * We strongly advise you to avoid the use of this property. We will soon deprecate this property.
397
- * @member {Boolean} write_flag
398
- */
399
-
400
- MailMessageData.prototype['write_flag'] = undefined;
401
390
  /**
402
391
  * Allowed values for the <code>mail_tracking_status</code> property.
403
392
  * @enum {String}
@@ -223,11 +223,6 @@ var MailMessageItemForList = /*#__PURE__*/function () {
223
223
  delete data['has_real_attachments_flag'];
224
224
  }
225
225
 
226
- if (data.hasOwnProperty('write_flag')) {
227
- obj['write_flag'] = _ApiClient["default"].convertToType(data['write_flag'], 'Boolean');
228
- delete data['write_flag'];
229
- }
230
-
231
226
  if (data.hasOwnProperty('nylas_id')) {
232
227
  obj['nylas_id'] = _ApiClient["default"].convertToType(data['nylas_id'], 'String');
233
228
  delete data['nylas_id'];
@@ -452,12 +447,6 @@ MailMessageItemForList.prototype['has_inline_attachments_flag'] = undefined;
452
447
  */
453
448
 
454
449
  MailMessageItemForList.prototype['has_real_attachments_flag'] = undefined;
455
- /**
456
- * We strongly advise you to avoid the use of this property. We will soon deprecate this property.
457
- * @member {Boolean} write_flag
458
- */
459
-
460
- MailMessageItemForList.prototype['write_flag'] = undefined;
461
450
  /**
462
451
  * The Mail Message ID assigned by the sync provider
463
452
  * @member {String} nylas_id
@@ -680,13 +669,7 @@ _MailMessageData["default"].prototype['has_inline_attachments_flag'] = undefined
680
669
  * @member {module:model/NumberBooleanDefault0} has_real_attachments_flag
681
670
  */
682
671
 
683
- _MailMessageData["default"].prototype['has_real_attachments_flag'] = undefined;
684
- /**
685
- * We strongly advise you to avoid the use of this property. We will soon deprecate this property.
686
- * @member {Boolean} write_flag
687
- */
688
-
689
- _MailMessageData["default"].prototype['write_flag'] = undefined; // Implement MailMessageItemForListAllOf interface:
672
+ _MailMessageData["default"].prototype['has_real_attachments_flag'] = undefined; // Implement MailMessageItemForListAllOf interface:
690
673
 
691
674
  /**
692
675
  * The Mail Message ID assigned by the sync provider
@@ -0,0 +1,69 @@
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 _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
15
+
16
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
17
+
18
+ /**
19
+ * Pipedrive API v1
20
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
21
+ *
22
+ * The version of the OpenAPI document: 1.0.0
23
+ *
24
+ *
25
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
26
+ * https://openapi-generator.tech
27
+ * Do not edit the class manually.
28
+ *
29
+ */
30
+
31
+ /**
32
+ * Enum class MarketingStatus.
33
+ * @enum {}
34
+ * @readonly
35
+ */
36
+ var MarketingStatus = /*#__PURE__*/function () {
37
+ function MarketingStatus() {
38
+ (0, _classCallCheck2["default"])(this, MarketingStatus);
39
+ (0, _defineProperty2["default"])(this, "no_consent", "no_consent");
40
+ (0, _defineProperty2["default"])(this, "unsubscribed", "unsubscribed");
41
+ (0, _defineProperty2["default"])(this, "subscribed", "subscribed");
42
+ (0, _defineProperty2["default"])(this, "archived", "archived");
43
+ }
44
+
45
+ (0, _createClass2["default"])(MarketingStatus, null, [{
46
+ key: "constructFromObject",
47
+ value:
48
+ /**
49
+ * Returns a <code>MarketingStatus</code> enum value from a Javascript object name.
50
+ * @param {Object} data The plain JavaScript object containing the name of the enum value.
51
+ * @return {module:model/MarketingStatus} The enum <code>MarketingStatus</code> value.
52
+ */
53
+ function constructFromObject(object) {
54
+ return object;
55
+ }
56
+ /**
57
+ * Initializes the fields of this object.
58
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
59
+ * Only for internal use.
60
+ */
61
+
62
+ }, {
63
+ key: "initialize",
64
+ value: function initialize(obj) {}
65
+ }]);
66
+ return MarketingStatus;
67
+ }();
68
+
69
+ exports["default"] = MarketingStatus;
@@ -19,6 +19,8 @@ var _BasicPerson = _interopRequireDefault(require("./BasicPerson"));
19
19
 
20
20
  var _BasicPersonEmail = _interopRequireDefault(require("./BasicPersonEmail"));
21
21
 
22
+ var _MarketingStatus = _interopRequireDefault(require("./MarketingStatus"));
23
+
22
24
  var _NewPersonAllOf = _interopRequireDefault(require("./NewPersonAllOf"));
23
25
 
24
26
  var _VisibleTo = _interopRequireDefault(require("./VisibleTo"));
@@ -118,6 +120,11 @@ var NewPerson = /*#__PURE__*/function () {
118
120
  delete data['visible_to'];
119
121
  }
120
122
 
123
+ if (data.hasOwnProperty('marketing_status')) {
124
+ obj['marketing_status'] = _ApiClient["default"].convertToType(data['marketing_status'], _MarketingStatus["default"]);
125
+ delete data['marketing_status'];
126
+ }
127
+
121
128
  if (data.hasOwnProperty('add_time')) {
122
129
  obj['add_time'] = _ApiClient["default"].convertToType(data['add_time'], 'String');
123
130
  delete data['add_time'];
@@ -170,6 +177,12 @@ NewPerson.prototype['phone'] = undefined;
170
177
  */
171
178
 
172
179
  NewPerson.prototype['visible_to'] = undefined;
180
+ /**
181
+ * 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>
182
+ * @member {module:model/MarketingStatus} marketing_status
183
+ */
184
+
185
+ NewPerson.prototype['marketing_status'] = undefined;
173
186
  /**
174
187
  * The optional creation date & time of the person in UTC. Requires admin user API token. Format: YYYY-MM-DD HH:MM:SS
175
188
  * @member {String} add_time
@@ -212,7 +225,13 @@ _BasicPerson["default"].prototype['phone'] = undefined;
212
225
  * @member {module:model/VisibleTo} visible_to
213
226
  */
214
227
 
215
- _BasicPerson["default"].prototype['visible_to'] = undefined; // Implement NewPersonAllOf interface:
228
+ _BasicPerson["default"].prototype['visible_to'] = undefined;
229
+ /**
230
+ * 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>
231
+ * @member {module:model/MarketingStatus} marketing_status
232
+ */
233
+
234
+ _BasicPerson["default"].prototype['marketing_status'] = undefined; // Implement NewPersonAllOf interface:
216
235
 
217
236
  /**
218
237
  * The optional creation date & time of the person in UTC. Requires admin user API token. Format: YYYY-MM-DD HH:MM:SS
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pipedrive",
3
- "version": "13.1.0",
3
+ "version": "13.2.0",
4
4
  "description": "Pipedrive REST client for NodeJS",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",