diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index ed681e3f..ea9e19bb 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 7931a0f7..98497d45 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/api/deals-api.ts b/api/deals-api.ts index 2e63aed5..2f49c58c 100644 --- a/api/deals-api.ts +++ b/api/deals-api.ts @@ -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 @@ -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 @@ -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. @@ -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. diff --git a/configuration.ts b/configuration.ts index 34cef856..dd705308 100644 --- a/configuration.ts +++ b/configuration.ts @@ -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'); @@ -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. diff --git a/models/activity-collection-response-object-all-of.ts b/models/activity-collection-response-object-all-of.ts index b2a409ad..32b8e52d 100644 --- a/models/activity-collection-response-object-all-of.ts +++ b/models/activity-collection-response-object-all-of.ts @@ -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; } diff --git a/models/activity-response-object-all-of1.ts b/models/activity-response-object-all-of1.ts index 294310b6..bce641d0 100644 --- a/models/activity-response-object-all-of1.ts +++ b/models/activity-response-object-all-of1.ts @@ -25,306 +25,306 @@ export interface ActivityResponseObjectAllOf1 { * @type {number} * @memberof ActivityResponseObjectAllOf1 */ - 'id'?: number; + 'id': number; /** * The note of the activity (HTML format) * @type {string} * @memberof ActivityResponseObjectAllOf1 */ - 'note'?: string; + 'note': string; /** * Whether the activity is done or not * @type {boolean} * @memberof ActivityResponseObjectAllOf1 */ - 'done'?: boolean; + 'done': boolean; /** * The subject of the activity * @type {string} * @memberof ActivityResponseObjectAllOf1 */ - 'subject'?: string; + 'subject': string; /** * The type of the activity. This is in correlation with the `key_string` parameter of ActivityTypes. * @type {string} * @memberof ActivityResponseObjectAllOf1 */ - 'type'?: string; + 'type': string; /** * The ID of the user whom the activity is assigned to * @type {number} * @memberof ActivityResponseObjectAllOf1 */ - 'user_id'?: number; + 'user_id': number; /** * List of multiple persons (participants) this activity is associated with * @type {Array} * @memberof ActivityResponseObjectAllOf1 */ - 'participants'?: Array | null; + 'participants': Array | null; /** * 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 ActivityResponseObjectAllOf1 */ - 'busy_flag'?: boolean; + 'busy_flag': boolean; /** * The attendees of the activity. This can be either your existing Pipedrive contacts or an external email address. * @type {Array} * @memberof ActivityResponseObjectAllOf1 */ - 'attendees'?: Array | null; + 'attendees': Array | null; /** * The user\'s company ID * @type {number} * @memberof ActivityResponseObjectAllOf1 */ - 'company_id'?: number; + 'company_id': number; /** * If the activity references some other object, it is indicated here. For example, value `Salesphone` refers to activities created with Caller. * @type {string} * @memberof ActivityResponseObjectAllOf1 */ - 'reference_type'?: string; + 'reference_type': string; /** * Together with the `reference_type`, gives the ID of the other object * @type {number} * @memberof ActivityResponseObjectAllOf1 */ - 'reference_id'?: number; + 'reference_id': number; /** * The ID of the Marketplace app, which is connected to this activity * @type {string} * @memberof ActivityResponseObjectAllOf1 */ - 'conference_meeting_client'?: string; + 'conference_meeting_client': string; /** * The link to join the meeting which is associated with this activity * @type {string} * @memberof ActivityResponseObjectAllOf1 */ - '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 ActivityResponseObjectAllOf1 */ - '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 ActivityResponseObjectAllOf1 */ - '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 ActivityResponseObjectAllOf1 */ - 'marked_as_done_time'?: string; + 'marked_as_done_time': string; /** * The date and time of latest notifications sent about this activity to the participants or the attendees of this activity * @type {string} * @memberof ActivityResponseObjectAllOf1 */ - 'last_notification_time'?: string; + 'last_notification_time': string; /** * The ID of the user who triggered the sending of the latest notifications about this activity to the participants or the attendees of this activity * @type {number} * @memberof ActivityResponseObjectAllOf1 */ - 'last_notification_user_id'?: number; + 'last_notification_user_id': number; /** * The ID of the language the notifications are sent in * @type {number} * @memberof ActivityResponseObjectAllOf1 */ - 'notification_language_id'?: number; + 'notification_language_id': number; /** * Whether the activity is active or not * @type {boolean} * @memberof ActivityResponseObjectAllOf1 */ - '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 ActivityResponseObjectAllOf1 */ - 'update_time'?: string; + 'update_time': string; /** * The ID of the user who was the last to update this activity * @type {number} * @memberof ActivityResponseObjectAllOf1 */ - 'update_user_id'?: number; + 'update_user_id': number; /** * For the activity which syncs to Google calendar, this is the Google event ID. NB! This field is related to old Google calendar sync and will be deprecated soon. * @type {string} * @memberof ActivityResponseObjectAllOf1 */ - 'gcal_event_id'?: string; + 'gcal_event_id': string; /** * The Google calendar ID that this activity syncs to. NB! This field is related to old Google calendar sync and will be deprecated soon. * @type {string} * @memberof ActivityResponseObjectAllOf1 */ - 'google_calendar_id'?: string; + 'google_calendar_id': string; /** * The Google calendar API etag (version) that is used for syncing this activity. NB! This field is related to old Google calendar sync and will be deprecated soon. * @type {string} * @memberof ActivityResponseObjectAllOf1 */ - 'google_calendar_etag'?: string; + 'google_calendar_etag': string; /** * For activities that sync to an external calendar, this setting indicates if the activity syncs with context (what are the deals, persons, organizations this activity is related to) * @type {string} * @memberof ActivityResponseObjectAllOf1 */ - 'calendar_sync_include_context'?: string; + 'calendar_sync_include_context': string; /** * The timezone the activity was created in an external calendar * @type {string} * @memberof ActivityResponseObjectAllOf1 */ - 'source_timezone'?: string; + 'source_timezone': string; /** * The rule for the recurrence of the activity. Is important for activities synced into Pipedrive from an external calendar. Example: \"RRULE:FREQ=WEEKLY;BYDAY=WE\" * @type {string} * @memberof ActivityResponseObjectAllOf1 */ - 'rec_rule'?: string; + 'rec_rule': string; /** * Additional rules for the recurrence of the activity, extend the `rec_rule`. Is important for activities synced into Pipedrive from an external calendar. * @type {string} * @memberof ActivityResponseObjectAllOf1 */ - 'rec_rule_extension'?: string; + 'rec_rule_extension': string; /** * The ID of parent activity for a recurrent activity if the current activity is an exception to recurrence rules * @type {number} * @memberof ActivityResponseObjectAllOf1 */ - 'rec_master_activity_id'?: number; + 'rec_master_activity_id': number; /** * The list of recurring activity instances. It is in a structure as follows: `[{due_date: \"2020-06-24\", due_time: \"10:00:00\"}]` * @type {Array} * @memberof ActivityResponseObjectAllOf1 */ - 'series'?: Array; + 'series': Array; /** * The ID of the user who created the activity * @type {number} * @memberof ActivityResponseObjectAllOf1 */ - 'created_by_user_id'?: number; + 'created_by_user_id': number; /** * A subfield of the location field. Indicates apartment/suite number. * @type {string} * @memberof ActivityResponseObjectAllOf1 */ - 'location_subpremise'?: string; + 'location_subpremise': string; /** * A subfield of the location field. Indicates house number. * @type {string} * @memberof ActivityResponseObjectAllOf1 */ - 'location_street_number'?: string; + 'location_street_number': string; /** * A subfield of the location field. Indicates street name. * @type {string} * @memberof ActivityResponseObjectAllOf1 */ - 'location_route'?: string; + 'location_route': string; /** * A subfield of the location field. Indicates district/sublocality. * @type {string} * @memberof ActivityResponseObjectAllOf1 */ - 'location_sublocality'?: string; + 'location_sublocality': string; /** * A subfield of the location field. Indicates city/town/village/locality. * @type {string} * @memberof ActivityResponseObjectAllOf1 */ - 'location_locality'?: string; + 'location_locality': string; /** * A subfield of the location field. Indicates state/county. * @type {string} * @memberof ActivityResponseObjectAllOf1 */ - 'location_admin_area_level_1'?: string; + 'location_admin_area_level_1': string; /** * A subfield of the location field. Indicates region. * @type {string} * @memberof ActivityResponseObjectAllOf1 */ - 'location_admin_area_level_2'?: string; + 'location_admin_area_level_2': string; /** * A subfield of the location field. Indicates country. * @type {string} * @memberof ActivityResponseObjectAllOf1 */ - 'location_country'?: string; + 'location_country': string; /** * A subfield of the location field. Indicates ZIP/postal code. * @type {string} * @memberof ActivityResponseObjectAllOf1 */ - 'location_postal_code'?: string; + 'location_postal_code': string; /** * A subfield of the location field. Indicates full/combined address. * @type {string} * @memberof ActivityResponseObjectAllOf1 */ - 'location_formatted_address'?: string; + 'location_formatted_address': string; /** * The name of the organization this activity is associated with * @type {string} * @memberof ActivityResponseObjectAllOf1 */ - 'org_name'?: string; + 'org_name': string; /** * The name of the person this activity is associated with * @type {string} * @memberof ActivityResponseObjectAllOf1 */ - 'person_name'?: string; + 'person_name': string; /** * The name of the deal this activity is associated with * @type {string} * @memberof ActivityResponseObjectAllOf1 */ - 'deal_title'?: string; + 'deal_title': string; /** * The name of the user this activity is owned by * @type {string} * @memberof ActivityResponseObjectAllOf1 */ - 'owner_name'?: string; + 'owner_name': string; /** * The BCC email address of the person * @type {string} * @memberof ActivityResponseObjectAllOf1 */ - 'person_dropbox_bcc'?: string; + 'person_dropbox_bcc': string; /** * The BCC email address of the deal * @type {string} * @memberof ActivityResponseObjectAllOf1 */ - 'deal_dropbox_bcc'?: string; + 'deal_dropbox_bcc': string; /** * The ID of the user to whom the activity is assigned to. Equal to `user_id`. * @type {number} * @memberof ActivityResponseObjectAllOf1 */ - 'assigned_to_user_id'?: number; + 'assigned_to_user_id': number; /** * The file that is attached to this activity. For example, this can be a reference to an audio note file generated with Pipedrive mobile app. * @type {object} * @memberof ActivityResponseObjectAllOf1 */ - 'file'?: object; + 'file': object; } diff --git a/models/add-channel200-response.ts b/models/add-channel200-response.ts index 962dd5e7..6fca0e54 100644 --- a/models/add-channel200-response.ts +++ b/models/add-channel200-response.ts @@ -28,12 +28,12 @@ export interface AddChannel200Response { * @type {boolean} * @memberof AddChannel200Response */ - 'success'?: boolean; + 'success': boolean; /** * * @type {AddChannel200ResponseData} * @memberof AddChannel200Response */ - 'data'?: AddChannel200ResponseData; + 'data': AddChannel200ResponseData; } diff --git a/models/add-deal-product-request-all-of.ts b/models/add-deal-product-request-all-of.ts index 05085b15..9e8c5349 100644 --- a/models/add-deal-product-request-all-of.ts +++ b/models/add-deal-product-request-all-of.ts @@ -21,7 +21,7 @@ */ export interface AddDealProductRequestAllOf { /** - * Only available in Advanced and above plans How often a customer is billed for access to a service or product A deal can have up to 20 products attached with `billing_frequency` different than `one-time` + * Only available in Advanced and above plans How often a customer is billed for access to a service or product To set `billing_frequency` different than `one-time`, the deal must not have installments associated A deal can have up to 20 products attached with `billing_frequency` different than `one-time` * @type {string} * @memberof AddDealProductRequestAllOf */ diff --git a/models/add-filters-response-all-of.ts b/models/add-filters-response-all-of.ts index c551fc17..ec0682c2 100644 --- a/models/add-filters-response-all-of.ts +++ b/models/add-filters-response-all-of.ts @@ -28,6 +28,6 @@ export interface AddFiltersResponseAllOf { * @type {AddFiltersResponseAllOfData} * @memberof AddFiltersResponseAllOf */ - 'data'?: AddFiltersResponseAllOfData; + 'data': AddFiltersResponseAllOfData; } diff --git a/models/add-new-follower-response.ts b/models/add-new-follower-response.ts index a6a3c228..f27ef876 100644 --- a/models/add-new-follower-response.ts +++ b/models/add-new-follower-response.ts @@ -28,12 +28,12 @@ export interface AddNewFollowerResponse { * @type {boolean} * @memberof AddNewFollowerResponse */ - 'success'?: boolean; + 'success': boolean; /** * * @type {AddNewFollowerResponseData} * @memberof AddNewFollowerResponse */ - 'data'?: AddNewFollowerResponseData; + 'data': AddNewFollowerResponseData; } diff --git a/models/add-organization-follower-response.ts b/models/add-organization-follower-response.ts index 523d3585..f32082d0 100644 --- a/models/add-organization-follower-response.ts +++ b/models/add-organization-follower-response.ts @@ -28,12 +28,12 @@ export interface AddOrganizationFollowerResponse { * @type {boolean} * @memberof AddOrganizationFollowerResponse */ - 'success'?: boolean; + 'success': boolean; /** * * @type {GetAssociatedFollowersResponse1DataInner} * @memberof AddOrganizationFollowerResponse */ - 'data'?: GetAssociatedFollowersResponse1DataInner; + 'data': GetAssociatedFollowersResponse1DataInner; } diff --git a/models/add-organization-relationship-response-all-of.ts b/models/add-organization-relationship-response-all-of.ts index d477df7d..4642f4d7 100644 --- a/models/add-organization-relationship-response-all-of.ts +++ b/models/add-organization-relationship-response-all-of.ts @@ -31,12 +31,12 @@ export interface AddOrganizationRelationshipResponseAllOf { * @type {OrganizationRelationshipWithCalculatedFieldsAllOf} * @memberof AddOrganizationRelationshipResponseAllOf */ - 'data'?: OrganizationRelationshipWithCalculatedFieldsAllOf; + 'data': OrganizationRelationshipWithCalculatedFieldsAllOf; /** * * @type {GetOrganizationRelationshipsResponseAllOfRelatedObjects} * @memberof AddOrganizationRelationshipResponseAllOf */ - 'related_objects'?: GetOrganizationRelationshipsResponseAllOfRelatedObjects; + 'related_objects': GetOrganizationRelationshipsResponseAllOfRelatedObjects; } diff --git a/models/add-organization-response-all-of.ts b/models/add-organization-response-all-of.ts index 8f9e1464..ae3140b1 100644 --- a/models/add-organization-response-all-of.ts +++ b/models/add-organization-response-all-of.ts @@ -31,12 +31,12 @@ export interface AddOrganizationResponseAllOf { * @type {BaseOrganizationItemWithEditNameFlag} * @memberof AddOrganizationResponseAllOf */ - 'data'?: BaseOrganizationItemWithEditNameFlag; + 'data': BaseOrganizationItemWithEditNameFlag; /** * * @type {GetOrganizationsResponseAllOfRelatedObjects} * @memberof AddOrganizationResponseAllOf */ - 'related_objects'?: GetOrganizationsResponseAllOfRelatedObjects; + 'related_objects': GetOrganizationsResponseAllOfRelatedObjects; } diff --git a/models/add-person-follower-response-all-of.ts b/models/add-person-follower-response-all-of.ts index ea071022..d8b45931 100644 --- a/models/add-person-follower-response-all-of.ts +++ b/models/add-person-follower-response-all-of.ts @@ -28,6 +28,6 @@ export interface AddPersonFollowerResponseAllOf { * @type {AddPersonFollowerResponseAllOfData} * @memberof AddPersonFollowerResponseAllOf */ - 'data'?: AddPersonFollowerResponseAllOfData; + 'data': AddPersonFollowerResponseAllOfData; } diff --git a/models/add-person-picture-response-all-of.ts b/models/add-person-picture-response-all-of.ts index ada86d5d..7d37f9d1 100644 --- a/models/add-person-picture-response-all-of.ts +++ b/models/add-person-picture-response-all-of.ts @@ -28,6 +28,6 @@ export interface AddPersonPictureResponseAllOf { * @type {GetOrganizationsResponseAllOfRelatedObjectsPicture} * @memberof AddPersonPictureResponseAllOf */ - 'data'?: GetOrganizationsResponseAllOfRelatedObjectsPicture; + 'data': GetOrganizationsResponseAllOfRelatedObjectsPicture; } diff --git a/models/add-person-response-all-of.ts b/models/add-person-response-all-of.ts index 9aa1d799..d40c851e 100644 --- a/models/add-person-response-all-of.ts +++ b/models/add-person-response-all-of.ts @@ -31,12 +31,12 @@ export interface AddPersonResponseAllOf { * @type {PersonItem} * @memberof AddPersonResponseAllOf */ - 'data'?: PersonItem; + 'data': PersonItem; /** * * @type {GetProductsResponseAllOfRelatedObjects} * @memberof AddPersonResponseAllOf */ - 'related_objects'?: GetProductsResponseAllOfRelatedObjects; + 'related_objects': GetProductsResponseAllOfRelatedObjects; } diff --git a/models/basic-deal1.ts b/models/basic-deal1.ts new file mode 100644 index 00000000..38462322 --- /dev/null +++ b/models/basic-deal1.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface BasicDeal1 + */ +export interface BasicDeal1 { + [key: string]: any; + + /** + * The optional date and time of changing the deal status as won in UTC. Format: YYYY-MM-DD HH:MM:SS. Can be set only when deal `status` is already Won. Can not be used together with `lost_time`. + * @type {string} + * @memberof BasicDeal1 + */ + 'won_time'?: string; + /** + * The optional date and time of changing the deal status as lost in UTC. Format: YYYY-MM-DD HH:MM:SS. Can be set only when deal `status` is already Lost. Can not be used together with `won_time`. + * @type {string} + * @memberof BasicDeal1 + */ + 'lost_time'?: string; + /** + * The optional date and time of closing the deal in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @type {string} + * @memberof BasicDeal1 + */ + 'close_time'?: string | null; + /** + * The expected close date of the deal. In ISO 8601 format: YYYY-MM-DD. + * @type {string} + * @memberof BasicDeal1 + */ + 'expected_close_date'?: string; + /** + * The success probability percentage of the deal. Used/shown only when `deal_probability` for the pipeline of the deal is enabled. + * @type {number} + * @memberof BasicDeal1 + */ + 'probability'?: number; + /** + * The optional message about why the deal was lost (to be used when status = lost) + * @type {string} + * @memberof BasicDeal1 + */ + 'lost_reason'?: string; + /** + * + * @type {string} + * @memberof BasicDeal1 + */ + 'visible_to'?: BasicDeal1VisibleToConst; +} + +export const BasicDeal1VisibleToConst = { + _1: '1', + _3: '3', + _5: '5', + _7: '7' +} as const; + +export type BasicDeal1VisibleToConst = typeof BasicDeal1VisibleToConst[keyof typeof BasicDeal1VisibleToConst]; + + diff --git a/models/basic-organization1.ts b/models/basic-organization1.ts new file mode 100644 index 00000000..b3b5173b --- /dev/null +++ b/models/basic-organization1.ts @@ -0,0 +1,60 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface BasicOrganization1 + */ +export interface BasicOrganization1 { + [key: string]: any; + + /** + * The ID of the user who will be marked as the owner of this organization. When omitted, the authorized user ID will be used. + * @type {number} + * @memberof BasicOrganization1 + */ + 'owner_id'?: number; + /** + * The label assigned to the organization. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. + * @type {number} + * @memberof BasicOrganization1 + */ + 'label'?: number; + /** + * The IDs of labels assigned to the organization. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. + * @type {Array} + * @memberof BasicOrganization1 + */ + 'label_ids'?: Array; + /** + * + * @type {string} + * @memberof BasicOrganization1 + */ + 'visible_to'?: BasicOrganization1VisibleToConst; +} + +export const BasicOrganization1VisibleToConst = { + _1: '1', + _3: '3', + _5: '5', + _7: '7' +} as const; + +export type BasicOrganization1VisibleToConst = typeof BasicOrganization1VisibleToConst[keyof typeof BasicOrganization1VisibleToConst]; + + diff --git a/models/deal-collection-response-object.ts b/models/deal-collection-response-object.ts index ff0b5986..f5755d29 100644 --- a/models/deal-collection-response-object.ts +++ b/models/deal-collection-response-object.ts @@ -25,126 +25,126 @@ export interface DealCollectionResponseObject { * @type {number} * @memberof DealCollectionResponseObject */ - 'id'?: number; + 'id': number; /** * The ID of the deal creator * @type {number} * @memberof DealCollectionResponseObject */ - 'creator_user_id'?: number; + 'creator_user_id': number; /** * The ID of the user * @type {number} * @memberof DealCollectionResponseObject */ - 'user_id'?: number; + 'user_id': number; /** * The ID of the person associated with the deal * @type {number} * @memberof DealCollectionResponseObject */ - 'person_id'?: number; + 'person_id': number; /** * The ID of the organization associated with the deal * @type {number} * @memberof DealCollectionResponseObject */ - 'org_id'?: number; + 'org_id': number; /** * The ID of the deal stage * @type {number} * @memberof DealCollectionResponseObject */ - 'stage_id'?: number; + 'stage_id': number; /** * The title of the deal * @type {string} * @memberof DealCollectionResponseObject */ - 'title'?: string; + 'title': string; /** * The value of the deal * @type {number} * @memberof DealCollectionResponseObject */ - 'value'?: number; + 'value': number; /** * The currency associated with the deal * @type {string} * @memberof DealCollectionResponseObject */ - 'currency'?: string; + 'currency': string; /** * The creation date and time of the deal in UTC. Format: YYYY-MM-DD HH:MM:SS. * @type {string} * @memberof DealCollectionResponseObject */ - 'add_time'?: string; + 'add_time': string; /** * The last update date and time of the deal in UTC. Format: YYYY-MM-DD HH:MM:SS. * @type {string} * @memberof DealCollectionResponseObject */ - 'update_time'?: string; + 'update_time': string; /** * The status of the deal * @type {string} * @memberof DealCollectionResponseObject */ - 'status'?: string; + 'status': string; /** * The success probability percentage of the deal * @type {number} * @memberof DealCollectionResponseObject */ - 'probability'?: number | null; + 'probability': number | null; /** * The reason for losing the deal * @type {string} * @memberof DealCollectionResponseObject */ - 'lost_reason'?: string | null; + 'lost_reason': string | null; /** * The visibility of the deal * @type {string} * @memberof DealCollectionResponseObject */ - 'visible_to'?: string; + 'visible_to': string; /** * The date and time of closing the deal in UTC. Format: YYYY-MM-DD HH:MM:SS. * @type {string} * @memberof DealCollectionResponseObject */ - 'close_time'?: string | null; + 'close_time': string | null; /** * The ID of the pipeline associated with the deal * @type {number} * @memberof DealCollectionResponseObject */ - 'pipeline_id'?: number; + 'pipeline_id': number; /** * The date and time of changing the deal status to won in UTC. Format: YYYY-MM-DD HH:MM:SS. * @type {string} * @memberof DealCollectionResponseObject */ - 'won_time'?: string; + 'won_time': string; /** * The date and time of changing the deal status to lost in UTC. Format: YYYY-MM-DD HH:MM:SS. * @type {string} * @memberof DealCollectionResponseObject */ - 'lost_time'?: string; + 'lost_time': string; /** * The expected close date of the deal * @type {string} * @memberof DealCollectionResponseObject */ - 'expected_close_date'?: string; + 'expected_close_date': string; /** * The label or multiple labels assigned to the deal * @type {string} * @memberof DealCollectionResponseObject */ - 'label'?: string; + 'label': string; } diff --git a/models/deal-product-request-body.ts b/models/deal-product-request-body.ts index 5aa8d0bb..cd519ffd 100644 --- a/models/deal-product-request-body.ts +++ b/models/deal-product-request-body.ts @@ -75,7 +75,7 @@ export interface DealProductRequestBody { */ 'tax_method'?: DealProductRequestBodyTaxMethodConst; /** - * Whether the product is enabled for a deal or not. This makes it possible to add products to a deal with a specific price and discount criteria, but keep them disabled, which refrains them from being included in the deal value calculation. When omitted, the product will be marked as enabled by default + * Whether the product is enabled for a deal or not This makes it possible to add products to a deal with a specific price and discount criteria, but keep them disabled, which refrains them from being included in the deal value calculation. When omitted, the product will be marked as enabled by default Not possible to disable the product if the deal has installments associated and the product is the last one enabled Not possible to enable the product if the deal has installments associated and the product is recurring * @type {boolean} * @memberof DealProductRequestBody */ diff --git a/models/deal-product-request-body1.ts b/models/deal-product-request-body1.ts index 6d5cbfc2..2c67eee5 100644 --- a/models/deal-product-request-body1.ts +++ b/models/deal-product-request-body1.ts @@ -75,7 +75,7 @@ export interface DealProductRequestBody1 { */ 'tax_method'?: DealProductRequestBody1TaxMethodConst; /** - * Whether the product is enabled for a deal or not. This makes it possible to add products to a deal with a specific price and discount criteria, but keep them disabled, which refrains them from being included in the deal value calculation. When omitted, the product will be marked as enabled by default + * Whether the product is enabled for a deal or not This makes it possible to add products to a deal with a specific price and discount criteria, but keep them disabled, which refrains them from being included in the deal value calculation. When omitted, the product will be marked as enabled by default Not possible to disable the product if the deal has installments associated and the product is the last one enabled Not possible to enable the product if the deal has installments associated and the product is recurring * @type {boolean} * @memberof DealProductRequestBody1 */ diff --git a/models/delete-activity-types-response-all-of.ts b/models/delete-activity-types-response-all-of.ts index 13dbc8cb..7466504f 100644 --- a/models/delete-activity-types-response-all-of.ts +++ b/models/delete-activity-types-response-all-of.ts @@ -28,6 +28,6 @@ export interface DeleteActivityTypesResponseAllOf { * @type {DeleteActivityTypesResponseAllOfData} * @memberof DeleteActivityTypesResponseAllOf */ - 'data'?: DeleteActivityTypesResponseAllOfData; + 'data': DeleteActivityTypesResponseAllOfData; } diff --git a/models/delete-fields-response-all-of.ts b/models/delete-fields-response-all-of.ts index 6acadda2..5dd9f21d 100644 --- a/models/delete-fields-response-all-of.ts +++ b/models/delete-fields-response-all-of.ts @@ -28,6 +28,6 @@ export interface DeleteFieldsResponseAllOf { * @type {DeleteFieldsResponseAllOfData} * @memberof DeleteFieldsResponseAllOf */ - 'data'?: DeleteFieldsResponseAllOfData; + 'data': DeleteFieldsResponseAllOfData; } diff --git a/models/delete-filter-response-all-of.ts b/models/delete-filter-response-all-of.ts index d884b9ab..0b6e0ca1 100644 --- a/models/delete-filter-response-all-of.ts +++ b/models/delete-filter-response-all-of.ts @@ -28,6 +28,6 @@ export interface DeleteFilterResponseAllOf { * @type {DeleteFilterResponseAllOfData} * @memberof DeleteFilterResponseAllOf */ - 'data'?: DeleteFilterResponseAllOfData; + 'data': DeleteFilterResponseAllOfData; } diff --git a/models/delete-filters-response-all-of.ts b/models/delete-filters-response-all-of.ts index f72c85a5..860b6b88 100644 --- a/models/delete-filters-response-all-of.ts +++ b/models/delete-filters-response-all-of.ts @@ -28,6 +28,6 @@ export interface DeleteFiltersResponseAllOf { * @type {DeleteFiltersResponseAllOfData} * @memberof DeleteFiltersResponseAllOf */ - 'data'?: DeleteFiltersResponseAllOfData; + 'data': DeleteFiltersResponseAllOfData; } diff --git a/models/delete-organization-follower-response.ts b/models/delete-organization-follower-response.ts index fd0b49a5..5e7737d7 100644 --- a/models/delete-organization-follower-response.ts +++ b/models/delete-organization-follower-response.ts @@ -28,12 +28,12 @@ export interface DeleteOrganizationFollowerResponse { * @type {boolean} * @memberof DeleteOrganizationFollowerResponse */ - 'success'?: boolean; + 'success': boolean; /** * * @type {DeleteOrganizationFollowerResponseData} * @memberof DeleteOrganizationFollowerResponse */ - 'data'?: DeleteOrganizationFollowerResponseData; + 'data': DeleteOrganizationFollowerResponseData; } diff --git a/models/delete-organization-relationship-response-all-of.ts b/models/delete-organization-relationship-response-all-of.ts index 49b3b158..ece53f01 100644 --- a/models/delete-organization-relationship-response-all-of.ts +++ b/models/delete-organization-relationship-response-all-of.ts @@ -28,6 +28,6 @@ export interface DeleteOrganizationRelationshipResponseAllOf { * @type {DeleteOrganizationRelationshipResponseAllOfData} * @memberof DeleteOrganizationRelationshipResponseAllOf */ - 'data'?: DeleteOrganizationRelationshipResponseAllOfData; + 'data': DeleteOrganizationRelationshipResponseAllOfData; } diff --git a/models/delete-organization-response.ts b/models/delete-organization-response.ts index 41e300af..393906e5 100644 --- a/models/delete-organization-response.ts +++ b/models/delete-organization-response.ts @@ -28,12 +28,12 @@ export interface DeleteOrganizationResponse { * @type {boolean} * @memberof DeleteOrganizationResponse */ - 'success'?: boolean; + 'success': boolean; /** * * @type {DeleteOrganizationResponseData} * @memberof DeleteOrganizationResponse */ - 'data'?: DeleteOrganizationResponseData; + 'data': DeleteOrganizationResponseData; } diff --git a/models/delete-organizations-response.ts b/models/delete-organizations-response.ts index 3edc854b..ced46b65 100644 --- a/models/delete-organizations-response.ts +++ b/models/delete-organizations-response.ts @@ -28,12 +28,12 @@ export interface DeleteOrganizationsResponse { * @type {boolean} * @memberof DeleteOrganizationsResponse */ - 'success'?: boolean; + 'success': boolean; /** * * @type {DeleteOrganizationsResponseData} * @memberof DeleteOrganizationsResponse */ - 'data'?: DeleteOrganizationsResponseData; + 'data': DeleteOrganizationsResponseData; } diff --git a/models/delete-person-response-all-of.ts b/models/delete-person-response-all-of.ts index 41caea76..ba40e8da 100644 --- a/models/delete-person-response-all-of.ts +++ b/models/delete-person-response-all-of.ts @@ -28,6 +28,6 @@ export interface DeletePersonResponseAllOf { * @type {DeletePersonResponseAllOfData} * @memberof DeletePersonResponseAllOf */ - 'data'?: DeletePersonResponseAllOfData; + 'data': DeletePersonResponseAllOfData; } diff --git a/models/delete-persons-response-all-of.ts b/models/delete-persons-response-all-of.ts index 0f918078..b004510f 100644 --- a/models/delete-persons-response-all-of.ts +++ b/models/delete-persons-response-all-of.ts @@ -28,6 +28,6 @@ export interface DeletePersonsResponseAllOf { * @type {DeletePersonsResponseAllOfData} * @memberof DeletePersonsResponseAllOf */ - 'data'?: DeletePersonsResponseAllOfData; + 'data': DeletePersonsResponseAllOfData; } diff --git a/models/delete-product-field-response.ts b/models/delete-product-field-response.ts index 83b3cbfa..818350e0 100644 --- a/models/delete-product-field-response.ts +++ b/models/delete-product-field-response.ts @@ -28,12 +28,12 @@ export interface DeleteProductFieldResponse { * @type {boolean} * @memberof DeleteProductFieldResponse */ - 'success'?: boolean; + 'success': boolean; /** * * @type {DeleteProductResponseData} * @memberof DeleteProductFieldResponse */ - 'data'?: DeleteProductResponseData; + 'data': DeleteProductResponseData; } diff --git a/models/delete-product-fields-response.ts b/models/delete-product-fields-response.ts index be6f4145..c3c40dca 100644 --- a/models/delete-product-fields-response.ts +++ b/models/delete-product-fields-response.ts @@ -28,12 +28,12 @@ export interface DeleteProductFieldsResponse { * @type {boolean} * @memberof DeleteProductFieldsResponse */ - 'success'?: boolean; + 'success': boolean; /** * * @type {DeleteProductFieldsResponseData} * @memberof DeleteProductFieldsResponse */ - 'data'?: DeleteProductFieldsResponseData; + 'data': DeleteProductFieldsResponseData; } diff --git a/models/delete-product-follower-response.ts b/models/delete-product-follower-response.ts index d674c7c9..8fc26e61 100644 --- a/models/delete-product-follower-response.ts +++ b/models/delete-product-follower-response.ts @@ -28,12 +28,12 @@ export interface DeleteProductFollowerResponse { * @type {boolean} * @memberof DeleteProductFollowerResponse */ - 'success'?: boolean; + 'success': boolean; /** * * @type {DeleteProductResponseData} * @memberof DeleteProductFollowerResponse */ - 'data'?: DeleteProductResponseData; + 'data': DeleteProductResponseData; } diff --git a/models/delete-product-response.ts b/models/delete-product-response.ts index 7a6342f0..b79a6224 100644 --- a/models/delete-product-response.ts +++ b/models/delete-product-response.ts @@ -28,12 +28,12 @@ export interface DeleteProductResponse { * @type {boolean} * @memberof DeleteProductResponse */ - 'success'?: boolean; + 'success': boolean; /** * * @type {DeleteProductResponseData} * @memberof DeleteProductResponse */ - 'data'?: DeleteProductResponseData; + 'data': DeleteProductResponseData; } diff --git a/models/delete-response-all-of.ts b/models/delete-response-all-of.ts index 1263cc92..04a59886 100644 --- a/models/delete-response-all-of.ts +++ b/models/delete-response-all-of.ts @@ -28,6 +28,6 @@ export interface DeleteResponseAllOf { * @type {DeleteResponseAllOfData} * @memberof DeleteResponseAllOf */ - 'data'?: DeleteResponseAllOfData; + 'data': DeleteResponseAllOfData; } diff --git a/models/fail-response.ts b/models/fail-response.ts index 077f006b..bb91ee4b 100644 --- a/models/fail-response.ts +++ b/models/fail-response.ts @@ -25,12 +25,12 @@ export interface FailResponse { * @type {boolean} * @memberof FailResponse */ - 'success'?: boolean; + 'success': boolean; /** * The error message * @type {string} * @memberof FailResponse */ - 'error'?: string; + 'error': string; } diff --git a/models/get-activity-types-response-all-of-data-inner.ts b/models/get-activity-types-response-all-of-data-inner.ts index f8844496..28c11c63 100644 --- a/models/get-activity-types-response-all-of-data-inner.ts +++ b/models/get-activity-types-response-all-of-data-inner.ts @@ -25,61 +25,61 @@ export interface GetActivityTypesResponseAllOfDataInner { * @type {number} * @memberof GetActivityTypesResponseAllOfDataInner */ - 'id'?: number; + 'id': number; /** * The name of the activity type * @type {string} * @memberof GetActivityTypesResponseAllOfDataInner */ - 'name'?: string; + 'name': string; /** * Icon graphic to use for representing this activity type * @type {string} * @memberof GetActivityTypesResponseAllOfDataInner */ - 'icon_key'?: GetActivityTypesResponseAllOfDataInnerIconKeyConst; + 'icon_key': GetActivityTypesResponseAllOfDataInnerIconKeyConst; /** * A designated color for the activity type in 6-character HEX format (e.g. `FFFFFF` for white, `000000` for black) * @type {string} * @memberof GetActivityTypesResponseAllOfDataInner */ - 'color'?: string; + 'color': string; /** * An order number for the activity type. Order numbers should be used to order the types in the activity type selections. * @type {number} * @memberof GetActivityTypesResponseAllOfDataInner */ - 'order_nr'?: number; + 'order_nr': number; /** * A string that is generated by the API based on the given name of the activity type upon creation * @type {string} * @memberof GetActivityTypesResponseAllOfDataInner */ - 'key_string'?: string; + 'key_string': string; /** * The active flag of the activity type * @type {boolean} * @memberof GetActivityTypesResponseAllOfDataInner */ - 'active_flag'?: boolean; + 'active_flag': boolean; /** * Whether the activity type is a custom one or not * @type {boolean} * @memberof GetActivityTypesResponseAllOfDataInner */ - 'is_custom_flag'?: boolean; + 'is_custom_flag': boolean; /** * The creation time of the activity type * @type {string} * @memberof GetActivityTypesResponseAllOfDataInner */ - 'add_time'?: string; + 'add_time': string; /** * The update time of the activity type * @type {string} * @memberof GetActivityTypesResponseAllOfDataInner */ - 'update_time'?: string; + 'update_time': string; } export const GetActivityTypesResponseAllOfDataInnerIconKeyConst = { diff --git a/models/get-activity-types-response-all-of.ts b/models/get-activity-types-response-all-of.ts index bdd4c64b..df4bbe53 100644 --- a/models/get-activity-types-response-all-of.ts +++ b/models/get-activity-types-response-all-of.ts @@ -28,6 +28,6 @@ export interface GetActivityTypesResponseAllOf { * @type {Array} * @memberof GetActivityTypesResponseAllOf */ - 'data'?: Array; + 'data': Array; } diff --git a/models/get-associated-activities-response-all-of.ts b/models/get-associated-activities-response-all-of.ts index 4fc475bd..00bd856f 100644 --- a/models/get-associated-activities-response-all-of.ts +++ b/models/get-associated-activities-response-all-of.ts @@ -31,12 +31,12 @@ export interface GetAssociatedActivitiesResponseAllOf { * @type {Array} * @memberof GetAssociatedActivitiesResponseAllOf */ - 'data'?: Array; + 'data': Array; /** * * @type {ActivityDistributionDataWithAdditionalData} * @memberof GetAssociatedActivitiesResponseAllOf */ - 'additional_data'?: ActivityDistributionDataWithAdditionalData; + 'additional_data': ActivityDistributionDataWithAdditionalData; } diff --git a/models/get-associated-deals-response-all-of.ts b/models/get-associated-deals-response-all-of.ts index 5c160d4e..40daa938 100644 --- a/models/get-associated-deals-response-all-of.ts +++ b/models/get-associated-deals-response-all-of.ts @@ -34,18 +34,18 @@ export interface GetAssociatedDealsResponseAllOf { * @type {Array} * @memberof GetAssociatedDealsResponseAllOf */ - 'data'?: Array; + 'data': Array; /** * * @type {GetFieldsResponseAllOfAdditionalData} * @memberof GetAssociatedDealsResponseAllOf */ - 'additional_data'?: GetFieldsResponseAllOfAdditionalData; + 'additional_data': GetFieldsResponseAllOfAdditionalData; /** * * @type {GetAssociatedDealsResponseAllOfRelatedObjects} * @memberof GetAssociatedDealsResponseAllOf */ - 'related_objects'?: GetAssociatedDealsResponseAllOfRelatedObjects; + 'related_objects': GetAssociatedDealsResponseAllOfRelatedObjects; } diff --git a/models/get-associated-files-response-all-of.ts b/models/get-associated-files-response-all-of.ts index 396b69e5..2c7bd032 100644 --- a/models/get-associated-files-response-all-of.ts +++ b/models/get-associated-files-response-all-of.ts @@ -31,12 +31,12 @@ export interface GetAssociatedFilesResponseAllOf { * @type {Array} * @memberof GetAssociatedFilesResponseAllOf */ - 'data'?: Array; + 'data': Array; /** * * @type {GetFieldsResponseAllOfAdditionalData} * @memberof GetAssociatedFilesResponseAllOf */ - 'additional_data'?: GetFieldsResponseAllOfAdditionalData; + 'additional_data': GetFieldsResponseAllOfAdditionalData; } diff --git a/models/get-associated-followers-response-all-of.ts b/models/get-associated-followers-response-all-of.ts index 63b00c0d..9038eaf7 100644 --- a/models/get-associated-followers-response-all-of.ts +++ b/models/get-associated-followers-response-all-of.ts @@ -31,12 +31,12 @@ export interface GetAssociatedFollowersResponseAllOf { * @type {Array} * @memberof GetAssociatedFollowersResponseAllOf */ - 'data'?: Array; + 'data': Array; /** * * @type {GetFieldsResponseAllOfAdditionalData} * @memberof GetAssociatedFollowersResponseAllOf */ - 'additional_data'?: GetFieldsResponseAllOfAdditionalData; + 'additional_data': GetFieldsResponseAllOfAdditionalData; } diff --git a/models/get-associated-followers-response1.ts b/models/get-associated-followers-response1.ts index 8a8f0a4c..37937911 100644 --- a/models/get-associated-followers-response1.ts +++ b/models/get-associated-followers-response1.ts @@ -31,18 +31,18 @@ export interface GetAssociatedFollowersResponse1 { * @type {boolean} * @memberof GetAssociatedFollowersResponse1 */ - 'success'?: boolean; + 'success': boolean; /** * The array of followers * @type {Array} * @memberof GetAssociatedFollowersResponse1 */ - 'data'?: Array; + 'data': Array; /** * * @type {GetActivitiesResponseAdditionalData} * @memberof GetAssociatedFollowersResponse1 */ - 'additional_data'?: GetActivitiesResponseAdditionalData; + 'additional_data': GetActivitiesResponseAdditionalData; } diff --git a/models/get-associated-mail-messages-response-all-of.ts b/models/get-associated-mail-messages-response-all-of.ts index 174c80d8..08582d05 100644 --- a/models/get-associated-mail-messages-response-all-of.ts +++ b/models/get-associated-mail-messages-response-all-of.ts @@ -31,12 +31,12 @@ export interface GetAssociatedMailMessagesResponseAllOf { * @type {Array} * @memberof GetAssociatedMailMessagesResponseAllOf */ - 'data'?: Array; + 'data': Array; /** * * @type {GetFieldsResponseAllOfAdditionalData} * @memberof GetAssociatedMailMessagesResponseAllOf */ - 'additional_data'?: GetFieldsResponseAllOfAdditionalData; + 'additional_data': GetFieldsResponseAllOfAdditionalData; } diff --git a/models/get-associated-organization-updates-response-all-of.ts b/models/get-associated-organization-updates-response-all-of.ts index 7e76f27d..9acb522e 100644 --- a/models/get-associated-organization-updates-response-all-of.ts +++ b/models/get-associated-organization-updates-response-all-of.ts @@ -34,18 +34,18 @@ export interface GetAssociatedOrganizationUpdatesResponseAllOf { * @type {Array} * @memberof GetAssociatedOrganizationUpdatesResponseAllOf */ - 'data'?: Array; + 'data': Array; /** * * @type {GetFieldsResponseAllOfAdditionalData} * @memberof GetAssociatedOrganizationUpdatesResponseAllOf */ - 'additional_data'?: GetFieldsResponseAllOfAdditionalData; + 'additional_data': GetFieldsResponseAllOfAdditionalData; /** * * @type {GetAssociatedOrganizationUpdatesResponseAllOfRelatedObjects} * @memberof GetAssociatedOrganizationUpdatesResponseAllOf */ - 'related_objects'?: GetAssociatedOrganizationUpdatesResponseAllOfRelatedObjects; + 'related_objects': GetAssociatedOrganizationUpdatesResponseAllOfRelatedObjects; } diff --git a/models/get-associated-person-updates-response-all-of.ts b/models/get-associated-person-updates-response-all-of.ts index a058b316..fe979317 100644 --- a/models/get-associated-person-updates-response-all-of.ts +++ b/models/get-associated-person-updates-response-all-of.ts @@ -34,18 +34,18 @@ export interface GetAssociatedPersonUpdatesResponseAllOf { * @type {Array} * @memberof GetAssociatedPersonUpdatesResponseAllOf */ - 'data'?: Array; + 'data': Array; /** * * @type {GetFieldsResponseAllOfAdditionalData} * @memberof GetAssociatedPersonUpdatesResponseAllOf */ - 'additional_data'?: GetFieldsResponseAllOfAdditionalData; + 'additional_data': GetFieldsResponseAllOfAdditionalData; /** * * @type {GetDealUpdatesResponseAllOfRelatedObjects} * @memberof GetAssociatedPersonUpdatesResponseAllOf */ - 'related_objects'?: GetDealUpdatesResponseAllOfRelatedObjects; + 'related_objects': GetDealUpdatesResponseAllOfRelatedObjects; } diff --git a/models/get-associated-product-files-response-all-of.ts b/models/get-associated-product-files-response-all-of.ts index 3c5069a9..62491ee3 100644 --- a/models/get-associated-product-files-response-all-of.ts +++ b/models/get-associated-product-files-response-all-of.ts @@ -31,12 +31,12 @@ export interface GetAssociatedProductFilesResponseAllOf { * @type {Array} * @memberof GetAssociatedProductFilesResponseAllOf */ - 'data'?: Array; + 'data': Array; /** * * @type {GetFieldsResponseAllOfAdditionalData} * @memberof GetAssociatedProductFilesResponseAllOf */ - 'additional_data'?: GetFieldsResponseAllOfAdditionalData; + 'additional_data': GetFieldsResponseAllOfAdditionalData; } diff --git a/models/get-call-log-response.ts b/models/get-call-log-response.ts index c614bf78..5fe40e78 100644 --- a/models/get-call-log-response.ts +++ b/models/get-call-log-response.ts @@ -28,12 +28,12 @@ export interface GetCallLogResponse { * @type {boolean} * @memberof GetCallLogResponse */ - 'success'?: boolean; + 'success': boolean; /** * * @type {ResponseCallLogObject} * @memberof GetCallLogResponse */ - 'data'?: ResponseCallLogObject; + 'data': ResponseCallLogObject; } diff --git a/models/get-call-logs-response.ts b/models/get-call-logs-response.ts index 32d34636..174a8078 100644 --- a/models/get-call-logs-response.ts +++ b/models/get-call-logs-response.ts @@ -31,18 +31,18 @@ export interface GetCallLogsResponse { * @type {boolean} * @memberof GetCallLogsResponse */ - 'success'?: boolean; + 'success': boolean; /** * * @type {Array} * @memberof GetCallLogsResponse */ - 'data'?: Array; + 'data': Array; /** * * @type {GetCallLogsResponseAdditionalData} * @memberof GetCallLogsResponse */ - 'additional_data'?: GetCallLogsResponseAdditionalData; + 'additional_data': GetCallLogsResponseAdditionalData; } diff --git a/models/get-changelog-response-all-of.ts b/models/get-changelog-response-all-of.ts index fa0df602..8dc0b646 100644 --- a/models/get-changelog-response-all-of.ts +++ b/models/get-changelog-response-all-of.ts @@ -31,12 +31,12 @@ export interface GetChangelogResponseAllOf { * @type {Array} * @memberof GetChangelogResponseAllOf */ - 'data'?: Array; + 'data': Array; /** * * @type {GetActivitiesCollectionResponseAdditionalData} * @memberof GetChangelogResponseAllOf */ - 'additional_data'?: GetActivitiesCollectionResponseAdditionalData; + 'additional_data': GetActivitiesCollectionResponseAdditionalData; } diff --git a/models/get-deal-activities-response-all-of.ts b/models/get-deal-activities-response-all-of.ts index 96ca97bb..44a52e56 100644 --- a/models/get-deal-activities-response-all-of.ts +++ b/models/get-deal-activities-response-all-of.ts @@ -34,18 +34,18 @@ export interface GetDealActivitiesResponseAllOf { * @type {Array} * @memberof GetDealActivitiesResponseAllOf */ - 'data'?: Array; + 'data': Array; /** * * @type {ActivityDistributionDataWithAdditionalData} * @memberof GetDealActivitiesResponseAllOf */ - 'additional_data'?: ActivityDistributionDataWithAdditionalData; + 'additional_data': ActivityDistributionDataWithAdditionalData; /** * * @type {GetDealActivitiesResponseAllOfRelatedObjects} * @memberof GetDealActivitiesResponseAllOf */ - 'related_objects'?: GetDealActivitiesResponseAllOfRelatedObjects; + 'related_objects': GetDealActivitiesResponseAllOfRelatedObjects; } diff --git a/models/get-deal-search-response-all-of.ts b/models/get-deal-search-response-all-of.ts index 1263c42b..9877a220 100644 --- a/models/get-deal-search-response-all-of.ts +++ b/models/get-deal-search-response-all-of.ts @@ -31,12 +31,12 @@ export interface GetDealSearchResponseAllOf { * @type {GetDealSearchResponseAllOfData} * @memberof GetDealSearchResponseAllOf */ - 'data'?: GetDealSearchResponseAllOfData; + 'data': GetDealSearchResponseAllOfData; /** * * @type {GetActivitiesResponseAdditionalData} * @memberof GetDealSearchResponseAllOf */ - 'additional_data'?: GetActivitiesResponseAdditionalData; + 'additional_data': GetActivitiesResponseAdditionalData; } diff --git a/models/get-deal-updates-response-all-of.ts b/models/get-deal-updates-response-all-of.ts index 425a789c..67927575 100644 --- a/models/get-deal-updates-response-all-of.ts +++ b/models/get-deal-updates-response-all-of.ts @@ -34,18 +34,18 @@ export interface GetDealUpdatesResponseAllOf { * @type {Array} * @memberof GetDealUpdatesResponseAllOf */ - 'data'?: Array; + 'data': Array; /** * * @type {GetFieldsResponseAllOfAdditionalData} * @memberof GetDealUpdatesResponseAllOf */ - 'additional_data'?: GetFieldsResponseAllOfAdditionalData; + 'additional_data': GetFieldsResponseAllOfAdditionalData; /** * * @type {GetDealUpdatesResponseAllOfRelatedObjects} * @memberof GetDealUpdatesResponseAllOf */ - 'related_objects'?: GetDealUpdatesResponseAllOfRelatedObjects; + 'related_objects': GetDealUpdatesResponseAllOfRelatedObjects; } diff --git a/models/get-field-response-all-of.ts b/models/get-field-response-all-of.ts index 527158cf..203b9f57 100644 --- a/models/get-field-response-all-of.ts +++ b/models/get-field-response-all-of.ts @@ -15,7 +15,7 @@ // May contain unused imports in some cases // @ts-ignore -import { GetFieldsResponseAllOfDataInner } from './get-fields-response-all-of-data-inner'; +import { GetFieldsResponseAllOfDataInnerAllOf } from './get-fields-response-all-of-data-inner-all-of'; /** * @@ -25,9 +25,9 @@ import { GetFieldsResponseAllOfDataInner } from './get-fields-response-all-of-da export interface GetFieldResponseAllOf { /** * - * @type {GetFieldsResponseAllOfDataInner} + * @type {GetFieldsResponseAllOfDataInnerAllOf} * @memberof GetFieldResponseAllOf */ - 'data'?: GetFieldsResponseAllOfDataInner; + 'data': GetFieldsResponseAllOfDataInnerAllOf; } diff --git a/models/get-field-response.ts b/models/get-field-response.ts index 1cdba8a8..e0e266e1 100644 --- a/models/get-field-response.ts +++ b/models/get-field-response.ts @@ -21,7 +21,7 @@ import { BaseResponse } from './base-response'; import { GetFieldResponseAllOf } from './get-field-response-all-of'; // May contain unused imports in some cases // @ts-ignore -import { GetFieldsResponseAllOfDataInner } from './get-fields-response-all-of-data-inner'; +import { GetFieldsResponseAllOfDataInnerAllOf } from './get-fields-response-all-of-data-inner-all-of'; /** * @type GetFieldResponse diff --git a/models/get-fields-response-all-of-data-inner-all-of.ts b/models/get-fields-response-all-of-data-inner-all-of.ts new file mode 100644 index 00000000..c124a36d --- /dev/null +++ b/models/get-fields-response-all-of-data-inner-all-of.ts @@ -0,0 +1,191 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface GetFieldsResponseAllOfDataInnerAllOf + */ +export interface GetFieldsResponseAllOfDataInnerAllOf { + /** + * The ID of the field. Value is `null` in case of subfields. + * @type {number} + * @memberof GetFieldsResponseAllOfDataInnerAllOf + */ + 'id'?: number; + /** + * The key of the field. For custom fields this is generated upon creation. + * @type {string} + * @memberof GetFieldsResponseAllOfDataInnerAllOf + */ + 'key'?: string; + /** + * The name of the field + * @type {string} + * @memberof GetFieldsResponseAllOfDataInnerAllOf + */ + 'name'?: string; + /** + * The order number of the field + * @type {number} + * @memberof GetFieldsResponseAllOfDataInnerAllOf + */ + 'order_nr'?: number; + /** + * The type of the field
ValueDescription
`address`Address field
`date`Date (format YYYY-MM-DD)
`daterange`Date-range field (has a start date and end date value, both YYYY-MM-DD)
`double`Numeric value
`enum`Options field with a single possible chosen option
`monetary`Monetary field (has a numeric value and a currency value)
`org`Organization field (contains an organization ID which is stored on the same account)
`people`Person field (contains a person ID which is stored on the same account)
`phone`Phone field (up to 255 numbers and/or characters)
`set`Options field with a possibility of having multiple chosen options
`text`Long text (up to 65k characters)
`time`Time field (format HH:MM:SS)
`timerange`Time-range field (has a start time and end time value, both HH:MM:SS)
`user`User field (contains a user ID of another Pipedrive user)
`varchar`Text (up to 255 characters)
`varchar_auto`Autocomplete text (up to 255 characters)
`visible_to`System field that keeps item\'s visibility setting
+ * @type {string} + * @memberof GetFieldsResponseAllOfDataInnerAllOf + */ + 'field_type'?: GetFieldsResponseAllOfDataInnerAllOfFieldTypeConst; + /** + * The creation time of the field + * @type {string} + * @memberof GetFieldsResponseAllOfDataInnerAllOf + */ + 'add_time'?: string; + /** + * The update time of the field + * @type {string} + * @memberof GetFieldsResponseAllOfDataInnerAllOf + */ + 'update_time'?: string; + /** + * The ID of the user who created or most recently updated the field, only applicable for custom fields + * @type {number} + * @memberof GetFieldsResponseAllOfDataInnerAllOf + */ + 'last_updated_by_user_id'?: number; + /** + * The ID of the user who created the field + * @type {number} + * @memberof GetFieldsResponseAllOfDataInnerAllOf + */ + 'created_by_user_id'?: number; + /** + * The active flag of the field + * @type {boolean} + * @memberof GetFieldsResponseAllOfDataInnerAllOf + */ + 'active_flag'?: boolean; + /** + * The edit flag of the field + * @type {boolean} + * @memberof GetFieldsResponseAllOfDataInnerAllOf + */ + 'edit_flag'?: boolean; + /** + * Not used + * @type {boolean} + * @memberof GetFieldsResponseAllOfDataInnerAllOf + */ + 'index_visible_flag'?: boolean; + /** + * Not used + * @type {boolean} + * @memberof GetFieldsResponseAllOfDataInnerAllOf + */ + 'details_visible_flag'?: boolean; + /** + * Not used + * @type {boolean} + * @memberof GetFieldsResponseAllOfDataInnerAllOf + */ + 'add_visible_flag'?: boolean; + /** + * Not used + * @type {boolean} + * @memberof GetFieldsResponseAllOfDataInnerAllOf + */ + 'important_flag'?: boolean; + /** + * Whether or not the field of an item can be edited in bulk + * @type {boolean} + * @memberof GetFieldsResponseAllOfDataInnerAllOf + */ + 'bulk_edit_allowed'?: boolean; + /** + * Whether or not items can be searched by this field + * @type {boolean} + * @memberof GetFieldsResponseAllOfDataInnerAllOf + */ + 'searchable_flag'?: boolean; + /** + * Whether or not items can be filtered by this field + * @type {boolean} + * @memberof GetFieldsResponseAllOfDataInnerAllOf + */ + 'filtering_allowed'?: boolean; + /** + * Whether or not items can be sorted by this field + * @type {boolean} + * @memberof GetFieldsResponseAllOfDataInnerAllOf + */ + 'sortable_flag'?: boolean; + /** + * Whether or not the field is mandatory + * @type {boolean} + * @memberof GetFieldsResponseAllOfDataInnerAllOf + */ + 'mandatory_flag'?: boolean; + /** + * The options of the field. When there are no options, `null` is returned. + * @type {Array} + * @memberof GetFieldsResponseAllOfDataInnerAllOf + */ + 'options'?: Array | null; + /** + * The deleted options of the field. Only present when there is at least 1 deleted option. + * @type {Array} + * @memberof GetFieldsResponseAllOfDataInnerAllOf + */ + 'options_deleted'?: Array; + /** + * Whether or not the field is a subfield of another field. Only present if field is subfield. + * @type {boolean} + * @memberof GetFieldsResponseAllOfDataInnerAllOf + */ + 'is_subfield'?: boolean; + /** + * The subfields of the field. Only present when the field has subfields. + * @type {Array} + * @memberof GetFieldsResponseAllOfDataInnerAllOf + */ + 'subfields'?: Array; +} + +export const GetFieldsResponseAllOfDataInnerAllOfFieldTypeConst = { + address: 'address', + date: 'date', + daterange: 'daterange', + double: 'double', + enum: 'enum', + monetary: 'monetary', + org: 'org', + people: 'people', + phone: 'phone', + set: 'set', + text: 'text', + time: 'time', + timerange: 'timerange', + user: 'user', + varchar: 'varchar', + varchar_auto: 'varchar_auto', + visible_to: 'visible_to' +} as const; + +export type GetFieldsResponseAllOfDataInnerAllOfFieldTypeConst = typeof GetFieldsResponseAllOfDataInnerAllOfFieldTypeConst[keyof typeof GetFieldsResponseAllOfDataInnerAllOfFieldTypeConst]; + + diff --git a/models/get-fields-response-all-of-data-inner-all-of1.ts b/models/get-fields-response-all-of-data-inner-all-of1.ts new file mode 100644 index 00000000..c28ee336 --- /dev/null +++ b/models/get-fields-response-all-of-data-inner-all-of1.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface GetFieldsResponseAllOfDataInnerAllOf1 + */ +export interface GetFieldsResponseAllOfDataInnerAllOf1 { + /** + * List of all possible field types + * @type {string} + * @memberof GetFieldsResponseAllOfDataInnerAllOf1 + */ + 'field_type'?: GetFieldsResponseAllOfDataInnerAllOf1FieldTypeConst; +} + +export const GetFieldsResponseAllOfDataInnerAllOf1FieldTypeConst = { + boolean: 'boolean', + double: 'double', + int: 'int', + json: 'json', + date: 'date', + daterange: 'daterange', + time: 'time', + timerange: 'timerange', + text: 'text', + varchar: 'varchar', + varchar_auto: 'varchar_auto', + varchar_options: 'varchar_options', + address: 'address', + enum: 'enum', + monetary: 'monetary', + phone: 'phone', + set: 'set', + activity: 'activity', + deal: 'deal', + lead: 'lead', + org: 'org', + people: 'people', + pipeline: 'pipeline', + product: 'product', + project: 'project', + stage: 'stage', + user: 'user', + billing_frequency: 'billing_frequency', + picture: 'picture', + price_list: 'price_list', + projects_board: 'projects_board', + projects_phase: 'projects_phase', + status: 'status', + visible_to: 'visible_to' +} as const; + +export type GetFieldsResponseAllOfDataInnerAllOf1FieldTypeConst = typeof GetFieldsResponseAllOfDataInnerAllOf1FieldTypeConst[keyof typeof GetFieldsResponseAllOfDataInnerAllOf1FieldTypeConst]; + + diff --git a/models/get-fields-response-all-of-data-inner.ts b/models/get-fields-response-all-of-data-inner.ts index b0aade43..433f56e0 100644 --- a/models/get-fields-response-all-of-data-inner.ts +++ b/models/get-fields-response-all-of-data-inner.ts @@ -13,179 +13,17 @@ */ +// May contain unused imports in some cases +// @ts-ignore +import { GetFieldsResponseAllOfDataInnerAllOf } from './get-fields-response-all-of-data-inner-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetFieldsResponseAllOfDataInnerAllOf1 } from './get-fields-response-all-of-data-inner-all-of1'; /** - * + * @type GetFieldsResponseAllOfDataInner * @export - * @interface GetFieldsResponseAllOfDataInner */ -export interface GetFieldsResponseAllOfDataInner { - /** - * The ID of the field. Value is `null` in case of subfields. - * @type {number} - * @memberof GetFieldsResponseAllOfDataInner - */ - 'id'?: number; - /** - * The key of the field. For custom fields this is generated upon creation. - * @type {string} - * @memberof GetFieldsResponseAllOfDataInner - */ - 'key'?: string; - /** - * The name of the field - * @type {string} - * @memberof GetFieldsResponseAllOfDataInner - */ - 'name'?: string; - /** - * The order number of the field - * @type {number} - * @memberof GetFieldsResponseAllOfDataInner - */ - 'order_nr'?: number; - /** - * The type of the field
ValueDescription
`address`Address field
`date`Date (format YYYY-MM-DD)
`daterange`Date-range field (has a start date and end date value, both YYYY-MM-DD)
`double`Numeric value
`enum`Options field with a single possible chosen option
`monetary`Monetary field (has a numeric value and a currency value)
`org`Organization field (contains an organization ID which is stored on the same account)
`people`Person field (contains a person ID which is stored on the same account)
`phone`Phone field (up to 255 numbers and/or characters)
`set`Options field with a possibility of having multiple chosen options
`text`Long text (up to 65k characters)
`time`Time field (format HH:MM:SS)
`timerange`Time-range field (has a start time and end time value, both HH:MM:SS)
`user`User field (contains a user ID of another Pipedrive user)
`varchar`Text (up to 255 characters)
`varchar_auto`Autocomplete text (up to 255 characters)
`visible_to`System field that keeps item\'s visibility setting
- * @type {string} - * @memberof GetFieldsResponseAllOfDataInner - */ - 'field_type'?: GetFieldsResponseAllOfDataInnerFieldTypeConst; - /** - * The creation time of the field - * @type {string} - * @memberof GetFieldsResponseAllOfDataInner - */ - 'add_time'?: string; - /** - * The update time of the field - * @type {string} - * @memberof GetFieldsResponseAllOfDataInner - */ - 'update_time'?: string; - /** - * The ID of the user who created or most recently updated the field, only applicable for custom fields - * @type {number} - * @memberof GetFieldsResponseAllOfDataInner - */ - 'last_updated_by_user_id'?: number; - /** - * The ID of the user who created the field - * @type {number} - * @memberof GetFieldsResponseAllOfDataInner - */ - 'created_by_user_id'?: number; - /** - * The active flag of the field - * @type {boolean} - * @memberof GetFieldsResponseAllOfDataInner - */ - 'active_flag'?: boolean; - /** - * The edit flag of the field - * @type {boolean} - * @memberof GetFieldsResponseAllOfDataInner - */ - 'edit_flag'?: boolean; - /** - * Not used - * @type {boolean} - * @memberof GetFieldsResponseAllOfDataInner - */ - 'index_visible_flag'?: boolean; - /** - * Not used - * @type {boolean} - * @memberof GetFieldsResponseAllOfDataInner - */ - 'details_visible_flag'?: boolean; - /** - * Not used - * @type {boolean} - * @memberof GetFieldsResponseAllOfDataInner - */ - 'add_visible_flag'?: boolean; - /** - * Not used - * @type {boolean} - * @memberof GetFieldsResponseAllOfDataInner - */ - 'important_flag'?: boolean; - /** - * Whether or not the field of an item can be edited in bulk - * @type {boolean} - * @memberof GetFieldsResponseAllOfDataInner - */ - 'bulk_edit_allowed'?: boolean; - /** - * Whether or not items can be searched by this field - * @type {boolean} - * @memberof GetFieldsResponseAllOfDataInner - */ - 'searchable_flag'?: boolean; - /** - * Whether or not items can be filtered by this field - * @type {boolean} - * @memberof GetFieldsResponseAllOfDataInner - */ - 'filtering_allowed'?: boolean; - /** - * Whether or not items can be sorted by this field - * @type {boolean} - * @memberof GetFieldsResponseAllOfDataInner - */ - 'sortable_flag'?: boolean; - /** - * Whether or not the field is mandatory - * @type {boolean} - * @memberof GetFieldsResponseAllOfDataInner - */ - 'mandatory_flag'?: boolean; - /** - * The options of the field. When there are no options, `null` is returned. - * @type {Array} - * @memberof GetFieldsResponseAllOfDataInner - */ - 'options'?: Array | null; - /** - * The deleted options of the field. Only present when there is at least 1 deleted option. - * @type {Array} - * @memberof GetFieldsResponseAllOfDataInner - */ - 'options_deleted'?: Array; - /** - * Whether or not the field is a subfield of another field. Only present if field is subfield. - * @type {boolean} - * @memberof GetFieldsResponseAllOfDataInner - */ - 'is_subfield'?: boolean; - /** - * The subfields of the field. Only present when the field has subfields. - * @type {Array} - * @memberof GetFieldsResponseAllOfDataInner - */ - 'subfields'?: Array; -} - -export const GetFieldsResponseAllOfDataInnerFieldTypeConst = { - address: 'address', - date: 'date', - daterange: 'daterange', - double: 'double', - enum: 'enum', - monetary: 'monetary', - org: 'org', - people: 'people', - phone: 'phone', - set: 'set', - text: 'text', - time: 'time', - timerange: 'timerange', - user: 'user', - varchar: 'varchar', - varchar_auto: 'varchar_auto', - visible_to: 'visible_to' -} as const; - -export type GetFieldsResponseAllOfDataInnerFieldTypeConst = typeof GetFieldsResponseAllOfDataInnerFieldTypeConst[keyof typeof GetFieldsResponseAllOfDataInnerFieldTypeConst]; +export type GetFieldsResponseAllOfDataInner = GetFieldsResponseAllOfDataInnerAllOf & GetFieldsResponseAllOfDataInnerAllOf1; diff --git a/models/get-fields-response-all-of.ts b/models/get-fields-response-all-of.ts index ced50938..2001a415 100644 --- a/models/get-fields-response-all-of.ts +++ b/models/get-fields-response-all-of.ts @@ -31,12 +31,12 @@ export interface GetFieldsResponseAllOf { * @type {Array} * @memberof GetFieldsResponseAllOf */ - 'data'?: Array; + 'data': Array; /** * * @type {GetFieldsResponseAllOfAdditionalData} * @memberof GetFieldsResponseAllOf */ - 'additional_data'?: GetFieldsResponseAllOfAdditionalData; + 'additional_data': GetFieldsResponseAllOfAdditionalData; } diff --git a/models/get-filters-response-all-of.ts b/models/get-filters-response-all-of.ts index 87468a26..e5019910 100644 --- a/models/get-filters-response-all-of.ts +++ b/models/get-filters-response-all-of.ts @@ -28,6 +28,6 @@ export interface GetFiltersResponseAllOf { * @type {Array} * @memberof GetFiltersResponseAllOf */ - 'data'?: Array; + 'data': Array; } diff --git a/models/get-filters-response1-all-of.ts b/models/get-filters-response1-all-of.ts index 520e965a..00db5a92 100644 --- a/models/get-filters-response1-all-of.ts +++ b/models/get-filters-response1-all-of.ts @@ -28,6 +28,6 @@ export interface GetFiltersResponse1AllOf { * @type {GetFiltersResponseAllOfDataInner} * @memberof GetFiltersResponse1AllOf */ - 'data'?: GetFiltersResponseAllOfDataInner; + 'data': GetFiltersResponseAllOfDataInner; } diff --git a/models/get-goals-response-data.ts b/models/get-goals-response-data.ts index d7852b58..89cbb459 100644 --- a/models/get-goals-response-data.ts +++ b/models/get-goals-response-data.ts @@ -28,6 +28,6 @@ export interface GetGoalsResponseData { * @type {Array} * @memberof GetGoalsResponseData */ - 'goals'?: Array; + 'goals': Array; } diff --git a/models/get-item-search-field-response-all-of.ts b/models/get-item-search-field-response-all-of.ts index 70b20ea2..be88ec77 100644 --- a/models/get-item-search-field-response-all-of.ts +++ b/models/get-item-search-field-response-all-of.ts @@ -31,12 +31,12 @@ export interface GetItemSearchFieldResponseAllOf { * @type {Array} * @memberof GetItemSearchFieldResponseAllOf */ - 'data'?: Array; + 'data': Array; /** * * @type {GetActivitiesResponseAdditionalData} * @memberof GetItemSearchFieldResponseAllOf */ - 'additional_data'?: GetActivitiesResponseAdditionalData; + 'additional_data': GetActivitiesResponseAdditionalData; } diff --git a/models/get-item-search-response-all-of.ts b/models/get-item-search-response-all-of.ts index fb4b9a43..f7194dbb 100644 --- a/models/get-item-search-response-all-of.ts +++ b/models/get-item-search-response-all-of.ts @@ -31,12 +31,12 @@ export interface GetItemSearchResponseAllOf { * @type {GetItemSearchResponseAllOfData} * @memberof GetItemSearchResponseAllOf */ - 'data'?: GetItemSearchResponseAllOfData; + 'data': GetItemSearchResponseAllOfData; /** * * @type {GetActivitiesResponseAdditionalData} * @memberof GetItemSearchResponseAllOf */ - 'additional_data'?: GetActivitiesResponseAdditionalData; + 'additional_data': GetActivitiesResponseAdditionalData; } diff --git a/models/get-lead-labels-response-data-inner.ts b/models/get-lead-labels-response-data-inner.ts index 078caf73..9a90f794 100644 --- a/models/get-lead-labels-response-data-inner.ts +++ b/models/get-lead-labels-response-data-inner.ts @@ -25,31 +25,31 @@ export interface GetLeadLabelsResponseDataInner { * @type {string} * @memberof GetLeadLabelsResponseDataInner */ - 'id'?: string; + 'id': string; /** * The name of the lead label * @type {string} * @memberof GetLeadLabelsResponseDataInner */ - 'name'?: string; + 'name': string; /** * The color of the label. Only a subset of colors can be used. * @type {string} * @memberof GetLeadLabelsResponseDataInner */ - 'color'?: GetLeadLabelsResponseDataInnerColorConst; + 'color': GetLeadLabelsResponseDataInnerColorConst; /** * The date and time of when the lead label was created. In ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. * @type {string} * @memberof GetLeadLabelsResponseDataInner */ - 'add_time'?: string; + 'add_time': string; /** * The date and time of when the lead label was last updated. In ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. * @type {string} * @memberof GetLeadLabelsResponseDataInner */ - 'update_time'?: string; + 'update_time': string; } export const GetLeadLabelsResponseDataInnerColorConst = { diff --git a/models/get-lead-search-response-all-of.ts b/models/get-lead-search-response-all-of.ts index 55d91e0a..73ff8cfd 100644 --- a/models/get-lead-search-response-all-of.ts +++ b/models/get-lead-search-response-all-of.ts @@ -31,12 +31,12 @@ export interface GetLeadSearchResponseAllOf { * @type {GetLeadSearchResponseAllOfData} * @memberof GetLeadSearchResponseAllOf */ - 'data'?: GetLeadSearchResponseAllOfData; + 'data': GetLeadSearchResponseAllOfData; /** * * @type {GetActivitiesResponseAdditionalData} * @memberof GetLeadSearchResponseAllOf */ - 'additional_data'?: GetActivitiesResponseAdditionalData; + 'additional_data': GetActivitiesResponseAdditionalData; } diff --git a/models/get-leads-response-data-inner.ts b/models/get-leads-response-data-inner.ts index b1189a1a..465af511 100644 --- a/models/get-leads-response-data-inner.ts +++ b/models/get-leads-response-data-inner.ts @@ -28,127 +28,127 @@ export interface GetLeadsResponseDataInner { * @type {string} * @memberof GetLeadsResponseDataInner */ - 'id'?: string; + 'id': string; /** * The title of the lead * @type {string} * @memberof GetLeadsResponseDataInner */ - 'title'?: string; + 'title': string; /** * The ID of the user who owns the lead * @type {number} * @memberof GetLeadsResponseDataInner */ - 'owner_id'?: number; + 'owner_id': number; /** * The ID of the user who created the lead * @type {number} * @memberof GetLeadsResponseDataInner */ - 'creator_id'?: number; + 'creator_id': number; /** * The IDs of the lead labels which are associated with the lead * @type {Array} * @memberof GetLeadsResponseDataInner */ - 'label_ids'?: Array; + 'label_ids': Array; /** * The ID of a person which this lead is linked to * @type {number} * @memberof GetLeadsResponseDataInner */ - 'person_id'?: number | null; + 'person_id': number | null; /** * The ID of an organization which this lead is linked to * @type {number} * @memberof GetLeadsResponseDataInner */ - 'organization_id'?: number | null; + 'organization_id': number | null; /** * Defines where the lead comes from. Will be `API` if the lead was created through the Public API and will be `Manually created` if the lead was created manually through the UI. * @type {string} * @memberof GetLeadsResponseDataInner */ - 'source_name'?: string; + 'source_name': string; /** * The way this Lead was created. `origin` field is set by Pipedrive when Lead is created and cannot be changed. * @type {string} * @memberof GetLeadsResponseDataInner */ - 'origin'?: string; + 'origin': string; /** * The optional ID to further distinguish the origin of the lead - e.g. Which API integration created this Lead. * @type {string} * @memberof GetLeadsResponseDataInner */ - 'origin_id'?: string | null; + 'origin_id': string | null; /** * The ID of your Marketing channel this Lead was created from. Recognized Marketing channels can be configured in your Company settings. * @type {number} * @memberof GetLeadsResponseDataInner */ - 'channel'?: number | null; + 'channel': number | null; /** * The optional ID to further distinguish the Marketing channel. * @type {string} * @memberof GetLeadsResponseDataInner */ - 'channel_id'?: string | null; + 'channel_id': string | null; /** * A flag indicating whether the lead is archived or not * @type {boolean} * @memberof GetLeadsResponseDataInner */ - 'is_archived'?: boolean; + 'is_archived': boolean; /** * A flag indicating whether the lead was seen by someone in the Pipedrive UI * @type {boolean} * @memberof GetLeadsResponseDataInner */ - 'was_seen'?: boolean; + 'was_seen': boolean; /** * * @type {GetLeadsResponseDataInnerValue} * @memberof GetLeadsResponseDataInner */ - 'value'?: GetLeadsResponseDataInnerValue | null; + 'value': GetLeadsResponseDataInnerValue | null; /** * The date of when the deal which will be created from the lead is expected to be closed. In ISO 8601 format: YYYY-MM-DD. * @type {string} * @memberof GetLeadsResponseDataInner */ - 'expected_close_date'?: string | null; + 'expected_close_date': string | null; /** * The ID of the next activity associated with the lead * @type {number} * @memberof GetLeadsResponseDataInner */ - 'next_activity_id'?: number | null; + 'next_activity_id': number | null; /** * The date and time of when the lead was created. In ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. * @type {string} * @memberof GetLeadsResponseDataInner */ - 'add_time'?: string; + 'add_time': string; /** * The date and time of when the lead was last updated. In ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. * @type {string} * @memberof GetLeadsResponseDataInner */ - 'update_time'?: string; + 'update_time': string; /** * * @type {string} * @memberof GetLeadsResponseDataInner */ - 'visible_to'?: GetLeadsResponseDataInnerVisibleToConst; + 'visible_to': GetLeadsResponseDataInnerVisibleToConst; /** * The BCC email of the lead * @type {string} * @memberof GetLeadsResponseDataInner */ - 'cc_email'?: string; + 'cc_email': string; } export const GetLeadsResponseDataInnerVisibleToConst = { diff --git a/models/get-mail-message-response-all-of.ts b/models/get-mail-message-response-all-of.ts index 0909a354..7f86c4ca 100644 --- a/models/get-mail-message-response-all-of.ts +++ b/models/get-mail-message-response-all-of.ts @@ -25,24 +25,24 @@ export interface GetMailMessageResponseAllOf { * @type {boolean} * @memberof GetMailMessageResponseAllOf */ - 'success'?: boolean; + 'success': boolean; /** * The email service specific status code and it is returned through the response body. * @type {number} * @memberof GetMailMessageResponseAllOf */ - 'statusCode'?: number; + 'statusCode': number; /** * The status text of the response. * @type {string} * @memberof GetMailMessageResponseAllOf */ - 'statusText'?: string; + 'statusText': string; /** * The service name of the response. * @type {string} * @memberof GetMailMessageResponseAllOf */ - 'service'?: string; + 'service': string; } diff --git a/models/get-note-fields-response-all-of-data-inner-all-of-options-inner.ts b/models/get-note-fields-response-all-of-data-inner-all-of-options-inner.ts new file mode 100644 index 00000000..724b9a44 --- /dev/null +++ b/models/get-note-fields-response-all-of-data-inner-all-of-options-inner.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface GetNoteFieldsResponseAllOfDataInnerAllOfOptionsInner + */ +export interface GetNoteFieldsResponseAllOfDataInnerAllOfOptionsInner { + /** + * + * @type {number} + * @memberof GetNoteFieldsResponseAllOfDataInnerAllOfOptionsInner + */ + 'id'?: number; + /** + * + * @type {string} + * @memberof GetNoteFieldsResponseAllOfDataInnerAllOfOptionsInner + */ + 'label'?: string; +} + diff --git a/models/get-note-fields-response-all-of-data-inner-all-of.ts b/models/get-note-fields-response-all-of-data-inner-all-of.ts new file mode 100644 index 00000000..38eae82d --- /dev/null +++ b/models/get-note-fields-response-all-of-data-inner-all-of.ts @@ -0,0 +1,104 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetNoteFieldsResponseAllOfDataInnerAllOfOptionsInner } from './get-note-fields-response-all-of-data-inner-all-of-options-inner'; + +/** + * + * @export + * @interface GetNoteFieldsResponseAllOfDataInnerAllOf + */ +export interface GetNoteFieldsResponseAllOfDataInnerAllOf { + /** + * The ID of the field + * @type {number} + * @memberof GetNoteFieldsResponseAllOfDataInnerAllOf + */ + 'id'?: number; + /** + * The key of the field + * @type {string} + * @memberof GetNoteFieldsResponseAllOfDataInnerAllOf + */ + 'key'?: string; + /** + * The name of the field + * @type {string} + * @memberof GetNoteFieldsResponseAllOfDataInnerAllOf + */ + 'name'?: string; + /** + * The type of the field
ValueDescription
`address`Address field
`date`Date (format YYYY-MM-DD)
`daterange`Date-range field (has a start date and end date value, both YYYY-MM-DD)
`double`Numeric value
`enum`Options field with a single possible chosen option
`monetary`Monetary field (has a numeric value and a currency value)
`org`Organization field (contains an organization ID which is stored on the same account)
`people`Person field (contains a person ID which is stored on the same account)
`phone`Phone field (up to 255 numbers and/or characters)
`set`Options field with a possibility of having multiple chosen options
`text`Long text (up to 65k characters)
`time`Time field (format HH:MM:SS)
`timerange`Time-range field (has a start time and end time value, both HH:MM:SS)
`user`User field (contains a user ID of another Pipedrive user)
`varchar`Text (up to 255 characters)
`varchar_auto`Autocomplete text (up to 255 characters)
`visible_to`System field that keeps item\'s visibility setting
+ * @type {string} + * @memberof GetNoteFieldsResponseAllOfDataInnerAllOf + */ + 'field_type'?: GetNoteFieldsResponseAllOfDataInnerAllOfFieldTypeConst; + /** + * The active flag of the field + * @type {boolean} + * @memberof GetNoteFieldsResponseAllOfDataInnerAllOf + */ + 'active_flag'?: boolean; + /** + * The edit flag of the field + * @type {boolean} + * @memberof GetNoteFieldsResponseAllOfDataInnerAllOf + */ + 'edit_flag'?: boolean; + /** + * Not used + * @type {boolean} + * @memberof GetNoteFieldsResponseAllOfDataInnerAllOf + */ + 'bulk_edit_allowed'?: boolean; + /** + * Whether or not the field is mandatory + * @type {boolean} + * @memberof GetNoteFieldsResponseAllOfDataInnerAllOf + */ + 'mandatory_flag'?: boolean; + /** + * The options of the field. When there are no options, `null` is returned. + * @type {Array} + * @memberof GetNoteFieldsResponseAllOfDataInnerAllOf + */ + 'options'?: Array; +} + +export const GetNoteFieldsResponseAllOfDataInnerAllOfFieldTypeConst = { + address: 'address', + date: 'date', + daterange: 'daterange', + double: 'double', + enum: 'enum', + monetary: 'monetary', + org: 'org', + people: 'people', + phone: 'phone', + set: 'set', + text: 'text', + time: 'time', + timerange: 'timerange', + user: 'user', + varchar: 'varchar', + varchar_auto: 'varchar_auto', + visible_to: 'visible_to' +} as const; + +export type GetNoteFieldsResponseAllOfDataInnerAllOfFieldTypeConst = typeof GetNoteFieldsResponseAllOfDataInnerAllOfFieldTypeConst[keyof typeof GetNoteFieldsResponseAllOfDataInnerAllOfFieldTypeConst]; + + diff --git a/models/get-note-fields-response-all-of-data-inner.ts b/models/get-note-fields-response-all-of-data-inner.ts index e1be5dd7..727f0822 100644 --- a/models/get-note-fields-response-all-of-data-inner.ts +++ b/models/get-note-fields-response-all-of-data-inner.ts @@ -15,90 +15,18 @@ // May contain unused imports in some cases // @ts-ignore -import { GetNoteFieldsResponseAllOfDataInnerOptionsInner } from './get-note-fields-response-all-of-data-inner-options-inner'; +import { GetFieldsResponseAllOfDataInnerAllOf1 } from './get-fields-response-all-of-data-inner-all-of1'; +// May contain unused imports in some cases +// @ts-ignore +import { GetNoteFieldsResponseAllOfDataInnerAllOf } from './get-note-fields-response-all-of-data-inner-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetNoteFieldsResponseAllOfDataInnerAllOfOptionsInner } from './get-note-fields-response-all-of-data-inner-all-of-options-inner'; /** - * + * @type GetNoteFieldsResponseAllOfDataInner * @export - * @interface GetNoteFieldsResponseAllOfDataInner */ -export interface GetNoteFieldsResponseAllOfDataInner { - /** - * The ID of the field - * @type {number} - * @memberof GetNoteFieldsResponseAllOfDataInner - */ - 'id'?: number; - /** - * The key of the field - * @type {string} - * @memberof GetNoteFieldsResponseAllOfDataInner - */ - 'key'?: string; - /** - * The name of the field - * @type {string} - * @memberof GetNoteFieldsResponseAllOfDataInner - */ - 'name'?: string; - /** - * The type of the field
ValueDescription
`address`Address field
`date`Date (format YYYY-MM-DD)
`daterange`Date-range field (has a start date and end date value, both YYYY-MM-DD)
`double`Numeric value
`enum`Options field with a single possible chosen option
`monetary`Monetary field (has a numeric value and a currency value)
`org`Organization field (contains an organization ID which is stored on the same account)
`people`Person field (contains a person ID which is stored on the same account)
`phone`Phone field (up to 255 numbers and/or characters)
`set`Options field with a possibility of having multiple chosen options
`text`Long text (up to 65k characters)
`time`Time field (format HH:MM:SS)
`timerange`Time-range field (has a start time and end time value, both HH:MM:SS)
`user`User field (contains a user ID of another Pipedrive user)
`varchar`Text (up to 255 characters)
`varchar_auto`Autocomplete text (up to 255 characters)
`visible_to`System field that keeps item\'s visibility setting
- * @type {string} - * @memberof GetNoteFieldsResponseAllOfDataInner - */ - 'field_type'?: GetNoteFieldsResponseAllOfDataInnerFieldTypeConst; - /** - * The active flag of the field - * @type {boolean} - * @memberof GetNoteFieldsResponseAllOfDataInner - */ - 'active_flag'?: boolean; - /** - * The edit flag of the field - * @type {boolean} - * @memberof GetNoteFieldsResponseAllOfDataInner - */ - 'edit_flag'?: boolean; - /** - * Not used - * @type {boolean} - * @memberof GetNoteFieldsResponseAllOfDataInner - */ - 'bulk_edit_allowed'?: boolean; - /** - * Whether or not the field is mandatory - * @type {boolean} - * @memberof GetNoteFieldsResponseAllOfDataInner - */ - 'mandatory_flag'?: boolean; - /** - * The options of the field. When there are no options, `null` is returned. - * @type {Array} - * @memberof GetNoteFieldsResponseAllOfDataInner - */ - 'options'?: Array; -} - -export const GetNoteFieldsResponseAllOfDataInnerFieldTypeConst = { - address: 'address', - date: 'date', - daterange: 'daterange', - double: 'double', - enum: 'enum', - monetary: 'monetary', - org: 'org', - people: 'people', - phone: 'phone', - set: 'set', - text: 'text', - time: 'time', - timerange: 'timerange', - user: 'user', - varchar: 'varchar', - varchar_auto: 'varchar_auto', - visible_to: 'visible_to' -} as const; - -export type GetNoteFieldsResponseAllOfDataInnerFieldTypeConst = typeof GetNoteFieldsResponseAllOfDataInnerFieldTypeConst[keyof typeof GetNoteFieldsResponseAllOfDataInnerFieldTypeConst]; +export type GetNoteFieldsResponseAllOfDataInner = GetFieldsResponseAllOfDataInnerAllOf1 & GetNoteFieldsResponseAllOfDataInnerAllOf; diff --git a/models/get-note-fields-response-all-of.ts b/models/get-note-fields-response-all-of.ts index d3523560..10f81eca 100644 --- a/models/get-note-fields-response-all-of.ts +++ b/models/get-note-fields-response-all-of.ts @@ -31,12 +31,12 @@ export interface GetNoteFieldsResponseAllOf { * @type {Array} * @memberof GetNoteFieldsResponseAllOf */ - 'data'?: Array; + 'data': Array; /** * * @type {GetFieldsResponseAllOfAdditionalData} * @memberof GetNoteFieldsResponseAllOf */ - 'additional_data'?: GetFieldsResponseAllOfAdditionalData; + 'additional_data': GetFieldsResponseAllOfAdditionalData; } diff --git a/models/get-organization-relationship-response-all-of.ts b/models/get-organization-relationship-response-all-of.ts index 7aa6bdac..64e74978 100644 --- a/models/get-organization-relationship-response-all-of.ts +++ b/models/get-organization-relationship-response-all-of.ts @@ -31,12 +31,12 @@ export interface GetOrganizationRelationshipResponseAllOf { * @type {OrganizationRelationshipWithCalculatedFields} * @memberof GetOrganizationRelationshipResponseAllOf */ - 'data'?: OrganizationRelationshipWithCalculatedFields; + 'data': OrganizationRelationshipWithCalculatedFields; /** * * @type {GetOrganizationRelationshipsResponseAllOfRelatedObjects} * @memberof GetOrganizationRelationshipResponseAllOf */ - 'related_objects'?: GetOrganizationRelationshipsResponseAllOfRelatedObjects; + 'related_objects': GetOrganizationRelationshipsResponseAllOfRelatedObjects; } diff --git a/models/get-organization-relationships-response-all-of.ts b/models/get-organization-relationships-response-all-of.ts index adbac9a5..e62493c0 100644 --- a/models/get-organization-relationships-response-all-of.ts +++ b/models/get-organization-relationships-response-all-of.ts @@ -34,18 +34,18 @@ export interface GetOrganizationRelationshipsResponseAllOf { * @type {Array} * @memberof GetOrganizationRelationshipsResponseAllOf */ - 'data'?: Array; + 'data': Array; /** * * @type {GetFieldsResponseAllOfAdditionalData} * @memberof GetOrganizationRelationshipsResponseAllOf */ - 'additional_data'?: GetFieldsResponseAllOfAdditionalData; + 'additional_data': GetFieldsResponseAllOfAdditionalData; /** * * @type {GetOrganizationRelationshipsResponseAllOfRelatedObjects} * @memberof GetOrganizationRelationshipsResponseAllOf */ - 'related_objects'?: GetOrganizationRelationshipsResponseAllOfRelatedObjects; + 'related_objects': GetOrganizationRelationshipsResponseAllOfRelatedObjects; } diff --git a/models/get-organization-response-all-of.ts b/models/get-organization-response-all-of.ts index 468a16c8..723e30b9 100644 --- a/models/get-organization-response-all-of.ts +++ b/models/get-organization-response-all-of.ts @@ -34,18 +34,18 @@ export interface GetOrganizationResponseAllOf { * @type {GetOrganizationItem} * @memberof GetOrganizationResponseAllOf */ - 'data'?: GetOrganizationItem; + 'data': GetOrganizationItem; /** * * @type {GetOrganizationResponseAllOfAdditionalData} * @memberof GetOrganizationResponseAllOf */ - 'additional_data'?: GetOrganizationResponseAllOfAdditionalData; + 'additional_data': GetOrganizationResponseAllOfAdditionalData; /** * * @type {GetOrganizationsResponseAllOfRelatedObjects} * @memberof GetOrganizationResponseAllOf */ - 'related_objects'?: GetOrganizationsResponseAllOfRelatedObjects; + 'related_objects': GetOrganizationsResponseAllOfRelatedObjects; } diff --git a/models/get-organization-search-response-all-of.ts b/models/get-organization-search-response-all-of.ts index 94a807a6..6df78f59 100644 --- a/models/get-organization-search-response-all-of.ts +++ b/models/get-organization-search-response-all-of.ts @@ -31,12 +31,12 @@ export interface GetOrganizationSearchResponseAllOf { * @type {GetOrganizationSearchResponseAllOfData} * @memberof GetOrganizationSearchResponseAllOf */ - 'data'?: GetOrganizationSearchResponseAllOfData; + 'data': GetOrganizationSearchResponseAllOfData; /** * * @type {GetActivitiesResponseAdditionalData} * @memberof GetOrganizationSearchResponseAllOf */ - 'additional_data'?: GetActivitiesResponseAdditionalData; + 'additional_data': GetActivitiesResponseAdditionalData; } diff --git a/models/get-organizations-collection-response-object-all-of.ts b/models/get-organizations-collection-response-object-all-of.ts index db045c2f..a5162344 100644 --- a/models/get-organizations-collection-response-object-all-of.ts +++ b/models/get-organizations-collection-response-object-all-of.ts @@ -25,66 +25,66 @@ export interface GetOrganizationsCollectionResponseObjectAllOf { * @type {number} * @memberof GetOrganizationsCollectionResponseObjectAllOf */ - 'id'?: number; + 'id': number; /** * Whether the organization is active or not * @type {boolean} * @memberof GetOrganizationsCollectionResponseObjectAllOf */ - 'active_flag'?: boolean; + 'active_flag': boolean; /** * The ID of the owner * @type {number} * @memberof GetOrganizationsCollectionResponseObjectAllOf */ - 'owner_id'?: number; + 'owner_id': number; /** * The name of the organization * @type {string} * @memberof GetOrganizationsCollectionResponseObjectAllOf */ - 'name'?: string; + 'name': string; /** * The last updated date and time of the organization. Format: YYYY-MM-DD HH:MM:SS * @type {string} * @memberof GetOrganizationsCollectionResponseObjectAllOf */ - 'update_time'?: string; + 'update_time': string; /** * The date and time this organization was deleted. Format: YYYY-MM-DD HH:MM:SS * @type {string} * @memberof GetOrganizationsCollectionResponseObjectAllOf */ - 'delete_time'?: string | null; + 'delete_time': string | null; /** * The date and time when the organization was added/created. Format: YYYY-MM-DD HH:MM:SS * @type {string} * @memberof GetOrganizationsCollectionResponseObjectAllOf */ - 'add_time'?: string; + 'add_time': string; /** * The visibility group ID of who can see the organization * @type {string} * @memberof GetOrganizationsCollectionResponseObjectAllOf */ - 'visible_to'?: string; + 'visible_to': string; /** * The label assigned to the organization. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. * @type {number} * @memberof GetOrganizationsCollectionResponseObjectAllOf */ - 'label'?: number | null; + 'label': number | null; /** * The IDs of labels assigned to the organization. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. * @type {Array} * @memberof GetOrganizationsCollectionResponseObjectAllOf */ - 'label_ids'?: Array; + 'label_ids': Array; /** * The BCC email associated with the organization * @type {string} * @memberof GetOrganizationsCollectionResponseObjectAllOf */ - 'cc_email'?: string; + 'cc_email': string; } diff --git a/models/get-organizations-response-all-of.ts b/models/get-organizations-response-all-of.ts index fa1ada99..f7994263 100644 --- a/models/get-organizations-response-all-of.ts +++ b/models/get-organizations-response-all-of.ts @@ -34,18 +34,18 @@ export interface GetOrganizationsResponseAllOf { * @type {Array} * @memberof GetOrganizationsResponseAllOf */ - 'data'?: Array; + 'data': Array; /** * * @type {GetActivitiesResponseAdditionalData} * @memberof GetOrganizationsResponseAllOf */ - 'additional_data'?: GetActivitiesResponseAdditionalData; + 'additional_data': GetActivitiesResponseAdditionalData; /** * * @type {GetOrganizationsResponseAllOfRelatedObjects} * @memberof GetOrganizationsResponseAllOf */ - 'related_objects'?: GetOrganizationsResponseAllOfRelatedObjects; + 'related_objects': GetOrganizationsResponseAllOfRelatedObjects; } diff --git a/models/get-payments-response-all-of.ts b/models/get-payments-response-all-of.ts index 924a5e26..3997d576 100644 --- a/models/get-payments-response-all-of.ts +++ b/models/get-payments-response-all-of.ts @@ -28,6 +28,6 @@ export interface GetPaymentsResponseAllOf { * @type {Array} * @memberof GetPaymentsResponseAllOf */ - 'data'?: Array; + 'data': Array; } diff --git a/models/get-permitted-users-response1-all-of.ts b/models/get-permitted-users-response1-all-of.ts index 9c0c1932..6eeac736 100644 --- a/models/get-permitted-users-response1-all-of.ts +++ b/models/get-permitted-users-response1-all-of.ts @@ -25,6 +25,6 @@ export interface GetPermittedUsersResponse1AllOf { * @type {Array} * @memberof GetPermittedUsersResponse1AllOf */ - 'data'?: Array; + 'data': Array; } diff --git a/models/get-person-details-response-all-of.ts b/models/get-person-details-response-all-of.ts index 36954b31..0af534b2 100644 --- a/models/get-person-details-response-all-of.ts +++ b/models/get-person-details-response-all-of.ts @@ -34,18 +34,18 @@ export interface GetPersonDetailsResponseAllOf { * @type {PersonItem} * @memberof GetPersonDetailsResponseAllOf */ - 'data'?: PersonItem; + 'data': PersonItem; /** * * @type {GetPersonDetailsResponseAllOfAdditionalData} * @memberof GetPersonDetailsResponseAllOf */ - 'additional_data'?: GetPersonDetailsResponseAllOfAdditionalData; + 'additional_data': GetPersonDetailsResponseAllOfAdditionalData; /** * * @type {GetOrganizationsResponseAllOfRelatedObjects} * @memberof GetPersonDetailsResponseAllOf */ - 'related_objects'?: GetOrganizationsResponseAllOfRelatedObjects; + 'related_objects': GetOrganizationsResponseAllOfRelatedObjects; } diff --git a/models/get-person-products-response-all-of.ts b/models/get-person-products-response-all-of.ts index c1ef8515..65034b5d 100644 --- a/models/get-person-products-response-all-of.ts +++ b/models/get-person-products-response-all-of.ts @@ -31,12 +31,12 @@ export interface GetPersonProductsResponseAllOf { * @type {Array} * @memberof GetPersonProductsResponseAllOf */ - 'data'?: Array; + 'data': Array; /** * * @type {GetActivitiesResponseAdditionalData} * @memberof GetPersonProductsResponseAllOf */ - 'additional_data'?: GetActivitiesResponseAdditionalData; + 'additional_data': GetActivitiesResponseAdditionalData; } diff --git a/models/get-person-search-response-all-of.ts b/models/get-person-search-response-all-of.ts index a1619fec..2335d75a 100644 --- a/models/get-person-search-response-all-of.ts +++ b/models/get-person-search-response-all-of.ts @@ -31,12 +31,12 @@ export interface GetPersonSearchResponseAllOf { * @type {GetPersonSearchResponseAllOfData} * @memberof GetPersonSearchResponseAllOf */ - 'data'?: GetPersonSearchResponseAllOfData; + 'data': GetPersonSearchResponseAllOfData; /** * * @type {GetActivitiesResponseAdditionalData} * @memberof GetPersonSearchResponseAllOf */ - 'additional_data'?: GetActivitiesResponseAdditionalData; + 'additional_data': GetActivitiesResponseAdditionalData; } diff --git a/models/get-persons-response-all-of.ts b/models/get-persons-response-all-of.ts index f47b0f10..a2dd13f5 100644 --- a/models/get-persons-response-all-of.ts +++ b/models/get-persons-response-all-of.ts @@ -34,18 +34,18 @@ export interface GetPersonsResponseAllOf { * @type {Array} * @memberof GetPersonsResponseAllOf */ - 'data'?: Array; + 'data': Array; /** * * @type {GetFieldsResponseAllOfAdditionalData} * @memberof GetPersonsResponseAllOf */ - 'additional_data'?: GetFieldsResponseAllOfAdditionalData; + 'additional_data': GetFieldsResponseAllOfAdditionalData; /** * * @type {GetPersonsResponseAllOfRelatedObjects} * @memberof GetPersonsResponseAllOf */ - 'related_objects'?: GetPersonsResponseAllOfRelatedObjects; + 'related_objects': GetPersonsResponseAllOfRelatedObjects; } diff --git a/models/get-persons-response1-all-of.ts b/models/get-persons-response1-all-of.ts index 34496d69..1b588860 100644 --- a/models/get-persons-response1-all-of.ts +++ b/models/get-persons-response1-all-of.ts @@ -34,18 +34,18 @@ export interface GetPersonsResponse1AllOf { * @type {Array} * @memberof GetPersonsResponse1AllOf */ - 'data'?: Array; + 'data': Array; /** * * @type {GetActivitiesResponseAdditionalData} * @memberof GetPersonsResponse1AllOf */ - 'additional_data'?: GetActivitiesResponseAdditionalData; + 'additional_data': GetActivitiesResponseAdditionalData; /** * * @type {GetOrganizationsResponseAllOfRelatedObjects} * @memberof GetPersonsResponse1AllOf */ - 'related_objects'?: GetOrganizationsResponseAllOfRelatedObjects; + 'related_objects': GetOrganizationsResponseAllOfRelatedObjects; } diff --git a/models/get-product-field-response.ts b/models/get-product-field-response.ts index d28d0be8..9d6d21da 100644 --- a/models/get-product-field-response.ts +++ b/models/get-product-field-response.ts @@ -28,12 +28,12 @@ export interface GetProductFieldResponse { * @type {boolean} * @memberof GetProductFieldResponse */ - 'success'?: boolean; + 'success': boolean; /** * * @type {GetProductFieldResponseData} * @memberof GetProductFieldResponse */ - 'data'?: GetProductFieldResponseData; + 'data': GetProductFieldResponseData; } diff --git a/models/get-product-fields-response-data-inner.ts b/models/get-product-fields-response-data-inner.ts new file mode 100644 index 00000000..e050e231 --- /dev/null +++ b/models/get-product-fields-response-data-inner.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetFieldsResponseAllOfDataInnerAllOf1 } from './get-fields-response-all-of-data-inner-all-of1'; +// May contain unused imports in some cases +// @ts-ignore +import { ProductField } from './product-field'; + +/** + * @type GetProductFieldsResponseDataInner + * @export + */ +export type GetProductFieldsResponseDataInner = GetFieldsResponseAllOfDataInnerAllOf1 & ProductField; + + diff --git a/models/get-product-fields-response.ts b/models/get-product-fields-response.ts index beb06600..7a1a2d66 100644 --- a/models/get-product-fields-response.ts +++ b/models/get-product-fields-response.ts @@ -15,7 +15,7 @@ // May contain unused imports in some cases // @ts-ignore -import { ProductField } from './product-field'; +import { GetProductFieldsResponseDataInner } from './get-product-fields-response-data-inner'; /** * @@ -28,18 +28,18 @@ export interface GetProductFieldsResponse { * @type {boolean} * @memberof GetProductFieldsResponse */ - 'success'?: boolean; + 'success': boolean; /** * Array containing data for all product fields - * @type {Array} + * @type {Array} * @memberof GetProductFieldsResponse */ - 'data'?: Array; + 'data': Array; /** * Additional data for the product field, such as pagination * @type {object} * @memberof GetProductFieldsResponse */ - 'additional_data'?: object; + 'additional_data': object; } diff --git a/models/get-product-followers-response-all-of.ts b/models/get-product-followers-response-all-of.ts index 7ac09f15..e88f40c3 100644 --- a/models/get-product-followers-response-all-of.ts +++ b/models/get-product-followers-response-all-of.ts @@ -31,12 +31,12 @@ export interface GetProductFollowersResponseAllOf { * @type {Array} * @memberof GetProductFollowersResponseAllOf */ - 'data'?: Array; + 'data': Array; /** * * @type {GetFieldsResponseAllOfAdditionalData} * @memberof GetProductFollowersResponseAllOf */ - 'additional_data'?: GetFieldsResponseAllOfAdditionalData; + 'additional_data': GetFieldsResponseAllOfAdditionalData; } diff --git a/models/get-product-response.ts b/models/get-product-response.ts index 0bbe6e03..e175db8e 100644 --- a/models/get-product-response.ts +++ b/models/get-product-response.ts @@ -31,18 +31,18 @@ export interface GetProductResponse { * @type {boolean} * @memberof GetProductResponse */ - 'success'?: boolean; + 'success': boolean; /** * * @type {GetProductsResponseAllOfDataInnerProduct} * @memberof GetProductResponse */ - 'data'?: GetProductsResponseAllOfDataInnerProduct; + 'data': GetProductsResponseAllOfDataInnerProduct; /** * * @type {GetActivitiesResponseRelatedObjects} * @memberof GetProductResponse */ - 'related_objects'?: GetActivitiesResponseRelatedObjects; + 'related_objects': GetActivitiesResponseRelatedObjects; } diff --git a/models/get-product-search-response-all-of.ts b/models/get-product-search-response-all-of.ts index 801fd113..732d804c 100644 --- a/models/get-product-search-response-all-of.ts +++ b/models/get-product-search-response-all-of.ts @@ -31,12 +31,12 @@ export interface GetProductSearchResponseAllOf { * @type {GetProductSearchResponseAllOfData} * @memberof GetProductSearchResponseAllOf */ - 'data'?: GetProductSearchResponseAllOfData; + 'data': GetProductSearchResponseAllOfData; /** * * @type {GetActivitiesResponseAdditionalData} * @memberof GetProductSearchResponseAllOf */ - 'additional_data'?: GetActivitiesResponseAdditionalData; + 'additional_data': GetActivitiesResponseAdditionalData; } diff --git a/models/get-products-response-all-of.ts b/models/get-products-response-all-of.ts index b5409de8..25796688 100644 --- a/models/get-products-response-all-of.ts +++ b/models/get-products-response-all-of.ts @@ -34,18 +34,18 @@ export interface GetProductsResponseAllOf { * @type {Array} * @memberof GetProductsResponseAllOf */ - 'data'?: Array; + 'data': Array; /** * * @type {GetProductsResponseAllOfAdditionalData} * @memberof GetProductsResponseAllOf */ - 'additional_data'?: GetProductsResponseAllOfAdditionalData; + 'additional_data': GetProductsResponseAllOfAdditionalData; /** * * @type {GetProductsResponseAllOfRelatedObjects} * @memberof GetProductsResponseAllOf */ - 'related_objects'?: GetProductsResponseAllOfRelatedObjects; + 'related_objects': GetProductsResponseAllOfRelatedObjects; } diff --git a/models/get-products-response1.ts b/models/get-products-response1.ts index bc708196..08e2ac84 100644 --- a/models/get-products-response1.ts +++ b/models/get-products-response1.ts @@ -34,24 +34,24 @@ export interface GetProductsResponse1 { * @type {boolean} * @memberof GetProductsResponse1 */ - 'success'?: boolean; + 'success': boolean; /** * Array containing data for all products * @type {Array} * @memberof GetProductsResponse1 */ - 'data'?: Array; + 'data': Array; /** * * @type {GetProductsResponse1AdditionalData} * @memberof GetProductsResponse1 */ - 'additional_data'?: GetProductsResponse1AdditionalData; + 'additional_data': GetProductsResponse1AdditionalData; /** * * @type {GetActivitiesResponseRelatedObjects} * @memberof GetProductsResponse1 */ - 'related_objects'?: GetActivitiesResponseRelatedObjects; + 'related_objects': GetActivitiesResponseRelatedObjects; } diff --git a/models/get-subscription-addons-response-all-of.ts b/models/get-subscription-addons-response-all-of.ts index ae08d848..31366fb0 100644 --- a/models/get-subscription-addons-response-all-of.ts +++ b/models/get-subscription-addons-response-all-of.ts @@ -25,6 +25,6 @@ export interface GetSubscriptionAddonsResponseAllOf { * @type {Array} * @memberof GetSubscriptionAddonsResponseAllOf */ - 'data'?: Array; + 'data': Array; } diff --git a/models/get-subscriptions-id-response-all-of.ts b/models/get-subscriptions-id-response-all-of.ts index ebbf1ef8..d7a1a4d5 100644 --- a/models/get-subscriptions-id-response-all-of.ts +++ b/models/get-subscriptions-id-response-all-of.ts @@ -28,6 +28,6 @@ export interface GetSubscriptionsIdResponseAllOf { * @type {GetSubscriptionsIdResponseAllOfData} * @memberof GetSubscriptionsIdResponseAllOf */ - 'data'?: GetSubscriptionsIdResponseAllOfData; + 'data': GetSubscriptionsIdResponseAllOfData; } diff --git a/models/get-user-provider-link-success-response.ts b/models/get-user-provider-link-success-response.ts index bb498980..6a9f06ee 100644 --- a/models/get-user-provider-link-success-response.ts +++ b/models/get-user-provider-link-success-response.ts @@ -28,12 +28,12 @@ export interface GetUserProviderLinkSuccessResponse { * @type {boolean} * @memberof GetUserProviderLinkSuccessResponse */ - 'success'?: boolean; + 'success': boolean; /** * * @type {GetUserProviderLinkSuccessResponseData} * @memberof GetUserProviderLinkSuccessResponse */ - 'data'?: GetUserProviderLinkSuccessResponseData; + 'data': GetUserProviderLinkSuccessResponseData; } diff --git a/models/index.ts b/models/index.ts index cbee92c6..81d6bf3b 100644 --- a/models/index.ts +++ b/models/index.ts @@ -129,10 +129,12 @@ export * from './base-role-request'; export * from './base-team'; export * from './base-team-additional-properties'; export * from './basic-deal'; +export * from './basic-deal1'; export * from './basic-deal-product-request'; export * from './basic-deal-product-request-all-of'; export * from './basic-goal-request'; export * from './basic-organization'; +export * from './basic-organization1'; export * from './basic-person-request'; export * from './basic-person-request-email-inner'; export * from './call-log-bad-request-response'; @@ -375,6 +377,8 @@ export * from './get-fields-response'; export * from './get-fields-response-all-of'; export * from './get-fields-response-all-of-additional-data'; export * from './get-fields-response-all-of-data-inner'; +export * from './get-fields-response-all-of-data-inner-all-of'; +export * from './get-fields-response-all-of-data-inner-all-of1'; export * from './get-file-response'; export * from './get-files-response'; export * from './get-files-response-additional-data'; @@ -432,7 +436,8 @@ export * from './get-merged-deal-response-data-all-of'; export * from './get-note-fields-response'; export * from './get-note-fields-response-all-of'; export * from './get-note-fields-response-all-of-data-inner'; -export * from './get-note-fields-response-all-of-data-inner-options-inner'; +export * from './get-note-fields-response-all-of-data-inner-all-of'; +export * from './get-note-fields-response-all-of-data-inner-all-of-options-inner'; export * from './get-notes-response'; export * from './get-notes-response-additional-data'; export * from './get-notes-response-additional-data-pagination'; @@ -525,6 +530,7 @@ export * from './get-product-attachment-details-response-data'; export * from './get-product-field-response'; export * from './get-product-field-response-data'; export * from './get-product-fields-response'; +export * from './get-product-fields-response-data-inner'; export * from './get-product-followers-response'; export * from './get-product-followers-response-all-of'; export * from './get-product-followers-response-all-of-data-inner'; @@ -701,6 +707,7 @@ export * from './product-field'; export * from './product-field-all-of'; export * from './product-field-all-of1'; export * from './product-request'; +export * from './product-request1'; export * from './project-put-plan-item-body-object'; export * from './project-response-object'; export * from './project-response-object-all-of'; diff --git a/models/merge-organizations-response.ts b/models/merge-organizations-response.ts index 50be5ede..f273330e 100644 --- a/models/merge-organizations-response.ts +++ b/models/merge-organizations-response.ts @@ -28,12 +28,12 @@ export interface MergeOrganizationsResponse { * @type {boolean} * @memberof MergeOrganizationsResponse */ - 'success'?: boolean; + 'success': boolean; /** * * @type {MergeOrganizationsResponseData} * @memberof MergeOrganizationsResponse */ - 'data'?: MergeOrganizationsResponseData; + 'data': MergeOrganizationsResponseData; } diff --git a/models/merge-persons-response-all-of.ts b/models/merge-persons-response-all-of.ts index ed4d01a9..98620828 100644 --- a/models/merge-persons-response-all-of.ts +++ b/models/merge-persons-response-all-of.ts @@ -28,6 +28,6 @@ export interface MergePersonsResponseAllOf { * @type {MergePersonItem} * @memberof MergePersonsResponseAllOf */ - 'data'?: MergePersonItem; + 'data': MergePersonItem; } diff --git a/models/persons-collection-response-object.ts b/models/persons-collection-response-object.ts index b001354a..065f7a20 100644 --- a/models/persons-collection-response-object.ts +++ b/models/persons-collection-response-object.ts @@ -31,90 +31,90 @@ export interface PersonsCollectionResponseObject { * @type {number} * @memberof PersonsCollectionResponseObject */ - 'id'?: number; + 'id': number; /** * Whether the person is active or not * @type {boolean} * @memberof PersonsCollectionResponseObject */ - 'active_flag'?: boolean; + 'active_flag': boolean; /** * The ID of the owner related to the person * @type {number} * @memberof PersonsCollectionResponseObject */ - 'owner_id'?: number; + 'owner_id': number; /** * The ID of the organization related to the person * @type {number} * @memberof PersonsCollectionResponseObject */ - 'org_id'?: number; + 'org_id': number; /** * The name of the person * @type {string} * @memberof PersonsCollectionResponseObject */ - 'name'?: string; + 'name': string; /** * An email address as a string or an array of email objects related to the person. The structure of the array is as follows: `[{ \"value\": \"mail@example.com\", \"primary\": \"true\", \"label\": \"main\" }]`. Please note that only `value` is required. * @type {Array} * @memberof PersonsCollectionResponseObject */ - 'email'?: Array; + 'email': Array; /** * A phone number supplied as a string or an array of phone objects related to the person. The structure of the array is as follows: `[{ \"value\": \"12345\", \"primary\": \"true\", \"label\": \"mobile\" }]`. Please note that only `value` is required. * @type {Array} * @memberof PersonsCollectionResponseObject */ - 'phone'?: Array; + 'phone': Array; /** * The last updated date and time of the person. Format: YYYY-MM-DD HH:MM:SS * @type {string} * @memberof PersonsCollectionResponseObject */ - 'update_time'?: string; + 'update_time': string; /** * The date and time this person was deleted. Format: YYYY-MM-DD HH:MM:SS * @type {string} * @memberof PersonsCollectionResponseObject */ - 'delete_time'?: string | null; + 'delete_time': string | null; /** * The date and time when the person was added/created. Format: YYYY-MM-DD HH:MM:SS * @type {string} * @memberof PersonsCollectionResponseObject */ - 'add_time'?: string; + 'add_time': string; /** * The visibility group ID of who can see the person * @type {string} * @memberof PersonsCollectionResponseObject */ - 'visible_to'?: string; + 'visible_to': string; /** * The ID of the picture associated with the item * @type {number} * @memberof PersonsCollectionResponseObject */ - 'picture_id'?: number | null; + 'picture_id': number | null; /** * The label assigned to the person. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. * @type {number} * @memberof PersonsCollectionResponseObject */ - 'label'?: number | null; + 'label': number | null; /** * The IDs of labels assigned to the person. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. * @type {Array} * @memberof PersonsCollectionResponseObject */ - 'label_ids'?: Array; + 'label_ids': Array; /** * The BCC email associated with the person * @type {string} * @memberof PersonsCollectionResponseObject */ - 'cc_email'?: string; + 'cc_email': string; } diff --git a/models/product-request.ts b/models/product-request.ts index 859d1e71..7a8dd6ac 100644 --- a/models/product-request.ts +++ b/models/product-request.ts @@ -69,7 +69,7 @@ export interface ProductRequest { */ 'owner_id'?: number; /** - * An array of objects, each containing: `currency` (string), `price` (number), `cost` (number, optional), `overhead_cost` (number, optional). Note that there can only be one price per product per currency. When `prices` is omitted altogether, a default price of 0 and a default currency based on the company\'s currency will be assigned. + * An array of objects, each containing: `currency` (string), `price` (number), `cost` (number, optional), `overhead_cost` (number, optional), `notes` (string, optional). Note that there can only be one price per product per currency. When `prices` is omitted altogether, a default price of 0 and a default currency based on the company\'s currency will be assigned. * @type {Array} * @memberof ProductRequest */ diff --git a/models/product-request1.ts b/models/product-request1.ts new file mode 100644 index 00000000..bb4bbe60 --- /dev/null +++ b/models/product-request1.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface ProductRequest1 + */ +export interface ProductRequest1 { + [key: string]: any; + + /** + * The product code + * @type {string} + * @memberof ProductRequest1 + */ + 'code'?: string; + /** + * The product description + * @type {string} + * @memberof ProductRequest1 + */ + 'description'?: string; + /** + * The unit in which this product is sold + * @type {string} + * @memberof ProductRequest1 + */ + 'unit'?: string; + /** + * The tax percentage + * @type {number} + * @memberof ProductRequest1 + */ + 'tax'?: number; + /** + * Whether this product will be made active or not + * @type {boolean} + * @memberof ProductRequest1 + */ + 'active_flag'?: boolean; + /** + * Whether this product can be selected in deals or not + * @type {boolean} + * @memberof ProductRequest1 + */ + 'selectable'?: boolean; + /** + * + * @type {string} + * @memberof ProductRequest1 + */ + 'visible_to'?: ProductRequest1VisibleToConst; + /** + * The ID of the user who will be marked as the owner of this product. When omitted, the authorized user ID will be used + * @type {number} + * @memberof ProductRequest1 + */ + 'owner_id'?: number; + /** + * An array of objects, each containing: `currency` (string), `price` (number), `cost` (number, optional), `overhead_cost` (number, optional), `notes` (string, optional). Note that there can only be one price per product per currency. When `prices` is omitted altogether, a default price of 0 and a default currency based on the company\'s currency will be assigned. + * @type {Array} + * @memberof ProductRequest1 + */ + 'prices'?: Array; +} + +export const ProductRequest1VisibleToConst = { + _1: '1', + _3: '3', + _5: '5', + _7: '7' +} as const; + +export type ProductRequest1VisibleToConst = typeof ProductRequest1VisibleToConst[keyof typeof ProductRequest1VisibleToConst]; + + diff --git a/models/response-call-log-object-all-of.ts b/models/response-call-log-object-all-of.ts index 190e839f..08f21294 100644 --- a/models/response-call-log-object-all-of.ts +++ b/models/response-call-log-object-all-of.ts @@ -25,18 +25,18 @@ export interface ResponseCallLogObjectAllOf { * @type {string} * @memberof ResponseCallLogObjectAllOf */ - 'id'?: string; + 'id': string; /** * If the call log has an audio recording attached, the value should be true * @type {boolean} * @memberof ResponseCallLogObjectAllOf */ - 'has_recording'?: boolean; + 'has_recording': boolean; /** * The company ID of the owner of the call log * @type {number} * @memberof ResponseCallLogObjectAllOf */ - 'company_id'?: number; + 'company_id': number; } diff --git a/models/update-deal-product-request-all-of.ts b/models/update-deal-product-request-all-of.ts index 9f4e4b3d..d08fbb4b 100644 --- a/models/update-deal-product-request-all-of.ts +++ b/models/update-deal-product-request-all-of.ts @@ -21,7 +21,7 @@ */ export interface UpdateDealProductRequestAllOf { /** - * Only available in Advanced and above plans How often a customer is billed for access to a service or product A deal can have up to 20 products attached with `billing_frequency` different than `one-time` + * Only available in Advanced and above plans How often a customer is billed for access to a service or product To set `billing_frequency` different than `one-time`, the deal must not have installments associated A deal can have up to 20 products attached with `billing_frequency` different than `one-time` * @type {string} * @memberof UpdateDealProductRequestAllOf */ diff --git a/models/update-deal-request.ts b/models/update-deal-request.ts index cb09a641..24634f1b 100644 --- a/models/update-deal-request.ts +++ b/models/update-deal-request.ts @@ -15,7 +15,7 @@ // May contain unused imports in some cases // @ts-ignore -import { BasicDeal } from './basic-deal'; +import { BasicDeal1 } from './basic-deal1'; // May contain unused imports in some cases // @ts-ignore import { DealTitleParam } from './deal-title-param'; @@ -27,6 +27,6 @@ import { UpdateDealParameters } from './update-deal-parameters'; * @type UpdateDealRequest * @export */ -export type UpdateDealRequest = BasicDeal & DealTitleParam & UpdateDealParameters; +export type UpdateDealRequest = BasicDeal1 & DealTitleParam & UpdateDealParameters; diff --git a/models/update-organization-request.ts b/models/update-organization-request.ts index 95f9d24f..07f8e933 100644 --- a/models/update-organization-request.ts +++ b/models/update-organization-request.ts @@ -15,7 +15,7 @@ // May contain unused imports in some cases // @ts-ignore -import { BasicOrganization } from './basic-organization'; +import { BasicOrganization1 } from './basic-organization1'; // May contain unused imports in some cases // @ts-ignore import { UpdateOrganizationRequestAllOf } from './update-organization-request-all-of'; @@ -24,6 +24,6 @@ import { UpdateOrganizationRequestAllOf } from './update-organization-request-al * @type UpdateOrganizationRequest * @export */ -export type UpdateOrganizationRequest = BasicOrganization & UpdateOrganizationRequestAllOf; +export type UpdateOrganizationRequest = BasicOrganization1 & UpdateOrganizationRequestAllOf; diff --git a/models/update-organization-response-all-of.ts b/models/update-organization-response-all-of.ts index 615166ce..61733052 100644 --- a/models/update-organization-response-all-of.ts +++ b/models/update-organization-response-all-of.ts @@ -31,12 +31,12 @@ export interface UpdateOrganizationResponseAllOf { * @type {BaseOrganizationItem} * @memberof UpdateOrganizationResponseAllOf */ - 'data'?: BaseOrganizationItem; + 'data': BaseOrganizationItem; /** * * @type {GetOrganizationsResponseAllOfRelatedObjects} * @memberof UpdateOrganizationResponseAllOf */ - 'related_objects'?: GetOrganizationsResponseAllOfRelatedObjects; + 'related_objects': GetOrganizationsResponseAllOfRelatedObjects; } diff --git a/models/update-person-request-all-of.ts b/models/update-person-request-all-of.ts index 381e9091..cdf2042e 100644 --- a/models/update-person-request-all-of.ts +++ b/models/update-person-request-all-of.ts @@ -20,6 +20,8 @@ * @interface UpdatePersonRequestAllOf */ export interface UpdatePersonRequestAllOf { + [key: string]: any; + /** * The name of the person * @type {string} diff --git a/models/update-product-request.ts b/models/update-product-request.ts index 2b97bb42..a454e3dc 100644 --- a/models/update-product-request.ts +++ b/models/update-product-request.ts @@ -18,7 +18,7 @@ import { AddDealProductRequestAllOf1 } from './add-deal-product-request-all-of1'; // May contain unused imports in some cases // @ts-ignore -import { ProductRequest } from './product-request'; +import { ProductRequest1 } from './product-request1'; // May contain unused imports in some cases // @ts-ignore import { UpdateProductRequestAllOf } from './update-product-request-all-of'; @@ -30,6 +30,6 @@ import { UpdateProductRequestAllOf1 } from './update-product-request-all-of1'; * @type UpdateProductRequest * @export */ -export type UpdateProductRequest = AddDealProductRequestAllOf1 & ProductRequest & UpdateProductRequestAllOf & UpdateProductRequestAllOf1; +export type UpdateProductRequest = AddDealProductRequestAllOf1 & ProductRequest1 & UpdateProductRequestAllOf & UpdateProductRequestAllOf1; diff --git a/models/update-product-response.ts b/models/update-product-response.ts index 23a9701c..f4d6db75 100644 --- a/models/update-product-response.ts +++ b/models/update-product-response.ts @@ -31,18 +31,18 @@ export interface UpdateProductResponse { * @type {boolean} * @memberof UpdateProductResponse */ - 'success'?: boolean; + 'success': boolean; /** * * @type {GetProductsResponseAllOfDataInnerProduct} * @memberof UpdateProductResponse */ - 'data'?: GetProductsResponseAllOfDataInnerProduct; + 'data': GetProductsResponseAllOfDataInnerProduct; /** * * @type {GetActivitiesResponseRelatedObjects} * @memberof UpdateProductResponse */ - 'related_objects'?: GetActivitiesResponseRelatedObjects; + 'related_objects': GetActivitiesResponseRelatedObjects; } diff --git a/models/upsert-activity-type-response-all-of.ts b/models/upsert-activity-type-response-all-of.ts index f13e32f1..957d51c2 100644 --- a/models/upsert-activity-type-response-all-of.ts +++ b/models/upsert-activity-type-response-all-of.ts @@ -28,6 +28,6 @@ export interface UpsertActivityTypeResponseAllOf { * @type {GetActivityTypesResponseAllOfDataInner} * @memberof UpsertActivityTypeResponseAllOf */ - 'data'?: GetActivityTypesResponseAllOfDataInner; + 'data': GetActivityTypesResponseAllOfDataInner; } diff --git a/models/upsert-goal-response-data-goal.ts b/models/upsert-goal-response-data-goal.ts index 30002baa..25c07d06 100644 --- a/models/upsert-goal-response-data-goal.ts +++ b/models/upsert-goal-response-data-goal.ts @@ -37,60 +37,60 @@ export interface UpsertGoalResponseDataGoal { * @type {string} * @memberof UpsertGoalResponseDataGoal */ - 'id'?: string; + 'id': string; /** * The ID of the creator of the goal * @type {number} * @memberof UpsertGoalResponseDataGoal */ - 'owner_id'?: number; + 'owner_id': number; /** * The title of the goal * @type {string} * @memberof UpsertGoalResponseDataGoal */ - 'title'?: string; + 'title': string; /** * * @type {UpsertGoalResponseDataGoalType} * @memberof UpsertGoalResponseDataGoal */ - 'type'?: UpsertGoalResponseDataGoalType; + 'type': UpsertGoalResponseDataGoalType; /** * * @type {UpsertGoalResponseDataGoalAssignee} * @memberof UpsertGoalResponseDataGoal */ - 'assignee'?: UpsertGoalResponseDataGoalAssignee; + 'assignee': UpsertGoalResponseDataGoalAssignee; /** * The interval of the goal * @type {string} * @memberof UpsertGoalResponseDataGoal */ - 'interval'?: string; + 'interval': string; /** * * @type {UpsertGoalResponseDataGoalDuration} * @memberof UpsertGoalResponseDataGoal */ - 'duration'?: UpsertGoalResponseDataGoalDuration; + 'duration': UpsertGoalResponseDataGoalDuration; /** * * @type {UpsertGoalResponseDataGoalExpectedOutcome} * @memberof UpsertGoalResponseDataGoal */ - 'expected_outcome'?: UpsertGoalResponseDataGoalExpectedOutcome; + 'expected_outcome': UpsertGoalResponseDataGoalExpectedOutcome; /** * Whether the goal is currently active or not * @type {boolean} * @memberof UpsertGoalResponseDataGoal */ - 'is_active'?: boolean; + 'is_active': boolean; /** * The IDs of the reports that belong to the goal * @type {Array} * @memberof UpsertGoalResponseDataGoal */ - 'report_ids'?: Array; + 'report_ids': Array; } diff --git a/models/upsert-goal-response-data.ts b/models/upsert-goal-response-data.ts index 660e1985..12ef2d97 100644 --- a/models/upsert-goal-response-data.ts +++ b/models/upsert-goal-response-data.ts @@ -28,6 +28,6 @@ export interface UpsertGoalResponseData { * @type {UpsertGoalResponseDataGoal} * @memberof UpsertGoalResponseData */ - 'goal'?: UpsertGoalResponseDataGoal; + 'goal': UpsertGoalResponseDataGoal; } diff --git a/models/user-provider-link-error-response.ts b/models/user-provider-link-error-response.ts index 41a2d2d5..5b07124f 100644 --- a/models/user-provider-link-error-response.ts +++ b/models/user-provider-link-error-response.ts @@ -25,12 +25,12 @@ export interface UserProviderLinkErrorResponse { * @type {boolean} * @memberof UserProviderLinkErrorResponse */ - 'success'?: boolean; + 'success': boolean; /** * The error message of the request * @type {string} * @memberof UserProviderLinkErrorResponse */ - 'message'?: string; + 'message': string; } diff --git a/package-lock.json b/package-lock.json index 95b3ca78..eab78032 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "pipedrive", - "version": "23.2.5-rc.2", + "version": "23.3.0-rc.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "pipedrive", - "version": "23.2.5-rc.2", + "version": "23.3.0-rc.3", "license": "MIT", "dependencies": { "axios": "^1.3.3", diff --git a/package.json b/package.json index 170d20cf..f3fbd848 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pipedrive", - "version": "23.2.5-rc.2", + "version": "23.3.0-rc.3", "description": "Pipedrive REST client for NodeJS", "license": "MIT", "homepage": "https://developers.pipedrive.com", diff --git a/test/functional/authorisation.test.js b/test/functional/authorisation.test.js index 410e14ec..251d7e52 100644 --- a/test/functional/authorisation.test.js +++ b/test/functional/authorisation.test.js @@ -40,12 +40,11 @@ describe('oauth2 authorization', () => { it('should throw if clientId is not set', async () => { try { - new lib.OAuth2Configuration({ + new lib.OAuth2Configuration({ host: 'localhost', clientSecret: 'fakeClientSecret', redirectUri: 'https://example.org', }); - } catch (error) { expect(error).toEqual(new Error('OAuth 2 property clientId is not set.')); } diff --git a/test/functional/automatic-token-refresh.test.js b/test/functional/automatic-token-refresh.test.js index 9c9b7730..3bde53fe 100644 --- a/test/functional/automatic-token-refresh.test.js +++ b/test/functional/automatic-token-refresh.test.js @@ -49,7 +49,6 @@ describe('automatic token refresh in api calls', () => { const oauthClient = new lib.OAuth2Configuration(oauthConfig); oauthClient.refreshToken = 'fakeRefreshToken'; - const apiConfig = new lib.Configuration({ accessToken: oauthClient.getAccessToken, basePath: oauthClient.basePath, diff --git a/test/functional/utils.js b/test/functional/utils.js index 85e28428..2224c47b 100644 --- a/test/functional/utils.js +++ b/test/functional/utils.js @@ -8,7 +8,7 @@ export const getMockServer = (oauth2) => { const base64ClientIdAndSecret = Buffer.from(`${oauth2.clientId}:${oauth2.clientSecret}`).toString('base64'); return setupServer( - http.post('*/oauth/token', async (req, res, ctx) => { + http.post('*/oauth/token', async (req) => { const body = await req.request.text(); const auth = req.request.headers.get('authorization'); const ua = req.request.headers.get('User-Agent'); @@ -80,7 +80,7 @@ export const getMockServer = (oauth2) => { }); }), - http.get('*/v1/users', async (req, res, ctx) => { + http.get('*/v1/users', async (req) => { const auth = req.request.headers.get('authorization'); const ua = req.request.headers.get('User-Agent'); diff --git a/tsconfig.json b/tsconfig.json index 91f833d2..e0516df7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,6 +17,7 @@ }, "exclude": [ "dist", - "node_modules" + "node_modules", + "gha-setup" ] }