Skip to content

Commit 510578d

Browse files
Release v23.3.0-rc.4 from PR #585
2 parents 962716c + 7074646 commit 510578d

File tree

121 files changed

+1083
-622
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+1083
-622
lines changed

.openapi-generator/FILES

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,10 @@ models/base-team.ts
181181
models/basic-deal-product-request-all-of.ts
182182
models/basic-deal-product-request.ts
183183
models/basic-deal.ts
184+
models/basic-deal1.ts
184185
models/basic-goal-request.ts
185186
models/basic-organization.ts
187+
models/basic-organization1.ts
186188
models/basic-person-request-email-inner.ts
187189
models/basic-person-request.ts
188190
models/call-log-bad-request-response.ts
@@ -422,6 +424,8 @@ models/get-duplicated-deal-response.ts
422424
models/get-field-response-all-of.ts
423425
models/get-field-response.ts
424426
models/get-fields-response-all-of-additional-data.ts
427+
models/get-fields-response-all-of-data-inner-all-of.ts
428+
models/get-fields-response-all-of-data-inner-all-of1.ts
425429
models/get-fields-response-all-of-data-inner.ts
426430
models/get-fields-response-all-of.ts
427431
models/get-fields-response.ts
@@ -479,7 +483,8 @@ models/get-mail-thread-response1.ts
479483
models/get-merged-deal-response-data-all-of.ts
480484
models/get-merged-deal-response-data.ts
481485
models/get-merged-deal-response.ts
482-
models/get-note-fields-response-all-of-data-inner-options-inner.ts
486+
models/get-note-fields-response-all-of-data-inner-all-of-options-inner.ts
487+
models/get-note-fields-response-all-of-data-inner-all-of.ts
483488
models/get-note-fields-response-all-of-data-inner.ts
484489
models/get-note-fields-response-all-of.ts
485490
models/get-note-fields-response.ts
@@ -574,6 +579,7 @@ models/get-product-attachment-details-response-data.ts
574579
models/get-product-attachment-details-response.ts
575580
models/get-product-field-response-data.ts
576581
models/get-product-field-response.ts
582+
models/get-product-fields-response-data-inner.ts
577583
models/get-product-fields-response.ts
578584
models/get-product-followers-response-all-of-data-inner.ts
579585
models/get-product-followers-response-all-of.ts
@@ -752,6 +758,7 @@ models/product-field-all-of.ts
752758
models/product-field-all-of1.ts
753759
models/product-field.ts
754760
models/product-request.ts
761+
models/product-request1.ts
755762
models/project-put-plan-item-body-object.ts
756763
models/project-response-object-all-of.ts
757764
models/project-response-object.ts

CHANGELOG.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,19 @@ For public Changelog covering all changes done to Pipedrive’s API, webhooks an
88

99
## [Unreleased]
1010

11+
## [23.3.0-rc.4] - 2024-11-26
12+
### Added
13+
- Add "additionalProperties" to entities with custom fields
14+
### Changed
15+
- Updated the code examples in the README for the JavaScript SDK
16+
### Added
17+
- Add "custom_fields" query paremeter to GET /api/v2/products
18+
19+
20+
## [23.2.5-rc.3] - 2024-09-02
21+
### Updated
22+
- Fix optional fields in the TypeScript interfaces
23+
1124
## [23.4.3] - 2024-11-22
1225
### Added
1326
- Add "additionalProperties" to entities with custom fields
@@ -48,6 +61,10 @@ For public Changelog covering all changes done to Pipedrive’s API, webhooks an
4861
### Fixed
4962
- Deleted unused file with long name
5063

64+
## [23.2.5-rc.1] - 2024-09-02
65+
### Updated
66+
- Updated TypeScript interfaces
67+
5168
## [23.2.5] - 2024-08-27
5269
### Fixed
5370
- Updated default values for "billing_frequency_cycles", "billing_start_date" fields
@@ -231,7 +248,7 @@ Based on this [Changelog post](https://developers.pipedrive.com/changelog/post/r
231248
## [19.0.1] - 2023-04-27
232249
### Changed
233250
- Updated `label` field data type in response examples from number -> string for Deals related endpoints
234-
Changed `active_flag`, `enabled_flag`, and `selectable` body parameters and response examples data type from number -> boolean for all Products related endpoints
251+
Changed `active_flag`, `enabled_flag`, and `selectable` body parameters and response examples data type from number -> boolean for all Products related endpoints
235252

236253
## [19.0.0] - 2023-04-04
237254
### Removed
@@ -717,8 +734,9 @@ structure
717734
* Fixed `GET /goal/:id/results` error handling in case when there are no existing stages connected to specified goal
718735
* Fixed typo in lead example response (`crrency` to `currency`)
719736

720-
[Unreleased]: https://github.com/pipedrive/api-docs/compare/v23.2.5-rc.2...HEAD
721-
[23.2.5-rc.2]: https://github.com/pipedrive/api-docs/compare/v23.2.5...v23.2.5-rc.2
737+
738+
[Unreleased]: https://github.com/pipedrive/api-docs/compare/v23.3.0-rc.4...HEAD
739+
[23.3.0-rc.4]: https://github.com/pipedrive/api-docs/compare/v23.2.5-rc.2...v23.3.0-rc.4
722740
[23.4.3]: https://github.com/pipedrive/api-docs/compare/v23.4.2...v23.4.3
723741
[23.4.2]: https://github.com/pipedrive/api-docs/compare/v23.4.1...v23.4.2
724742
[23.4.1]: https://github.com/pipedrive/api-docs/compare/v23.4.0...v23.4.1

api/deals-api.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
409409
};
410410
},
411411
/**
412-
* Deletes a product attachment from a deal, using the `product_attachment_id`.
412+
* Deletes a product attachment from a deal, using the `product_attachment_id` Not possible to delete the attached product if the deal has installments associated and the product is the last one enabled
413413
* @summary Delete an attached product from a deal
414414
* @param {number} id The ID of the deal
415415
* @param {number} product_attachment_id The product attachment ID
@@ -1765,7 +1765,7 @@ export const DealsApiFp = function(configuration?: Configuration) {
17651765
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
17661766
},
17671767
/**
1768-
* Deletes a product attachment from a deal, using the `product_attachment_id`.
1768+
* Deletes a product attachment from a deal, using the `product_attachment_id` Not possible to delete the attached product if the deal has installments associated and the product is the last one enabled
17691769
* @summary Delete an attached product from a deal
17701770
* @param {number} id The ID of the deal
17711771
* @param {number} product_attachment_id The product attachment ID
@@ -2159,7 +2159,7 @@ export const DealsApiFactory = function (configuration?: Configuration, basePath
21592159
return localVarFp.deleteDealParticipant(requestParameters.id, requestParameters.deal_participant_id, ).then((request) => request(axios, basePath));
21602160
},
21612161
/**
2162-
* Deletes a product attachment from a deal, using the `product_attachment_id`.
2162+
* Deletes a product attachment from a deal, using the `product_attachment_id` Not possible to delete the attached product if the deal has installments associated and the product is the last one enabled
21632163
* @summary Delete an attached product from a deal
21642164
* @param {DealsApiDeleteDealProductRequest} requestParameters Request parameters.
21652165
@@ -3365,7 +3365,7 @@ export class DealsApi extends BaseAPI {
33653365
}
33663366

33673367
/**
3368-
* Deletes a product attachment from a deal, using the `product_attachment_id`.
3368+
* Deletes a product attachment from a deal, using the `product_attachment_id` Not possible to delete the attached product if the deal has installments associated and the product is the last one enabled
33693369
* @summary Delete an attached product from a deal
33703370
* @param {DealsApiDeleteDealProductRequest} requestParameters Request parameters.
33713371

configuration.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,19 @@ export interface Parameters {
3636
export type ParamKey = keyof Parameters;
3737

3838
export class OAuth2Configuration {
39+
public host: string;
40+
public clientId: string;
41+
public clientSecret: string;
42+
public basePath = "";
43+
public onTokenUpdate?: (token: TokenResponse) => void;
44+
3945
private axios = axios.create();
40-
private host: string;
4146
private accessToken: string | null = null;
4247
private refreshToken: string | null = null;
4348
private scope: string | null = null;
4449
private expiresIn = 0; // expiration value in seconds sent by the OAuth server.
4550
private expiresAt = 0; // expiration time as number of milliseconds elapsed since January 1, 1970 00:00:00 UTC.
46-
47-
public onTokenUpdate?: (token: TokenResponse) => void;
48-
private clientId: string;
49-
private clientSecret: string;
5051
private redirectUri: string;
51-
public basePath = "";
5252

5353
constructor(params: Parameters) {
5454
this.clientId = this.validateParam(params, 'clientId');
@@ -77,6 +77,10 @@ export class OAuth2Configuration {
7777
return this.accessToken!;
7878
};
7979

80+
public shouldRefreshToken = (): boolean => {
81+
return this.expiresAt && Date.now() > this.expiresAt;
82+
}
83+
8084
/**
8185
* Authorizes the authorization code sent by the server and returns OAuth 2 token.
8286
* @param {String} code The authorization code sent by the OAuth server.

models/activity-collection-response-object-all-of.ts

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -25,156 +25,156 @@ export interface ActivityCollectionResponseObjectAllOf {
2525
* @type {number}
2626
* @memberof ActivityCollectionResponseObjectAllOf
2727
*/
28-
'id'?: number;
28+
'id': number;
2929
/**
3030
* Whether the activity is done or not
3131
* @type {boolean}
3232
* @memberof ActivityCollectionResponseObjectAllOf
3333
*/
34-
'done'?: boolean;
34+
'done': boolean;
3535
/**
3636
* The subject of the activity
3737
* @type {string}
3838
* @memberof ActivityCollectionResponseObjectAllOf
3939
*/
40-
'subject'?: string;
40+
'subject': string;
4141
/**
4242
* The type of the activity. This is in correlation with the `key_string` parameter of ActivityTypes.
4343
* @type {string}
4444
* @memberof ActivityCollectionResponseObjectAllOf
4545
*/
46-
'type'?: string;
46+
'type': string;
4747
/**
4848
* The ID of the user whom the activity is assigned to
4949
* @type {number}
5050
* @memberof ActivityCollectionResponseObjectAllOf
5151
*/
52-
'user_id'?: number;
52+
'user_id': number;
5353
/**
5454
* Marks if the activity is set as \'Busy\' or \'Free\'. If the flag is set to `true`, your customers will not be able to book that time slot through any Scheduler links. The flag can also be unset. When the value of the flag is unset (`null`), the flag defaults to \'Busy\' if it has a time set, and \'Free\' if it is an all-day event without specified time.
5555
* @type {boolean}
5656
* @memberof ActivityCollectionResponseObjectAllOf
5757
*/
58-
'busy_flag'?: boolean;
58+
'busy_flag': boolean;
5959
/**
6060
* The user\'s company ID
6161
* @type {number}
6262
* @memberof ActivityCollectionResponseObjectAllOf
6363
*/
64-
'company_id'?: number;
64+
'company_id': number;
6565
/**
6666
* The ID of the Marketplace app, which is connected to this activity
6767
* @type {string}
6868
* @memberof ActivityCollectionResponseObjectAllOf
6969
*/
70-
'conference_meeting_client'?: string;
70+
'conference_meeting_client': string;
7171
/**
7272
* The link to join the meeting which is associated with this activity
7373
* @type {string}
7474
* @memberof ActivityCollectionResponseObjectAllOf
7575
*/
76-
'conference_meeting_url'?: string;
76+
'conference_meeting_url': string;
7777
/**
7878
* The meeting ID of the meeting provider (Zoom, MS Teams etc.) that is associated with this activity
7979
* @type {string}
8080
* @memberof ActivityCollectionResponseObjectAllOf
8181
*/
82-
'conference_meeting_id'?: string;
82+
'conference_meeting_id': string;
8383
/**
8484
* The creation date and time of the activity in UTC. Format: YYYY-MM-DD HH:MM:SS.
8585
* @type {string}
8686
* @memberof ActivityCollectionResponseObjectAllOf
8787
*/
88-
'add_time'?: string;
88+
'add_time': string;
8989
/**
9090
* The date and time this activity was marked as done. Format: YYYY-MM-DD HH:MM:SS.
9191
* @type {string}
9292
* @memberof ActivityCollectionResponseObjectAllOf
9393
*/
94-
'marked_as_done_time'?: string;
94+
'marked_as_done_time': string;
9595
/**
9696
* Whether the activity is active or not
9797
* @type {boolean}
9898
* @memberof ActivityCollectionResponseObjectAllOf
9999
*/
100-
'active_flag'?: boolean;
100+
'active_flag': boolean;
101101
/**
102102
* The last update date and time of the activity. Format: YYYY-MM-DD HH:MM:SS.
103103
* @type {string}
104104
* @memberof ActivityCollectionResponseObjectAllOf
105105
*/
106-
'update_time'?: string;
106+
'update_time': string;
107107
/**
108108
* The ID of the user who was the last to update this activity
109109
* @type {number}
110110
* @memberof ActivityCollectionResponseObjectAllOf
111111
*/
112-
'update_user_id'?: number;
112+
'update_user_id': number;
113113
/**
114114
* The timezone the activity was created in an external calendar
115115
* @type {string}
116116
* @memberof ActivityCollectionResponseObjectAllOf
117117
*/
118-
'source_timezone'?: string;
118+
'source_timezone': string;
119119
/**
120120
* A subfield of the location field. Indicates apartment/suite number.
121121
* @type {string}
122122
* @memberof ActivityCollectionResponseObjectAllOf
123123
*/
124-
'location_subpremise'?: string;
124+
'location_subpremise': string;
125125
/**
126126
* A subfield of the location field. Indicates house number.
127127
* @type {string}
128128
* @memberof ActivityCollectionResponseObjectAllOf
129129
*/
130-
'location_street_number'?: string;
130+
'location_street_number': string;
131131
/**
132132
* A subfield of the location field. Indicates street name.
133133
* @type {string}
134134
* @memberof ActivityCollectionResponseObjectAllOf
135135
*/
136-
'location_route'?: string;
136+
'location_route': string;
137137
/**
138138
* A subfield of the location field. Indicates district/sublocality.
139139
* @type {string}
140140
* @memberof ActivityCollectionResponseObjectAllOf
141141
*/
142-
'location_sublocality'?: string;
142+
'location_sublocality': string;
143143
/**
144144
* A subfield of the location field. Indicates city/town/village/locality.
145145
* @type {string}
146146
* @memberof ActivityCollectionResponseObjectAllOf
147147
*/
148-
'location_locality'?: string;
148+
'location_locality': string;
149149
/**
150150
* A subfield of the location field. Indicates state/county.
151151
* @type {string}
152152
* @memberof ActivityCollectionResponseObjectAllOf
153153
*/
154-
'location_admin_area_level_1'?: string;
154+
'location_admin_area_level_1': string;
155155
/**
156156
* A subfield of the location field. Indicates region.
157157
* @type {string}
158158
* @memberof ActivityCollectionResponseObjectAllOf
159159
*/
160-
'location_admin_area_level_2'?: string;
160+
'location_admin_area_level_2': string;
161161
/**
162162
* A subfield of the location field. Indicates country.
163163
* @type {string}
164164
* @memberof ActivityCollectionResponseObjectAllOf
165165
*/
166-
'location_country'?: string;
166+
'location_country': string;
167167
/**
168168
* A subfield of the location field. Indicates ZIP/postal code.
169169
* @type {string}
170170
* @memberof ActivityCollectionResponseObjectAllOf
171171
*/
172-
'location_postal_code'?: string;
172+
'location_postal_code': string;
173173
/**
174174
* A subfield of the location field. Indicates full/combined address.
175175
* @type {string}
176176
* @memberof ActivityCollectionResponseObjectAllOf
177177
*/
178-
'location_formatted_address'?: string;
178+
'location_formatted_address': string;
179179
}
180180

0 commit comments

Comments
 (0)