From 041f74ab229357ee4e61805da7fb83ecdbc5d385 Mon Sep 17 00:00:00 2001 From: Nicolas Mondain Date: Thu, 14 Nov 2024 22:19:44 +0100 Subject: [PATCH 1/6] ApiClientConfigurator: getCustomMiddleware https://github.com/HubSpot/hubspot-api-nodejs/issues/560 --- src/configuration/ApiClientConfigurator.ts | 127 +++++++++++++++++++-- 1 file changed, 120 insertions(+), 7 deletions(-) diff --git a/src/configuration/ApiClientConfigurator.ts b/src/configuration/ApiClientConfigurator.ts index 1461c951c..f7f166445 100644 --- a/src/configuration/ApiClientConfigurator.ts +++ b/src/configuration/ApiClientConfigurator.ts @@ -3,6 +3,24 @@ import { IRequestContext } from '../services/IRequestContext' import IConfiguration from './IConfiguration' import { VERSION } from './version' +type MiddlewarePreBase = ( + context: RequestContextType, +) => ObservableRequestContextType +type MiddlewarePostBase = ( + context: ResponseContextType, +) => ObservableResponseContextType +export default interface IMiddlewareConfiguration< + RequestContextType extends IRequestContext, + ResponseContextType, + ObservableRequestContextType, + ObservableResponseContextType, +> extends IConfiguration { + middleware?: Array<{ + pre: MiddlewarePreBase | undefined + post: MiddlewarePostBase | undefined + }> +} + export class ApiClientConfigurator { public static getParams< RequestContextType extends IRequestContext, @@ -11,7 +29,12 @@ export class ApiClientConfigurator { ObservableResponseContextType, ServerConfiguration, >( - config: IConfiguration, + config: IMiddlewareConfiguration< + RequestContextType, + ResponseContextType, + ObservableRequestContextType, + ObservableResponseContextType + >, serverConfigurationClass: new ( url: string, variableConfiguration: { [key: string]: string }, @@ -38,7 +61,19 @@ export class ApiClientConfigurator { return `hubspot-api-client-nodejs; ${VERSION}` } - protected static getAuthMethods(config: IConfiguration) { + protected static getAuthMethods< + RequestContextType extends IRequestContext, + ResponseContextType, + ObservableRequestContextType, + ObservableResponseContextType, + >( + config: IMiddlewareConfiguration< + RequestContextType, + ResponseContextType, + ObservableRequestContextType, + ObservableResponseContextType + >, + ) { let authMethods = {} if (config.accessToken) { @@ -69,8 +104,19 @@ export class ApiClientConfigurator { return authMethods } - protected static getBaseServer( - config: IConfiguration, + protected static getBaseServer< + ServerConfiguration, + RequestContextType extends IRequestContext, + ResponseContextType, + ObservableRequestContextType, + ObservableResponseContextType, + >( + config: IMiddlewareConfiguration< + RequestContextType, + ResponseContextType, + ObservableRequestContextType, + ObservableResponseContextType + >, serverConfigurationClass: new ( url: string, variableConfiguration: { [key: string]: string }, @@ -88,7 +134,12 @@ export class ApiClientConfigurator { ObservableRequestContextType, ObservableResponseContextType, >( - config: IConfiguration, + config: IMiddlewareConfiguration< + RequestContextType, + ResponseContextType, + ObservableRequestContextType, + ObservableResponseContextType + >, observableRequestContextParam: new (promise: Promise) => ObservableRequestContextType, observableResponseContextParam: new (promise: Promise) => ObservableResponseContextType, ) { @@ -112,16 +163,73 @@ export class ApiClientConfigurator { ) } + if (config.middleware) { + middleware.push( + ...this.getCustomMiddleware< + RequestContextType, + ResponseContextType, + ObservableRequestContextType, + ObservableResponseContextType + >(config, observableRequestContextParam, observableResponseContextParam), + ) + } + return middleware } + protected static getCustomMiddleware< + RequestContextType extends IRequestContext, + ResponseContextType, + ObservableRequestContextType, + ObservableResponseContextType, + >( + config: IMiddlewareConfiguration< + RequestContextType, + ResponseContextType, + ObservableRequestContextType, + ObservableResponseContextType + >, + observableRequestContextParam: new (promise: Promise) => ObservableRequestContextType, + observableResponseContextParam: new (promise: Promise) => ObservableResponseContextType, + ) { + return ( + config.middleware + ?.filter((m) => m.pre || m.post) + .map((m) => ({ + pre: (context: RequestContextType): ObservableRequestContextType => { + if (m.pre) { + const result = m.pre(context) + return result instanceof observableRequestContextParam + ? result + : new observableRequestContextParam(Promise.resolve(context)) + } + return new observableRequestContextParam(Promise.resolve(context)) + }, + post: (context: ResponseContextType): ObservableResponseContextType => { + if (m.post) { + const result = m.post(context) + return result instanceof observableResponseContextParam + ? result + : new observableResponseContextParam(Promise.resolve(context)) + } + return new observableResponseContextParam(Promise.resolve(context)) + }, + })) ?? [] + ) + } + protected static getHeaderMiddleware< RequestContextType extends IRequestContext, ResponseContextType, ObservableRequestContextType, ObservableResponseContextType, >( - config: IConfiguration, + config: IMiddlewareConfiguration< + RequestContextType, + ResponseContextType, + ObservableRequestContextType, + ObservableResponseContextType + >, observableRequestContextParam: new (promise: Promise) => ObservableRequestContextType, observableResponseContextParam: new (promise: Promise) => ObservableResponseContextType, ) { @@ -148,7 +256,12 @@ export class ApiClientConfigurator { ObservableRequestContextType, ObservableResponseContextType, >( - config: IConfiguration, + config: IMiddlewareConfiguration< + RequestContextType, + ResponseContextType, + ObservableRequestContextType, + ObservableResponseContextType + >, observableRequestContextParam: new (promise: Promise) => ObservableRequestContextType, observableResponseContextParam: new (promise: Promise) => ObservableResponseContextType, ) { From ac66f9d0e0a88b5620d14be2e801caf13c63cde1 Mon Sep 17 00:00:00 2001 From: Nicolas Mondain Date: Thu, 14 Nov 2024 22:43:23 +0100 Subject: [PATCH 2/6] ApiClientConfigurator: getCustomMiddleware (async post, async pre) https://github.com/HubSpot/hubspot-api-nodejs/issues/560 --- src/configuration/ApiClientConfigurator.ts | 109 ++++++--------------- 1 file changed, 30 insertions(+), 79 deletions(-) diff --git a/src/configuration/ApiClientConfigurator.ts b/src/configuration/ApiClientConfigurator.ts index f7f166445..ae7ce7961 100644 --- a/src/configuration/ApiClientConfigurator.ts +++ b/src/configuration/ApiClientConfigurator.ts @@ -3,21 +3,13 @@ import { IRequestContext } from '../services/IRequestContext' import IConfiguration from './IConfiguration' import { VERSION } from './version' -type MiddlewarePreBase = ( - context: RequestContextType, -) => ObservableRequestContextType -type MiddlewarePostBase = ( - context: ResponseContextType, -) => ObservableResponseContextType -export default interface IMiddlewareConfiguration< - RequestContextType extends IRequestContext, - ResponseContextType, - ObservableRequestContextType, - ObservableResponseContextType, -> extends IConfiguration { +type MiddlewarePreBase = (context: RequestContextType) => RequestContextType +type MiddlewarePostBase = (context: ResponseContextType) => ResponseContextType +export default interface IMiddlewareConfiguration + extends IConfiguration { middleware?: Array<{ - pre: MiddlewarePreBase | undefined - post: MiddlewarePostBase | undefined + pre: MiddlewarePreBase | undefined + post: MiddlewarePostBase | undefined }> } @@ -29,12 +21,7 @@ export class ApiClientConfigurator { ObservableResponseContextType, ServerConfiguration, >( - config: IMiddlewareConfiguration< - RequestContextType, - ResponseContextType, - ObservableRequestContextType, - ObservableResponseContextType - >, + config: IMiddlewareConfiguration, serverConfigurationClass: new ( url: string, variableConfiguration: { [key: string]: string }, @@ -61,18 +48,8 @@ export class ApiClientConfigurator { return `hubspot-api-client-nodejs; ${VERSION}` } - protected static getAuthMethods< - RequestContextType extends IRequestContext, - ResponseContextType, - ObservableRequestContextType, - ObservableResponseContextType, - >( - config: IMiddlewareConfiguration< - RequestContextType, - ResponseContextType, - ObservableRequestContextType, - ObservableResponseContextType - >, + protected static getAuthMethods( + config: IMiddlewareConfiguration, ) { let authMethods = {} @@ -104,19 +81,8 @@ export class ApiClientConfigurator { return authMethods } - protected static getBaseServer< - ServerConfiguration, - RequestContextType extends IRequestContext, - ResponseContextType, - ObservableRequestContextType, - ObservableResponseContextType, - >( - config: IMiddlewareConfiguration< - RequestContextType, - ResponseContextType, - ObservableRequestContextType, - ObservableResponseContextType - >, + protected static getBaseServer( + config: IMiddlewareConfiguration, serverConfigurationClass: new ( url: string, variableConfiguration: { [key: string]: string }, @@ -134,12 +100,7 @@ export class ApiClientConfigurator { ObservableRequestContextType, ObservableResponseContextType, >( - config: IMiddlewareConfiguration< - RequestContextType, - ResponseContextType, - ObservableRequestContextType, - ObservableResponseContextType - >, + config: IMiddlewareConfiguration, observableRequestContextParam: new (promise: Promise) => ObservableRequestContextType, observableResponseContextParam: new (promise: Promise) => ObservableResponseContextType, ) { @@ -183,34 +144,34 @@ export class ApiClientConfigurator { ObservableRequestContextType, ObservableResponseContextType, >( - config: IMiddlewareConfiguration< - RequestContextType, - ResponseContextType, - ObservableRequestContextType, - ObservableResponseContextType - >, + config: IMiddlewareConfiguration, observableRequestContextParam: new (promise: Promise) => ObservableRequestContextType, observableResponseContextParam: new (promise: Promise) => ObservableResponseContextType, ) { + // if (m.pre && typeof m.pre === 'function') { + // middleware.pre = (context) => { + // return new observableRequestContextParam(Promise.resolve(m.pre(context))); + // }; + // } + // if (m.post && typeof m.post === 'function') { + // middleware.post = (context) => { + // return new observableResponseContextParam(Promise.resolve(m.post(context))); + // }; + // } + // if (middleware.pre || middleware.post) custom.push(middleware); return ( config.middleware ?.filter((m) => m.pre || m.post) .map((m) => ({ pre: (context: RequestContextType): ObservableRequestContextType => { - if (m.pre) { - const result = m.pre(context) - return result instanceof observableRequestContextParam - ? result - : new observableRequestContextParam(Promise.resolve(context)) + if (m.pre && typeof m.pre === 'function') { + return new observableRequestContextParam(Promise.resolve(m.pre(context))) } return new observableRequestContextParam(Promise.resolve(context)) }, post: (context: ResponseContextType): ObservableResponseContextType => { - if (m.post) { - const result = m.post(context) - return result instanceof observableResponseContextParam - ? result - : new observableResponseContextParam(Promise.resolve(context)) + if (m.post && typeof m.post === 'function') { + return new observableResponseContextParam(Promise.resolve(m.post(context))) } return new observableResponseContextParam(Promise.resolve(context)) }, @@ -224,12 +185,7 @@ export class ApiClientConfigurator { ObservableRequestContextType, ObservableResponseContextType, >( - config: IMiddlewareConfiguration< - RequestContextType, - ResponseContextType, - ObservableRequestContextType, - ObservableResponseContextType - >, + config: IMiddlewareConfiguration, observableRequestContextParam: new (promise: Promise) => ObservableRequestContextType, observableResponseContextParam: new (promise: Promise) => ObservableResponseContextType, ) { @@ -256,12 +212,7 @@ export class ApiClientConfigurator { ObservableRequestContextType, ObservableResponseContextType, >( - config: IMiddlewareConfiguration< - RequestContextType, - ResponseContextType, - ObservableRequestContextType, - ObservableResponseContextType - >, + config: IMiddlewareConfiguration, observableRequestContextParam: new (promise: Promise) => ObservableRequestContextType, observableResponseContextParam: new (promise: Promise) => ObservableResponseContextType, ) { From 6f98b431883ce0bf7284a4fb869664f9267652e4 Mon Sep 17 00:00:00 2001 From: Nicolas Mondain Date: Thu, 14 Nov 2024 22:47:56 +0100 Subject: [PATCH 3/6] ApiClientConfigurator: getCustomMiddleware (rm comment) --- src/configuration/ApiClientConfigurator.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/configuration/ApiClientConfigurator.ts b/src/configuration/ApiClientConfigurator.ts index ae7ce7961..a4130fa2b 100644 --- a/src/configuration/ApiClientConfigurator.ts +++ b/src/configuration/ApiClientConfigurator.ts @@ -148,17 +148,6 @@ export class ApiClientConfigurator { observableRequestContextParam: new (promise: Promise) => ObservableRequestContextType, observableResponseContextParam: new (promise: Promise) => ObservableResponseContextType, ) { - // if (m.pre && typeof m.pre === 'function') { - // middleware.pre = (context) => { - // return new observableRequestContextParam(Promise.resolve(m.pre(context))); - // }; - // } - // if (m.post && typeof m.post === 'function') { - // middleware.post = (context) => { - // return new observableResponseContextParam(Promise.resolve(m.post(context))); - // }; - // } - // if (middleware.pre || middleware.post) custom.push(middleware); return ( config.middleware ?.filter((m) => m.pre || m.post) From f94df9299d3eb363df04798ada759a81cc330d2d Mon Sep 17 00:00:00 2001 From: Nicolas Mondain Date: Mon, 18 Nov 2024 14:24:08 +0100 Subject: [PATCH 4/6] PublicObjectSearchRequest['sorts'] update https://github.com/HubSpot/hubspot-api-nodejs/issues/559 --- codegen/crm/companies/models/PublicObjectSearchRequest.ts | 4 ++-- codegen/crm/contacts/models/PublicObjectSearchRequest.ts | 4 ++-- codegen/crm/deals/models/PublicObjectSearchRequest.ts | 4 ++-- codegen/crm/line_items/models/PublicObjectSearchRequest.ts | 4 ++-- codegen/crm/objects/calls/models/PublicObjectSearchRequest.ts | 4 ++-- .../communications/models/PublicObjectSearchRequest.ts | 4 ++-- .../crm/objects/emails/models/PublicObjectSearchRequest.ts | 4 ++-- .../feedback_submissions/models/PublicObjectSearchRequest.ts | 4 ++-- codegen/crm/objects/goals/models/PublicObjectSearchRequest.ts | 4 ++-- codegen/crm/objects/leads/models/PublicObjectSearchRequest.ts | 4 ++-- .../crm/objects/meetings/models/PublicObjectSearchRequest.ts | 4 ++-- codegen/crm/objects/models/PublicObjectSearchRequest.ts | 4 ++-- codegen/crm/objects/notes/models/PublicObjectSearchRequest.ts | 4 ++-- .../objects/postal_mail/models/PublicObjectSearchRequest.ts | 4 ++-- codegen/crm/objects/tasks/models/PublicObjectSearchRequest.ts | 4 ++-- codegen/crm/objects/taxes/models/PublicObjectSearchRequest.ts | 4 ++-- codegen/crm/products/models/PublicObjectSearchRequest.ts | 4 ++-- codegen/crm/quotes/models/PublicObjectSearchRequest.ts | 4 ++-- codegen/crm/tickets/models/PublicObjectSearchRequest.ts | 4 ++-- 19 files changed, 38 insertions(+), 38 deletions(-) diff --git a/codegen/crm/companies/models/PublicObjectSearchRequest.ts b/codegen/crm/companies/models/PublicObjectSearchRequest.ts index 7d78bdec2..7ee492e0a 100644 --- a/codegen/crm/companies/models/PublicObjectSearchRequest.ts +++ b/codegen/crm/companies/models/PublicObjectSearchRequest.ts @@ -3,7 +3,7 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * OpenAPI spec version: v3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,7 +16,7 @@ export class PublicObjectSearchRequest { 'query'?: string; 'limit'?: number; 'after'?: string; - 'sorts'?: Array; + 'sorts'?: Array<{ 'field': string, 'direction': 'ASCENDING' | 'DESCENDING' }>; 'properties'?: Array; 'filterGroups'?: Array; diff --git a/codegen/crm/contacts/models/PublicObjectSearchRequest.ts b/codegen/crm/contacts/models/PublicObjectSearchRequest.ts index 098f32c47..a789fb136 100644 --- a/codegen/crm/contacts/models/PublicObjectSearchRequest.ts +++ b/codegen/crm/contacts/models/PublicObjectSearchRequest.ts @@ -3,7 +3,7 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * OpenAPI spec version: v3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,7 +16,7 @@ export class PublicObjectSearchRequest { 'query'?: string; 'limit'?: number; 'after'?: string; - 'sorts'?: Array; + 'sorts'?: Array<{ 'field': string, 'direction': 'ASCENDING' | 'DESCENDING' }>;; 'properties'?: Array; 'filterGroups'?: Array; diff --git a/codegen/crm/deals/models/PublicObjectSearchRequest.ts b/codegen/crm/deals/models/PublicObjectSearchRequest.ts index 034337b51..d942e8cc9 100644 --- a/codegen/crm/deals/models/PublicObjectSearchRequest.ts +++ b/codegen/crm/deals/models/PublicObjectSearchRequest.ts @@ -3,7 +3,7 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * OpenAPI spec version: v3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,7 +16,7 @@ export class PublicObjectSearchRequest { 'query'?: string; 'limit'?: number; 'after'?: string; - 'sorts'?: Array; + 'sorts'?: Array<{ 'field': string, 'direction': 'ASCENDING' | 'DESCENDING' }>;; 'properties'?: Array; 'filterGroups'?: Array; diff --git a/codegen/crm/line_items/models/PublicObjectSearchRequest.ts b/codegen/crm/line_items/models/PublicObjectSearchRequest.ts index 672cc7d76..fd169154f 100644 --- a/codegen/crm/line_items/models/PublicObjectSearchRequest.ts +++ b/codegen/crm/line_items/models/PublicObjectSearchRequest.ts @@ -3,7 +3,7 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * OpenAPI spec version: v3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,7 +16,7 @@ export class PublicObjectSearchRequest { 'query'?: string; 'limit'?: number; 'after'?: string; - 'sorts'?: Array; + 'sorts'?: Array<{ 'field': string, 'direction': 'ASCENDING' | 'DESCENDING' }>;; 'properties'?: Array; 'filterGroups'?: Array; diff --git a/codegen/crm/objects/calls/models/PublicObjectSearchRequest.ts b/codegen/crm/objects/calls/models/PublicObjectSearchRequest.ts index fc493e962..8e32123dd 100644 --- a/codegen/crm/objects/calls/models/PublicObjectSearchRequest.ts +++ b/codegen/crm/objects/calls/models/PublicObjectSearchRequest.ts @@ -3,7 +3,7 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * OpenAPI spec version: v3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,7 +16,7 @@ export class PublicObjectSearchRequest { 'query'?: string; 'limit'?: number; 'after'?: string; - 'sorts'?: Array; + 'sorts'?: Array<{ 'field': string, 'direction': 'ASCENDING' | 'DESCENDING' }>;; 'properties'?: Array; 'filterGroups'?: Array; diff --git a/codegen/crm/objects/communications/models/PublicObjectSearchRequest.ts b/codegen/crm/objects/communications/models/PublicObjectSearchRequest.ts index 1d62ba23e..d3118f411 100644 --- a/codegen/crm/objects/communications/models/PublicObjectSearchRequest.ts +++ b/codegen/crm/objects/communications/models/PublicObjectSearchRequest.ts @@ -3,7 +3,7 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * OpenAPI spec version: v3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,7 +16,7 @@ export class PublicObjectSearchRequest { 'query'?: string; 'limit'?: number; 'after'?: string; - 'sorts'?: Array; + 'sorts'?: Array<{ 'field': string, 'direction': 'ASCENDING' | 'DESCENDING' }>;; 'properties'?: Array; 'filterGroups'?: Array; diff --git a/codegen/crm/objects/emails/models/PublicObjectSearchRequest.ts b/codegen/crm/objects/emails/models/PublicObjectSearchRequest.ts index eccdbf369..534c8eb9e 100644 --- a/codegen/crm/objects/emails/models/PublicObjectSearchRequest.ts +++ b/codegen/crm/objects/emails/models/PublicObjectSearchRequest.ts @@ -3,7 +3,7 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * OpenAPI spec version: v3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,7 +16,7 @@ export class PublicObjectSearchRequest { 'query'?: string; 'limit'?: number; 'after'?: string; - 'sorts'?: Array; + 'sorts'?: Array<{ 'field': string, 'direction': 'ASCENDING' | 'DESCENDING' }>;; 'properties'?: Array; 'filterGroups'?: Array; diff --git a/codegen/crm/objects/feedback_submissions/models/PublicObjectSearchRequest.ts b/codegen/crm/objects/feedback_submissions/models/PublicObjectSearchRequest.ts index 1e37b71bc..d3151e770 100644 --- a/codegen/crm/objects/feedback_submissions/models/PublicObjectSearchRequest.ts +++ b/codegen/crm/objects/feedback_submissions/models/PublicObjectSearchRequest.ts @@ -3,7 +3,7 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * OpenAPI spec version: v3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,7 +16,7 @@ export class PublicObjectSearchRequest { 'query'?: string; 'limit'?: number; 'after'?: string; - 'sorts'?: Array; + 'sorts'?: Array<{ 'field': string, 'direction': 'ASCENDING' | 'DESCENDING' }>;; 'properties'?: Array; 'filterGroups'?: Array; diff --git a/codegen/crm/objects/goals/models/PublicObjectSearchRequest.ts b/codegen/crm/objects/goals/models/PublicObjectSearchRequest.ts index 64cfc2e34..0fd677244 100644 --- a/codegen/crm/objects/goals/models/PublicObjectSearchRequest.ts +++ b/codegen/crm/objects/goals/models/PublicObjectSearchRequest.ts @@ -3,7 +3,7 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * OpenAPI spec version: v3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,7 +16,7 @@ export class PublicObjectSearchRequest { 'query'?: string; 'limit'?: number; 'after'?: string; - 'sorts'?: Array; + 'sorts'?: Array<{ 'field': string, 'direction': 'ASCENDING' | 'DESCENDING' }>;; 'properties'?: Array; 'filterGroups'?: Array; diff --git a/codegen/crm/objects/leads/models/PublicObjectSearchRequest.ts b/codegen/crm/objects/leads/models/PublicObjectSearchRequest.ts index 8ee298779..c34db1139 100644 --- a/codegen/crm/objects/leads/models/PublicObjectSearchRequest.ts +++ b/codegen/crm/objects/leads/models/PublicObjectSearchRequest.ts @@ -3,7 +3,7 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * OpenAPI spec version: v3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,7 +16,7 @@ export class PublicObjectSearchRequest { 'query'?: string; 'limit'?: number; 'after'?: string; - 'sorts'?: Array; + 'sorts'?: Array<{ 'field': string, 'direction': 'ASCENDING' | 'DESCENDING' }>;; 'properties'?: Array; 'filterGroups'?: Array; diff --git a/codegen/crm/objects/meetings/models/PublicObjectSearchRequest.ts b/codegen/crm/objects/meetings/models/PublicObjectSearchRequest.ts index 673660c55..1a7237581 100644 --- a/codegen/crm/objects/meetings/models/PublicObjectSearchRequest.ts +++ b/codegen/crm/objects/meetings/models/PublicObjectSearchRequest.ts @@ -3,7 +3,7 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * OpenAPI spec version: v3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,7 +16,7 @@ export class PublicObjectSearchRequest { 'query'?: string; 'limit'?: number; 'after'?: string; - 'sorts'?: Array; + 'sorts'?: Array<{ 'field': string, 'direction': 'ASCENDING' | 'DESCENDING' }>;; 'properties'?: Array; 'filterGroups'?: Array; diff --git a/codegen/crm/objects/models/PublicObjectSearchRequest.ts b/codegen/crm/objects/models/PublicObjectSearchRequest.ts index 67cac41ce..c2c4080f9 100644 --- a/codegen/crm/objects/models/PublicObjectSearchRequest.ts +++ b/codegen/crm/objects/models/PublicObjectSearchRequest.ts @@ -3,7 +3,7 @@ * CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body. * * OpenAPI spec version: v3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,7 +16,7 @@ export class PublicObjectSearchRequest { 'query'?: string; 'limit'?: number; 'after'?: string; - 'sorts'?: Array; + 'sorts'?: Array<{ 'field': string, 'direction': 'ASCENDING' | 'DESCENDING' }>;; 'properties'?: Array; 'filterGroups'?: Array; diff --git a/codegen/crm/objects/notes/models/PublicObjectSearchRequest.ts b/codegen/crm/objects/notes/models/PublicObjectSearchRequest.ts index f4ecdc1f3..d68ce1ad4 100644 --- a/codegen/crm/objects/notes/models/PublicObjectSearchRequest.ts +++ b/codegen/crm/objects/notes/models/PublicObjectSearchRequest.ts @@ -3,7 +3,7 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * OpenAPI spec version: v3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,7 +16,7 @@ export class PublicObjectSearchRequest { 'query'?: string; 'limit'?: number; 'after'?: string; - 'sorts'?: Array; + 'sorts'?: Array<{ 'field': string, 'direction': 'ASCENDING' | 'DESCENDING' }>;; 'properties'?: Array; 'filterGroups'?: Array; diff --git a/codegen/crm/objects/postal_mail/models/PublicObjectSearchRequest.ts b/codegen/crm/objects/postal_mail/models/PublicObjectSearchRequest.ts index da770af2b..162a902a6 100644 --- a/codegen/crm/objects/postal_mail/models/PublicObjectSearchRequest.ts +++ b/codegen/crm/objects/postal_mail/models/PublicObjectSearchRequest.ts @@ -3,7 +3,7 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * OpenAPI spec version: v3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,7 +16,7 @@ export class PublicObjectSearchRequest { 'query'?: string; 'limit'?: number; 'after'?: string; - 'sorts'?: Array; + 'sorts'?: Array<{ 'field': string, 'direction': 'ASCENDING' | 'DESCENDING' }>;; 'properties'?: Array; 'filterGroups'?: Array; diff --git a/codegen/crm/objects/tasks/models/PublicObjectSearchRequest.ts b/codegen/crm/objects/tasks/models/PublicObjectSearchRequest.ts index 56b02f9fb..0c4416db1 100644 --- a/codegen/crm/objects/tasks/models/PublicObjectSearchRequest.ts +++ b/codegen/crm/objects/tasks/models/PublicObjectSearchRequest.ts @@ -3,7 +3,7 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * OpenAPI spec version: v3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,7 +16,7 @@ export class PublicObjectSearchRequest { 'query'?: string; 'limit'?: number; 'after'?: string; - 'sorts'?: Array; + 'sorts'?: Array<{ 'field': string, 'direction': 'ASCENDING' | 'DESCENDING' }>;; 'properties'?: Array; 'filterGroups'?: Array; diff --git a/codegen/crm/objects/taxes/models/PublicObjectSearchRequest.ts b/codegen/crm/objects/taxes/models/PublicObjectSearchRequest.ts index 0b1cbf781..f098110a6 100644 --- a/codegen/crm/objects/taxes/models/PublicObjectSearchRequest.ts +++ b/codegen/crm/objects/taxes/models/PublicObjectSearchRequest.ts @@ -3,7 +3,7 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * OpenAPI spec version: v3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,7 +16,7 @@ export class PublicObjectSearchRequest { 'query'?: string; 'limit'?: number; 'after'?: string; - 'sorts'?: Array; + 'sorts'?: Array<{ 'field': string, 'direction': 'ASCENDING' | 'DESCENDING' }>;; 'properties'?: Array; 'filterGroups'?: Array; diff --git a/codegen/crm/products/models/PublicObjectSearchRequest.ts b/codegen/crm/products/models/PublicObjectSearchRequest.ts index 39e925a6a..16577a508 100644 --- a/codegen/crm/products/models/PublicObjectSearchRequest.ts +++ b/codegen/crm/products/models/PublicObjectSearchRequest.ts @@ -3,7 +3,7 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * OpenAPI spec version: v3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,7 +16,7 @@ export class PublicObjectSearchRequest { 'query'?: string; 'limit'?: number; 'after'?: string; - 'sorts'?: Array; + 'sorts'?: Array<{ 'field': string, 'direction': 'ASCENDING' | 'DESCENDING' }>;; 'properties'?: Array; 'filterGroups'?: Array; diff --git a/codegen/crm/quotes/models/PublicObjectSearchRequest.ts b/codegen/crm/quotes/models/PublicObjectSearchRequest.ts index 988ecfb9a..eea953ed8 100644 --- a/codegen/crm/quotes/models/PublicObjectSearchRequest.ts +++ b/codegen/crm/quotes/models/PublicObjectSearchRequest.ts @@ -3,7 +3,7 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * OpenAPI spec version: v3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,7 +16,7 @@ export class PublicObjectSearchRequest { 'query'?: string; 'limit'?: number; 'after'?: string; - 'sorts'?: Array; + 'sorts'?: Array<{ 'field': string, 'direction': 'ASCENDING' | 'DESCENDING' }>;; 'properties'?: Array; 'filterGroups'?: Array; diff --git a/codegen/crm/tickets/models/PublicObjectSearchRequest.ts b/codegen/crm/tickets/models/PublicObjectSearchRequest.ts index ff862be8d..50dc79c6f 100644 --- a/codegen/crm/tickets/models/PublicObjectSearchRequest.ts +++ b/codegen/crm/tickets/models/PublicObjectSearchRequest.ts @@ -3,7 +3,7 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * OpenAPI spec version: v3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,7 +16,7 @@ export class PublicObjectSearchRequest { 'query'?: string; 'limit'?: number; 'after'?: string; - 'sorts'?: Array; + 'sorts'?: Array<{ 'field': string, 'direction': 'ASCENDING' | 'DESCENDING' }>;; 'properties'?: Array; 'filterGroups'?: Array; From 2dad4d227e34c766ae79204dc2d4cf8bdb68938c Mon Sep 17 00:00:00 2001 From: Nicolas Mondain Date: Tue, 19 Nov 2024 20:50:32 +0100 Subject: [PATCH 5/6] Revert "PublicObjectSearchRequest['sorts'] update" This reverts commit f94df9299d3eb363df04798ada759a81cc330d2d. --- codegen/crm/companies/models/PublicObjectSearchRequest.ts | 4 ++-- codegen/crm/contacts/models/PublicObjectSearchRequest.ts | 4 ++-- codegen/crm/deals/models/PublicObjectSearchRequest.ts | 4 ++-- codegen/crm/line_items/models/PublicObjectSearchRequest.ts | 4 ++-- codegen/crm/objects/calls/models/PublicObjectSearchRequest.ts | 4 ++-- .../communications/models/PublicObjectSearchRequest.ts | 4 ++-- .../crm/objects/emails/models/PublicObjectSearchRequest.ts | 4 ++-- .../feedback_submissions/models/PublicObjectSearchRequest.ts | 4 ++-- codegen/crm/objects/goals/models/PublicObjectSearchRequest.ts | 4 ++-- codegen/crm/objects/leads/models/PublicObjectSearchRequest.ts | 4 ++-- .../crm/objects/meetings/models/PublicObjectSearchRequest.ts | 4 ++-- codegen/crm/objects/models/PublicObjectSearchRequest.ts | 4 ++-- codegen/crm/objects/notes/models/PublicObjectSearchRequest.ts | 4 ++-- .../objects/postal_mail/models/PublicObjectSearchRequest.ts | 4 ++-- codegen/crm/objects/tasks/models/PublicObjectSearchRequest.ts | 4 ++-- codegen/crm/objects/taxes/models/PublicObjectSearchRequest.ts | 4 ++-- codegen/crm/products/models/PublicObjectSearchRequest.ts | 4 ++-- codegen/crm/quotes/models/PublicObjectSearchRequest.ts | 4 ++-- codegen/crm/tickets/models/PublicObjectSearchRequest.ts | 4 ++-- 19 files changed, 38 insertions(+), 38 deletions(-) diff --git a/codegen/crm/companies/models/PublicObjectSearchRequest.ts b/codegen/crm/companies/models/PublicObjectSearchRequest.ts index 7ee492e0a..7d78bdec2 100644 --- a/codegen/crm/companies/models/PublicObjectSearchRequest.ts +++ b/codegen/crm/companies/models/PublicObjectSearchRequest.ts @@ -3,7 +3,7 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * OpenAPI spec version: v3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,7 +16,7 @@ export class PublicObjectSearchRequest { 'query'?: string; 'limit'?: number; 'after'?: string; - 'sorts'?: Array<{ 'field': string, 'direction': 'ASCENDING' | 'DESCENDING' }>; + 'sorts'?: Array; 'properties'?: Array; 'filterGroups'?: Array; diff --git a/codegen/crm/contacts/models/PublicObjectSearchRequest.ts b/codegen/crm/contacts/models/PublicObjectSearchRequest.ts index a789fb136..098f32c47 100644 --- a/codegen/crm/contacts/models/PublicObjectSearchRequest.ts +++ b/codegen/crm/contacts/models/PublicObjectSearchRequest.ts @@ -3,7 +3,7 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * OpenAPI spec version: v3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,7 +16,7 @@ export class PublicObjectSearchRequest { 'query'?: string; 'limit'?: number; 'after'?: string; - 'sorts'?: Array<{ 'field': string, 'direction': 'ASCENDING' | 'DESCENDING' }>;; + 'sorts'?: Array; 'properties'?: Array; 'filterGroups'?: Array; diff --git a/codegen/crm/deals/models/PublicObjectSearchRequest.ts b/codegen/crm/deals/models/PublicObjectSearchRequest.ts index d942e8cc9..034337b51 100644 --- a/codegen/crm/deals/models/PublicObjectSearchRequest.ts +++ b/codegen/crm/deals/models/PublicObjectSearchRequest.ts @@ -3,7 +3,7 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * OpenAPI spec version: v3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,7 +16,7 @@ export class PublicObjectSearchRequest { 'query'?: string; 'limit'?: number; 'after'?: string; - 'sorts'?: Array<{ 'field': string, 'direction': 'ASCENDING' | 'DESCENDING' }>;; + 'sorts'?: Array; 'properties'?: Array; 'filterGroups'?: Array; diff --git a/codegen/crm/line_items/models/PublicObjectSearchRequest.ts b/codegen/crm/line_items/models/PublicObjectSearchRequest.ts index fd169154f..672cc7d76 100644 --- a/codegen/crm/line_items/models/PublicObjectSearchRequest.ts +++ b/codegen/crm/line_items/models/PublicObjectSearchRequest.ts @@ -3,7 +3,7 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * OpenAPI spec version: v3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,7 +16,7 @@ export class PublicObjectSearchRequest { 'query'?: string; 'limit'?: number; 'after'?: string; - 'sorts'?: Array<{ 'field': string, 'direction': 'ASCENDING' | 'DESCENDING' }>;; + 'sorts'?: Array; 'properties'?: Array; 'filterGroups'?: Array; diff --git a/codegen/crm/objects/calls/models/PublicObjectSearchRequest.ts b/codegen/crm/objects/calls/models/PublicObjectSearchRequest.ts index 8e32123dd..fc493e962 100644 --- a/codegen/crm/objects/calls/models/PublicObjectSearchRequest.ts +++ b/codegen/crm/objects/calls/models/PublicObjectSearchRequest.ts @@ -3,7 +3,7 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * OpenAPI spec version: v3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,7 +16,7 @@ export class PublicObjectSearchRequest { 'query'?: string; 'limit'?: number; 'after'?: string; - 'sorts'?: Array<{ 'field': string, 'direction': 'ASCENDING' | 'DESCENDING' }>;; + 'sorts'?: Array; 'properties'?: Array; 'filterGroups'?: Array; diff --git a/codegen/crm/objects/communications/models/PublicObjectSearchRequest.ts b/codegen/crm/objects/communications/models/PublicObjectSearchRequest.ts index d3118f411..1d62ba23e 100644 --- a/codegen/crm/objects/communications/models/PublicObjectSearchRequest.ts +++ b/codegen/crm/objects/communications/models/PublicObjectSearchRequest.ts @@ -3,7 +3,7 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * OpenAPI spec version: v3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,7 +16,7 @@ export class PublicObjectSearchRequest { 'query'?: string; 'limit'?: number; 'after'?: string; - 'sorts'?: Array<{ 'field': string, 'direction': 'ASCENDING' | 'DESCENDING' }>;; + 'sorts'?: Array; 'properties'?: Array; 'filterGroups'?: Array; diff --git a/codegen/crm/objects/emails/models/PublicObjectSearchRequest.ts b/codegen/crm/objects/emails/models/PublicObjectSearchRequest.ts index 534c8eb9e..eccdbf369 100644 --- a/codegen/crm/objects/emails/models/PublicObjectSearchRequest.ts +++ b/codegen/crm/objects/emails/models/PublicObjectSearchRequest.ts @@ -3,7 +3,7 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * OpenAPI spec version: v3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,7 +16,7 @@ export class PublicObjectSearchRequest { 'query'?: string; 'limit'?: number; 'after'?: string; - 'sorts'?: Array<{ 'field': string, 'direction': 'ASCENDING' | 'DESCENDING' }>;; + 'sorts'?: Array; 'properties'?: Array; 'filterGroups'?: Array; diff --git a/codegen/crm/objects/feedback_submissions/models/PublicObjectSearchRequest.ts b/codegen/crm/objects/feedback_submissions/models/PublicObjectSearchRequest.ts index d3151e770..1e37b71bc 100644 --- a/codegen/crm/objects/feedback_submissions/models/PublicObjectSearchRequest.ts +++ b/codegen/crm/objects/feedback_submissions/models/PublicObjectSearchRequest.ts @@ -3,7 +3,7 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * OpenAPI spec version: v3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,7 +16,7 @@ export class PublicObjectSearchRequest { 'query'?: string; 'limit'?: number; 'after'?: string; - 'sorts'?: Array<{ 'field': string, 'direction': 'ASCENDING' | 'DESCENDING' }>;; + 'sorts'?: Array; 'properties'?: Array; 'filterGroups'?: Array; diff --git a/codegen/crm/objects/goals/models/PublicObjectSearchRequest.ts b/codegen/crm/objects/goals/models/PublicObjectSearchRequest.ts index 0fd677244..64cfc2e34 100644 --- a/codegen/crm/objects/goals/models/PublicObjectSearchRequest.ts +++ b/codegen/crm/objects/goals/models/PublicObjectSearchRequest.ts @@ -3,7 +3,7 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * OpenAPI spec version: v3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,7 +16,7 @@ export class PublicObjectSearchRequest { 'query'?: string; 'limit'?: number; 'after'?: string; - 'sorts'?: Array<{ 'field': string, 'direction': 'ASCENDING' | 'DESCENDING' }>;; + 'sorts'?: Array; 'properties'?: Array; 'filterGroups'?: Array; diff --git a/codegen/crm/objects/leads/models/PublicObjectSearchRequest.ts b/codegen/crm/objects/leads/models/PublicObjectSearchRequest.ts index c34db1139..8ee298779 100644 --- a/codegen/crm/objects/leads/models/PublicObjectSearchRequest.ts +++ b/codegen/crm/objects/leads/models/PublicObjectSearchRequest.ts @@ -3,7 +3,7 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * OpenAPI spec version: v3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,7 +16,7 @@ export class PublicObjectSearchRequest { 'query'?: string; 'limit'?: number; 'after'?: string; - 'sorts'?: Array<{ 'field': string, 'direction': 'ASCENDING' | 'DESCENDING' }>;; + 'sorts'?: Array; 'properties'?: Array; 'filterGroups'?: Array; diff --git a/codegen/crm/objects/meetings/models/PublicObjectSearchRequest.ts b/codegen/crm/objects/meetings/models/PublicObjectSearchRequest.ts index 1a7237581..673660c55 100644 --- a/codegen/crm/objects/meetings/models/PublicObjectSearchRequest.ts +++ b/codegen/crm/objects/meetings/models/PublicObjectSearchRequest.ts @@ -3,7 +3,7 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * OpenAPI spec version: v3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,7 +16,7 @@ export class PublicObjectSearchRequest { 'query'?: string; 'limit'?: number; 'after'?: string; - 'sorts'?: Array<{ 'field': string, 'direction': 'ASCENDING' | 'DESCENDING' }>;; + 'sorts'?: Array; 'properties'?: Array; 'filterGroups'?: Array; diff --git a/codegen/crm/objects/models/PublicObjectSearchRequest.ts b/codegen/crm/objects/models/PublicObjectSearchRequest.ts index c2c4080f9..67cac41ce 100644 --- a/codegen/crm/objects/models/PublicObjectSearchRequest.ts +++ b/codegen/crm/objects/models/PublicObjectSearchRequest.ts @@ -3,7 +3,7 @@ * CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body. * * OpenAPI spec version: v3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,7 +16,7 @@ export class PublicObjectSearchRequest { 'query'?: string; 'limit'?: number; 'after'?: string; - 'sorts'?: Array<{ 'field': string, 'direction': 'ASCENDING' | 'DESCENDING' }>;; + 'sorts'?: Array; 'properties'?: Array; 'filterGroups'?: Array; diff --git a/codegen/crm/objects/notes/models/PublicObjectSearchRequest.ts b/codegen/crm/objects/notes/models/PublicObjectSearchRequest.ts index d68ce1ad4..f4ecdc1f3 100644 --- a/codegen/crm/objects/notes/models/PublicObjectSearchRequest.ts +++ b/codegen/crm/objects/notes/models/PublicObjectSearchRequest.ts @@ -3,7 +3,7 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * OpenAPI spec version: v3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,7 +16,7 @@ export class PublicObjectSearchRequest { 'query'?: string; 'limit'?: number; 'after'?: string; - 'sorts'?: Array<{ 'field': string, 'direction': 'ASCENDING' | 'DESCENDING' }>;; + 'sorts'?: Array; 'properties'?: Array; 'filterGroups'?: Array; diff --git a/codegen/crm/objects/postal_mail/models/PublicObjectSearchRequest.ts b/codegen/crm/objects/postal_mail/models/PublicObjectSearchRequest.ts index 162a902a6..da770af2b 100644 --- a/codegen/crm/objects/postal_mail/models/PublicObjectSearchRequest.ts +++ b/codegen/crm/objects/postal_mail/models/PublicObjectSearchRequest.ts @@ -3,7 +3,7 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * OpenAPI spec version: v3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,7 +16,7 @@ export class PublicObjectSearchRequest { 'query'?: string; 'limit'?: number; 'after'?: string; - 'sorts'?: Array<{ 'field': string, 'direction': 'ASCENDING' | 'DESCENDING' }>;; + 'sorts'?: Array; 'properties'?: Array; 'filterGroups'?: Array; diff --git a/codegen/crm/objects/tasks/models/PublicObjectSearchRequest.ts b/codegen/crm/objects/tasks/models/PublicObjectSearchRequest.ts index 0c4416db1..56b02f9fb 100644 --- a/codegen/crm/objects/tasks/models/PublicObjectSearchRequest.ts +++ b/codegen/crm/objects/tasks/models/PublicObjectSearchRequest.ts @@ -3,7 +3,7 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * OpenAPI spec version: v3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,7 +16,7 @@ export class PublicObjectSearchRequest { 'query'?: string; 'limit'?: number; 'after'?: string; - 'sorts'?: Array<{ 'field': string, 'direction': 'ASCENDING' | 'DESCENDING' }>;; + 'sorts'?: Array; 'properties'?: Array; 'filterGroups'?: Array; diff --git a/codegen/crm/objects/taxes/models/PublicObjectSearchRequest.ts b/codegen/crm/objects/taxes/models/PublicObjectSearchRequest.ts index f098110a6..0b1cbf781 100644 --- a/codegen/crm/objects/taxes/models/PublicObjectSearchRequest.ts +++ b/codegen/crm/objects/taxes/models/PublicObjectSearchRequest.ts @@ -3,7 +3,7 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * OpenAPI spec version: v3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,7 +16,7 @@ export class PublicObjectSearchRequest { 'query'?: string; 'limit'?: number; 'after'?: string; - 'sorts'?: Array<{ 'field': string, 'direction': 'ASCENDING' | 'DESCENDING' }>;; + 'sorts'?: Array; 'properties'?: Array; 'filterGroups'?: Array; diff --git a/codegen/crm/products/models/PublicObjectSearchRequest.ts b/codegen/crm/products/models/PublicObjectSearchRequest.ts index 16577a508..39e925a6a 100644 --- a/codegen/crm/products/models/PublicObjectSearchRequest.ts +++ b/codegen/crm/products/models/PublicObjectSearchRequest.ts @@ -3,7 +3,7 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * OpenAPI spec version: v3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,7 +16,7 @@ export class PublicObjectSearchRequest { 'query'?: string; 'limit'?: number; 'after'?: string; - 'sorts'?: Array<{ 'field': string, 'direction': 'ASCENDING' | 'DESCENDING' }>;; + 'sorts'?: Array; 'properties'?: Array; 'filterGroups'?: Array; diff --git a/codegen/crm/quotes/models/PublicObjectSearchRequest.ts b/codegen/crm/quotes/models/PublicObjectSearchRequest.ts index eea953ed8..988ecfb9a 100644 --- a/codegen/crm/quotes/models/PublicObjectSearchRequest.ts +++ b/codegen/crm/quotes/models/PublicObjectSearchRequest.ts @@ -3,7 +3,7 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * OpenAPI spec version: v3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,7 +16,7 @@ export class PublicObjectSearchRequest { 'query'?: string; 'limit'?: number; 'after'?: string; - 'sorts'?: Array<{ 'field': string, 'direction': 'ASCENDING' | 'DESCENDING' }>;; + 'sorts'?: Array; 'properties'?: Array; 'filterGroups'?: Array; diff --git a/codegen/crm/tickets/models/PublicObjectSearchRequest.ts b/codegen/crm/tickets/models/PublicObjectSearchRequest.ts index 50dc79c6f..ff862be8d 100644 --- a/codegen/crm/tickets/models/PublicObjectSearchRequest.ts +++ b/codegen/crm/tickets/models/PublicObjectSearchRequest.ts @@ -3,7 +3,7 @@ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * OpenAPI spec version: v3 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,7 +16,7 @@ export class PublicObjectSearchRequest { 'query'?: string; 'limit'?: number; 'after'?: string; - 'sorts'?: Array<{ 'field': string, 'direction': 'ASCENDING' | 'DESCENDING' }>;; + 'sorts'?: Array; 'properties'?: Array; 'filterGroups'?: Array; From c5baeeba231746acb90e800404d6ca210b87696c Mon Sep 17 00:00:00 2001 From: Nicolas Mondain Date: Thu, 28 Nov 2024 10:51:19 +0100 Subject: [PATCH 6/6] npm audit fix --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5f50193a0..54cafff22 100644 --- a/package-lock.json +++ b/package-lock.json @@ -728,9 +728,9 @@ "license": "MIT" }, "node_modules/cross-spawn": { - "version": "6.0.5", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", - "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", + "version": "6.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.6.tgz", + "integrity": "sha512-VqCUuhcd1iB+dsv8gxPttb5iZh/D0iubSP21g36KXdEuf6I5JiioesUVjpCdHV9MZRUfVFlvwtIUyPfxo5trtw==", "dev": true, "license": "MIT", "dependencies": {