Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build 118 - version-prerelease #585

Merged
merged 6 commits into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,10 @@ models/base-team.ts
models/basic-deal-product-request-all-of.ts
models/basic-deal-product-request.ts
models/basic-deal.ts
models/basic-deal1.ts
models/basic-goal-request.ts
models/basic-organization.ts
models/basic-organization1.ts
models/basic-person-request-email-inner.ts
models/basic-person-request.ts
models/call-log-bad-request-response.ts
Expand Down Expand Up @@ -422,6 +424,8 @@ models/get-duplicated-deal-response.ts
models/get-field-response-all-of.ts
models/get-field-response.ts
models/get-fields-response-all-of-additional-data.ts
models/get-fields-response-all-of-data-inner-all-of.ts
models/get-fields-response-all-of-data-inner-all-of1.ts
models/get-fields-response-all-of-data-inner.ts
models/get-fields-response-all-of.ts
models/get-fields-response.ts
Expand Down Expand Up @@ -479,7 +483,8 @@ models/get-mail-thread-response1.ts
models/get-merged-deal-response-data-all-of.ts
models/get-merged-deal-response-data.ts
models/get-merged-deal-response.ts
models/get-note-fields-response-all-of-data-inner-options-inner.ts
models/get-note-fields-response-all-of-data-inner-all-of-options-inner.ts
models/get-note-fields-response-all-of-data-inner-all-of.ts
models/get-note-fields-response-all-of-data-inner.ts
models/get-note-fields-response-all-of.ts
models/get-note-fields-response.ts
Expand Down Expand Up @@ -574,6 +579,7 @@ models/get-product-attachment-details-response-data.ts
models/get-product-attachment-details-response.ts
models/get-product-field-response-data.ts
models/get-product-field-response.ts
models/get-product-fields-response-data-inner.ts
models/get-product-fields-response.ts
models/get-product-followers-response-all-of-data-inner.ts
models/get-product-followers-response-all-of.ts
Expand Down Expand Up @@ -752,6 +758,7 @@ models/product-field-all-of.ts
models/product-field-all-of1.ts
models/product-field.ts
models/product-request.ts
models/product-request1.ts
models/project-put-plan-item-body-object.ts
models/project-response-object-all-of.ts
models/project-response-object.ts
Expand Down
19 changes: 17 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ The file format of it is based on [Keep a Changelog](http://keepachangelog.com/e
For public Changelog covering all changes done to Pipedrive’s API, webhooks and app extensions platforms, see [public Changelog](https://pipedrive.readme.io/docs/changelog) with discussion area in [Developers Community](https://devcommunity.pipedrive.com/c/documentation/changelog/19).

## [Unreleased]
### Added
- Add "additionalProperties" to entities with custom fields
### Changed
- Updated the code examples in the README for the JavaScript SDK
### Added
- Add "custom_fields" query paremeter to GET /api/v2/products


## [23.2.5-rc.3] - 2024-09-02
### Updated
- Fix optional fields in the TypeScript interfaces

## [23.4.3] - 2024-11-22
### Added
Expand Down Expand Up @@ -48,6 +59,10 @@ For public Changelog covering all changes done to Pipedrive’s API, webhooks an
### Fixed
- Deleted unused file with long name

## [23.2.5-rc.1] - 2024-09-02
### Updated
- Updated TypeScript interfaces

## [23.2.5] - 2024-08-27
### Fixed
- Updated default values for "billing_frequency_cycles", "billing_start_date" fields
Expand Down Expand Up @@ -231,7 +246,7 @@ Based on this [Changelog post](https://developers.pipedrive.com/changelog/post/r
## [19.0.1] - 2023-04-27
### Changed
- Updated `label` field data type in response examples from number -> string for Deals related endpoints
Changed `active_flag`, `enabled_flag`, and `selectable` body parameters and response examples data type from number -> boolean for all Products related endpoints
Changed `active_flag`, `enabled_flag`, and `selectable` body parameters and response examples data type from number -> boolean for all Products related endpoints

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


[Unreleased]: https://github.com/pipedrive/api-docs/compare/v23.2.5-rc.2...HEAD
[23.2.5-rc.2]: https://github.com/pipedrive/api-docs/compare/v23.2.5...v23.2.5-rc.2
[23.4.3]: https://github.com/pipedrive/api-docs/compare/v23.4.2...v23.4.3
[23.4.2]: https://github.com/pipedrive/api-docs/compare/v23.4.1...v23.4.2
[23.4.1]: https://github.com/pipedrive/api-docs/compare/v23.4.0...v23.4.1
Expand Down
8 changes: 4 additions & 4 deletions api/deals-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
};
},
/**
* Deletes a product attachment from a deal, using the `product_attachment_id`.
* 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
* @summary Delete an attached product from a deal
* @param {number} id The ID of the deal
* @param {number} product_attachment_id The product attachment ID
Expand Down Expand Up @@ -1765,7 +1765,7 @@ export const DealsApiFp = function(configuration?: Configuration) {
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
* Deletes a product attachment from a deal, using the `product_attachment_id`.
* 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
* @summary Delete an attached product from a deal
* @param {number} id The ID of the deal
* @param {number} product_attachment_id The product attachment ID
Expand Down Expand Up @@ -2159,7 +2159,7 @@ export const DealsApiFactory = function (configuration?: Configuration, basePath
return localVarFp.deleteDealParticipant(requestParameters.id, requestParameters.deal_participant_id, ).then((request) => request(axios, basePath));
},
/**
* Deletes a product attachment from a deal, using the `product_attachment_id`.
* 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
* @summary Delete an attached product from a deal
* @param {DealsApiDeleteDealProductRequest} requestParameters Request parameters.

Expand Down Expand Up @@ -3365,7 +3365,7 @@ export class DealsApi extends BaseAPI {
}

/**
* Deletes a product attachment from a deal, using the `product_attachment_id`.
* 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
* @summary Delete an attached product from a deal
* @param {DealsApiDeleteDealProductRequest} requestParameters Request parameters.

Expand Down
16 changes: 10 additions & 6 deletions configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,19 @@ export interface Parameters {
export type ParamKey = keyof Parameters;

export class OAuth2Configuration {
public host: string;
public clientId: string;
public clientSecret: string;
public basePath = "";
public onTokenUpdate?: (token: TokenResponse) => void;

private axios = axios.create();
private host: string;
private accessToken: string | null = null;
private refreshToken: string | null = null;
private scope: string | null = null;
private expiresIn = 0; // expiration value in seconds sent by the OAuth server.
private expiresAt = 0; // expiration time as number of milliseconds elapsed since January 1, 1970 00:00:00 UTC.

public onTokenUpdate?: (token: TokenResponse) => void;
private clientId: string;
private clientSecret: string;
private redirectUri: string;
public basePath = "";

constructor(params: Parameters) {
this.clientId = this.validateParam(params, 'clientId');
Expand Down Expand Up @@ -77,6 +77,10 @@ export class OAuth2Configuration {
return this.accessToken!;
};

public shouldRefreshToken = (): boolean => {
return this.expiresAt && Date.now() > this.expiresAt;
}

/**
* Authorizes the authorization code sent by the server and returns OAuth 2 token.
* @param {String} code The authorization code sent by the OAuth server.
Expand Down
52 changes: 26 additions & 26 deletions models/activity-collection-response-object-all-of.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,156 +25,156 @@ export interface ActivityCollectionResponseObjectAllOf {
* @type {number}
* @memberof ActivityCollectionResponseObjectAllOf
*/
'id'?: number;
'id': number;
/**
* Whether the activity is done or not
* @type {boolean}
* @memberof ActivityCollectionResponseObjectAllOf
*/
'done'?: boolean;
'done': boolean;
/**
* The subject of the activity
* @type {string}
* @memberof ActivityCollectionResponseObjectAllOf
*/
'subject'?: string;
'subject': string;
/**
* The type of the activity. This is in correlation with the `key_string` parameter of ActivityTypes.
* @type {string}
* @memberof ActivityCollectionResponseObjectAllOf
*/
'type'?: string;
'type': string;
/**
* The ID of the user whom the activity is assigned to
* @type {number}
* @memberof ActivityCollectionResponseObjectAllOf
*/
'user_id'?: number;
'user_id': number;
/**
* 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.
* @type {boolean}
* @memberof ActivityCollectionResponseObjectAllOf
*/
'busy_flag'?: boolean;
'busy_flag': boolean;
/**
* The user\'s company ID
* @type {number}
* @memberof ActivityCollectionResponseObjectAllOf
*/
'company_id'?: number;
'company_id': number;
/**
* The ID of the Marketplace app, which is connected to this activity
* @type {string}
* @memberof ActivityCollectionResponseObjectAllOf
*/
'conference_meeting_client'?: string;
'conference_meeting_client': string;
/**
* The link to join the meeting which is associated with this activity
* @type {string}
* @memberof ActivityCollectionResponseObjectAllOf
*/
'conference_meeting_url'?: string;
'conference_meeting_url': string;
/**
* The meeting ID of the meeting provider (Zoom, MS Teams etc.) that is associated with this activity
* @type {string}
* @memberof ActivityCollectionResponseObjectAllOf
*/
'conference_meeting_id'?: string;
'conference_meeting_id': string;
/**
* The creation date and time of the activity in UTC. Format: YYYY-MM-DD HH:MM:SS.
* @type {string}
* @memberof ActivityCollectionResponseObjectAllOf
*/
'add_time'?: string;
'add_time': string;
/**
* The date and time this activity was marked as done. Format: YYYY-MM-DD HH:MM:SS.
* @type {string}
* @memberof ActivityCollectionResponseObjectAllOf
*/
'marked_as_done_time'?: string;
'marked_as_done_time': string;
/**
* Whether the activity is active or not
* @type {boolean}
* @memberof ActivityCollectionResponseObjectAllOf
*/
'active_flag'?: boolean;
'active_flag': boolean;
/**
* The last update date and time of the activity. Format: YYYY-MM-DD HH:MM:SS.
* @type {string}
* @memberof ActivityCollectionResponseObjectAllOf
*/
'update_time'?: string;
'update_time': string;
/**
* The ID of the user who was the last to update this activity
* @type {number}
* @memberof ActivityCollectionResponseObjectAllOf
*/
'update_user_id'?: number;
'update_user_id': number;
/**
* The timezone the activity was created in an external calendar
* @type {string}
* @memberof ActivityCollectionResponseObjectAllOf
*/
'source_timezone'?: string;
'source_timezone': string;
/**
* A subfield of the location field. Indicates apartment/suite number.
* @type {string}
* @memberof ActivityCollectionResponseObjectAllOf
*/
'location_subpremise'?: string;
'location_subpremise': string;
/**
* A subfield of the location field. Indicates house number.
* @type {string}
* @memberof ActivityCollectionResponseObjectAllOf
*/
'location_street_number'?: string;
'location_street_number': string;
/**
* A subfield of the location field. Indicates street name.
* @type {string}
* @memberof ActivityCollectionResponseObjectAllOf
*/
'location_route'?: string;
'location_route': string;
/**
* A subfield of the location field. Indicates district/sublocality.
* @type {string}
* @memberof ActivityCollectionResponseObjectAllOf
*/
'location_sublocality'?: string;
'location_sublocality': string;
/**
* A subfield of the location field. Indicates city/town/village/locality.
* @type {string}
* @memberof ActivityCollectionResponseObjectAllOf
*/
'location_locality'?: string;
'location_locality': string;
/**
* A subfield of the location field. Indicates state/county.
* @type {string}
* @memberof ActivityCollectionResponseObjectAllOf
*/
'location_admin_area_level_1'?: string;
'location_admin_area_level_1': string;
/**
* A subfield of the location field. Indicates region.
* @type {string}
* @memberof ActivityCollectionResponseObjectAllOf
*/
'location_admin_area_level_2'?: string;
'location_admin_area_level_2': string;
/**
* A subfield of the location field. Indicates country.
* @type {string}
* @memberof ActivityCollectionResponseObjectAllOf
*/
'location_country'?: string;
'location_country': string;
/**
* A subfield of the location field. Indicates ZIP/postal code.
* @type {string}
* @memberof ActivityCollectionResponseObjectAllOf
*/
'location_postal_code'?: string;
'location_postal_code': string;
/**
* A subfield of the location field. Indicates full/combined address.
* @type {string}
* @memberof ActivityCollectionResponseObjectAllOf
*/
'location_formatted_address'?: string;
'location_formatted_address': string;
}

Loading
Loading