diff --git a/CHANGELOG.md b/CHANGELOG.md index cabbb811..4431605c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ 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] +### Fixed +- Corrected `FieldResponse` schema to use `GetField` instead of `Field` to ensure GET responses accurately reflect all field types returned by the API ## [30.3.0] - 2025-10-06 ## Added diff --git a/src/versions/v1/api/channels-api.ts b/src/versions/v1/api/channels-api.ts index bb33d3e3..ea4ace8f 100644 --- a/src/versions/v1/api/channels-api.ts +++ b/src/versions/v1/api/channels-api.ts @@ -51,7 +51,7 @@ export const ChannelsApiAxiosParamCreator = function (configuration?: Configurat * Adds a new messaging channel, only admins are able to register new channels. It will use the getConversations endpoint to fetch conversations, participants and messages afterward. To use the endpoint, you need to have **Messengers integration** OAuth scope enabled and the Messaging manifest ready for the [Messaging app extension](https://pipedrive.readme.io/docs/messaging-app-extension). * @summary Add a channel * @param {AddChannelRequest} [AddChannelRequest] - + * @deprecated * @throws {RequiredError} */ addChannel: async (AddChannelRequest?: AddChannelRequest, ): Promise => { @@ -92,7 +92,7 @@ export const ChannelsApiAxiosParamCreator = function (configuration?: Configurat * Deletes an existing messenger’s channel and all related entities (conversations and messages). To use the endpoint, you need to have **Messengers integration** OAuth scope enabled and the Messaging manifest ready for the [Messaging app extension](https://pipedrive.readme.io/docs/messaging-app-extension). * @summary Delete a channel * @param {string} id The ID of the channel provided by the integration - + * @deprecated * @throws {RequiredError} */ deleteChannel: async (id: string, ): Promise => { @@ -134,7 +134,7 @@ export const ChannelsApiAxiosParamCreator = function (configuration?: Configurat * @summary Delete a conversation * @param {string} channel_id The ID of the channel provided by the integration * @param {string} conversation_id The ID of the conversation provided by the integration - + * @deprecated * @throws {RequiredError} */ deleteConversation: async (channel_id: string, conversation_id: string, ): Promise => { @@ -178,7 +178,7 @@ export const ChannelsApiAxiosParamCreator = function (configuration?: Configurat * Adds a message to a conversation. To use the endpoint, you need to have **Messengers integration** OAuth scope enabled and the Messaging manifest ready for the [Messaging app extension](https://pipedrive.readme.io/docs/messaging-app-extension). * @summary Receives an incoming message * @param {ReceiveMessageRequest} [ReceiveMessageRequest] - + * @deprecated * @throws {RequiredError} */ receiveMessage: async (ReceiveMessageRequest?: ReceiveMessageRequest, ): Promise => { @@ -230,7 +230,7 @@ export const ChannelsApiFp = function(configuration?: Configuration) { * Adds a new messaging channel, only admins are able to register new channels. It will use the getConversations endpoint to fetch conversations, participants and messages afterward. To use the endpoint, you need to have **Messengers integration** OAuth scope enabled and the Messaging manifest ready for the [Messaging app extension](https://pipedrive.readme.io/docs/messaging-app-extension). * @summary Add a channel * @param {AddChannelRequest} [AddChannelRequest] - + * @deprecated * @throws {RequiredError} */ async addChannel(AddChannelRequest?: AddChannelRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { @@ -241,7 +241,7 @@ export const ChannelsApiFp = function(configuration?: Configuration) { * Deletes an existing messenger’s channel and all related entities (conversations and messages). To use the endpoint, you need to have **Messengers integration** OAuth scope enabled and the Messaging manifest ready for the [Messaging app extension](https://pipedrive.readme.io/docs/messaging-app-extension). * @summary Delete a channel * @param {string} id The ID of the channel provided by the integration - + * @deprecated * @throws {RequiredError} */ async deleteChannel(id: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { @@ -253,7 +253,7 @@ export const ChannelsApiFp = function(configuration?: Configuration) { * @summary Delete a conversation * @param {string} channel_id The ID of the channel provided by the integration * @param {string} conversation_id The ID of the conversation provided by the integration - + * @deprecated * @throws {RequiredError} */ async deleteConversation(channel_id: string, conversation_id: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { @@ -264,7 +264,7 @@ export const ChannelsApiFp = function(configuration?: Configuration) { * Adds a message to a conversation. To use the endpoint, you need to have **Messengers integration** OAuth scope enabled and the Messaging manifest ready for the [Messaging app extension](https://pipedrive.readme.io/docs/messaging-app-extension). * @summary Receives an incoming message * @param {ReceiveMessageRequest} [ReceiveMessageRequest] - + * @deprecated * @throws {RequiredError} */ async receiveMessage(ReceiveMessageRequest?: ReceiveMessageRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { @@ -285,7 +285,7 @@ export const ChannelsApiFactory = function (configuration?: Configuration, baseP * Adds a new messaging channel, only admins are able to register new channels. It will use the getConversations endpoint to fetch conversations, participants and messages afterward. To use the endpoint, you need to have **Messengers integration** OAuth scope enabled and the Messaging manifest ready for the [Messaging app extension](https://pipedrive.readme.io/docs/messaging-app-extension). * @summary Add a channel * @param {ChannelsApiAddChannelRequest} requestParameters Request parameters. - + * @deprecated * @throws {RequiredError} */ addChannel(requestParameters: ChannelsApiAddChannelRequest = {}, ): Promise { @@ -295,7 +295,7 @@ export const ChannelsApiFactory = function (configuration?: Configuration, baseP * Deletes an existing messenger’s channel and all related entities (conversations and messages). To use the endpoint, you need to have **Messengers integration** OAuth scope enabled and the Messaging manifest ready for the [Messaging app extension](https://pipedrive.readme.io/docs/messaging-app-extension). * @summary Delete a channel * @param {ChannelsApiDeleteChannelRequest} requestParameters Request parameters. - + * @deprecated * @throws {RequiredError} */ deleteChannel(requestParameters: ChannelsApiDeleteChannelRequest, ): Promise { @@ -305,7 +305,7 @@ export const ChannelsApiFactory = function (configuration?: Configuration, baseP * Deletes an existing conversation. To use the endpoint, you need to have **Messengers integration** OAuth scope enabled and the Messaging manifest ready for the [Messaging app extension](https://pipedrive.readme.io/docs/messaging-app-extension). * @summary Delete a conversation * @param {ChannelsApiDeleteConversationRequest} requestParameters Request parameters. - + * @deprecated * @throws {RequiredError} */ deleteConversation(requestParameters: ChannelsApiDeleteConversationRequest, ): Promise { @@ -315,7 +315,7 @@ export const ChannelsApiFactory = function (configuration?: Configuration, baseP * Adds a message to a conversation. To use the endpoint, you need to have **Messengers integration** OAuth scope enabled and the Messaging manifest ready for the [Messaging app extension](https://pipedrive.readme.io/docs/messaging-app-extension). * @summary Receives an incoming message * @param {ChannelsApiReceiveMessageRequest} requestParameters Request parameters. - + * @deprecated * @throws {RequiredError} */ receiveMessage(requestParameters: ChannelsApiReceiveMessageRequest = {}, ): Promise { @@ -398,7 +398,7 @@ export class ChannelsApi extends BaseAPI { * Adds a new messaging channel, only admins are able to register new channels. It will use the getConversations endpoint to fetch conversations, participants and messages afterward. To use the endpoint, you need to have **Messengers integration** OAuth scope enabled and the Messaging manifest ready for the [Messaging app extension](https://pipedrive.readme.io/docs/messaging-app-extension). * @summary Add a channel * @param {ChannelsApiAddChannelRequest} requestParameters Request parameters. - + * @deprecated * @throws {RequiredError} * @memberof ChannelsApi */ @@ -410,7 +410,7 @@ export class ChannelsApi extends BaseAPI { * Deletes an existing messenger’s channel and all related entities (conversations and messages). To use the endpoint, you need to have **Messengers integration** OAuth scope enabled and the Messaging manifest ready for the [Messaging app extension](https://pipedrive.readme.io/docs/messaging-app-extension). * @summary Delete a channel * @param {ChannelsApiDeleteChannelRequest} requestParameters Request parameters. - + * @deprecated * @throws {RequiredError} * @memberof ChannelsApi */ @@ -422,7 +422,7 @@ export class ChannelsApi extends BaseAPI { * Deletes an existing conversation. To use the endpoint, you need to have **Messengers integration** OAuth scope enabled and the Messaging manifest ready for the [Messaging app extension](https://pipedrive.readme.io/docs/messaging-app-extension). * @summary Delete a conversation * @param {ChannelsApiDeleteConversationRequest} requestParameters Request parameters. - + * @deprecated * @throws {RequiredError} * @memberof ChannelsApi */ @@ -434,7 +434,7 @@ export class ChannelsApi extends BaseAPI { * Adds a message to a conversation. To use the endpoint, you need to have **Messengers integration** OAuth scope enabled and the Messaging manifest ready for the [Messaging app extension](https://pipedrive.readme.io/docs/messaging-app-extension). * @summary Receives an incoming message * @param {ChannelsApiReceiveMessageRequest} requestParameters Request parameters. - + * @deprecated * @throws {RequiredError} * @memberof ChannelsApi */ diff --git a/src/versions/v1/models/get-field-response-all-of.ts b/src/versions/v1/models/get-field-response-all-of.ts index c4a33323..1d08e6f7 100644 --- a/src/versions/v1/models/get-field-response-all-of.ts +++ b/src/versions/v1/models/get-field-response-all-of.ts @@ -15,7 +15,7 @@ // May contain unused imports in some cases // @ts-ignore -import { Field } from './field'; +import { GetField } from './get-field'; /** * @@ -25,8 +25,8 @@ import { Field } from './field'; export interface GetFieldResponseAllOf { /** * - * @type {Field} + * @type {GetField} */ - 'data': Field; + 'data': GetField; } diff --git a/src/versions/v1/models/get-field-response.ts b/src/versions/v1/models/get-field-response.ts index 7d3b3126..ceb81121 100644 --- a/src/versions/v1/models/get-field-response.ts +++ b/src/versions/v1/models/get-field-response.ts @@ -18,7 +18,7 @@ import { BaseResponse } from './base-response'; // May contain unused imports in some cases // @ts-ignore -import { Field } from './field'; +import { GetField } from './get-field'; // May contain unused imports in some cases // @ts-ignore import { GetFieldResponseAllOf } from './get-field-response-all-of';