pipedrive 35.0.0 → 35.1.1

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
  */
@@ -201,14 +201,14 @@ export declare const DealsApiAxiosParamCreator: (configuration?: Configuration)
201
201
  * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive.
202
202
  * @param {number} [person_id] Will filter deals by the provided person ID. The upper limit of found deals associated with the person is 2000.
203
203
  * @param {number} [organization_id] Will filter deals by the provided organization ID. The upper limit of found deals associated with the organization is 2000.
204
- * @param {Set<'open' | 'won' | 'lost'>} [status] Will filter deals by the provided specific status. open &#x3D; Open, won &#x3D; Won, lost &#x3D; Lost. The upper limit of found deals associated with the status is 2000.
204
+ * @param {'open' | 'won' | 'lost'} [status] Will filter deals by the provided specific status. open &#x3D; Open, won &#x3D; Won, lost &#x3D; Lost. The upper limit of found deals associated with the status is 2000.
205
205
  * @param {Set<'deal.cc_email'>} [include_fields] Supports including optional fields in the results which are not provided by default
206
206
  * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
207
207
  * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
208
208
 
209
209
  * @throws {RequiredError}
210
210
  */
211
- searchDeals: (term: string, fields?: Set<'custom_fields' | 'notes' | 'title'>, exact_match?: boolean, person_id?: number, organization_id?: number, status?: Set<'open' | 'won' | 'lost'>, include_fields?: Set<'deal.cc_email'>, limit?: number, cursor?: string) => Promise<RequestArgs>;
211
+ searchDeals: (term: string, fields?: Set<'custom_fields' | 'notes' | 'title'>, exact_match?: boolean, person_id?: number, organization_id?: number, status?: 'open' | 'won' | 'lost', include_fields?: Set<'deal.cc_email'>, limit?: number, cursor?: string) => Promise<RequestArgs>;
212
212
  /**
213
213
  * Edits a discount added to a deal, changing the deal value if the deal has one-time products attached.
214
214
  * @summary Update a discount added to a deal
@@ -399,14 +399,14 @@ export declare const DealsApiFp: (configuration?: Configuration) => {
399
399
  * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is &lt;b&gt;not&lt;/b&gt; case sensitive.
400
400
  * @param {number} [person_id] Will filter deals by the provided person ID. The upper limit of found deals associated with the person is 2000.
401
401
  * @param {number} [organization_id] Will filter deals by the provided organization ID. The upper limit of found deals associated with the organization is 2000.
402
- * @param {Set<'open' | 'won' | 'lost'>} [status] Will filter deals by the provided specific status. open &#x3D; Open, won &#x3D; Won, lost &#x3D; Lost. The upper limit of found deals associated with the status is 2000.
402
+ * @param {'open' | 'won' | 'lost'} [status] Will filter deals by the provided specific status. open &#x3D; Open, won &#x3D; Won, lost &#x3D; Lost. The upper limit of found deals associated with the status is 2000.
403
403
  * @param {Set<'deal.cc_email'>} [include_fields] Supports including optional fields in the results which are not provided by default
404
404
  * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
405
405
  * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
406
406
 
407
407
  * @throws {RequiredError}
408
408
  */
409
- searchDeals(term: string, fields?: Set<'custom_fields' | 'notes' | 'title'>, exact_match?: boolean, person_id?: number, organization_id?: number, status?: Set<'open' | 'won' | 'lost'>, include_fields?: Set<'deal.cc_email'>, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetDealSearchResponse>>;
409
+ searchDeals(term: string, fields?: Set<'custom_fields' | 'notes' | 'title'>, exact_match?: boolean, person_id?: number, organization_id?: number, status?: 'open' | 'won' | 'lost', include_fields?: Set<'deal.cc_email'>, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetDealSearchResponse>>;
410
410
  /**
411
411
  * Edits a discount added to a deal, changing the deal value if the deal has one-time products attached.
412
412
  * @summary Update a discount added to a deal
@@ -1059,10 +1059,10 @@ export interface DealsApiSearchDealsRequest {
1059
1059
  readonly organization_id?: number;
1060
1060
  /**
1061
1061
  * Will filter deals by the provided specific status. open &#x3D; Open, won &#x3D; Won, lost &#x3D; Lost. The upper limit of found deals associated with the status is 2000.
1062
- * @type {Set<'open' | 'won' | 'lost'>}
1062
+ * @type {'open' | 'won' | 'lost'}
1063
1063
  * @memberof DealsApiSearchDeals
1064
1064
  */
1065
- readonly status?: Set<'open' | 'won' | 'lost'>;
1065
+ readonly status?: 'open' | 'won' | 'lost';
1066
1066
  /**
1067
1067
  * Supports including optional fields in the results which are not provided by default
1068
1068
  * @type {Set<'deal.cc_email'>}
@@ -693,7 +693,7 @@ export const DealsApiAxiosParamCreator = function (configuration) {
693
693
  * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is &lt;b&gt;not&lt;/b&gt; case sensitive.
694
694
  * @param {number} [person_id] Will filter deals by the provided person ID. The upper limit of found deals associated with the person is 2000.
695
695
  * @param {number} [organization_id] Will filter deals by the provided organization ID. The upper limit of found deals associated with the organization is 2000.
696
- * @param {Set<'open' | 'won' | 'lost'>} [status] Will filter deals by the provided specific status. open &#x3D; Open, won &#x3D; Won, lost &#x3D; Lost. The upper limit of found deals associated with the status is 2000.
696
+ * @param {'open' | 'won' | 'lost'} [status] Will filter deals by the provided specific status. open &#x3D; Open, won &#x3D; Won, lost &#x3D; Lost. The upper limit of found deals associated with the status is 2000.
697
697
  * @param {Set<'deal.cc_email'>} [include_fields] Supports including optional fields in the results which are not provided by default
698
698
  * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
699
699
  * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
@@ -734,7 +734,7 @@ export const DealsApiAxiosParamCreator = function (configuration) {
734
734
  localVarQueryParameter['organization_id'] = organization_id;
735
735
  }
736
736
  if (status) {
737
- localVarQueryParameter['status'] = Array.from(status).join(COLLECTION_FORMATS.csv);
737
+ localVarQueryParameter['status'] = status;
738
738
  }
739
739
  if (include_fields) {
740
740
  localVarQueryParameter['include_fields'] = Array.from(include_fields).join(COLLECTION_FORMATS.csv);
@@ -1075,7 +1075,7 @@ export const DealsApiFp = function (configuration) {
1075
1075
  * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is &lt;b&gt;not&lt;/b&gt; case sensitive.
1076
1076
  * @param {number} [person_id] Will filter deals by the provided person ID. The upper limit of found deals associated with the person is 2000.
1077
1077
  * @param {number} [organization_id] Will filter deals by the provided organization ID. The upper limit of found deals associated with the organization is 2000.
1078
- * @param {Set<'open' | 'won' | 'lost'>} [status] Will filter deals by the provided specific status. open &#x3D; Open, won &#x3D; Won, lost &#x3D; Lost. The upper limit of found deals associated with the status is 2000.
1078
+ * @param {'open' | 'won' | 'lost'} [status] Will filter deals by the provided specific status. open &#x3D; Open, won &#x3D; Won, lost &#x3D; Lost. The upper limit of found deals associated with the status is 2000.
1079
1079
  * @param {Set<'deal.cc_email'>} [include_fields] Supports including optional fields in the results which are not provided by default
1080
1080
  * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
1081
1081
  * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
@@ -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
  */
@@ -201,14 +201,14 @@ export declare const DealsApiAxiosParamCreator: (configuration?: Configuration)
201
201
  * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is &lt;b&gt;not&lt;/b&gt; case sensitive.
202
202
  * @param {number} [person_id] Will filter deals by the provided person ID. The upper limit of found deals associated with the person is 2000.
203
203
  * @param {number} [organization_id] Will filter deals by the provided organization ID. The upper limit of found deals associated with the organization is 2000.
204
- * @param {Set<'open' | 'won' | 'lost'>} [status] Will filter deals by the provided specific status. open &#x3D; Open, won &#x3D; Won, lost &#x3D; Lost. The upper limit of found deals associated with the status is 2000.
204
+ * @param {'open' | 'won' | 'lost'} [status] Will filter deals by the provided specific status. open &#x3D; Open, won &#x3D; Won, lost &#x3D; Lost. The upper limit of found deals associated with the status is 2000.
205
205
  * @param {Set<'deal.cc_email'>} [include_fields] Supports including optional fields in the results which are not provided by default
206
206
  * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
207
207
  * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
208
208
 
209
209
  * @throws {RequiredError}
210
210
  */
211
- searchDeals: (term: string, fields?: Set<'custom_fields' | 'notes' | 'title'>, exact_match?: boolean, person_id?: number, organization_id?: number, status?: Set<'open' | 'won' | 'lost'>, include_fields?: Set<'deal.cc_email'>, limit?: number, cursor?: string) => Promise<RequestArgs>;
211
+ searchDeals: (term: string, fields?: Set<'custom_fields' | 'notes' | 'title'>, exact_match?: boolean, person_id?: number, organization_id?: number, status?: 'open' | 'won' | 'lost', include_fields?: Set<'deal.cc_email'>, limit?: number, cursor?: string) => Promise<RequestArgs>;
212
212
  /**
213
213
  * Edits a discount added to a deal, changing the deal value if the deal has one-time products attached.
214
214
  * @summary Update a discount added to a deal
@@ -399,14 +399,14 @@ export declare const DealsApiFp: (configuration?: Configuration) => {
399
399
  * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is &lt;b&gt;not&lt;/b&gt; case sensitive.
400
400
  * @param {number} [person_id] Will filter deals by the provided person ID. The upper limit of found deals associated with the person is 2000.
401
401
  * @param {number} [organization_id] Will filter deals by the provided organization ID. The upper limit of found deals associated with the organization is 2000.
402
- * @param {Set<'open' | 'won' | 'lost'>} [status] Will filter deals by the provided specific status. open &#x3D; Open, won &#x3D; Won, lost &#x3D; Lost. The upper limit of found deals associated with the status is 2000.
402
+ * @param {'open' | 'won' | 'lost'} [status] Will filter deals by the provided specific status. open &#x3D; Open, won &#x3D; Won, lost &#x3D; Lost. The upper limit of found deals associated with the status is 2000.
403
403
  * @param {Set<'deal.cc_email'>} [include_fields] Supports including optional fields in the results which are not provided by default
404
404
  * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
405
405
  * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
406
406
 
407
407
  * @throws {RequiredError}
408
408
  */
409
- searchDeals(term: string, fields?: Set<'custom_fields' | 'notes' | 'title'>, exact_match?: boolean, person_id?: number, organization_id?: number, status?: Set<'open' | 'won' | 'lost'>, include_fields?: Set<'deal.cc_email'>, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetDealSearchResponse>>;
409
+ searchDeals(term: string, fields?: Set<'custom_fields' | 'notes' | 'title'>, exact_match?: boolean, person_id?: number, organization_id?: number, status?: 'open' | 'won' | 'lost', include_fields?: Set<'deal.cc_email'>, limit?: number, cursor?: string): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<GetDealSearchResponse>>;
410
410
  /**
411
411
  * Edits a discount added to a deal, changing the deal value if the deal has one-time products attached.
412
412
  * @summary Update a discount added to a deal
@@ -1059,10 +1059,10 @@ export interface DealsApiSearchDealsRequest {
1059
1059
  readonly organization_id?: number;
1060
1060
  /**
1061
1061
  * Will filter deals by the provided specific status. open &#x3D; Open, won &#x3D; Won, lost &#x3D; Lost. The upper limit of found deals associated with the status is 2000.
1062
- * @type {Set<'open' | 'won' | 'lost'>}
1062
+ * @type {'open' | 'won' | 'lost'}
1063
1063
  * @memberof DealsApiSearchDeals
1064
1064
  */
1065
- readonly status?: Set<'open' | 'won' | 'lost'>;
1065
+ readonly status?: 'open' | 'won' | 'lost';
1066
1066
  /**
1067
1067
  * Supports including optional fields in the results which are not provided by default
1068
1068
  * @type {Set<'deal.cc_email'>}
@@ -699,7 +699,7 @@ const DealsApiAxiosParamCreator = function (configuration) {
699
699
  * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is &lt;b&gt;not&lt;/b&gt; case sensitive.
700
700
  * @param {number} [person_id] Will filter deals by the provided person ID. The upper limit of found deals associated with the person is 2000.
701
701
  * @param {number} [organization_id] Will filter deals by the provided organization ID. The upper limit of found deals associated with the organization is 2000.
702
- * @param {Set<'open' | 'won' | 'lost'>} [status] Will filter deals by the provided specific status. open &#x3D; Open, won &#x3D; Won, lost &#x3D; Lost. The upper limit of found deals associated with the status is 2000.
702
+ * @param {'open' | 'won' | 'lost'} [status] Will filter deals by the provided specific status. open &#x3D; Open, won &#x3D; Won, lost &#x3D; Lost. The upper limit of found deals associated with the status is 2000.
703
703
  * @param {Set<'deal.cc_email'>} [include_fields] Supports including optional fields in the results which are not provided by default
704
704
  * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
705
705
  * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
@@ -740,7 +740,7 @@ const DealsApiAxiosParamCreator = function (configuration) {
740
740
  localVarQueryParameter['organization_id'] = organization_id;
741
741
  }
742
742
  if (status) {
743
- localVarQueryParameter['status'] = Array.from(status).join(base_1.COLLECTION_FORMATS.csv);
743
+ localVarQueryParameter['status'] = status;
744
744
  }
745
745
  if (include_fields) {
746
746
  localVarQueryParameter['include_fields'] = Array.from(include_fields).join(base_1.COLLECTION_FORMATS.csv);
@@ -1082,7 +1082,7 @@ const DealsApiFp = function (configuration) {
1082
1082
  * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is &lt;b&gt;not&lt;/b&gt; case sensitive.
1083
1083
  * @param {number} [person_id] Will filter deals by the provided person ID. The upper limit of found deals associated with the person is 2000.
1084
1084
  * @param {number} [organization_id] Will filter deals by the provided organization ID. The upper limit of found deals associated with the organization is 2000.
1085
- * @param {Set<'open' | 'won' | 'lost'>} [status] Will filter deals by the provided specific status. open &#x3D; Open, won &#x3D; Won, lost &#x3D; Lost. The upper limit of found deals associated with the status is 2000.
1085
+ * @param {'open' | 'won' | 'lost'} [status] Will filter deals by the provided specific status. open &#x3D; Open, won &#x3D; Won, lost &#x3D; Lost. The upper limit of found deals associated with the status is 2000.
1086
1086
  * @param {Set<'deal.cc_email'>} [include_fields] Supports including optional fields in the results which are not provided by default
1087
1087
  * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
1088
1088
  * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pipedrive",
3
- "version": "35.0.0",
3
+ "version": "35.1.1",
4
4
  "description": "Pipedrive REST client for NodeJS",
5
5
  "license": "MIT",
6
6
  "homepage": "https://developers.pipedrive.com",