Skip to content

Commit 1d38456

Browse files
author
pipedrive-bot
committed
Build 227 - version-patch
1 parent f0db137 commit 1d38456

File tree

11 files changed

+695
-34
lines changed

11 files changed

+695
-34
lines changed

CHANGELOG.md

Lines changed: 621 additions & 0 deletions
Large diffs are not rendered by default.

src/versions/v1/models/base-deal.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ export interface BaseDeal {
6666
*/
6767
'deleted'?: boolean;
6868
/**
69+
* Whether the deal is archived or not
70+
* @type {boolean}
71+
*/
72+
'is_archived'?: boolean;
73+
/**
6974
* The status of the deal
7075
* @type {string}
7176
*/

src/versions/v1/models/new-deal-parameters.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,16 @@ export interface NewDealParameters {
6161
*/
6262
'stage_id'?: number;
6363
/**
64+
* Whether the deal is archived or not. If omitted, is_archived will be set to false.
65+
* @type {boolean}
66+
*/
67+
'is_archived'?: boolean;
68+
/**
69+
* The optional date and time of archiving the deal in UTC. Format: YYYY-MM-DD HH:MM:SS. If omitted and `is_archived` is true, it will be set to the current date and time.
70+
* @type {string}
71+
*/
72+
'archive_time'?: string;
73+
/**
6474
* open = Open, won = Won, lost = Lost, deleted = Deleted. If omitted, status will be set to open.
6575
* @type {string}
6676
*/

src/versions/v1/models/update-deal-parameters.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ export interface UpdateDealParameters {
6161
*/
6262
'stage_id'?: number;
6363
/**
64+
* Whether the deal is archived or not
65+
* @type {boolean}
66+
*/
67+
'is_archived'?: boolean;
68+
/**
6469
* open = Open, won = Won, lost = Lost, deleted = Deleted.
6570
* @type {string}
6671
*/

src/versions/v2/api/beta-api.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export const BetaApiAxiosParamCreator = function (configuration?: Configuration)
7777

7878
// authentication oauth2 required
7979
// oauth required
80-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full", "leads:full"], configuration)
80+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration)
8181

8282

8383

@@ -119,7 +119,7 @@ export const BetaApiAxiosParamCreator = function (configuration?: Configuration)
119119

120120
// authentication oauth2 required
121121
// oauth required
122-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full", "leads:full"], configuration)
122+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["leads:full"], configuration)
123123

124124

125125

@@ -212,7 +212,7 @@ export const BetaApiAxiosParamCreator = function (configuration?: Configuration)
212212

213213
// authentication oauth2 required
214214
// oauth required
215-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read"], configuration)
215+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full", "deals:read"], configuration)
216216

217217

218218

@@ -321,7 +321,7 @@ export const BetaApiAxiosParamCreator = function (configuration?: Configuration)
321321

322322
// authentication oauth2 required
323323
// oauth required
324-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["leads:read"], configuration)
324+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["leads:full", "leads:read"], configuration)
325325

326326

327327

src/versions/v2/api/deals-api.ts

Lines changed: 20 additions & 20 deletions
Large diffs are not rendered by default.

src/versions/v2/api/leads-api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
6666

6767
// authentication oauth2 required
6868
// oauth required
69-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full", "leads:full"], configuration)
69+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["leads:full"], configuration)
7070

7171

7272

@@ -114,7 +114,7 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
114114

115115
// authentication oauth2 required
116116
// oauth required
117-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["leads:read"], configuration)
117+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["leads:full", "leads:read"], configuration)
118118

119119

120120

src/versions/v2/models/add-deal-request.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,16 @@ export interface AddDealRequest {
8181
*/
8282
'is_deleted'?: boolean;
8383
/**
84+
* Whether the deal is archived or not
85+
* @type {boolean}
86+
*/
87+
'is_archived'?: boolean;
88+
/**
89+
* The optional date and time of archiving the deal in UTC. Format: YYYY-MM-DD HH:MM:SS. If omitted and `is_archived` is true, it will be set to the current date and time.
90+
* @type {string}
91+
*/
92+
'archive_time'?: string;
93+
/**
8494
* The status of the deal
8595
* @type {string}
8696
*/

src/versions/v2/models/deal-item.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,15 @@ export interface DealItem {
8181
*/
8282
'stage_change_time'?: string;
8383
/**
84-
* Whether the deal is archived or not
84+
* Whether the deal is deleted or not
8585
* @type {boolean}
8686
*/
87-
'is_archived'?: boolean;
87+
'is_deleted'?: boolean;
8888
/**
89-
* Whether the deal is deleted or not
89+
* Whether the deal is archived or not
9090
* @type {boolean}
9191
*/
92-
'is_deleted'?: boolean;
92+
'is_archived'?: boolean;
9393
/**
9494
* The status of the deal
9595
* @type {string}

src/versions/v2/models/deal-item1.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,15 @@ export interface DealItem1 {
8181
*/
8282
'stage_change_time'?: string;
8383
/**
84-
* Whether the deal is archived or not
84+
* Whether the deal is deleted or not
8585
* @type {boolean}
8686
*/
87-
'is_archived'?: boolean;
87+
'is_deleted'?: boolean;
8888
/**
89-
* Whether the deal is deleted or not
89+
* Whether the deal is archived or not
9090
* @type {boolean}
9191
*/
92-
'is_deleted'?: boolean;
92+
'is_archived'?: boolean;
9393
/**
9494
* The status of the deal
9595
* @type {string}

0 commit comments

Comments
 (0)