From 9b0437895cfa7bda7499b2f193cd6a66618c6f5a Mon Sep 17 00:00:00 2001 From: ksvirkou-hubspot Date: Fri, 13 Sep 2024 09:52:09 +0300 Subject: [PATCH] Codegen: CRM Companies, Contacts and Deals --- .../apis/{PublicObjectApi.ts => MergeApi.ts} | 6 ++--- codegen/crm/companies/index.ts | 2 +- .../crm/companies/models/AssociationSpec.ts | 2 +- .../BatchReadInputSimplePublicObjectId.ts | 3 --- .../models/SimplePublicObjectBatchInput.ts | 6 ----- .../SimplePublicObjectBatchInputUpsert.ts | 3 --- codegen/crm/companies/types/ObjectParamAPI.ts | 20 ++++++++-------- codegen/crm/companies/types/ObservableAPI.ts | 16 ++++++------- codegen/crm/companies/types/PromiseAPI.ts | 14 +++++------ .../apis/{PublicObjectApi.ts => MergeApi.ts} | 6 ++--- codegen/crm/contacts/index.ts | 2 +- .../BatchReadInputSimplePublicObjectId.ts | 3 --- .../contacts/models/PublicGdprDeleteInput.ts | 3 --- .../models/SimplePublicObjectBatchInput.ts | 6 ----- .../SimplePublicObjectBatchInputUpsert.ts | 3 --- codegen/crm/contacts/types/ObjectParamAPI.ts | 20 ++++++++-------- codegen/crm/contacts/types/ObservableAPI.ts | 16 ++++++------- codegen/crm/contacts/types/PromiseAPI.ts | 14 +++++------ .../apis/{PublicObjectApi.ts => MergeApi.ts} | 8 +++---- codegen/crm/deals/index.ts | 2 +- .../BatchReadInputSimplePublicObjectId.ts | 3 --- .../models/SimplePublicObjectBatchInput.ts | 6 ----- .../SimplePublicObjectBatchInputUpsert.ts | 3 --- codegen/crm/deals/types/ObjectParamAPI.ts | 24 +++++++++---------- codegen/crm/deals/types/ObservableAPI.ts | 20 ++++++++-------- codegen/crm/deals/types/PromiseAPI.ts | 18 +++++++------- 26 files changed, 95 insertions(+), 134 deletions(-) rename codegen/crm/companies/apis/{PublicObjectApi.ts => MergeApi.ts} (95%) rename codegen/crm/contacts/apis/{PublicObjectApi.ts => MergeApi.ts} (95%) rename codegen/crm/deals/apis/{PublicObjectApi.ts => MergeApi.ts} (94%) diff --git a/codegen/crm/companies/apis/PublicObjectApi.ts b/codegen/crm/companies/apis/MergeApi.ts similarity index 95% rename from codegen/crm/companies/apis/PublicObjectApi.ts rename to codegen/crm/companies/apis/MergeApi.ts index 98c400dc7..f66bb5ec6 100644 --- a/codegen/crm/companies/apis/PublicObjectApi.ts +++ b/codegen/crm/companies/apis/MergeApi.ts @@ -14,7 +14,7 @@ import { SimplePublicObject } from '../models/SimplePublicObject'; /** * no description */ -export class PublicObjectApiRequestFactory extends BaseAPIRequestFactory { +export class MergeApiRequestFactory extends BaseAPIRequestFactory { /** * Merge two companies with same type @@ -25,7 +25,7 @@ export class PublicObjectApiRequestFactory extends BaseAPIRequestFactory { // verify required parameter 'publicMergeInput' is not null or undefined if (publicMergeInput === null || publicMergeInput === undefined) { - throw new RequiredError("PublicObjectApi", "merge", "publicMergeInput"); + throw new RequiredError("MergeApi", "merge", "publicMergeInput"); } @@ -65,7 +65,7 @@ export class PublicObjectApiRequestFactory extends BaseAPIRequestFactory { } -export class PublicObjectApiResponseProcessor { +export class MergeApiResponseProcessor { /** * Unwraps the actual response sent by the server from the response context and deserializes the response content diff --git a/codegen/crm/companies/index.ts b/codegen/crm/companies/index.ts index c006a45c0..060e096fb 100644 --- a/codegen/crm/companies/index.ts +++ b/codegen/crm/companies/index.ts @@ -8,5 +8,5 @@ export * from "./servers"; export { RequiredError } from "./apis/baseapi"; export { PromiseMiddleware as Middleware } from './middleware'; -export { PromiseBasicApi as BasicApi, PromiseBatchApi as BatchApi, PromisePublicObjectApi as PublicObjectApi, PromiseSearchApi as SearchApi } from './types/PromiseAPI'; +export { PromiseBasicApi as BasicApi, PromiseBatchApi as BatchApi, PromiseMergeApi as MergeApi, PromiseSearchApi as SearchApi } from './types/PromiseAPI'; diff --git a/codegen/crm/companies/models/AssociationSpec.ts b/codegen/crm/companies/models/AssociationSpec.ts index b3fca7bc3..049abb79f 100644 --- a/codegen/crm/companies/models/AssociationSpec.ts +++ b/codegen/crm/companies/models/AssociationSpec.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 diff --git a/codegen/crm/companies/models/BatchReadInputSimplePublicObjectId.ts b/codegen/crm/companies/models/BatchReadInputSimplePublicObjectId.ts index e4bcfe671..cba9d1d50 100644 --- a/codegen/crm/companies/models/BatchReadInputSimplePublicObjectId.ts +++ b/codegen/crm/companies/models/BatchReadInputSimplePublicObjectId.ts @@ -14,9 +14,6 @@ import { SimplePublicObjectId } from '../models/SimplePublicObjectId'; export class BatchReadInputSimplePublicObjectId { 'propertiesWithHistory': Array; - /** - * The name of a property whose values are unique for this object - */ 'idProperty'?: string; 'inputs': Array; 'properties': Array; diff --git a/codegen/crm/companies/models/SimplePublicObjectBatchInput.ts b/codegen/crm/companies/models/SimplePublicObjectBatchInput.ts index f649726cd..01e058e7a 100644 --- a/codegen/crm/companies/models/SimplePublicObjectBatchInput.ts +++ b/codegen/crm/companies/models/SimplePublicObjectBatchInput.ts @@ -12,14 +12,8 @@ export class SimplePublicObjectBatchInput { - /** - * The name of a property whose values are unique for this object - */ 'idProperty'?: string; 'objectWriteTraceId'?: string; - /** - * The id to be updated. This can be the object id, or the unique property value of the idProperty property - */ 'id': string; 'properties': { [key: string]: string; }; diff --git a/codegen/crm/companies/models/SimplePublicObjectBatchInputUpsert.ts b/codegen/crm/companies/models/SimplePublicObjectBatchInputUpsert.ts index ccc06bde2..7d5a7d0fd 100644 --- a/codegen/crm/companies/models/SimplePublicObjectBatchInputUpsert.ts +++ b/codegen/crm/companies/models/SimplePublicObjectBatchInputUpsert.ts @@ -12,9 +12,6 @@ export class SimplePublicObjectBatchInputUpsert { - /** - * The name of a property whose values are unique for this object - */ 'idProperty'?: string; 'objectWriteTraceId'?: string; 'id': string; diff --git a/codegen/crm/companies/types/ObjectParamAPI.ts b/codegen/crm/companies/types/ObjectParamAPI.ts index 19174e799..96200f807 100644 --- a/codegen/crm/companies/types/ObjectParamAPI.ts +++ b/codegen/crm/companies/types/ObjectParamAPI.ts @@ -383,30 +383,30 @@ export class ObjectBatchApi { } -import { ObservablePublicObjectApi } from "./ObservableAPI"; -import { PublicObjectApiRequestFactory, PublicObjectApiResponseProcessor} from "../apis/PublicObjectApi"; +import { ObservableMergeApi } from "./ObservableAPI"; +import { MergeApiRequestFactory, MergeApiResponseProcessor} from "../apis/MergeApi"; -export interface PublicObjectApiMergeRequest { +export interface MergeApiMergeRequest { /** * * @type PublicMergeInput - * @memberof PublicObjectApimerge + * @memberof MergeApimerge */ publicMergeInput: PublicMergeInput } -export class ObjectPublicObjectApi { - private api: ObservablePublicObjectApi +export class ObjectMergeApi { + private api: ObservableMergeApi - public constructor(configuration: Configuration, requestFactory?: PublicObjectApiRequestFactory, responseProcessor?: PublicObjectApiResponseProcessor) { - this.api = new ObservablePublicObjectApi(configuration, requestFactory, responseProcessor); + public constructor(configuration: Configuration, requestFactory?: MergeApiRequestFactory, responseProcessor?: MergeApiResponseProcessor) { + this.api = new ObservableMergeApi(configuration, requestFactory, responseProcessor); } /** * Merge two companies with same type * @param param the request object */ - public mergeWithHttpInfo(param: PublicObjectApiMergeRequest, options?: Configuration): Promise> { + public mergeWithHttpInfo(param: MergeApiMergeRequest, options?: Configuration): Promise> { return this.api.mergeWithHttpInfo(param.publicMergeInput, options).toPromise(); } @@ -414,7 +414,7 @@ export class ObjectPublicObjectApi { * Merge two companies with same type * @param param the request object */ - public merge(param: PublicObjectApiMergeRequest, options?: Configuration): Promise { + public merge(param: MergeApiMergeRequest, options?: Configuration): Promise { return this.api.merge(param.publicMergeInput, options).toPromise(); } diff --git a/codegen/crm/companies/types/ObservableAPI.ts b/codegen/crm/companies/types/ObservableAPI.ts index 4b8b108b9..376423cde 100644 --- a/codegen/crm/companies/types/ObservableAPI.ts +++ b/codegen/crm/companies/types/ObservableAPI.ts @@ -404,20 +404,20 @@ export class ObservableBatchApi { } -import { PublicObjectApiRequestFactory, PublicObjectApiResponseProcessor} from "../apis/PublicObjectApi"; -export class ObservablePublicObjectApi { - private requestFactory: PublicObjectApiRequestFactory; - private responseProcessor: PublicObjectApiResponseProcessor; +import { MergeApiRequestFactory, MergeApiResponseProcessor} from "../apis/MergeApi"; +export class ObservableMergeApi { + private requestFactory: MergeApiRequestFactory; + private responseProcessor: MergeApiResponseProcessor; private configuration: Configuration; public constructor( configuration: Configuration, - requestFactory?: PublicObjectApiRequestFactory, - responseProcessor?: PublicObjectApiResponseProcessor + requestFactory?: MergeApiRequestFactory, + responseProcessor?: MergeApiResponseProcessor ) { this.configuration = configuration; - this.requestFactory = requestFactory || new PublicObjectApiRequestFactory(configuration); - this.responseProcessor = responseProcessor || new PublicObjectApiResponseProcessor(); + this.requestFactory = requestFactory || new MergeApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new MergeApiResponseProcessor(); } /** diff --git a/codegen/crm/companies/types/PromiseAPI.ts b/codegen/crm/companies/types/PromiseAPI.ts index 7cf1f533f..25d96ae89 100644 --- a/codegen/crm/companies/types/PromiseAPI.ts +++ b/codegen/crm/companies/types/PromiseAPI.ts @@ -274,18 +274,18 @@ export class PromiseBatchApi { -import { ObservablePublicObjectApi } from './ObservableAPI'; +import { ObservableMergeApi } from './ObservableAPI'; -import { PublicObjectApiRequestFactory, PublicObjectApiResponseProcessor} from "../apis/PublicObjectApi"; -export class PromisePublicObjectApi { - private api: ObservablePublicObjectApi +import { MergeApiRequestFactory, MergeApiResponseProcessor} from "../apis/MergeApi"; +export class PromiseMergeApi { + private api: ObservableMergeApi public constructor( configuration: Configuration, - requestFactory?: PublicObjectApiRequestFactory, - responseProcessor?: PublicObjectApiResponseProcessor + requestFactory?: MergeApiRequestFactory, + responseProcessor?: MergeApiResponseProcessor ) { - this.api = new ObservablePublicObjectApi(configuration, requestFactory, responseProcessor); + this.api = new ObservableMergeApi(configuration, requestFactory, responseProcessor); } /** diff --git a/codegen/crm/contacts/apis/PublicObjectApi.ts b/codegen/crm/contacts/apis/MergeApi.ts similarity index 95% rename from codegen/crm/contacts/apis/PublicObjectApi.ts rename to codegen/crm/contacts/apis/MergeApi.ts index 6a65ebe58..1c61cb93f 100644 --- a/codegen/crm/contacts/apis/PublicObjectApi.ts +++ b/codegen/crm/contacts/apis/MergeApi.ts @@ -14,7 +14,7 @@ import { SimplePublicObject } from '../models/SimplePublicObject'; /** * no description */ -export class PublicObjectApiRequestFactory extends BaseAPIRequestFactory { +export class MergeApiRequestFactory extends BaseAPIRequestFactory { /** * Merge two contacts with same type @@ -25,7 +25,7 @@ export class PublicObjectApiRequestFactory extends BaseAPIRequestFactory { // verify required parameter 'publicMergeInput' is not null or undefined if (publicMergeInput === null || publicMergeInput === undefined) { - throw new RequiredError("PublicObjectApi", "merge", "publicMergeInput"); + throw new RequiredError("MergeApi", "merge", "publicMergeInput"); } @@ -65,7 +65,7 @@ export class PublicObjectApiRequestFactory extends BaseAPIRequestFactory { } -export class PublicObjectApiResponseProcessor { +export class MergeApiResponseProcessor { /** * Unwraps the actual response sent by the server from the response context and deserializes the response content diff --git a/codegen/crm/contacts/index.ts b/codegen/crm/contacts/index.ts index 57d6524bf..3729649b6 100644 --- a/codegen/crm/contacts/index.ts +++ b/codegen/crm/contacts/index.ts @@ -8,5 +8,5 @@ export * from "./servers"; export { RequiredError } from "./apis/baseapi"; export { PromiseMiddleware as Middleware } from './middleware'; -export { PromiseBasicApi as BasicApi, PromiseBatchApi as BatchApi, PromiseGDPRApi as GDPRApi, PromisePublicObjectApi as PublicObjectApi, PromiseSearchApi as SearchApi } from './types/PromiseAPI'; +export { PromiseBasicApi as BasicApi, PromiseBatchApi as BatchApi, PromiseGDPRApi as GDPRApi, PromiseMergeApi as MergeApi, PromiseSearchApi as SearchApi } from './types/PromiseAPI'; diff --git a/codegen/crm/contacts/models/BatchReadInputSimplePublicObjectId.ts b/codegen/crm/contacts/models/BatchReadInputSimplePublicObjectId.ts index 23050f126..432082d8d 100644 --- a/codegen/crm/contacts/models/BatchReadInputSimplePublicObjectId.ts +++ b/codegen/crm/contacts/models/BatchReadInputSimplePublicObjectId.ts @@ -14,9 +14,6 @@ import { SimplePublicObjectId } from '../models/SimplePublicObjectId'; export class BatchReadInputSimplePublicObjectId { 'propertiesWithHistory': Array; - /** - * The name of a property whose values are unique for this object - */ 'idProperty'?: string; 'inputs': Array; 'properties': Array; diff --git a/codegen/crm/contacts/models/PublicGdprDeleteInput.ts b/codegen/crm/contacts/models/PublicGdprDeleteInput.ts index ef012aed3..8316abb7d 100644 --- a/codegen/crm/contacts/models/PublicGdprDeleteInput.ts +++ b/codegen/crm/contacts/models/PublicGdprDeleteInput.ts @@ -12,9 +12,6 @@ export class PublicGdprDeleteInput { - /** - * The name of a property whose values are unique for this object - */ 'idProperty'?: string; 'objectId': string; diff --git a/codegen/crm/contacts/models/SimplePublicObjectBatchInput.ts b/codegen/crm/contacts/models/SimplePublicObjectBatchInput.ts index 702c96b34..9947e70cf 100644 --- a/codegen/crm/contacts/models/SimplePublicObjectBatchInput.ts +++ b/codegen/crm/contacts/models/SimplePublicObjectBatchInput.ts @@ -12,14 +12,8 @@ export class SimplePublicObjectBatchInput { - /** - * The name of a property whose values are unique for this object - */ 'idProperty'?: string; 'objectWriteTraceId'?: string; - /** - * The id to be updated. This can be the object id, or the unique property value of the idProperty property - */ 'id': string; 'properties': { [key: string]: string; }; diff --git a/codegen/crm/contacts/models/SimplePublicObjectBatchInputUpsert.ts b/codegen/crm/contacts/models/SimplePublicObjectBatchInputUpsert.ts index d79f60940..867c775b2 100644 --- a/codegen/crm/contacts/models/SimplePublicObjectBatchInputUpsert.ts +++ b/codegen/crm/contacts/models/SimplePublicObjectBatchInputUpsert.ts @@ -12,9 +12,6 @@ export class SimplePublicObjectBatchInputUpsert { - /** - * The name of a property whose values are unique for this object - */ 'idProperty'?: string; 'objectWriteTraceId'?: string; 'id': string; diff --git a/codegen/crm/contacts/types/ObjectParamAPI.ts b/codegen/crm/contacts/types/ObjectParamAPI.ts index 9df5a1d41..40ac1ec1c 100644 --- a/codegen/crm/contacts/types/ObjectParamAPI.ts +++ b/codegen/crm/contacts/types/ObjectParamAPI.ts @@ -423,30 +423,30 @@ export class ObjectGDPRApi { } -import { ObservablePublicObjectApi } from "./ObservableAPI"; -import { PublicObjectApiRequestFactory, PublicObjectApiResponseProcessor} from "../apis/PublicObjectApi"; +import { ObservableMergeApi } from "./ObservableAPI"; +import { MergeApiRequestFactory, MergeApiResponseProcessor} from "../apis/MergeApi"; -export interface PublicObjectApiMergeRequest { +export interface MergeApiMergeRequest { /** * * @type PublicMergeInput - * @memberof PublicObjectApimerge + * @memberof MergeApimerge */ publicMergeInput: PublicMergeInput } -export class ObjectPublicObjectApi { - private api: ObservablePublicObjectApi +export class ObjectMergeApi { + private api: ObservableMergeApi - public constructor(configuration: Configuration, requestFactory?: PublicObjectApiRequestFactory, responseProcessor?: PublicObjectApiResponseProcessor) { - this.api = new ObservablePublicObjectApi(configuration, requestFactory, responseProcessor); + public constructor(configuration: Configuration, requestFactory?: MergeApiRequestFactory, responseProcessor?: MergeApiResponseProcessor) { + this.api = new ObservableMergeApi(configuration, requestFactory, responseProcessor); } /** * Merge two contacts with same type * @param param the request object */ - public mergeWithHttpInfo(param: PublicObjectApiMergeRequest, options?: Configuration): Promise> { + public mergeWithHttpInfo(param: MergeApiMergeRequest, options?: Configuration): Promise> { return this.api.mergeWithHttpInfo(param.publicMergeInput, options).toPromise(); } @@ -454,7 +454,7 @@ export class ObjectPublicObjectApi { * Merge two contacts with same type * @param param the request object */ - public merge(param: PublicObjectApiMergeRequest, options?: Configuration): Promise { + public merge(param: MergeApiMergeRequest, options?: Configuration): Promise { return this.api.merge(param.publicMergeInput, options).toPromise(); } diff --git a/codegen/crm/contacts/types/ObservableAPI.ts b/codegen/crm/contacts/types/ObservableAPI.ts index 23d980950..f4a8fb05a 100644 --- a/codegen/crm/contacts/types/ObservableAPI.ts +++ b/codegen/crm/contacts/types/ObservableAPI.ts @@ -456,20 +456,20 @@ export class ObservableGDPRApi { } -import { PublicObjectApiRequestFactory, PublicObjectApiResponseProcessor} from "../apis/PublicObjectApi"; -export class ObservablePublicObjectApi { - private requestFactory: PublicObjectApiRequestFactory; - private responseProcessor: PublicObjectApiResponseProcessor; +import { MergeApiRequestFactory, MergeApiResponseProcessor} from "../apis/MergeApi"; +export class ObservableMergeApi { + private requestFactory: MergeApiRequestFactory; + private responseProcessor: MergeApiResponseProcessor; private configuration: Configuration; public constructor( configuration: Configuration, - requestFactory?: PublicObjectApiRequestFactory, - responseProcessor?: PublicObjectApiResponseProcessor + requestFactory?: MergeApiRequestFactory, + responseProcessor?: MergeApiResponseProcessor ) { this.configuration = configuration; - this.requestFactory = requestFactory || new PublicObjectApiRequestFactory(configuration); - this.responseProcessor = responseProcessor || new PublicObjectApiResponseProcessor(); + this.requestFactory = requestFactory || new MergeApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new MergeApiResponseProcessor(); } /** diff --git a/codegen/crm/contacts/types/PromiseAPI.ts b/codegen/crm/contacts/types/PromiseAPI.ts index 23d9f5908..268c26055 100644 --- a/codegen/crm/contacts/types/PromiseAPI.ts +++ b/codegen/crm/contacts/types/PromiseAPI.ts @@ -314,18 +314,18 @@ export class PromiseGDPRApi { -import { ObservablePublicObjectApi } from './ObservableAPI'; +import { ObservableMergeApi } from './ObservableAPI'; -import { PublicObjectApiRequestFactory, PublicObjectApiResponseProcessor} from "../apis/PublicObjectApi"; -export class PromisePublicObjectApi { - private api: ObservablePublicObjectApi +import { MergeApiRequestFactory, MergeApiResponseProcessor} from "../apis/MergeApi"; +export class PromiseMergeApi { + private api: ObservableMergeApi public constructor( configuration: Configuration, - requestFactory?: PublicObjectApiRequestFactory, - responseProcessor?: PublicObjectApiResponseProcessor + requestFactory?: MergeApiRequestFactory, + responseProcessor?: MergeApiResponseProcessor ) { - this.api = new ObservablePublicObjectApi(configuration, requestFactory, responseProcessor); + this.api = new ObservableMergeApi(configuration, requestFactory, responseProcessor); } /** diff --git a/codegen/crm/deals/apis/PublicObjectApi.ts b/codegen/crm/deals/apis/MergeApi.ts similarity index 94% rename from codegen/crm/deals/apis/PublicObjectApi.ts rename to codegen/crm/deals/apis/MergeApi.ts index 7344a04ba..02b7301f7 100644 --- a/codegen/crm/deals/apis/PublicObjectApi.ts +++ b/codegen/crm/deals/apis/MergeApi.ts @@ -14,10 +14,10 @@ import { SimplePublicObject } from '../models/SimplePublicObject'; /** * no description */ -export class PublicObjectApiRequestFactory extends BaseAPIRequestFactory { +export class MergeApiRequestFactory extends BaseAPIRequestFactory { /** - * Merge two deals with same type + * Merge two deals * @param publicMergeInput */ public async merge(publicMergeInput: PublicMergeInput, _options?: Configuration): Promise { @@ -25,7 +25,7 @@ export class PublicObjectApiRequestFactory extends BaseAPIRequestFactory { // verify required parameter 'publicMergeInput' is not null or undefined if (publicMergeInput === null || publicMergeInput === undefined) { - throw new RequiredError("PublicObjectApi", "merge", "publicMergeInput"); + throw new RequiredError("MergeApi", "merge", "publicMergeInput"); } @@ -65,7 +65,7 @@ export class PublicObjectApiRequestFactory extends BaseAPIRequestFactory { } -export class PublicObjectApiResponseProcessor { +export class MergeApiResponseProcessor { /** * Unwraps the actual response sent by the server from the response context and deserializes the response content diff --git a/codegen/crm/deals/index.ts b/codegen/crm/deals/index.ts index c006a45c0..060e096fb 100644 --- a/codegen/crm/deals/index.ts +++ b/codegen/crm/deals/index.ts @@ -8,5 +8,5 @@ export * from "./servers"; export { RequiredError } from "./apis/baseapi"; export { PromiseMiddleware as Middleware } from './middleware'; -export { PromiseBasicApi as BasicApi, PromiseBatchApi as BatchApi, PromisePublicObjectApi as PublicObjectApi, PromiseSearchApi as SearchApi } from './types/PromiseAPI'; +export { PromiseBasicApi as BasicApi, PromiseBatchApi as BatchApi, PromiseMergeApi as MergeApi, PromiseSearchApi as SearchApi } from './types/PromiseAPI'; diff --git a/codegen/crm/deals/models/BatchReadInputSimplePublicObjectId.ts b/codegen/crm/deals/models/BatchReadInputSimplePublicObjectId.ts index 3c75f42ce..c45b37900 100644 --- a/codegen/crm/deals/models/BatchReadInputSimplePublicObjectId.ts +++ b/codegen/crm/deals/models/BatchReadInputSimplePublicObjectId.ts @@ -14,9 +14,6 @@ import { SimplePublicObjectId } from '../models/SimplePublicObjectId'; export class BatchReadInputSimplePublicObjectId { 'propertiesWithHistory': Array; - /** - * The name of a property whose values are unique for this object - */ 'idProperty'?: string; 'inputs': Array; 'properties': Array; diff --git a/codegen/crm/deals/models/SimplePublicObjectBatchInput.ts b/codegen/crm/deals/models/SimplePublicObjectBatchInput.ts index ccf51dd79..cc14d11d6 100644 --- a/codegen/crm/deals/models/SimplePublicObjectBatchInput.ts +++ b/codegen/crm/deals/models/SimplePublicObjectBatchInput.ts @@ -12,14 +12,8 @@ export class SimplePublicObjectBatchInput { - /** - * The name of a property whose values are unique for this object - */ 'idProperty'?: string; 'objectWriteTraceId'?: string; - /** - * The id to be updated. This can be the object id, or the unique property value of the idProperty property - */ 'id': string; 'properties': { [key: string]: string; }; diff --git a/codegen/crm/deals/models/SimplePublicObjectBatchInputUpsert.ts b/codegen/crm/deals/models/SimplePublicObjectBatchInputUpsert.ts index cd035ddfb..7b72e91d9 100644 --- a/codegen/crm/deals/models/SimplePublicObjectBatchInputUpsert.ts +++ b/codegen/crm/deals/models/SimplePublicObjectBatchInputUpsert.ts @@ -12,9 +12,6 @@ export class SimplePublicObjectBatchInputUpsert { - /** - * The name of a property whose values are unique for this object - */ 'idProperty'?: string; 'objectWriteTraceId'?: string; 'id': string; diff --git a/codegen/crm/deals/types/ObjectParamAPI.ts b/codegen/crm/deals/types/ObjectParamAPI.ts index b3806f8ef..8e690c5dc 100644 --- a/codegen/crm/deals/types/ObjectParamAPI.ts +++ b/codegen/crm/deals/types/ObjectParamAPI.ts @@ -383,38 +383,38 @@ export class ObjectBatchApi { } -import { ObservablePublicObjectApi } from "./ObservableAPI"; -import { PublicObjectApiRequestFactory, PublicObjectApiResponseProcessor} from "../apis/PublicObjectApi"; +import { ObservableMergeApi } from "./ObservableAPI"; +import { MergeApiRequestFactory, MergeApiResponseProcessor} from "../apis/MergeApi"; -export interface PublicObjectApiMergeRequest { +export interface MergeApiMergeRequest { /** * * @type PublicMergeInput - * @memberof PublicObjectApimerge + * @memberof MergeApimerge */ publicMergeInput: PublicMergeInput } -export class ObjectPublicObjectApi { - private api: ObservablePublicObjectApi +export class ObjectMergeApi { + private api: ObservableMergeApi - public constructor(configuration: Configuration, requestFactory?: PublicObjectApiRequestFactory, responseProcessor?: PublicObjectApiResponseProcessor) { - this.api = new ObservablePublicObjectApi(configuration, requestFactory, responseProcessor); + public constructor(configuration: Configuration, requestFactory?: MergeApiRequestFactory, responseProcessor?: MergeApiResponseProcessor) { + this.api = new ObservableMergeApi(configuration, requestFactory, responseProcessor); } /** - * Merge two deals with same type + * Merge two deals * @param param the request object */ - public mergeWithHttpInfo(param: PublicObjectApiMergeRequest, options?: Configuration): Promise> { + public mergeWithHttpInfo(param: MergeApiMergeRequest, options?: Configuration): Promise> { return this.api.mergeWithHttpInfo(param.publicMergeInput, options).toPromise(); } /** - * Merge two deals with same type + * Merge two deals * @param param the request object */ - public merge(param: PublicObjectApiMergeRequest, options?: Configuration): Promise { + public merge(param: MergeApiMergeRequest, options?: Configuration): Promise { return this.api.merge(param.publicMergeInput, options).toPromise(); } diff --git a/codegen/crm/deals/types/ObservableAPI.ts b/codegen/crm/deals/types/ObservableAPI.ts index 9b0f06e2a..efd6c1b35 100644 --- a/codegen/crm/deals/types/ObservableAPI.ts +++ b/codegen/crm/deals/types/ObservableAPI.ts @@ -404,24 +404,24 @@ export class ObservableBatchApi { } -import { PublicObjectApiRequestFactory, PublicObjectApiResponseProcessor} from "../apis/PublicObjectApi"; -export class ObservablePublicObjectApi { - private requestFactory: PublicObjectApiRequestFactory; - private responseProcessor: PublicObjectApiResponseProcessor; +import { MergeApiRequestFactory, MergeApiResponseProcessor} from "../apis/MergeApi"; +export class ObservableMergeApi { + private requestFactory: MergeApiRequestFactory; + private responseProcessor: MergeApiResponseProcessor; private configuration: Configuration; public constructor( configuration: Configuration, - requestFactory?: PublicObjectApiRequestFactory, - responseProcessor?: PublicObjectApiResponseProcessor + requestFactory?: MergeApiRequestFactory, + responseProcessor?: MergeApiResponseProcessor ) { this.configuration = configuration; - this.requestFactory = requestFactory || new PublicObjectApiRequestFactory(configuration); - this.responseProcessor = responseProcessor || new PublicObjectApiResponseProcessor(); + this.requestFactory = requestFactory || new MergeApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new MergeApiResponseProcessor(); } /** - * Merge two deals with same type + * Merge two deals * @param publicMergeInput */ public mergeWithHttpInfo(publicMergeInput: PublicMergeInput, _options?: Configuration): Observable> { @@ -444,7 +444,7 @@ export class ObservablePublicObjectApi { } /** - * Merge two deals with same type + * Merge two deals * @param publicMergeInput */ public merge(publicMergeInput: PublicMergeInput, _options?: Configuration): Observable { diff --git a/codegen/crm/deals/types/PromiseAPI.ts b/codegen/crm/deals/types/PromiseAPI.ts index 261c6258c..eac7e16e7 100644 --- a/codegen/crm/deals/types/PromiseAPI.ts +++ b/codegen/crm/deals/types/PromiseAPI.ts @@ -274,22 +274,22 @@ export class PromiseBatchApi { -import { ObservablePublicObjectApi } from './ObservableAPI'; +import { ObservableMergeApi } from './ObservableAPI'; -import { PublicObjectApiRequestFactory, PublicObjectApiResponseProcessor} from "../apis/PublicObjectApi"; -export class PromisePublicObjectApi { - private api: ObservablePublicObjectApi +import { MergeApiRequestFactory, MergeApiResponseProcessor} from "../apis/MergeApi"; +export class PromiseMergeApi { + private api: ObservableMergeApi public constructor( configuration: Configuration, - requestFactory?: PublicObjectApiRequestFactory, - responseProcessor?: PublicObjectApiResponseProcessor + requestFactory?: MergeApiRequestFactory, + responseProcessor?: MergeApiResponseProcessor ) { - this.api = new ObservablePublicObjectApi(configuration, requestFactory, responseProcessor); + this.api = new ObservableMergeApi(configuration, requestFactory, responseProcessor); } /** - * Merge two deals with same type + * Merge two deals * @param publicMergeInput */ public mergeWithHttpInfo(publicMergeInput: PublicMergeInput, _options?: Configuration): Promise> { @@ -298,7 +298,7 @@ export class PromisePublicObjectApi { } /** - * Merge two deals with same type + * Merge two deals * @param publicMergeInput */ public merge(publicMergeInput: PublicMergeInput, _options?: Configuration): Promise {