pipedrive 35.0.0 → 35.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.
@@ -87,6 +87,11 @@ export interface Lead {
87
87
  */
88
88
  'is_archived': boolean;
89
89
  /**
90
+ * The reason for archiving the lead. Automatically cleared when the lead is unarchived.
91
+ * @type {string}
92
+ */
93
+ 'archive_reason': string | null;
94
+ /**
90
95
  * A flag indicating whether the lead was seen by someone in the Pipedrive UI
91
96
  * @type {boolean}
92
97
  */
@@ -47,6 +47,11 @@ export interface UpdateLeadRequest {
47
47
  */
48
48
  'is_archived'?: boolean;
49
49
  /**
50
+ * The reason for archiving the lead. Can only be provided when `is_archived` is being set to `true` in the same request, or when updating a lead that\'s already archived — providing it otherwise will return a 400 error. Automatically cleared when the lead is unarchived. If archiving with a reason is required for your company, archiving a lead without providing one will also return a 400 error.
51
+ * @type {string}
52
+ */
53
+ 'archive_reason'?: string | null;
54
+ /**
50
55
  *
51
56
  * @type {LeadValue}
52
57
  */
@@ -87,6 +87,11 @@ export interface Lead {
87
87
  */
88
88
  'is_archived': boolean;
89
89
  /**
90
+ * The reason for archiving the lead. Automatically cleared when the lead is unarchived.
91
+ * @type {string}
92
+ */
93
+ 'archive_reason': string | null;
94
+ /**
90
95
  * A flag indicating whether the lead was seen by someone in the Pipedrive UI
91
96
  * @type {boolean}
92
97
  */
@@ -47,6 +47,11 @@ export interface UpdateLeadRequest {
47
47
  */
48
48
  'is_archived'?: boolean;
49
49
  /**
50
+ * The reason for archiving the lead. Can only be provided when `is_archived` is being set to `true` in the same request, or when updating a lead that\'s already archived — providing it otherwise will return a 400 error. Automatically cleared when the lead is unarchived. If archiving with a reason is required for your company, archiving a lead without providing one will also return a 400 error.
51
+ * @type {string}
52
+ */
53
+ 'archive_reason'?: string | null;
54
+ /**
50
55
  *
51
56
  * @type {LeadValue}
52
57
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pipedrive",
3
- "version": "35.0.0",
3
+ "version": "35.1.0",
4
4
  "description": "Pipedrive REST client for NodeJS",
5
5
  "license": "MIT",
6
6
  "homepage": "https://developers.pipedrive.com",