From 65626867c1799470488322e5f7894b1920b0ced8 Mon Sep 17 00:00:00 2001 From: KristapsR <15666423+KristapsR@users.noreply.github.com> Date: Fri, 8 May 2026 17:32:19 +0300 Subject: [PATCH 1/2] Test: Global middleware merge behavior --- test/unit/middlewareMergeStrategy.spec.ts | 173 ++++++++++++++++++++++ 1 file changed, 173 insertions(+) create mode 100644 test/unit/middlewareMergeStrategy.spec.ts diff --git a/test/unit/middlewareMergeStrategy.spec.ts b/test/unit/middlewareMergeStrategy.spec.ts new file mode 100644 index 0000000000..1bdd2da60e --- /dev/null +++ b/test/unit/middlewareMergeStrategy.spec.ts @@ -0,0 +1,173 @@ +import { BatchApi, createConfiguration, Middleware, ObservableMiddleware } from '../../codegen/events/send' +import { HttpLibrary, RequestContext, ResponseContext } from '../../codegen/events/send/http/http' +import { from } from '../../codegen/events/send/rxjsStub' +import { ObservableBatchApi } from '../../codegen/events/send/types/ObservableAPI' + +class MockResponseBody { + public async text(): Promise { + return '' + } + + public async binary(): Promise { + return Buffer.from('') + } +} + +const mockHttpApi: HttpLibrary = { + send(requestContext: RequestContext) { + void requestContext + return from( + Promise.resolve(new ResponseContext(204, { 'content-type': 'application/json' }, new MockResponseBody())), + ) + }, +} + +const createTrackingMiddleware = (name: string, trace: string[]): Middleware => ({ + async pre(requestContext: RequestContext) { + trace.push(`pre:${name}`) + return requestContext + }, + async post(responseContext: ResponseContext) { + trace.push(`post:${name}`) + return responseContext + }, +}) + +const createObservableTrackingMiddleware = (name: string, trace: string[]): ObservableMiddleware => ({ + pre(requestContext: RequestContext) { + trace.push(`pre:${name}`) + return from(Promise.resolve(requestContext)) + }, + post(responseContext: ResponseContext) { + trace.push(`post:${name}`) + return from(Promise.resolve(responseContext)) + }, +}) + +describe('Middleware merge strategy', () => { + it('runs global middleware when call middleware is not provided', async () => { + const trace: string[] = [] + const globalMiddleware = createTrackingMiddleware('global', trace) + + const api = new BatchApi( + createConfiguration({ + promiseMiddleware: [globalMiddleware], + httpApi: mockHttpApi, + }), + ) + + await api.send({ inputs: [] }) + + expect(trace).toEqual(['pre:global', 'post:global']) + }) + + it('replaces global middleware by default when call middleware is provided', async () => { + const trace: string[] = [] + const globalMiddleware = createTrackingMiddleware('global', trace) + const callMiddleware = createTrackingMiddleware('call', trace) + + const api = new BatchApi( + createConfiguration({ + promiseMiddleware: [globalMiddleware], + httpApi: mockHttpApi, + }), + ) + + await api.send({ inputs: [] }, { middleware: [callMiddleware] }) + + expect(trace).toEqual(['pre:call', 'post:call']) + }) + + it('appends call middleware after global middleware when strategy is append', async () => { + const trace: string[] = [] + const globalMiddleware = createTrackingMiddleware('global', trace) + const callMiddleware = createTrackingMiddleware('call', trace) + + const api = new BatchApi( + createConfiguration({ + promiseMiddleware: [globalMiddleware], + httpApi: mockHttpApi, + }), + ) + + await api.send( + { inputs: [] }, + { + middleware: [callMiddleware], + middlewareMergeStrategy: 'append', + }, + ) + + expect(trace).toEqual(['pre:global', 'pre:call', 'post:call', 'post:global']) + }) + + it('prepends call middleware before global middleware when strategy is prepend', async () => { + const trace: string[] = [] + const globalMiddleware = createTrackingMiddleware('global', trace) + const callMiddleware = createTrackingMiddleware('call', trace) + + const api = new BatchApi( + createConfiguration({ + promiseMiddleware: [globalMiddleware], + httpApi: mockHttpApi, + }), + ) + + await api.send( + { inputs: [] }, + { + middleware: [callMiddleware], + middlewareMergeStrategy: 'prepend', + }, + ) + + expect(trace).toEqual(['pre:call', 'pre:global', 'post:global', 'post:call']) + }) + + it('does not mutate call middleware array order across requests', async () => { + const trace: string[] = [] + const firstCallMiddleware = createTrackingMiddleware('call-first', trace) + const secondCallMiddleware = createTrackingMiddleware('call-second', trace) + const callMiddleware: Middleware[] = [firstCallMiddleware, secondCallMiddleware] + + const api = new BatchApi( + createConfiguration({ + promiseMiddleware: [], + httpApi: mockHttpApi, + }), + ) + + await api.send({ inputs: [] }, { middleware: callMiddleware }) + + expect(trace).toEqual(['pre:call-first', 'pre:call-second', 'post:call-second', 'post:call-first']) + expect(callMiddleware).toEqual([firstCallMiddleware, secondCallMiddleware]) + + trace.length = 0 + await api.send({ inputs: [] }, { middleware: callMiddleware }) + + expect(trace).toEqual(['pre:call-first', 'pre:call-second', 'post:call-second', 'post:call-first']) + }) + + it('does not mutate observable call middleware order across requests', async () => { + const trace: string[] = [] + const firstCallMiddleware = createObservableTrackingMiddleware('call-first', trace) + const secondCallMiddleware = createObservableTrackingMiddleware('call-second', trace) + const callMiddleware: ObservableMiddleware[] = [firstCallMiddleware, secondCallMiddleware] + + const configuration = createConfiguration({ + middleware: [], + httpApi: mockHttpApi, + }) + const api = new ObservableBatchApi(configuration) + + await api.send({ inputs: [] }, { middleware: callMiddleware }).toPromise() + + expect(trace).toEqual(['pre:call-first', 'pre:call-second', 'post:call-second', 'post:call-first']) + expect(callMiddleware).toEqual([firstCallMiddleware, secondCallMiddleware]) + + trace.length = 0 + await api.send({ inputs: [] }, { middleware: callMiddleware }).toPromise() + + expect(trace).toEqual(['pre:call-first', 'pre:call-second', 'post:call-second', 'post:call-first']) + }) +}) From 8bcd0144c8f4473897511548090e5ce0ebafb6f9 Mon Sep 17 00:00:00 2001 From: KristapsR <15666423+KristapsR@users.noreply.github.com> Date: Fri, 8 May 2026 17:32:53 +0300 Subject: [PATCH 2/2] Fix: Global middleware merge behavior --- .../automation/actions/types/ObservableAPI.ts | 96 ++--- codegen/cms/audit_logs/types/ObservableAPI.ts | 6 +- .../cms/blogs/authors/types/ObservableAPI.ts | 84 ++-- .../blogs/blog_posts/types/ObservableAPI.ts | 144 +++---- codegen/cms/blogs/tags/types/ObservableAPI.ts | 84 ++-- codegen/cms/domains/types/ObservableAPI.ts | 12 +- codegen/cms/hubdb/types/ObservableAPI.ts | 186 ++++---- codegen/cms/pages/types/ObservableAPI.ts | 396 +++++++++--------- .../cms/site_search/types/ObservableAPI.ts | 12 +- .../cms/source_code/types/ObservableAPI.ts | 48 +-- .../cms/url_redirects/types/ObservableAPI.ts | 30 +- .../types/ObservableAPI.ts | 24 +- .../types/ObservableAPI.ts | 6 +- .../schema/types/ObservableAPI.ts | 6 +- .../crm/associations/types/ObservableAPI.ts | 18 +- .../v4/schema/types/ObservableAPI.ts | 54 +-- .../associations/v4/types/ObservableAPI.ts | 60 +-- .../commerce/invoices/types/ObservableAPI.ts | 66 +-- codegen/crm/companies/types/ObservableAPI.ts | 72 ++-- codegen/crm/contacts/types/ObservableAPI.ts | 78 ++-- codegen/crm/deals/types/ObservableAPI.ts | 72 ++-- codegen/crm/exports/types/ObservableAPI.ts | 12 +- .../extensions/calling/types/ObservableAPI.ts | 72 ++-- .../extensions/cards/types/ObservableAPI.ts | 36 +- .../videoconferencing/types/ObservableAPI.ts | 18 +- codegen/crm/imports/types/ObservableAPI.ts | 30 +- codegen/crm/line_items/types/ObservableAPI.ts | 66 +-- codegen/crm/lists/types/ObservableAPI.ts | 168 ++++---- .../crm/objects/calls/types/ObservableAPI.ts | 66 +-- .../communications/types/ObservableAPI.ts | 66 +-- .../deal_splits/types/ObservableAPI.ts | 12 +- .../crm/objects/emails/types/ObservableAPI.ts | 66 +-- .../types/ObservableAPI.ts | 24 +- .../crm/objects/goals/types/ObservableAPI.ts | 66 +-- .../crm/objects/leads/types/ObservableAPI.ts | 66 +-- .../objects/meetings/types/ObservableAPI.ts | 66 +-- .../crm/objects/notes/types/ObservableAPI.ts | 66 +-- .../postal_mail/types/ObservableAPI.ts | 66 +-- .../crm/objects/tasks/types/ObservableAPI.ts | 66 +-- .../crm/objects/taxes/types/ObservableAPI.ts | 66 +-- codegen/crm/objects/types/ObservableAPI.ts | 66 +-- codegen/crm/owners/types/ObservableAPI.ts | 12 +- codegen/crm/pipelines/types/ObservableAPI.ts | 84 ++-- codegen/crm/products/types/ObservableAPI.ts | 66 +-- codegen/crm/properties/types/ObservableAPI.ts | 78 ++-- codegen/crm/quotes/types/ObservableAPI.ts | 66 +-- codegen/crm/schemas/types/ObservableAPI.ts | 42 +- codegen/crm/tickets/types/ObservableAPI.ts | 72 ++-- codegen/crm/timeline/types/ObservableAPI.ts | 78 ++-- codegen/events/send/types/ObservableAPI.ts | 12 +- codegen/events/types/ObservableAPI.ts | 12 +- codegen/files/types/ObservableAPI.ts | 120 +++--- .../marketing/emails/types/ObservableAPI.ts | 114 ++--- .../marketing/events/types/ObservableAPI.ts | 216 +++++----- .../marketing/forms/types/ObservableAPI.ts | 36 +- .../transactional/types/ObservableAPI.ts | 36 +- codegen/oauth/types/ObservableAPI.ts | 24 +- .../business_units/types/ObservableAPI.ts | 6 +- codegen/settings/users/types/ObservableAPI.ts | 42 +- codegen/webhooks/types/ObservableAPI.ts | 54 +-- 60 files changed, 1944 insertions(+), 1944 deletions(-) diff --git a/codegen/automation/actions/types/ObservableAPI.ts b/codegen/automation/actions/types/ObservableAPI.ts index a088390323..f069c8d81b 100644 --- a/codegen/automation/actions/types/ObservableAPI.ts +++ b/codegen/automation/actions/types/ObservableAPI.ts @@ -39,7 +39,7 @@ export class ObservableCallbacksApi { */ public completeWithHttpInfo(callbackId: string, callbackCompletionRequest: CallbackCompletionRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -53,7 +53,7 @@ export class ObservableCallbacksApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -64,7 +64,7 @@ export class ObservableCallbacksApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -102,7 +102,7 @@ export class ObservableCallbacksApi { */ public completeBatchWithHttpInfo(batchInputCallbackCompletionBatchRequest: BatchInputCallbackCompletionBatchRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -116,7 +116,7 @@ export class ObservableCallbacksApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -127,7 +127,7 @@ export class ObservableCallbacksApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -183,7 +183,7 @@ export class ObservableDefinitionsApi { */ public archiveWithHttpInfo(definitionId: string, appId: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -197,7 +197,7 @@ export class ObservableDefinitionsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -208,7 +208,7 @@ export class ObservableDefinitionsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -247,7 +247,7 @@ export class ObservableDefinitionsApi { */ public createWithHttpInfo(appId: number, publicActionDefinitionEgg: PublicActionDefinitionEgg, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -261,7 +261,7 @@ export class ObservableDefinitionsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -272,7 +272,7 @@ export class ObservableDefinitionsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -312,7 +312,7 @@ export class ObservableDefinitionsApi { */ public getByIdWithHttpInfo(definitionId: string, appId: number, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -326,7 +326,7 @@ export class ObservableDefinitionsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -337,7 +337,7 @@ export class ObservableDefinitionsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -379,7 +379,7 @@ export class ObservableDefinitionsApi { */ public getPageWithHttpInfo(appId: number, limit?: number, after?: string, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -393,7 +393,7 @@ export class ObservableDefinitionsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -404,7 +404,7 @@ export class ObservableDefinitionsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -446,7 +446,7 @@ export class ObservableDefinitionsApi { */ public updateWithHttpInfo(definitionId: string, appId: number, publicActionDefinitionPatch: PublicActionDefinitionPatch, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -460,7 +460,7 @@ export class ObservableDefinitionsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -471,7 +471,7 @@ export class ObservableDefinitionsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -530,7 +530,7 @@ export class ObservableFunctionsApi { */ public archiveWithHttpInfo(definitionId: string, functionType: 'PRE_ACTION_EXECUTION' | 'PRE_FETCH_OPTIONS' | 'POST_FETCH_OPTIONS' | 'POST_ACTION_EXECUTION', functionId: string, appId: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -544,7 +544,7 @@ export class ObservableFunctionsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -555,7 +555,7 @@ export class ObservableFunctionsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -596,7 +596,7 @@ export class ObservableFunctionsApi { */ public archiveByFunctionTypeWithHttpInfo(definitionId: string, functionType: 'PRE_ACTION_EXECUTION' | 'PRE_FETCH_OPTIONS' | 'POST_FETCH_OPTIONS' | 'POST_ACTION_EXECUTION', appId: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -610,7 +610,7 @@ export class ObservableFunctionsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -621,7 +621,7 @@ export class ObservableFunctionsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -664,7 +664,7 @@ export class ObservableFunctionsApi { */ public createOrReplaceWithHttpInfo(definitionId: string, functionType: 'PRE_ACTION_EXECUTION' | 'PRE_FETCH_OPTIONS' | 'POST_FETCH_OPTIONS' | 'POST_ACTION_EXECUTION', functionId: string, appId: number, body: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -678,7 +678,7 @@ export class ObservableFunctionsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -689,7 +689,7 @@ export class ObservableFunctionsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -733,7 +733,7 @@ export class ObservableFunctionsApi { */ public createOrReplaceByFunctionTypeWithHttpInfo(definitionId: string, functionType: 'PRE_ACTION_EXECUTION' | 'PRE_FETCH_OPTIONS' | 'POST_FETCH_OPTIONS' | 'POST_ACTION_EXECUTION', appId: number, body: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -747,7 +747,7 @@ export class ObservableFunctionsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -758,7 +758,7 @@ export class ObservableFunctionsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -799,7 +799,7 @@ export class ObservableFunctionsApi { */ public getByFunctionTypeWithHttpInfo(definitionId: string, functionType: 'PRE_ACTION_EXECUTION' | 'PRE_FETCH_OPTIONS' | 'POST_FETCH_OPTIONS' | 'POST_ACTION_EXECUTION', appId: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -813,7 +813,7 @@ export class ObservableFunctionsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -824,7 +824,7 @@ export class ObservableFunctionsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -865,7 +865,7 @@ export class ObservableFunctionsApi { */ public getByIdWithHttpInfo(definitionId: string, functionType: 'PRE_ACTION_EXECUTION' | 'PRE_FETCH_OPTIONS' | 'POST_FETCH_OPTIONS' | 'POST_ACTION_EXECUTION', functionId: string, appId: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -879,7 +879,7 @@ export class ObservableFunctionsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -890,7 +890,7 @@ export class ObservableFunctionsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -931,7 +931,7 @@ export class ObservableFunctionsApi { */ public getPageWithHttpInfo(definitionId: string, appId: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -945,7 +945,7 @@ export class ObservableFunctionsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -956,7 +956,7 @@ export class ObservableFunctionsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1014,7 +1014,7 @@ export class ObservableRevisionsApi { */ public getByIdWithHttpInfo(definitionId: string, revisionId: string, appId: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1028,7 +1028,7 @@ export class ObservableRevisionsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1039,7 +1039,7 @@ export class ObservableRevisionsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1081,7 +1081,7 @@ export class ObservableRevisionsApi { */ public getPageWithHttpInfo(definitionId: string, appId: number, limit?: number, after?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1095,7 +1095,7 @@ export class ObservableRevisionsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1106,7 +1106,7 @@ export class ObservableRevisionsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/cms/audit_logs/types/ObservableAPI.ts b/codegen/cms/audit_logs/types/ObservableAPI.ts index 2a6c90e5d1..09a44ebad9 100644 --- a/codegen/cms/audit_logs/types/ObservableAPI.ts +++ b/codegen/cms/audit_logs/types/ObservableAPI.ts @@ -35,7 +35,7 @@ export class ObservableAuditLogsApi { */ public getPageWithHttpInfo(userId?: Array, eventType?: Array, objectType?: Array, objectId?: Array, after?: string, before?: string, limit?: number, sort?: Array, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -49,7 +49,7 @@ export class ObservableAuditLogsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -60,7 +60,7 @@ export class ObservableAuditLogsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/cms/blogs/authors/types/ObservableAPI.ts b/codegen/cms/blogs/authors/types/ObservableAPI.ts index e9586169fe..8a2c71cf77 100644 --- a/codegen/cms/blogs/authors/types/ObservableAPI.ts +++ b/codegen/cms/blogs/authors/types/ObservableAPI.ts @@ -40,7 +40,7 @@ export class ObservableBlogAuthorsApi { */ public archiveWithHttpInfo(objectId: string, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -54,7 +54,7 @@ export class ObservableBlogAuthorsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -65,7 +65,7 @@ export class ObservableBlogAuthorsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -103,7 +103,7 @@ export class ObservableBlogAuthorsApi { */ public archiveBatchWithHttpInfo(batchInputString: BatchInputString, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -117,7 +117,7 @@ export class ObservableBlogAuthorsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -128,7 +128,7 @@ export class ObservableBlogAuthorsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -165,7 +165,7 @@ export class ObservableBlogAuthorsApi { */ public attachToLangGroupWithHttpInfo(attachToLangPrimaryRequestVNext: AttachToLangPrimaryRequestVNext, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -179,7 +179,7 @@ export class ObservableBlogAuthorsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -190,7 +190,7 @@ export class ObservableBlogAuthorsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -227,7 +227,7 @@ export class ObservableBlogAuthorsApi { */ public createWithHttpInfo(blogAuthor: BlogAuthor, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -241,7 +241,7 @@ export class ObservableBlogAuthorsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -252,7 +252,7 @@ export class ObservableBlogAuthorsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -289,7 +289,7 @@ export class ObservableBlogAuthorsApi { */ public createBatchWithHttpInfo(batchInputBlogAuthor: BatchInputBlogAuthor, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -303,7 +303,7 @@ export class ObservableBlogAuthorsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -314,7 +314,7 @@ export class ObservableBlogAuthorsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -351,7 +351,7 @@ export class ObservableBlogAuthorsApi { */ public createLangVariationWithHttpInfo(blogAuthorCloneRequestVNext: BlogAuthorCloneRequestVNext, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -365,7 +365,7 @@ export class ObservableBlogAuthorsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -376,7 +376,7 @@ export class ObservableBlogAuthorsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -413,7 +413,7 @@ export class ObservableBlogAuthorsApi { */ public detachFromLangGroupWithHttpInfo(detachFromLangGroupRequestVNext: DetachFromLangGroupRequestVNext, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -427,7 +427,7 @@ export class ObservableBlogAuthorsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -438,7 +438,7 @@ export class ObservableBlogAuthorsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -477,7 +477,7 @@ export class ObservableBlogAuthorsApi { */ public getByIdWithHttpInfo(objectId: string, archived?: boolean, property?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -491,7 +491,7 @@ export class ObservableBlogAuthorsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -502,7 +502,7 @@ export class ObservableBlogAuthorsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -551,7 +551,7 @@ export class ObservableBlogAuthorsApi { */ public getPageWithHttpInfo(createdAt?: Date, createdAfter?: Date, createdBefore?: Date, updatedAt?: Date, updatedAfter?: Date, updatedBefore?: Date, sort?: Array, after?: string, limit?: number, archived?: boolean, property?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -565,7 +565,7 @@ export class ObservableBlogAuthorsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -576,7 +576,7 @@ export class ObservableBlogAuthorsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -624,7 +624,7 @@ export class ObservableBlogAuthorsApi { */ public readBatchWithHttpInfo(batchInputString: BatchInputString, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -638,7 +638,7 @@ export class ObservableBlogAuthorsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -649,7 +649,7 @@ export class ObservableBlogAuthorsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -687,7 +687,7 @@ export class ObservableBlogAuthorsApi { */ public setLangPrimaryWithHttpInfo(setNewLanguagePrimaryRequestVNext: SetNewLanguagePrimaryRequestVNext, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -701,7 +701,7 @@ export class ObservableBlogAuthorsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -712,7 +712,7 @@ export class ObservableBlogAuthorsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -751,7 +751,7 @@ export class ObservableBlogAuthorsApi { */ public updateWithHttpInfo(objectId: string, blogAuthor: BlogAuthor, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -765,7 +765,7 @@ export class ObservableBlogAuthorsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -776,7 +776,7 @@ export class ObservableBlogAuthorsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -816,7 +816,7 @@ export class ObservableBlogAuthorsApi { */ public updateBatchWithHttpInfo(batchInputJsonNode: BatchInputJsonNode, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -830,7 +830,7 @@ export class ObservableBlogAuthorsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -841,7 +841,7 @@ export class ObservableBlogAuthorsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -879,7 +879,7 @@ export class ObservableBlogAuthorsApi { */ public updateLangsWithHttpInfo(updateLanguagesRequestVNext: UpdateLanguagesRequestVNext, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -893,7 +893,7 @@ export class ObservableBlogAuthorsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -904,7 +904,7 @@ export class ObservableBlogAuthorsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/cms/blogs/blog_posts/types/ObservableAPI.ts b/codegen/cms/blogs/blog_posts/types/ObservableAPI.ts index 12123cc847..e4260d6663 100644 --- a/codegen/cms/blogs/blog_posts/types/ObservableAPI.ts +++ b/codegen/cms/blogs/blog_posts/types/ObservableAPI.ts @@ -44,7 +44,7 @@ export class ObservableBasicApi { */ public archiveWithHttpInfo(objectId: string, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -58,7 +58,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -69,7 +69,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -107,7 +107,7 @@ export class ObservableBasicApi { */ public cloneWithHttpInfo(contentCloneRequestVNext: ContentCloneRequestVNext, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -121,7 +121,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -132,7 +132,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -169,7 +169,7 @@ export class ObservableBasicApi { */ public createWithHttpInfo(blogPost: BlogPost, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -183,7 +183,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -194,7 +194,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -233,7 +233,7 @@ export class ObservableBasicApi { */ public getByIdWithHttpInfo(objectId: string, archived?: boolean, property?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -247,7 +247,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -258,7 +258,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -297,7 +297,7 @@ export class ObservableBasicApi { */ public getDraftByIdWithHttpInfo(objectId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -311,7 +311,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -322,7 +322,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -369,7 +369,7 @@ export class ObservableBasicApi { */ public getPageWithHttpInfo(createdAt?: Date, createdAfter?: Date, createdBefore?: Date, updatedAt?: Date, updatedAfter?: Date, updatedBefore?: Date, sort?: Array, after?: string, limit?: number, archived?: boolean, property?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -383,7 +383,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -394,7 +394,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -442,7 +442,7 @@ export class ObservableBasicApi { */ public getPreviousVersionWithHttpInfo(objectId: string, revisionId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -456,7 +456,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -467,7 +467,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -508,7 +508,7 @@ export class ObservableBasicApi { */ public getPreviousVersionsWithHttpInfo(objectId: string, after?: string, before?: string, limit?: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -522,7 +522,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -533,7 +533,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -573,7 +573,7 @@ export class ObservableBasicApi { */ public pushLiveWithHttpInfo(objectId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -587,7 +587,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -598,7 +598,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -635,7 +635,7 @@ export class ObservableBasicApi { */ public resetDraftWithHttpInfo(objectId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -649,7 +649,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -660,7 +660,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -698,7 +698,7 @@ export class ObservableBasicApi { */ public restorePreviousVersionWithHttpInfo(objectId: string, revisionId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -712,7 +712,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -723,7 +723,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -762,7 +762,7 @@ export class ObservableBasicApi { */ public restorePreviousVersionToDraftWithHttpInfo(objectId: string, revisionId: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -776,7 +776,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -787,7 +787,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -825,7 +825,7 @@ export class ObservableBasicApi { */ public scheduleWithHttpInfo(contentScheduleRequestVNext: ContentScheduleRequestVNext, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -839,7 +839,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -850,7 +850,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -889,7 +889,7 @@ export class ObservableBasicApi { */ public updateWithHttpInfo(objectId: string, blogPost: BlogPost, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -903,7 +903,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -914,7 +914,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -954,7 +954,7 @@ export class ObservableBasicApi { */ public updateDraftWithHttpInfo(objectId: string, blogPost: BlogPost, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -968,7 +968,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -979,7 +979,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1035,7 +1035,7 @@ export class ObservableBatchApi { */ public archiveWithHttpInfo(batchInputString: BatchInputString, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1049,7 +1049,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1060,7 +1060,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1097,7 +1097,7 @@ export class ObservableBatchApi { */ public createWithHttpInfo(batchInputBlogPost: BatchInputBlogPost, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1111,7 +1111,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1122,7 +1122,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1160,7 +1160,7 @@ export class ObservableBatchApi { */ public readWithHttpInfo(batchInputString: BatchInputString, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1174,7 +1174,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1185,7 +1185,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1224,7 +1224,7 @@ export class ObservableBatchApi { */ public updateWithHttpInfo(batchInputJsonNode: BatchInputJsonNode, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1238,7 +1238,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1249,7 +1249,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1305,7 +1305,7 @@ export class ObservableMultiLanguageApi { */ public attachToLangGroupWithHttpInfo(attachToLangPrimaryRequestVNext: AttachToLangPrimaryRequestVNext, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1319,7 +1319,7 @@ export class ObservableMultiLanguageApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1330,7 +1330,7 @@ export class ObservableMultiLanguageApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1367,7 +1367,7 @@ export class ObservableMultiLanguageApi { */ public createLangVariationWithHttpInfo(blogPostLanguageCloneRequestVNext: BlogPostLanguageCloneRequestVNext, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1381,7 +1381,7 @@ export class ObservableMultiLanguageApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1392,7 +1392,7 @@ export class ObservableMultiLanguageApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1429,7 +1429,7 @@ export class ObservableMultiLanguageApi { */ public detachFromLangGroupWithHttpInfo(detachFromLangGroupRequestVNext: DetachFromLangGroupRequestVNext, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1443,7 +1443,7 @@ export class ObservableMultiLanguageApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1454,7 +1454,7 @@ export class ObservableMultiLanguageApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1491,7 +1491,7 @@ export class ObservableMultiLanguageApi { */ public setLangPrimaryWithHttpInfo(setNewLanguagePrimaryRequestVNext: SetNewLanguagePrimaryRequestVNext, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1505,7 +1505,7 @@ export class ObservableMultiLanguageApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1516,7 +1516,7 @@ export class ObservableMultiLanguageApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1553,7 +1553,7 @@ export class ObservableMultiLanguageApi { */ public updateLangsWithHttpInfo(updateLanguagesRequestVNext: UpdateLanguagesRequestVNext, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1567,7 +1567,7 @@ export class ObservableMultiLanguageApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1578,7 +1578,7 @@ export class ObservableMultiLanguageApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/cms/blogs/tags/types/ObservableAPI.ts b/codegen/cms/blogs/tags/types/ObservableAPI.ts index 01953a666a..5d5f93c6dd 100644 --- a/codegen/cms/blogs/tags/types/ObservableAPI.ts +++ b/codegen/cms/blogs/tags/types/ObservableAPI.ts @@ -40,7 +40,7 @@ export class ObservableBlogTagsApi { */ public archiveWithHttpInfo(objectId: string, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -54,7 +54,7 @@ export class ObservableBlogTagsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -65,7 +65,7 @@ export class ObservableBlogTagsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -103,7 +103,7 @@ export class ObservableBlogTagsApi { */ public archiveBatchWithHttpInfo(batchInputString: BatchInputString, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -117,7 +117,7 @@ export class ObservableBlogTagsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -128,7 +128,7 @@ export class ObservableBlogTagsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -165,7 +165,7 @@ export class ObservableBlogTagsApi { */ public attachToLangGroupWithHttpInfo(attachToLangPrimaryRequestVNext: AttachToLangPrimaryRequestVNext, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -179,7 +179,7 @@ export class ObservableBlogTagsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -190,7 +190,7 @@ export class ObservableBlogTagsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -227,7 +227,7 @@ export class ObservableBlogTagsApi { */ public createWithHttpInfo(tag: Tag, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -241,7 +241,7 @@ export class ObservableBlogTagsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -252,7 +252,7 @@ export class ObservableBlogTagsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -289,7 +289,7 @@ export class ObservableBlogTagsApi { */ public createBatchWithHttpInfo(batchInputTag: BatchInputTag, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -303,7 +303,7 @@ export class ObservableBlogTagsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -314,7 +314,7 @@ export class ObservableBlogTagsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -351,7 +351,7 @@ export class ObservableBlogTagsApi { */ public createLangVariationWithHttpInfo(tagCloneRequestVNext: TagCloneRequestVNext, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -365,7 +365,7 @@ export class ObservableBlogTagsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -376,7 +376,7 @@ export class ObservableBlogTagsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -413,7 +413,7 @@ export class ObservableBlogTagsApi { */ public detachFromLangGroupWithHttpInfo(detachFromLangGroupRequestVNext: DetachFromLangGroupRequestVNext, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -427,7 +427,7 @@ export class ObservableBlogTagsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -438,7 +438,7 @@ export class ObservableBlogTagsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -477,7 +477,7 @@ export class ObservableBlogTagsApi { */ public getByIdWithHttpInfo(objectId: string, archived?: boolean, property?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -491,7 +491,7 @@ export class ObservableBlogTagsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -502,7 +502,7 @@ export class ObservableBlogTagsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -551,7 +551,7 @@ export class ObservableBlogTagsApi { */ public getPageWithHttpInfo(createdAt?: Date, createdAfter?: Date, createdBefore?: Date, updatedAt?: Date, updatedAfter?: Date, updatedBefore?: Date, sort?: Array, after?: string, limit?: number, archived?: boolean, property?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -565,7 +565,7 @@ export class ObservableBlogTagsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -576,7 +576,7 @@ export class ObservableBlogTagsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -624,7 +624,7 @@ export class ObservableBlogTagsApi { */ public readBatchWithHttpInfo(batchInputString: BatchInputString, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -638,7 +638,7 @@ export class ObservableBlogTagsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -649,7 +649,7 @@ export class ObservableBlogTagsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -687,7 +687,7 @@ export class ObservableBlogTagsApi { */ public setLangPrimaryWithHttpInfo(setNewLanguagePrimaryRequestVNext: SetNewLanguagePrimaryRequestVNext, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -701,7 +701,7 @@ export class ObservableBlogTagsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -712,7 +712,7 @@ export class ObservableBlogTagsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -751,7 +751,7 @@ export class ObservableBlogTagsApi { */ public updateWithHttpInfo(objectId: string, tag: Tag, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -765,7 +765,7 @@ export class ObservableBlogTagsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -776,7 +776,7 @@ export class ObservableBlogTagsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -816,7 +816,7 @@ export class ObservableBlogTagsApi { */ public updateBatchWithHttpInfo(batchInputJsonNode: BatchInputJsonNode, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -830,7 +830,7 @@ export class ObservableBlogTagsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -841,7 +841,7 @@ export class ObservableBlogTagsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -879,7 +879,7 @@ export class ObservableBlogTagsApi { */ public updateLangsWithHttpInfo(updateLanguagesRequestVNext: UpdateLanguagesRequestVNext, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -893,7 +893,7 @@ export class ObservableBlogTagsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -904,7 +904,7 @@ export class ObservableBlogTagsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/cms/domains/types/ObservableAPI.ts b/codegen/cms/domains/types/ObservableAPI.ts index 36c5e4f007..ea4ffc96ae 100644 --- a/codegen/cms/domains/types/ObservableAPI.ts +++ b/codegen/cms/domains/types/ObservableAPI.ts @@ -29,7 +29,7 @@ export class ObservableDomainsApi { */ public getByIdWithHttpInfo(domainId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -43,7 +43,7 @@ export class ObservableDomainsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -54,7 +54,7 @@ export class ObservableDomainsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -100,7 +100,7 @@ export class ObservableDomainsApi { */ public getPageWithHttpInfo(createdAt?: Date, createdAfter?: Date, createdBefore?: Date, updatedAt?: Date, updatedAfter?: Date, updatedBefore?: Date, sort?: Array, after?: string, limit?: number, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -114,7 +114,7 @@ export class ObservableDomainsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -125,7 +125,7 @@ export class ObservableDomainsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/cms/hubdb/types/ObservableAPI.ts b/codegen/cms/hubdb/types/ObservableAPI.ts index 172cff31bf..6d5fda1495 100644 --- a/codegen/cms/hubdb/types/ObservableAPI.ts +++ b/codegen/cms/hubdb/types/ObservableAPI.ts @@ -43,7 +43,7 @@ export class ObservableRowsApi { */ public cloneDraftTableRowWithHttpInfo(tableIdOrName: string, rowId: string, name?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -57,7 +57,7 @@ export class ObservableRowsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -68,7 +68,7 @@ export class ObservableRowsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -108,7 +108,7 @@ export class ObservableRowsApi { */ public createTableRowWithHttpInfo(tableIdOrName: string, hubDbTableRowV3Request: HubDbTableRowV3Request, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -122,7 +122,7 @@ export class ObservableRowsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -133,7 +133,7 @@ export class ObservableRowsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -173,7 +173,7 @@ export class ObservableRowsApi { */ public getDraftTableRowByIdWithHttpInfo(tableIdOrName: string, rowId: string, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -187,7 +187,7 @@ export class ObservableRowsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -198,7 +198,7 @@ export class ObservableRowsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -239,7 +239,7 @@ export class ObservableRowsApi { */ public getTableRowWithHttpInfo(tableIdOrName: string, rowId: string, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -253,7 +253,7 @@ export class ObservableRowsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -264,7 +264,7 @@ export class ObservableRowsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -309,7 +309,7 @@ export class ObservableRowsApi { */ public getTableRowsWithHttpInfo(tableIdOrName: string, sort?: Array, after?: string, limit?: number, properties?: Array, offset?: number, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -323,7 +323,7 @@ export class ObservableRowsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -334,7 +334,7 @@ export class ObservableRowsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -378,7 +378,7 @@ export class ObservableRowsApi { */ public purgeDraftTableRowWithHttpInfo(tableIdOrName: string, rowId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -392,7 +392,7 @@ export class ObservableRowsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -403,7 +403,7 @@ export class ObservableRowsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -447,7 +447,7 @@ export class ObservableRowsApi { */ public readDraftTableRowsWithHttpInfo(tableIdOrName: string, sort?: Array, after?: string, limit?: number, properties?: Array, offset?: number, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -461,7 +461,7 @@ export class ObservableRowsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -472,7 +472,7 @@ export class ObservableRowsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -517,7 +517,7 @@ export class ObservableRowsApi { */ public replaceDraftTableRowWithHttpInfo(tableIdOrName: string, rowId: string, hubDbTableRowV3Request: HubDbTableRowV3Request, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -531,7 +531,7 @@ export class ObservableRowsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -542,7 +542,7 @@ export class ObservableRowsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -583,7 +583,7 @@ export class ObservableRowsApi { */ public updateDraftTableRowWithHttpInfo(tableIdOrName: string, rowId: string, hubDbTableRowV3Request: HubDbTableRowV3Request, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -597,7 +597,7 @@ export class ObservableRowsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -608,7 +608,7 @@ export class ObservableRowsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -666,7 +666,7 @@ export class ObservableRowsBatchApi { */ public cloneDraftTableRowsWithHttpInfo(tableIdOrName: string, batchInputHubDbTableRowBatchCloneRequest: BatchInputHubDbTableRowBatchCloneRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -680,7 +680,7 @@ export class ObservableRowsBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -691,7 +691,7 @@ export class ObservableRowsBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -730,7 +730,7 @@ export class ObservableRowsBatchApi { */ public createDraftTableRowsWithHttpInfo(tableIdOrName: string, batchInputHubDbTableRowV3Request: BatchInputHubDbTableRowV3Request, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -744,7 +744,7 @@ export class ObservableRowsBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -755,7 +755,7 @@ export class ObservableRowsBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -794,7 +794,7 @@ export class ObservableRowsBatchApi { */ public purgeDraftTableRowsWithHttpInfo(tableIdOrName: string, batchInputString: BatchInputString, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -808,7 +808,7 @@ export class ObservableRowsBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -819,7 +819,7 @@ export class ObservableRowsBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -858,7 +858,7 @@ export class ObservableRowsBatchApi { */ public readDraftTableRowsWithHttpInfo(tableIdOrName: string, batchInputString: BatchInputString, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -872,7 +872,7 @@ export class ObservableRowsBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -883,7 +883,7 @@ export class ObservableRowsBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -922,7 +922,7 @@ export class ObservableRowsBatchApi { */ public readTableRowsWithHttpInfo(tableIdOrName: string, batchInputString: BatchInputString, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -936,7 +936,7 @@ export class ObservableRowsBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -947,7 +947,7 @@ export class ObservableRowsBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -986,7 +986,7 @@ export class ObservableRowsBatchApi { */ public replaceDraftTableRowsWithHttpInfo(tableIdOrName: string, batchInputHubDbTableRowV3BatchUpdateRequest: BatchInputHubDbTableRowV3BatchUpdateRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1000,7 +1000,7 @@ export class ObservableRowsBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1011,7 +1011,7 @@ export class ObservableRowsBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1050,7 +1050,7 @@ export class ObservableRowsBatchApi { */ public updateDraftTableRowsWithHttpInfo(tableIdOrName: string, batchInputHubDbTableRowV3BatchUpdateRequest: BatchInputHubDbTableRowV3BatchUpdateRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1064,7 +1064,7 @@ export class ObservableRowsBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1075,7 +1075,7 @@ export class ObservableRowsBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1131,7 +1131,7 @@ export class ObservableTablesApi { */ public archiveTableWithHttpInfo(tableIdOrName: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1145,7 +1145,7 @@ export class ObservableTablesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1156,7 +1156,7 @@ export class ObservableTablesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1194,7 +1194,7 @@ export class ObservableTablesApi { */ public cloneDraftTableWithHttpInfo(tableIdOrName: string, hubDbTableCloneRequest: HubDbTableCloneRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1208,7 +1208,7 @@ export class ObservableTablesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1219,7 +1219,7 @@ export class ObservableTablesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1257,7 +1257,7 @@ export class ObservableTablesApi { */ public createTableWithHttpInfo(hubDbTableV3Request: HubDbTableV3Request, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1271,7 +1271,7 @@ export class ObservableTablesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1282,7 +1282,7 @@ export class ObservableTablesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1320,7 +1320,7 @@ export class ObservableTablesApi { */ public exportDraftTableWithHttpInfo(tableIdOrName: string, format?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1334,7 +1334,7 @@ export class ObservableTablesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1345,7 +1345,7 @@ export class ObservableTablesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1384,7 +1384,7 @@ export class ObservableTablesApi { */ public exportTableWithHttpInfo(tableIdOrName: string, format?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1398,7 +1398,7 @@ export class ObservableTablesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1409,7 +1409,7 @@ export class ObservableTablesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1458,7 +1458,7 @@ export class ObservableTablesApi { */ public getAllDraftTablesWithHttpInfo(sort?: Array, after?: string, limit?: number, createdAt?: Date, createdAfter?: Date, createdBefore?: Date, updatedAt?: Date, updatedAfter?: Date, updatedBefore?: Date, contentType?: string, archived?: boolean, isGetLocalizedSchema?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1472,7 +1472,7 @@ export class ObservableTablesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1483,7 +1483,7 @@ export class ObservableTablesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1542,7 +1542,7 @@ export class ObservableTablesApi { */ public getAllTablesWithHttpInfo(sort?: Array, after?: string, limit?: number, createdAt?: Date, createdAfter?: Date, createdBefore?: Date, updatedAt?: Date, updatedAfter?: Date, updatedBefore?: Date, contentType?: string, archived?: boolean, isGetLocalizedSchema?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1556,7 +1556,7 @@ export class ObservableTablesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1567,7 +1567,7 @@ export class ObservableTablesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1618,7 +1618,7 @@ export class ObservableTablesApi { */ public getDraftTableDetailsByIdWithHttpInfo(tableIdOrName: string, isGetLocalizedSchema?: boolean, archived?: boolean, includeForeignIds?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1632,7 +1632,7 @@ export class ObservableTablesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1643,7 +1643,7 @@ export class ObservableTablesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1686,7 +1686,7 @@ export class ObservableTablesApi { */ public getTableDetailsWithHttpInfo(tableIdOrName: string, isGetLocalizedSchema?: boolean, archived?: boolean, includeForeignIds?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1700,7 +1700,7 @@ export class ObservableTablesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1711,7 +1711,7 @@ export class ObservableTablesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1753,7 +1753,7 @@ export class ObservableTablesApi { */ public importDraftTableWithHttpInfo(tableIdOrName: string, config?: string, file?: HttpFile, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1767,7 +1767,7 @@ export class ObservableTablesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1778,7 +1778,7 @@ export class ObservableTablesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1818,7 +1818,7 @@ export class ObservableTablesApi { */ public publishDraftTableWithHttpInfo(tableIdOrName: string, includeForeignIds?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1832,7 +1832,7 @@ export class ObservableTablesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1843,7 +1843,7 @@ export class ObservableTablesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1882,7 +1882,7 @@ export class ObservableTablesApi { */ public removeTableVersionWithHttpInfo(tableIdOrName: string, versionId: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1896,7 +1896,7 @@ export class ObservableTablesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1907,7 +1907,7 @@ export class ObservableTablesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1946,7 +1946,7 @@ export class ObservableTablesApi { */ public resetDraftTableWithHttpInfo(tableIdOrName: string, includeForeignIds?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1960,7 +1960,7 @@ export class ObservableTablesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1971,7 +1971,7 @@ export class ObservableTablesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -2010,7 +2010,7 @@ export class ObservableTablesApi { */ public unpublishTableWithHttpInfo(tableIdOrName: string, includeForeignIds?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -2024,7 +2024,7 @@ export class ObservableTablesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -2035,7 +2035,7 @@ export class ObservableTablesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -2077,7 +2077,7 @@ export class ObservableTablesApi { */ public updateDraftTableWithHttpInfo(tableIdOrName: string, hubDbTableV3Request: HubDbTableV3Request, isGetLocalizedSchema?: boolean, archived?: boolean, includeForeignIds?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -2091,7 +2091,7 @@ export class ObservableTablesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -2102,7 +2102,7 @@ export class ObservableTablesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/cms/pages/types/ObservableAPI.ts b/codegen/cms/pages/types/ObservableAPI.ts index cb70892a97..7a114d23ef 100644 --- a/codegen/cms/pages/types/ObservableAPI.ts +++ b/codegen/cms/pages/types/ObservableAPI.ts @@ -54,7 +54,7 @@ export class ObservableLandingPagesApi { */ public archiveWithHttpInfo(objectId: string, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -68,7 +68,7 @@ export class ObservableLandingPagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -79,7 +79,7 @@ export class ObservableLandingPagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -117,7 +117,7 @@ export class ObservableLandingPagesApi { */ public archiveBatchWithHttpInfo(batchInputString: BatchInputString, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -131,7 +131,7 @@ export class ObservableLandingPagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -142,7 +142,7 @@ export class ObservableLandingPagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -180,7 +180,7 @@ export class ObservableLandingPagesApi { */ public archiveFolderWithHttpInfo(objectId: string, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -194,7 +194,7 @@ export class ObservableLandingPagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -205,7 +205,7 @@ export class ObservableLandingPagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -243,7 +243,7 @@ export class ObservableLandingPagesApi { */ public archiveFoldersWithHttpInfo(batchInputString: BatchInputString, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -257,7 +257,7 @@ export class ObservableLandingPagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -268,7 +268,7 @@ export class ObservableLandingPagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -305,7 +305,7 @@ export class ObservableLandingPagesApi { */ public attachToLangGroupWithHttpInfo(attachToLangPrimaryRequestVNext: AttachToLangPrimaryRequestVNext, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -319,7 +319,7 @@ export class ObservableLandingPagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -330,7 +330,7 @@ export class ObservableLandingPagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -367,7 +367,7 @@ export class ObservableLandingPagesApi { */ public cloneWithHttpInfo(contentCloneRequestVNext: ContentCloneRequestVNext, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -381,7 +381,7 @@ export class ObservableLandingPagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -392,7 +392,7 @@ export class ObservableLandingPagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -429,7 +429,7 @@ export class ObservableLandingPagesApi { */ public createWithHttpInfo(page: Page, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -443,7 +443,7 @@ export class ObservableLandingPagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -454,7 +454,7 @@ export class ObservableLandingPagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -491,7 +491,7 @@ export class ObservableLandingPagesApi { */ public createABTestVariationWithHttpInfo(abTestCreateRequestVNext: AbTestCreateRequestVNext, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -505,7 +505,7 @@ export class ObservableLandingPagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -516,7 +516,7 @@ export class ObservableLandingPagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -553,7 +553,7 @@ export class ObservableLandingPagesApi { */ public createBatchWithHttpInfo(batchInputPage: BatchInputPage, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -567,7 +567,7 @@ export class ObservableLandingPagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -578,7 +578,7 @@ export class ObservableLandingPagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -615,7 +615,7 @@ export class ObservableLandingPagesApi { */ public createFolderWithHttpInfo(contentFolder: ContentFolder, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -629,7 +629,7 @@ export class ObservableLandingPagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -640,7 +640,7 @@ export class ObservableLandingPagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -677,7 +677,7 @@ export class ObservableLandingPagesApi { */ public createFoldersWithHttpInfo(batchInputContentFolder: BatchInputContentFolder, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -691,7 +691,7 @@ export class ObservableLandingPagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -702,7 +702,7 @@ export class ObservableLandingPagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -739,7 +739,7 @@ export class ObservableLandingPagesApi { */ public createLangVariationWithHttpInfo(contentLanguageCloneRequestVNext: ContentLanguageCloneRequestVNext, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -753,7 +753,7 @@ export class ObservableLandingPagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -764,7 +764,7 @@ export class ObservableLandingPagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -801,7 +801,7 @@ export class ObservableLandingPagesApi { */ public detachFromLangGroupWithHttpInfo(detachFromLangGroupRequestVNext: DetachFromLangGroupRequestVNext, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -815,7 +815,7 @@ export class ObservableLandingPagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -826,7 +826,7 @@ export class ObservableLandingPagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -863,7 +863,7 @@ export class ObservableLandingPagesApi { */ public endActiveABTestWithHttpInfo(abTestEndRequestVNext: AbTestEndRequestVNext, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -877,7 +877,7 @@ export class ObservableLandingPagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -888,7 +888,7 @@ export class ObservableLandingPagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -927,7 +927,7 @@ export class ObservableLandingPagesApi { */ public getByIdWithHttpInfo(objectId: string, archived?: boolean, property?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -941,7 +941,7 @@ export class ObservableLandingPagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -952,7 +952,7 @@ export class ObservableLandingPagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -991,7 +991,7 @@ export class ObservableLandingPagesApi { */ public getDraftByIdWithHttpInfo(objectId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1005,7 +1005,7 @@ export class ObservableLandingPagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1016,7 +1016,7 @@ export class ObservableLandingPagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1055,7 +1055,7 @@ export class ObservableLandingPagesApi { */ public getFolderByIdWithHttpInfo(objectId: string, archived?: boolean, property?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1069,7 +1069,7 @@ export class ObservableLandingPagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1080,7 +1080,7 @@ export class ObservableLandingPagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1120,7 +1120,7 @@ export class ObservableLandingPagesApi { */ public getFolderPreviousVersionWithHttpInfo(objectId: string, revisionId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1134,7 +1134,7 @@ export class ObservableLandingPagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1145,7 +1145,7 @@ export class ObservableLandingPagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1186,7 +1186,7 @@ export class ObservableLandingPagesApi { */ public getFolderPreviousVersionsWithHttpInfo(objectId: string, after?: string, before?: string, limit?: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1200,7 +1200,7 @@ export class ObservableLandingPagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1211,7 +1211,7 @@ export class ObservableLandingPagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1261,7 +1261,7 @@ export class ObservableLandingPagesApi { */ public getFoldersPageWithHttpInfo(createdAt?: Date, createdAfter?: Date, createdBefore?: Date, updatedAt?: Date, updatedAfter?: Date, updatedBefore?: Date, sort?: Array, after?: string, limit?: number, archived?: boolean, property?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1275,7 +1275,7 @@ export class ObservableLandingPagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1286,7 +1286,7 @@ export class ObservableLandingPagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1343,7 +1343,7 @@ export class ObservableLandingPagesApi { */ public getPageWithHttpInfo(createdAt?: Date, createdAfter?: Date, createdBefore?: Date, updatedAt?: Date, updatedAfter?: Date, updatedBefore?: Date, sort?: Array, after?: string, limit?: number, archived?: boolean, property?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1357,7 +1357,7 @@ export class ObservableLandingPagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1368,7 +1368,7 @@ export class ObservableLandingPagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1416,7 +1416,7 @@ export class ObservableLandingPagesApi { */ public getPreviousVersionWithHttpInfo(objectId: string, revisionId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1430,7 +1430,7 @@ export class ObservableLandingPagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1441,7 +1441,7 @@ export class ObservableLandingPagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1482,7 +1482,7 @@ export class ObservableLandingPagesApi { */ public getPreviousVersionsWithHttpInfo(objectId: string, after?: string, before?: string, limit?: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1496,7 +1496,7 @@ export class ObservableLandingPagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1507,7 +1507,7 @@ export class ObservableLandingPagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1547,7 +1547,7 @@ export class ObservableLandingPagesApi { */ public pushLiveWithHttpInfo(objectId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1561,7 +1561,7 @@ export class ObservableLandingPagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1572,7 +1572,7 @@ export class ObservableLandingPagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1610,7 +1610,7 @@ export class ObservableLandingPagesApi { */ public readBatchWithHttpInfo(batchInputString: BatchInputString, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1624,7 +1624,7 @@ export class ObservableLandingPagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1635,7 +1635,7 @@ export class ObservableLandingPagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1674,7 +1674,7 @@ export class ObservableLandingPagesApi { */ public readFoldersWithHttpInfo(batchInputString: BatchInputString, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1688,7 +1688,7 @@ export class ObservableLandingPagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1699,7 +1699,7 @@ export class ObservableLandingPagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1737,7 +1737,7 @@ export class ObservableLandingPagesApi { */ public rerunPreviousABTestWithHttpInfo(abTestRerunRequestVNext: AbTestRerunRequestVNext, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1751,7 +1751,7 @@ export class ObservableLandingPagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1762,7 +1762,7 @@ export class ObservableLandingPagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1799,7 +1799,7 @@ export class ObservableLandingPagesApi { */ public resetDraftWithHttpInfo(objectId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1813,7 +1813,7 @@ export class ObservableLandingPagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1824,7 +1824,7 @@ export class ObservableLandingPagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1862,7 +1862,7 @@ export class ObservableLandingPagesApi { */ public restoreFolderPreviousVersionWithHttpInfo(objectId: string, revisionId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1876,7 +1876,7 @@ export class ObservableLandingPagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1887,7 +1887,7 @@ export class ObservableLandingPagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1926,7 +1926,7 @@ export class ObservableLandingPagesApi { */ public restorePreviousVersionWithHttpInfo(objectId: string, revisionId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1940,7 +1940,7 @@ export class ObservableLandingPagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1951,7 +1951,7 @@ export class ObservableLandingPagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1990,7 +1990,7 @@ export class ObservableLandingPagesApi { */ public restorePreviousVersionToDraftWithHttpInfo(objectId: string, revisionId: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -2004,7 +2004,7 @@ export class ObservableLandingPagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -2015,7 +2015,7 @@ export class ObservableLandingPagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -2053,7 +2053,7 @@ export class ObservableLandingPagesApi { */ public scheduleWithHttpInfo(contentScheduleRequestVNext: ContentScheduleRequestVNext, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -2067,7 +2067,7 @@ export class ObservableLandingPagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -2078,7 +2078,7 @@ export class ObservableLandingPagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -2115,7 +2115,7 @@ export class ObservableLandingPagesApi { */ public setLangPrimaryWithHttpInfo(setNewLanguagePrimaryRequestVNext: SetNewLanguagePrimaryRequestVNext, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -2129,7 +2129,7 @@ export class ObservableLandingPagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -2140,7 +2140,7 @@ export class ObservableLandingPagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -2179,7 +2179,7 @@ export class ObservableLandingPagesApi { */ public updateWithHttpInfo(objectId: string, page: Page, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -2193,7 +2193,7 @@ export class ObservableLandingPagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -2204,7 +2204,7 @@ export class ObservableLandingPagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -2244,7 +2244,7 @@ export class ObservableLandingPagesApi { */ public updateBatchWithHttpInfo(batchInputJsonNode: BatchInputJsonNode, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -2258,7 +2258,7 @@ export class ObservableLandingPagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -2269,7 +2269,7 @@ export class ObservableLandingPagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -2308,7 +2308,7 @@ export class ObservableLandingPagesApi { */ public updateDraftWithHttpInfo(objectId: string, page: Page, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -2322,7 +2322,7 @@ export class ObservableLandingPagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -2333,7 +2333,7 @@ export class ObservableLandingPagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -2373,7 +2373,7 @@ export class ObservableLandingPagesApi { */ public updateFolderWithHttpInfo(objectId: string, contentFolder: ContentFolder, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -2387,7 +2387,7 @@ export class ObservableLandingPagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -2398,7 +2398,7 @@ export class ObservableLandingPagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -2438,7 +2438,7 @@ export class ObservableLandingPagesApi { */ public updateFoldersWithHttpInfo(batchInputJsonNode: BatchInputJsonNode, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -2452,7 +2452,7 @@ export class ObservableLandingPagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -2463,7 +2463,7 @@ export class ObservableLandingPagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -2501,7 +2501,7 @@ export class ObservableLandingPagesApi { */ public updateLangsWithHttpInfo(updateLanguagesRequestVNext: UpdateLanguagesRequestVNext, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -2515,7 +2515,7 @@ export class ObservableLandingPagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -2526,7 +2526,7 @@ export class ObservableLandingPagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -2582,7 +2582,7 @@ export class ObservableSitePagesApi { */ public archiveWithHttpInfo(objectId: string, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -2596,7 +2596,7 @@ export class ObservableSitePagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -2607,7 +2607,7 @@ export class ObservableSitePagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -2645,7 +2645,7 @@ export class ObservableSitePagesApi { */ public archiveBatchWithHttpInfo(batchInputString: BatchInputString, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -2659,7 +2659,7 @@ export class ObservableSitePagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -2670,7 +2670,7 @@ export class ObservableSitePagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -2707,7 +2707,7 @@ export class ObservableSitePagesApi { */ public attachToLangGroupWithHttpInfo(attachToLangPrimaryRequestVNext: AttachToLangPrimaryRequestVNext, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -2721,7 +2721,7 @@ export class ObservableSitePagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -2732,7 +2732,7 @@ export class ObservableSitePagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -2769,7 +2769,7 @@ export class ObservableSitePagesApi { */ public cloneWithHttpInfo(contentCloneRequestVNext: ContentCloneRequestVNext, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -2783,7 +2783,7 @@ export class ObservableSitePagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -2794,7 +2794,7 @@ export class ObservableSitePagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -2831,7 +2831,7 @@ export class ObservableSitePagesApi { */ public createWithHttpInfo(page: Page, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -2845,7 +2845,7 @@ export class ObservableSitePagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -2856,7 +2856,7 @@ export class ObservableSitePagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -2893,7 +2893,7 @@ export class ObservableSitePagesApi { */ public createABTestVariationWithHttpInfo(abTestCreateRequestVNext: AbTestCreateRequestVNext, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -2907,7 +2907,7 @@ export class ObservableSitePagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -2918,7 +2918,7 @@ export class ObservableSitePagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -2955,7 +2955,7 @@ export class ObservableSitePagesApi { */ public createBatchWithHttpInfo(batchInputPage: BatchInputPage, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -2969,7 +2969,7 @@ export class ObservableSitePagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -2980,7 +2980,7 @@ export class ObservableSitePagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -3017,7 +3017,7 @@ export class ObservableSitePagesApi { */ public createLangVariationWithHttpInfo(contentLanguageCloneRequestVNext: ContentLanguageCloneRequestVNext, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -3031,7 +3031,7 @@ export class ObservableSitePagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -3042,7 +3042,7 @@ export class ObservableSitePagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -3079,7 +3079,7 @@ export class ObservableSitePagesApi { */ public detachFromLangGroupWithHttpInfo(detachFromLangGroupRequestVNext: DetachFromLangGroupRequestVNext, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -3093,7 +3093,7 @@ export class ObservableSitePagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -3104,7 +3104,7 @@ export class ObservableSitePagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -3141,7 +3141,7 @@ export class ObservableSitePagesApi { */ public endActiveABTestWithHttpInfo(abTestEndRequestVNext: AbTestEndRequestVNext, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -3155,7 +3155,7 @@ export class ObservableSitePagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -3166,7 +3166,7 @@ export class ObservableSitePagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -3205,7 +3205,7 @@ export class ObservableSitePagesApi { */ public getByIdWithHttpInfo(objectId: string, archived?: boolean, property?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -3219,7 +3219,7 @@ export class ObservableSitePagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -3230,7 +3230,7 @@ export class ObservableSitePagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -3269,7 +3269,7 @@ export class ObservableSitePagesApi { */ public getDraftByIdWithHttpInfo(objectId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -3283,7 +3283,7 @@ export class ObservableSitePagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -3294,7 +3294,7 @@ export class ObservableSitePagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -3341,7 +3341,7 @@ export class ObservableSitePagesApi { */ public getPageWithHttpInfo(createdAt?: Date, createdAfter?: Date, createdBefore?: Date, updatedAt?: Date, updatedAfter?: Date, updatedBefore?: Date, sort?: Array, after?: string, limit?: number, archived?: boolean, property?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -3355,7 +3355,7 @@ export class ObservableSitePagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -3366,7 +3366,7 @@ export class ObservableSitePagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -3414,7 +3414,7 @@ export class ObservableSitePagesApi { */ public getPreviousVersionWithHttpInfo(objectId: string, revisionId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -3428,7 +3428,7 @@ export class ObservableSitePagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -3439,7 +3439,7 @@ export class ObservableSitePagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -3480,7 +3480,7 @@ export class ObservableSitePagesApi { */ public getPreviousVersionsWithHttpInfo(objectId: string, after?: string, before?: string, limit?: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -3494,7 +3494,7 @@ export class ObservableSitePagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -3505,7 +3505,7 @@ export class ObservableSitePagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -3545,7 +3545,7 @@ export class ObservableSitePagesApi { */ public pushLiveWithHttpInfo(objectId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -3559,7 +3559,7 @@ export class ObservableSitePagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -3570,7 +3570,7 @@ export class ObservableSitePagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -3608,7 +3608,7 @@ export class ObservableSitePagesApi { */ public readBatchWithHttpInfo(batchInputString: BatchInputString, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -3622,7 +3622,7 @@ export class ObservableSitePagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -3633,7 +3633,7 @@ export class ObservableSitePagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -3671,7 +3671,7 @@ export class ObservableSitePagesApi { */ public rerunPreviousABTestWithHttpInfo(abTestRerunRequestVNext: AbTestRerunRequestVNext, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -3685,7 +3685,7 @@ export class ObservableSitePagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -3696,7 +3696,7 @@ export class ObservableSitePagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -3733,7 +3733,7 @@ export class ObservableSitePagesApi { */ public resetDraftWithHttpInfo(objectId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -3747,7 +3747,7 @@ export class ObservableSitePagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -3758,7 +3758,7 @@ export class ObservableSitePagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -3796,7 +3796,7 @@ export class ObservableSitePagesApi { */ public restorePreviousVersionWithHttpInfo(objectId: string, revisionId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -3810,7 +3810,7 @@ export class ObservableSitePagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -3821,7 +3821,7 @@ export class ObservableSitePagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -3860,7 +3860,7 @@ export class ObservableSitePagesApi { */ public restorePreviousVersionToDraftWithHttpInfo(objectId: string, revisionId: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -3874,7 +3874,7 @@ export class ObservableSitePagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -3885,7 +3885,7 @@ export class ObservableSitePagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -3923,7 +3923,7 @@ export class ObservableSitePagesApi { */ public scheduleWithHttpInfo(contentScheduleRequestVNext: ContentScheduleRequestVNext, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -3937,7 +3937,7 @@ export class ObservableSitePagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -3948,7 +3948,7 @@ export class ObservableSitePagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -3985,7 +3985,7 @@ export class ObservableSitePagesApi { */ public setLangPrimaryWithHttpInfo(setNewLanguagePrimaryRequestVNext: SetNewLanguagePrimaryRequestVNext, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -3999,7 +3999,7 @@ export class ObservableSitePagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -4010,7 +4010,7 @@ export class ObservableSitePagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -4049,7 +4049,7 @@ export class ObservableSitePagesApi { */ public updateWithHttpInfo(objectId: string, page: Page, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -4063,7 +4063,7 @@ export class ObservableSitePagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -4074,7 +4074,7 @@ export class ObservableSitePagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -4114,7 +4114,7 @@ export class ObservableSitePagesApi { */ public updateBatchWithHttpInfo(batchInputJsonNode: BatchInputJsonNode, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -4128,7 +4128,7 @@ export class ObservableSitePagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -4139,7 +4139,7 @@ export class ObservableSitePagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -4178,7 +4178,7 @@ export class ObservableSitePagesApi { */ public updateDraftWithHttpInfo(objectId: string, page: Page, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -4192,7 +4192,7 @@ export class ObservableSitePagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -4203,7 +4203,7 @@ export class ObservableSitePagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -4241,7 +4241,7 @@ export class ObservableSitePagesApi { */ public updateLangsWithHttpInfo(updateLanguagesRequestVNext: UpdateLanguagesRequestVNext, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -4255,7 +4255,7 @@ export class ObservableSitePagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -4266,7 +4266,7 @@ export class ObservableSitePagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/cms/site_search/types/ObservableAPI.ts b/codegen/cms/site_search/types/ObservableAPI.ts index 92a8262f47..f98219e009 100644 --- a/codegen/cms/site_search/types/ObservableAPI.ts +++ b/codegen/cms/site_search/types/ObservableAPI.ts @@ -30,7 +30,7 @@ export class ObservablePublicApi { */ public getByIdWithHttpInfo(contentId: string, type?: 'LANDING_PAGE' | 'BLOG_POST' | 'SITE_PAGE' | 'KNOWLEDGE_ARTICLE' | 'LISTING_PAGE', _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -44,7 +44,7 @@ export class ObservablePublicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -55,7 +55,7 @@ export class ObservablePublicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -109,7 +109,7 @@ export class ObservablePublicApi { */ public searchWithHttpInfo(q?: string, limit?: number, offset?: number, language?: 'af' | 'af-na' | 'af-za' | 'agq' | 'agq-cm' | 'ak' | 'ak-gh' | 'am' | 'am-et' | 'ar' | 'ar-001' | 'ar-ae' | 'ar-bh' | 'ar-dj' | 'ar-dz' | 'ar-eg' | 'ar-eh' | 'ar-er' | 'ar-il' | 'ar-iq' | 'ar-jo' | 'ar-km' | 'ar-kw' | 'ar-lb' | 'ar-ly' | 'ar-ma' | 'ar-mr' | 'ar-om' | 'ar-ps' | 'ar-qa' | 'ar-sa' | 'ar-sd' | 'ar-so' | 'ar-ss' | 'ar-sy' | 'ar-td' | 'ar-tn' | 'ar-ye' | 'as' | 'as-in' | 'asa' | 'asa-tz' | 'ast' | 'ast-es' | 'az' | 'az-az' | 'bas' | 'bas-cm' | 'be' | 'be-by' | 'bem' | 'bem-zm' | 'bez' | 'bez-tz' | 'bg' | 'bg-bg' | 'bm' | 'bm-ml' | 'bn' | 'bn-bd' | 'bn-in' | 'bo' | 'bo-cn' | 'bo-in' | 'br' | 'br-fr' | 'brx' | 'brx-in' | 'bs' | 'bs-ba' | 'ca' | 'ca-ad' | 'ca-es' | 'ca-fr' | 'ca-it' | 'ccp' | 'ccp-bd' | 'ccp-in' | 'ce' | 'ce-ru' | 'ceb' | 'ceb-ph' | 'cgg' | 'cgg-ug' | 'chr' | 'chr-us' | 'ckb' | 'ckb-iq' | 'ckb-ir' | 'cs' | 'cs-cz' | 'cu' | 'cu-ru' | 'cy' | 'cy-gb' | 'da' | 'da-dk' | 'da-gl' | 'dav' | 'dav-ke' | 'de' | 'de-at' | 'de-be' | 'de-ch' | 'de-de' | 'de-gr' | 'de-it' | 'de-li' | 'de-lu' | 'dje' | 'dje-ne' | 'doi' | 'doi-in' | 'dsb' | 'dsb-de' | 'dua' | 'dua-cm' | 'dyo' | 'dyo-sn' | 'dz' | 'dz-bt' | 'ebu' | 'ebu-ke' | 'ee' | 'ee-gh' | 'ee-tg' | 'el' | 'el-cy' | 'el-gr' | 'en' | 'en-001' | 'en-150' | 'en-ae' | 'en-ag' | 'en-ai' | 'en-as' | 'en-at' | 'en-au' | 'en-bb' | 'en-be' | 'en-bi' | 'en-bm' | 'en-bs' | 'en-bw' | 'en-bz' | 'en-ca' | 'en-cc' | 'en-ch' | 'en-ck' | 'en-cm' | 'en-cn' | 'en-cx' | 'en-cy' | 'en-de' | 'en-dg' | 'en-dk' | 'en-dm' | 'en-er' | 'en-fi' | 'en-fj' | 'en-fk' | 'en-fm' | 'en-gb' | 'en-gd' | 'en-gg' | 'en-gh' | 'en-gi' | 'en-gm' | 'en-gu' | 'en-gy' | 'en-hk' | 'en-ie' | 'en-il' | 'en-im' | 'en-in' | 'en-io' | 'en-je' | 'en-jm' | 'en-ke' | 'en-ki' | 'en-kn' | 'en-ky' | 'en-lc' | 'en-lr' | 'en-ls' | 'en-lu' | 'en-mg' | 'en-mh' | 'en-mo' | 'en-mp' | 'en-ms' | 'en-mt' | 'en-mu' | 'en-mw' | 'en-mx' | 'en-my' | 'en-na' | 'en-nf' | 'en-ng' | 'en-nl' | 'en-nr' | 'en-nu' | 'en-nz' | 'en-pg' | 'en-ph' | 'en-pk' | 'en-pn' | 'en-pr' | 'en-pw' | 'en-rw' | 'en-sb' | 'en-sc' | 'en-sd' | 'en-se' | 'en-sg' | 'en-sh' | 'en-si' | 'en-sl' | 'en-ss' | 'en-sx' | 'en-sz' | 'en-tc' | 'en-tk' | 'en-to' | 'en-tt' | 'en-tv' | 'en-tz' | 'en-ug' | 'en-um' | 'en-us' | 'en-vc' | 'en-vg' | 'en-vi' | 'en-vu' | 'en-ws' | 'en-za' | 'en-zm' | 'en-zw' | 'eo' | 'eo-001' | 'es' | 'es-419' | 'es-ar' | 'es-bo' | 'es-br' | 'es-bz' | 'es-cl' | 'es-co' | 'es-cr' | 'es-cu' | 'es-do' | 'es-ea' | 'es-ec' | 'es-es' | 'es-gq' | 'es-gt' | 'es-hn' | 'es-ic' | 'es-mx' | 'es-ni' | 'es-pa' | 'es-pe' | 'es-ph' | 'es-pr' | 'es-py' | 'es-sv' | 'es-us' | 'es-uy' | 'es-ve' | 'et' | 'et-ee' | 'eu' | 'eu-es' | 'ewo' | 'ewo-cm' | 'fa' | 'fa-af' | 'fa-ir' | 'ff' | 'ff-bf' | 'ff-cm' | 'ff-gh' | 'ff-gm' | 'ff-gn' | 'ff-gw' | 'ff-lr' | 'ff-mr' | 'ff-ne' | 'ff-ng' | 'ff-sl' | 'ff-sn' | 'fi' | 'fi-fi' | 'fil' | 'fil-ph' | 'fo' | 'fo-dk' | 'fo-fo' | 'fr' | 'fr-be' | 'fr-bf' | 'fr-bi' | 'fr-bj' | 'fr-bl' | 'fr-ca' | 'fr-cd' | 'fr-cf' | 'fr-cg' | 'fr-ch' | 'fr-ci' | 'fr-cm' | 'fr-dj' | 'fr-dz' | 'fr-fr' | 'fr-ga' | 'fr-gf' | 'fr-gn' | 'fr-gp' | 'fr-gq' | 'fr-ht' | 'fr-km' | 'fr-lu' | 'fr-ma' | 'fr-mc' | 'fr-mf' | 'fr-mg' | 'fr-ml' | 'fr-mq' | 'fr-mr' | 'fr-mu' | 'fr-nc' | 'fr-ne' | 'fr-pf' | 'fr-pm' | 'fr-re' | 'fr-rw' | 'fr-sc' | 'fr-sn' | 'fr-sy' | 'fr-td' | 'fr-tg' | 'fr-tn' | 'fr-vu' | 'fr-wf' | 'fr-yt' | 'fur' | 'fur-it' | 'fy' | 'fy-nl' | 'ga' | 'ga-gb' | 'ga-ie' | 'gd' | 'gd-gb' | 'gl' | 'gl-es' | 'gsw' | 'gsw-ch' | 'gsw-fr' | 'gsw-li' | 'gu' | 'gu-in' | 'guz' | 'guz-ke' | 'gv' | 'gv-im' | 'ha' | 'ha-gh' | 'ha-ne' | 'ha-ng' | 'haw' | 'haw-us' | 'he' | 'hi' | 'hi-in' | 'hr' | 'hr-ba' | 'hr-hr' | 'hsb' | 'hsb-de' | 'hu' | 'hu-hu' | 'hy' | 'hy-am' | 'ia' | 'ia-001' | 'id' | 'ig' | 'ig-ng' | 'ii' | 'ii-cn' | 'id-id' | 'is' | 'is-is' | 'it' | 'it-ch' | 'it-it' | 'it-sm' | 'it-va' | 'he-il' | 'ja' | 'ja-jp' | 'jgo' | 'jgo-cm' | 'yi' | 'yi-001' | 'jmc' | 'jmc-tz' | 'jv' | 'jv-id' | 'ka' | 'ka-ge' | 'kab' | 'kab-dz' | 'kam' | 'kam-ke' | 'kde' | 'kde-tz' | 'kea' | 'kea-cv' | 'khq' | 'khq-ml' | 'ki' | 'ki-ke' | 'kk' | 'kk-kz' | 'kkj' | 'kkj-cm' | 'kl' | 'kl-gl' | 'kln' | 'kln-ke' | 'km' | 'km-kh' | 'kn' | 'kn-in' | 'ko' | 'ko-kp' | 'ko-kr' | 'kok' | 'kok-in' | 'ks' | 'ks-in' | 'ksb' | 'ksb-tz' | 'ksf' | 'ksf-cm' | 'ksh' | 'ksh-de' | 'kw' | 'kw-gb' | 'ku' | 'ku-tr' | 'ky' | 'ky-kg' | 'lag' | 'lag-tz' | 'lb' | 'lb-lu' | 'lg' | 'lg-ug' | 'lkt' | 'lkt-us' | 'ln' | 'ln-ao' | 'ln-cd' | 'ln-cf' | 'ln-cg' | 'lo' | 'lo-la' | 'lrc' | 'lrc-iq' | 'lrc-ir' | 'lt' | 'lt-lt' | 'lu' | 'lu-cd' | 'luo' | 'luo-ke' | 'luy' | 'luy-ke' | 'lv' | 'lv-lv' | 'mai' | 'mai-in' | 'mas' | 'mas-ke' | 'mas-tz' | 'mer' | 'mer-ke' | 'mfe' | 'mfe-mu' | 'mg' | 'mg-mg' | 'mgh' | 'mgh-mz' | 'mgo' | 'mgo-cm' | 'mi' | 'mi-nz' | 'mk' | 'mk-mk' | 'ml' | 'ml-in' | 'mn' | 'mn-mn' | 'mni' | 'mni-in' | 'mr' | 'mr-in' | 'ms' | 'ms-bn' | 'ms-id' | 'ms-my' | 'ms-sg' | 'mt' | 'mt-mt' | 'mua' | 'mua-cm' | 'my' | 'my-mm' | 'mzn' | 'mzn-ir' | 'naq' | 'naq-na' | 'nb' | 'nb-no' | 'nb-sj' | 'nd' | 'nd-zw' | 'nds' | 'nds-de' | 'nds-nl' | 'ne' | 'ne-in' | 'ne-np' | 'nl' | 'nl-aw' | 'nl-be' | 'nl-ch' | 'nl-bq' | 'nl-cw' | 'nl-lu' | 'nl-nl' | 'nl-sr' | 'nl-sx' | 'nmg' | 'nmg-cm' | 'nn' | 'nn-no' | 'nnh' | 'nnh-cm' | 'no' | 'no-no' | 'nus' | 'nus-ss' | 'nyn' | 'nyn-ug' | 'om' | 'om-et' | 'om-ke' | 'or' | 'or-in' | 'os' | 'os-ge' | 'os-ru' | 'pa' | 'pa-in' | 'pa-pk' | 'pcm' | 'pcm-ng' | 'pl' | 'pl-pl' | 'prg' | 'prg-001' | 'ps' | 'ps-af' | 'ps-pk' | 'pt' | 'pt-ao' | 'pt-br' | 'pt-ch' | 'pt-cv' | 'pt-gq' | 'pt-gw' | 'pt-lu' | 'pt-mo' | 'pt-mz' | 'pt-pt' | 'pt-st' | 'pt-tl' | 'qu' | 'qu-bo' | 'qu-ec' | 'qu-pe' | 'rm' | 'rm-ch' | 'rn' | 'rn-bi' | 'ro' | 'ro-md' | 'ro-ro' | 'rof' | 'rof-tz' | 'ru' | 'ru-by' | 'ru-kg' | 'ru-kz' | 'ru-md' | 'ru-ru' | 'ru-ua' | 'rw' | 'rw-rw' | 'rwk' | 'rwk-tz' | 'sa' | 'sa-in' | 'sah' | 'sah-ru' | 'saq' | 'saq-ke' | 'sat' | 'sat-in' | 'sbp' | 'sbp-tz' | 'sd' | 'sd-in' | 'sd-pk' | 'se' | 'se-fi' | 'se-no' | 'se-se' | 'seh' | 'seh-mz' | 'ses' | 'ses-ml' | 'sg' | 'sg-cf' | 'shi' | 'shi-ma' | 'si' | 'si-lk' | 'sk' | 'sk-sk' | 'sl' | 'sl-si' | 'smn' | 'smn-fi' | 'sn' | 'sn-zw' | 'so' | 'so-dj' | 'so-et' | 'so-ke' | 'so-so' | 'sq' | 'sq-al' | 'sq-mk' | 'sq-xk' | 'sr' | 'sr-ba' | 'sr-cs' | 'sr-me' | 'sr-rs' | 'sr-xk' | 'su' | 'su-id' | 'sv' | 'sv-ax' | 'sv-fi' | 'sv-se' | 'sw' | 'sw-cd' | 'sw-ke' | 'sw-tz' | 'sw-ug' | 'sy' | 'ta' | 'ta-in' | 'ta-lk' | 'ta-my' | 'ta-sg' | 'te' | 'te-in' | 'teo' | 'teo-ke' | 'teo-ug' | 'tg' | 'tg-tj' | 'th' | 'th-th' | 'ti' | 'ti-er' | 'ti-et' | 'tk' | 'tk-tm' | 'tl' | 'to' | 'to-to' | 'tr' | 'tr-cy' | 'tr-tr' | 'tt' | 'tt-ru' | 'twq' | 'twq-ne' | 'tzm' | 'tzm-ma' | 'ug' | 'ug-cn' | 'uk' | 'uk-ua' | 'ur' | 'ur-in' | 'ur-pk' | 'uz' | 'uz-af' | 'uz-uz' | 'vai' | 'vai-lr' | 'vi' | 'vi-vn' | 'vo' | 'vo-001' | 'vun' | 'vun-tz' | 'wae' | 'wae-ch' | 'wo' | 'wo-sn' | 'xh' | 'xh-za' | 'xog' | 'xog-ug' | 'yav' | 'yav-cm' | 'yo' | 'yo-bj' | 'yo-ng' | 'yue' | 'yue-cn' | 'yue-hk' | 'zgh' | 'zgh-ma' | 'zh' | 'zh-cn' | 'zh-hk' | 'zh-mo' | 'zh-sg' | 'zh-tw' | 'zh-hans' | 'zh-hant' | 'zu' | 'zu-za', matchPrefix?: boolean, autocomplete?: boolean, popularityBoost?: number, boostLimit?: number, boostRecent?: string, tableId?: number, hubdbQuery?: string, domain?: Array, type?: Array<'LANDING_PAGE' | 'BLOG_POST' | 'SITE_PAGE' | 'KNOWLEDGE_ARTICLE' | 'LISTING_PAGE'>, pathPrefix?: Array, property?: Array, length?: 'SHORT' | 'LONG', groupId?: Array, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -123,7 +123,7 @@ export class ObservablePublicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -134,7 +134,7 @@ export class ObservablePublicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/cms/source_code/types/ObservableAPI.ts b/codegen/cms/source_code/types/ObservableAPI.ts index 193ce3ba2c..a7b4d157f5 100644 --- a/codegen/cms/source_code/types/ObservableAPI.ts +++ b/codegen/cms/source_code/types/ObservableAPI.ts @@ -32,7 +32,7 @@ export class ObservableContentApi { */ public archiveWithHttpInfo(environment: string, path: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -46,7 +46,7 @@ export class ObservableContentApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -57,7 +57,7 @@ export class ObservableContentApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -97,7 +97,7 @@ export class ObservableContentApi { */ public createWithHttpInfo(environment: string, path: string, file?: HttpFile, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -111,7 +111,7 @@ export class ObservableContentApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -122,7 +122,7 @@ export class ObservableContentApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -163,7 +163,7 @@ export class ObservableContentApi { */ public createOrUpdateWithHttpInfo(environment: string, path: string, file?: HttpFile, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -177,7 +177,7 @@ export class ObservableContentApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -188,7 +188,7 @@ export class ObservableContentApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -228,7 +228,7 @@ export class ObservableContentApi { */ public downloadWithHttpInfo(environment: string, path: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -242,7 +242,7 @@ export class ObservableContentApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -253,7 +253,7 @@ export class ObservableContentApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -309,7 +309,7 @@ export class ObservableExtractApi { */ public doAsyncWithHttpInfo(fileExtractRequest: FileExtractRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -323,7 +323,7 @@ export class ObservableExtractApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -334,7 +334,7 @@ export class ObservableExtractApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -371,7 +371,7 @@ export class ObservableExtractApi { */ public getAsyncStatusWithHttpInfo(taskId: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -385,7 +385,7 @@ export class ObservableExtractApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -396,7 +396,7 @@ export class ObservableExtractApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -453,7 +453,7 @@ export class ObservableMetadataApi { */ public getWithHttpInfo(environment: string, path: string, properties?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -467,7 +467,7 @@ export class ObservableMetadataApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -478,7 +478,7 @@ export class ObservableMetadataApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -536,7 +536,7 @@ export class ObservableValidationApi { */ public doValidateWithHttpInfo(path: string, file?: HttpFile, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -550,7 +550,7 @@ export class ObservableValidationApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -561,7 +561,7 @@ export class ObservableValidationApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/cms/url_redirects/types/ObservableAPI.ts b/codegen/cms/url_redirects/types/ObservableAPI.ts index 3095dbab98..6a1e7970e6 100644 --- a/codegen/cms/url_redirects/types/ObservableAPI.ts +++ b/codegen/cms/url_redirects/types/ObservableAPI.ts @@ -30,7 +30,7 @@ export class ObservableRedirectsApi { */ public archiveWithHttpInfo(urlRedirectId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -44,7 +44,7 @@ export class ObservableRedirectsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -55,7 +55,7 @@ export class ObservableRedirectsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -92,7 +92,7 @@ export class ObservableRedirectsApi { */ public createWithHttpInfo(urlMappingCreateRequestBody: UrlMappingCreateRequestBody, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -106,7 +106,7 @@ export class ObservableRedirectsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -117,7 +117,7 @@ export class ObservableRedirectsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -154,7 +154,7 @@ export class ObservableRedirectsApi { */ public getByIdWithHttpInfo(urlRedirectId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -168,7 +168,7 @@ export class ObservableRedirectsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -179,7 +179,7 @@ export class ObservableRedirectsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -225,7 +225,7 @@ export class ObservableRedirectsApi { */ public getPageWithHttpInfo(createdAt?: Date, createdAfter?: Date, createdBefore?: Date, updatedAt?: Date, updatedAfter?: Date, updatedBefore?: Date, sort?: Array, after?: string, limit?: number, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -239,7 +239,7 @@ export class ObservableRedirectsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -250,7 +250,7 @@ export class ObservableRedirectsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -297,7 +297,7 @@ export class ObservableRedirectsApi { */ public updateWithHttpInfo(urlRedirectId: string, urlMapping: UrlMapping, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -311,7 +311,7 @@ export class ObservableRedirectsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -322,7 +322,7 @@ export class ObservableRedirectsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/communication_preferences/types/ObservableAPI.ts b/codegen/communication_preferences/types/ObservableAPI.ts index 388bdb0258..b585117536 100644 --- a/codegen/communication_preferences/types/ObservableAPI.ts +++ b/codegen/communication_preferences/types/ObservableAPI.ts @@ -30,7 +30,7 @@ export class ObservableDefinitionApi { */ public getPageWithHttpInfo(_options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -44,7 +44,7 @@ export class ObservableDefinitionApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -55,7 +55,7 @@ export class ObservableDefinitionApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -109,7 +109,7 @@ export class ObservableStatusApi { */ public getEmailStatusWithHttpInfo(emailAddress: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -123,7 +123,7 @@ export class ObservableStatusApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -134,7 +134,7 @@ export class ObservableStatusApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -171,7 +171,7 @@ export class ObservableStatusApi { */ public subscribeWithHttpInfo(publicUpdateSubscriptionStatusRequest: PublicUpdateSubscriptionStatusRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -185,7 +185,7 @@ export class ObservableStatusApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -196,7 +196,7 @@ export class ObservableStatusApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -233,7 +233,7 @@ export class ObservableStatusApi { */ public unsubscribeWithHttpInfo(publicUpdateSubscriptionStatusRequest: PublicUpdateSubscriptionStatusRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -247,7 +247,7 @@ export class ObservableStatusApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -258,7 +258,7 @@ export class ObservableStatusApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/conversations/visitor_identification/types/ObservableAPI.ts b/codegen/conversations/visitor_identification/types/ObservableAPI.ts index 83404b7f70..cb7970a006 100644 --- a/codegen/conversations/visitor_identification/types/ObservableAPI.ts +++ b/codegen/conversations/visitor_identification/types/ObservableAPI.ts @@ -29,7 +29,7 @@ export class ObservableGenerateApi { */ public generateTokenWithHttpInfo(identificationTokenGenerationRequest: IdentificationTokenGenerationRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -43,7 +43,7 @@ export class ObservableGenerateApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -54,7 +54,7 @@ export class ObservableGenerateApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/crm/associations/schema/types/ObservableAPI.ts b/codegen/crm/associations/schema/types/ObservableAPI.ts index 19ba300a4b..a95cd39c12 100644 --- a/codegen/crm/associations/schema/types/ObservableAPI.ts +++ b/codegen/crm/associations/schema/types/ObservableAPI.ts @@ -29,7 +29,7 @@ export class ObservableTypesApi { */ public getAllWithHttpInfo(fromObjectType: string, toObjectType: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -43,7 +43,7 @@ export class ObservableTypesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -54,7 +54,7 @@ export class ObservableTypesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/crm/associations/types/ObservableAPI.ts b/codegen/crm/associations/types/ObservableAPI.ts index 66ea150c37..9db90dc4c8 100644 --- a/codegen/crm/associations/types/ObservableAPI.ts +++ b/codegen/crm/associations/types/ObservableAPI.ts @@ -35,7 +35,7 @@ export class ObservableBatchApi { */ public archiveWithHttpInfo(fromObjectType: string, toObjectType: string, batchInputPublicAssociation: BatchInputPublicAssociation, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -49,7 +49,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -60,7 +60,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -101,7 +101,7 @@ export class ObservableBatchApi { */ public createWithHttpInfo(fromObjectType: string, toObjectType: string, batchInputPublicAssociation: BatchInputPublicAssociation, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -115,7 +115,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -126,7 +126,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -167,7 +167,7 @@ export class ObservableBatchApi { */ public readWithHttpInfo(fromObjectType: string, toObjectType: string, batchInputPublicObjectId: BatchInputPublicObjectId, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -181,7 +181,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -192,7 +192,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/crm/associations/v4/schema/types/ObservableAPI.ts b/codegen/crm/associations/v4/schema/types/ObservableAPI.ts index 7c51599a90..d82e5aa906 100644 --- a/codegen/crm/associations/v4/schema/types/ObservableAPI.ts +++ b/codegen/crm/associations/v4/schema/types/ObservableAPI.ts @@ -40,7 +40,7 @@ export class ObservableDefinitionConfigurationsApi { */ public batchCreateWithHttpInfo(fromObjectType: string, toObjectType: string, batchInputPublicAssociationDefinitionConfigurationCreateRequest: BatchInputPublicAssociationDefinitionConfigurationCreateRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -54,7 +54,7 @@ export class ObservableDefinitionConfigurationsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -65,7 +65,7 @@ export class ObservableDefinitionConfigurationsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -106,7 +106,7 @@ export class ObservableDefinitionConfigurationsApi { */ public batchRemoveWithHttpInfo(fromObjectType: string, toObjectType: string, batchInputPublicAssociationSpec: BatchInputPublicAssociationSpec, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -120,7 +120,7 @@ export class ObservableDefinitionConfigurationsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -131,7 +131,7 @@ export class ObservableDefinitionConfigurationsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -172,7 +172,7 @@ export class ObservableDefinitionConfigurationsApi { */ public batchUpdateWithHttpInfo(fromObjectType: string, toObjectType: string, batchInputPublicAssociationDefinitionConfigurationUpdateRequest: BatchInputPublicAssociationDefinitionConfigurationUpdateRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -186,7 +186,7 @@ export class ObservableDefinitionConfigurationsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -197,7 +197,7 @@ export class ObservableDefinitionConfigurationsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -235,7 +235,7 @@ export class ObservableDefinitionConfigurationsApi { */ public getAllWithHttpInfo(_options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -249,7 +249,7 @@ export class ObservableDefinitionConfigurationsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -260,7 +260,7 @@ export class ObservableDefinitionConfigurationsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -297,7 +297,7 @@ export class ObservableDefinitionConfigurationsApi { */ public getAllBetweenTwoObjectTypesWithHttpInfo(fromObjectType: string, toObjectType: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -311,7 +311,7 @@ export class ObservableDefinitionConfigurationsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -322,7 +322,7 @@ export class ObservableDefinitionConfigurationsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -380,7 +380,7 @@ export class ObservableDefinitionsApi { */ public createWithHttpInfo(fromObjectType: string, toObjectType: string, publicAssociationDefinitionCreateRequest: PublicAssociationDefinitionCreateRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -394,7 +394,7 @@ export class ObservableDefinitionsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -405,7 +405,7 @@ export class ObservableDefinitionsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -445,7 +445,7 @@ export class ObservableDefinitionsApi { */ public getAllWithHttpInfo(fromObjectType: string, toObjectType: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -459,7 +459,7 @@ export class ObservableDefinitionsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -470,7 +470,7 @@ export class ObservableDefinitionsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -510,7 +510,7 @@ export class ObservableDefinitionsApi { */ public removeWithHttpInfo(fromObjectType: string, toObjectType: string, associationTypeId: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -524,7 +524,7 @@ export class ObservableDefinitionsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -535,7 +535,7 @@ export class ObservableDefinitionsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -576,7 +576,7 @@ export class ObservableDefinitionsApi { */ public updateWithHttpInfo(fromObjectType: string, toObjectType: string, publicAssociationDefinitionUpdateRequest: PublicAssociationDefinitionUpdateRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -590,7 +590,7 @@ export class ObservableDefinitionsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -601,7 +601,7 @@ export class ObservableDefinitionsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/crm/associations/v4/types/ObservableAPI.ts b/codegen/crm/associations/v4/types/ObservableAPI.ts index 3ba0d59cd1..982b4d6c57 100644 --- a/codegen/crm/associations/v4/types/ObservableAPI.ts +++ b/codegen/crm/associations/v4/types/ObservableAPI.ts @@ -43,7 +43,7 @@ export class ObservableBasicApi { */ public archiveWithHttpInfo(objectType: string, objectId: string, toObjectType: string, toObjectId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -57,7 +57,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -68,7 +68,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -112,7 +112,7 @@ export class ObservableBasicApi { */ public createWithHttpInfo(objectType: string, objectId: string, toObjectType: string, toObjectId: string, associationSpec: Array, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -126,7 +126,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -137,7 +137,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -181,7 +181,7 @@ export class ObservableBasicApi { */ public createDefaultWithHttpInfo(fromObjectType: string, fromObjectId: string, toObjectType: string, toObjectId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -195,7 +195,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -206,7 +206,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -250,7 +250,7 @@ export class ObservableBasicApi { */ public getPageWithHttpInfo(objectType: string, objectId: string, toObjectType: string, after?: string, limit?: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -264,7 +264,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -275,7 +275,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -336,7 +336,7 @@ export class ObservableBatchApi { */ public archiveWithHttpInfo(fromObjectType: string, toObjectType: string, batchInputPublicAssociationMultiArchive: BatchInputPublicAssociationMultiArchive, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -350,7 +350,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -361,7 +361,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -402,7 +402,7 @@ export class ObservableBatchApi { */ public archiveLabelsWithHttpInfo(fromObjectType: string, toObjectType: string, batchInputPublicAssociationMultiPost: BatchInputPublicAssociationMultiPost, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -416,7 +416,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -427,7 +427,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -468,7 +468,7 @@ export class ObservableBatchApi { */ public createWithHttpInfo(fromObjectType: string, toObjectType: string, batchInputPublicAssociationMultiPost: BatchInputPublicAssociationMultiPost, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -482,7 +482,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -493,7 +493,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -534,7 +534,7 @@ export class ObservableBatchApi { */ public createDefaultWithHttpInfo(fromObjectType: string, toObjectType: string, batchInputPublicDefaultAssociationMultiPost: BatchInputPublicDefaultAssociationMultiPost, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -548,7 +548,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -559,7 +559,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -600,7 +600,7 @@ export class ObservableBatchApi { */ public getPageWithHttpInfo(fromObjectType: string, toObjectType: string, batchInputPublicFetchAssociationsBatchRequest: BatchInputPublicFetchAssociationsBatchRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -614,7 +614,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -625,7 +625,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -682,7 +682,7 @@ export class ObservableReportApi { */ public requestWithHttpInfo(userId: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -696,7 +696,7 @@ export class ObservableReportApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -707,7 +707,7 @@ export class ObservableReportApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/crm/commerce/invoices/types/ObservableAPI.ts b/codegen/crm/commerce/invoices/types/ObservableAPI.ts index 41f9b3e96c..2ce89e2944 100644 --- a/codegen/crm/commerce/invoices/types/ObservableAPI.ts +++ b/codegen/crm/commerce/invoices/types/ObservableAPI.ts @@ -43,7 +43,7 @@ export class ObservableBasicApi { */ public archiveWithHttpInfo(invoiceId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -57,7 +57,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -68,7 +68,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -105,7 +105,7 @@ export class ObservableBasicApi { */ public createWithHttpInfo(simplePublicObjectInputForCreate: SimplePublicObjectInputForCreate, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -119,7 +119,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -130,7 +130,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -172,7 +172,7 @@ export class ObservableBasicApi { */ public getByIdWithHttpInfo(invoiceId: string, properties?: Array, propertiesWithHistory?: Array, associations?: Array, archived?: boolean, idProperty?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -186,7 +186,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -197,7 +197,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -244,7 +244,7 @@ export class ObservableBasicApi { */ public getPageWithHttpInfo(limit?: number, after?: string, properties?: Array, propertiesWithHistory?: Array, associations?: Array, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -258,7 +258,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -269,7 +269,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -313,7 +313,7 @@ export class ObservableBasicApi { */ public updateWithHttpInfo(invoiceId: string, simplePublicObjectInput: SimplePublicObjectInput, idProperty?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -327,7 +327,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -338,7 +338,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -394,7 +394,7 @@ export class ObservableBatchApi { */ public archiveWithHttpInfo(batchInputSimplePublicObjectId: BatchInputSimplePublicObjectId, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -408,7 +408,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -419,7 +419,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -454,7 +454,7 @@ export class ObservableBatchApi { */ public createWithHttpInfo(batchInputSimplePublicObjectBatchInputForCreate: BatchInputSimplePublicObjectBatchInputForCreate, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -468,7 +468,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -479,7 +479,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -516,7 +516,7 @@ export class ObservableBatchApi { */ public readWithHttpInfo(batchReadInputSimplePublicObjectId: BatchReadInputSimplePublicObjectId, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -530,7 +530,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -541,7 +541,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -578,7 +578,7 @@ export class ObservableBatchApi { */ public updateWithHttpInfo(batchInputSimplePublicObjectBatchInput: BatchInputSimplePublicObjectBatchInput, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -592,7 +592,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -603,7 +603,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -639,7 +639,7 @@ export class ObservableBatchApi { */ public upsertWithHttpInfo(batchInputSimplePublicObjectBatchInputUpsert: BatchInputSimplePublicObjectBatchInputUpsert, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -653,7 +653,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -664,7 +664,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -719,7 +719,7 @@ export class ObservableSearchApi { */ public doSearchWithHttpInfo(publicObjectSearchRequest: PublicObjectSearchRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -733,7 +733,7 @@ export class ObservableSearchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -744,7 +744,7 @@ export class ObservableSearchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/crm/companies/types/ObservableAPI.ts b/codegen/crm/companies/types/ObservableAPI.ts index 970925a9ea..e5efc3f580 100644 --- a/codegen/crm/companies/types/ObservableAPI.ts +++ b/codegen/crm/companies/types/ObservableAPI.ts @@ -44,7 +44,7 @@ export class ObservableBasicApi { */ public archiveWithHttpInfo(companyId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -58,7 +58,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -69,7 +69,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -106,7 +106,7 @@ export class ObservableBasicApi { */ public createWithHttpInfo(simplePublicObjectInputForCreate: SimplePublicObjectInputForCreate, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -120,7 +120,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -131,7 +131,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -173,7 +173,7 @@ export class ObservableBasicApi { */ public getByIdWithHttpInfo(companyId: string, properties?: Array, propertiesWithHistory?: Array, associations?: Array, archived?: boolean, idProperty?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -187,7 +187,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -198,7 +198,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -245,7 +245,7 @@ export class ObservableBasicApi { */ public getPageWithHttpInfo(limit?: number, after?: string, properties?: Array, propertiesWithHistory?: Array, associations?: Array, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -259,7 +259,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -270,7 +270,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -312,7 +312,7 @@ export class ObservableBasicApi { */ public mergeWithHttpInfo(publicMergeInput: PublicMergeInput, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -326,7 +326,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -337,7 +337,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -376,7 +376,7 @@ export class ObservableBasicApi { */ public updateWithHttpInfo(companyId: string, simplePublicObjectInput: SimplePublicObjectInput, idProperty?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -390,7 +390,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -401,7 +401,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -458,7 +458,7 @@ export class ObservableBatchApi { */ public archiveWithHttpInfo(batchInputSimplePublicObjectId: BatchInputSimplePublicObjectId, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -472,7 +472,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -483,7 +483,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -520,7 +520,7 @@ export class ObservableBatchApi { */ public createWithHttpInfo(batchInputSimplePublicObjectBatchInputForCreate: BatchInputSimplePublicObjectBatchInputForCreate, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -534,7 +534,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -545,7 +545,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -583,7 +583,7 @@ export class ObservableBatchApi { */ public readWithHttpInfo(batchReadInputSimplePublicObjectId: BatchReadInputSimplePublicObjectId, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -597,7 +597,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -608,7 +608,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -646,7 +646,7 @@ export class ObservableBatchApi { */ public updateWithHttpInfo(batchInputSimplePublicObjectBatchInput: BatchInputSimplePublicObjectBatchInput, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -660,7 +660,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -671,7 +671,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -708,7 +708,7 @@ export class ObservableBatchApi { */ public upsertWithHttpInfo(batchInputSimplePublicObjectBatchInputUpsert: BatchInputSimplePublicObjectBatchInputUpsert, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -722,7 +722,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -733,7 +733,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -788,7 +788,7 @@ export class ObservableSearchApi { */ public doSearchWithHttpInfo(publicObjectSearchRequest: PublicObjectSearchRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -802,7 +802,7 @@ export class ObservableSearchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -813,7 +813,7 @@ export class ObservableSearchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/crm/contacts/types/ObservableAPI.ts b/codegen/crm/contacts/types/ObservableAPI.ts index e51db4b240..ae04355e2c 100644 --- a/codegen/crm/contacts/types/ObservableAPI.ts +++ b/codegen/crm/contacts/types/ObservableAPI.ts @@ -45,7 +45,7 @@ export class ObservableBasicApi { */ public archiveWithHttpInfo(contactId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -59,7 +59,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -70,7 +70,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -107,7 +107,7 @@ export class ObservableBasicApi { */ public createWithHttpInfo(simplePublicObjectInputForCreate: SimplePublicObjectInputForCreate, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -121,7 +121,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -132,7 +132,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -174,7 +174,7 @@ export class ObservableBasicApi { */ public getByIdWithHttpInfo(contactId: string, properties?: Array, propertiesWithHistory?: Array, associations?: Array, archived?: boolean, idProperty?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -188,7 +188,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -199,7 +199,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -246,7 +246,7 @@ export class ObservableBasicApi { */ public getPageWithHttpInfo(limit?: number, after?: string, properties?: Array, propertiesWithHistory?: Array, associations?: Array, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -260,7 +260,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -271,7 +271,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -313,7 +313,7 @@ export class ObservableBasicApi { */ public mergeWithHttpInfo(publicMergeInput: PublicMergeInput, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -327,7 +327,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -338,7 +338,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -375,7 +375,7 @@ export class ObservableBasicApi { */ public purgeWithHttpInfo(publicGdprDeleteInput: PublicGdprDeleteInput, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -389,7 +389,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -400,7 +400,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -439,7 +439,7 @@ export class ObservableBasicApi { */ public updateWithHttpInfo(contactId: string, simplePublicObjectInput: SimplePublicObjectInput, idProperty?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -453,7 +453,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -464,7 +464,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -521,7 +521,7 @@ export class ObservableBatchApi { */ public archiveWithHttpInfo(batchInputSimplePublicObjectId: BatchInputSimplePublicObjectId, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -535,7 +535,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -546,7 +546,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -583,7 +583,7 @@ export class ObservableBatchApi { */ public createWithHttpInfo(batchInputSimplePublicObjectBatchInputForCreate: BatchInputSimplePublicObjectBatchInputForCreate, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -597,7 +597,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -608,7 +608,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -646,7 +646,7 @@ export class ObservableBatchApi { */ public readWithHttpInfo(batchReadInputSimplePublicObjectId: BatchReadInputSimplePublicObjectId, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -660,7 +660,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -671,7 +671,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -709,7 +709,7 @@ export class ObservableBatchApi { */ public updateWithHttpInfo(batchInputSimplePublicObjectBatchInput: BatchInputSimplePublicObjectBatchInput, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -723,7 +723,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -734,7 +734,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -771,7 +771,7 @@ export class ObservableBatchApi { */ public upsertWithHttpInfo(batchInputSimplePublicObjectBatchInputUpsert: BatchInputSimplePublicObjectBatchInputUpsert, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -785,7 +785,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -796,7 +796,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -851,7 +851,7 @@ export class ObservableSearchApi { */ public doSearchWithHttpInfo(publicObjectSearchRequest: PublicObjectSearchRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -865,7 +865,7 @@ export class ObservableSearchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -876,7 +876,7 @@ export class ObservableSearchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/crm/deals/types/ObservableAPI.ts b/codegen/crm/deals/types/ObservableAPI.ts index c4f629ce7b..10684f2d8c 100644 --- a/codegen/crm/deals/types/ObservableAPI.ts +++ b/codegen/crm/deals/types/ObservableAPI.ts @@ -44,7 +44,7 @@ export class ObservableBasicApi { */ public archiveWithHttpInfo(dealId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -58,7 +58,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -69,7 +69,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -106,7 +106,7 @@ export class ObservableBasicApi { */ public createWithHttpInfo(simplePublicObjectInputForCreate: SimplePublicObjectInputForCreate, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -120,7 +120,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -131,7 +131,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -173,7 +173,7 @@ export class ObservableBasicApi { */ public getByIdWithHttpInfo(dealId: string, properties?: Array, propertiesWithHistory?: Array, associations?: Array, archived?: boolean, idProperty?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -187,7 +187,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -198,7 +198,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -245,7 +245,7 @@ export class ObservableBasicApi { */ public getPageWithHttpInfo(limit?: number, after?: string, properties?: Array, propertiesWithHistory?: Array, associations?: Array, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -259,7 +259,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -270,7 +270,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -311,7 +311,7 @@ export class ObservableBasicApi { */ public mergeWithHttpInfo(publicMergeInput: PublicMergeInput, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -325,7 +325,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -336,7 +336,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -374,7 +374,7 @@ export class ObservableBasicApi { */ public updateWithHttpInfo(dealId: string, simplePublicObjectInput: SimplePublicObjectInput, idProperty?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -388,7 +388,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -399,7 +399,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -455,7 +455,7 @@ export class ObservableBatchApi { */ public archiveWithHttpInfo(batchInputSimplePublicObjectId: BatchInputSimplePublicObjectId, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -469,7 +469,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -480,7 +480,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -515,7 +515,7 @@ export class ObservableBatchApi { */ public createWithHttpInfo(batchInputSimplePublicObjectBatchInputForCreate: BatchInputSimplePublicObjectBatchInputForCreate, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -529,7 +529,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -540,7 +540,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -577,7 +577,7 @@ export class ObservableBatchApi { */ public readWithHttpInfo(batchReadInputSimplePublicObjectId: BatchReadInputSimplePublicObjectId, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -591,7 +591,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -602,7 +602,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -639,7 +639,7 @@ export class ObservableBatchApi { */ public updateWithHttpInfo(batchInputSimplePublicObjectBatchInput: BatchInputSimplePublicObjectBatchInput, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -653,7 +653,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -664,7 +664,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -700,7 +700,7 @@ export class ObservableBatchApi { */ public upsertWithHttpInfo(batchInputSimplePublicObjectBatchInputUpsert: BatchInputSimplePublicObjectBatchInputUpsert, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -714,7 +714,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -725,7 +725,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -778,7 +778,7 @@ export class ObservableSearchApi { */ public doSearchWithHttpInfo(publicObjectSearchRequest: PublicObjectSearchRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -792,7 +792,7 @@ export class ObservableSearchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -803,7 +803,7 @@ export class ObservableSearchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/crm/exports/types/ObservableAPI.ts b/codegen/crm/exports/types/ObservableAPI.ts index 3bfb01f29f..2459150bc0 100644 --- a/codegen/crm/exports/types/ObservableAPI.ts +++ b/codegen/crm/exports/types/ObservableAPI.ts @@ -30,7 +30,7 @@ export class ObservablePublicExportsApi { */ public getStatusWithHttpInfo(taskId: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -44,7 +44,7 @@ export class ObservablePublicExportsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -55,7 +55,7 @@ export class ObservablePublicExportsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -92,7 +92,7 @@ export class ObservablePublicExportsApi { */ public startWithHttpInfo(publicExportRequest: PublicExportRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -106,7 +106,7 @@ export class ObservablePublicExportsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -117,7 +117,7 @@ export class ObservablePublicExportsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/crm/extensions/calling/types/ObservableAPI.ts b/codegen/crm/extensions/calling/types/ObservableAPI.ts index 6b35219769..d273f920c4 100644 --- a/codegen/crm/extensions/calling/types/ObservableAPI.ts +++ b/codegen/crm/extensions/calling/types/ObservableAPI.ts @@ -37,7 +37,7 @@ export class ObservableChannelConnectionSettingsApi { */ public archiveWithHttpInfo(appId: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -51,7 +51,7 @@ export class ObservableChannelConnectionSettingsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -62,7 +62,7 @@ export class ObservableChannelConnectionSettingsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -100,7 +100,7 @@ export class ObservableChannelConnectionSettingsApi { */ public createWithHttpInfo(appId: number, channelConnectionSettingsRequest: ChannelConnectionSettingsRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -114,7 +114,7 @@ export class ObservableChannelConnectionSettingsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -125,7 +125,7 @@ export class ObservableChannelConnectionSettingsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -163,7 +163,7 @@ export class ObservableChannelConnectionSettingsApi { */ public getByIdWithHttpInfo(appId: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -177,7 +177,7 @@ export class ObservableChannelConnectionSettingsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -188,7 +188,7 @@ export class ObservableChannelConnectionSettingsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -226,7 +226,7 @@ export class ObservableChannelConnectionSettingsApi { */ public updateWithHttpInfo(appId: number, channelConnectionSettingsPatchRequest: ChannelConnectionSettingsPatchRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -240,7 +240,7 @@ export class ObservableChannelConnectionSettingsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -251,7 +251,7 @@ export class ObservableChannelConnectionSettingsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -307,7 +307,7 @@ export class ObservableRecordingSettingsApi { */ public getUrlFormatWithHttpInfo(appId: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -321,7 +321,7 @@ export class ObservableRecordingSettingsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -332,7 +332,7 @@ export class ObservableRecordingSettingsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -369,7 +369,7 @@ export class ObservableRecordingSettingsApi { */ public markAsReadyWithHttpInfo(markRecordingAsReadyRequest: MarkRecordingAsReadyRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -383,7 +383,7 @@ export class ObservableRecordingSettingsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -394,7 +394,7 @@ export class ObservableRecordingSettingsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -432,7 +432,7 @@ export class ObservableRecordingSettingsApi { */ public registerUrlFormatWithHttpInfo(appId: number, recordingSettingsRequest: RecordingSettingsRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -446,7 +446,7 @@ export class ObservableRecordingSettingsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -457,7 +457,7 @@ export class ObservableRecordingSettingsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -496,7 +496,7 @@ export class ObservableRecordingSettingsApi { */ public updateUrlFormatWithHttpInfo(appId: number, recordingSettingsPatchRequest: RecordingSettingsPatchRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -510,7 +510,7 @@ export class ObservableRecordingSettingsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -521,7 +521,7 @@ export class ObservableRecordingSettingsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -577,7 +577,7 @@ export class ObservableSettingsApi { */ public archiveWithHttpInfo(appId: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -591,7 +591,7 @@ export class ObservableSettingsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -602,7 +602,7 @@ export class ObservableSettingsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -640,7 +640,7 @@ export class ObservableSettingsApi { */ public createWithHttpInfo(appId: number, settingsRequest: SettingsRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -654,7 +654,7 @@ export class ObservableSettingsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -665,7 +665,7 @@ export class ObservableSettingsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -703,7 +703,7 @@ export class ObservableSettingsApi { */ public getByIdWithHttpInfo(appId: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -717,7 +717,7 @@ export class ObservableSettingsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -728,7 +728,7 @@ export class ObservableSettingsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -766,7 +766,7 @@ export class ObservableSettingsApi { */ public updateWithHttpInfo(appId: number, settingsPatchRequest: SettingsPatchRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -780,7 +780,7 @@ export class ObservableSettingsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -791,7 +791,7 @@ export class ObservableSettingsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/crm/extensions/cards/types/ObservableAPI.ts b/codegen/crm/extensions/cards/types/ObservableAPI.ts index 0d55ecc2fe..8dc3925f2b 100644 --- a/codegen/crm/extensions/cards/types/ObservableAPI.ts +++ b/codegen/crm/extensions/cards/types/ObservableAPI.ts @@ -33,7 +33,7 @@ export class ObservableCardsApi { */ public archiveWithHttpInfo(cardId: string, appId: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -47,7 +47,7 @@ export class ObservableCardsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -58,7 +58,7 @@ export class ObservableCardsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -97,7 +97,7 @@ export class ObservableCardsApi { */ public createWithHttpInfo(appId: number, cardCreateRequest: CardCreateRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -111,7 +111,7 @@ export class ObservableCardsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -122,7 +122,7 @@ export class ObservableCardsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -160,7 +160,7 @@ export class ObservableCardsApi { */ public getAllWithHttpInfo(appId: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -174,7 +174,7 @@ export class ObservableCardsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -185,7 +185,7 @@ export class ObservableCardsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -223,7 +223,7 @@ export class ObservableCardsApi { */ public getByIdWithHttpInfo(cardId: string, appId: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -237,7 +237,7 @@ export class ObservableCardsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -248,7 +248,7 @@ export class ObservableCardsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -288,7 +288,7 @@ export class ObservableCardsApi { */ public updateWithHttpInfo(cardId: string, appId: number, cardPatchRequest: CardPatchRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -302,7 +302,7 @@ export class ObservableCardsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -313,7 +313,7 @@ export class ObservableCardsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -369,7 +369,7 @@ export class ObservableSampleResponseApi { */ public getCardsSampleResponseWithHttpInfo(_options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -383,7 +383,7 @@ export class ObservableSampleResponseApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -394,7 +394,7 @@ export class ObservableSampleResponseApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/crm/extensions/videoconferencing/types/ObservableAPI.ts b/codegen/crm/extensions/videoconferencing/types/ObservableAPI.ts index 38dca8d05d..6a7bc6a9a8 100644 --- a/codegen/crm/extensions/videoconferencing/types/ObservableAPI.ts +++ b/codegen/crm/extensions/videoconferencing/types/ObservableAPI.ts @@ -28,7 +28,7 @@ export class ObservableSettingsApi { */ public archiveWithHttpInfo(appId: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -42,7 +42,7 @@ export class ObservableSettingsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -53,7 +53,7 @@ export class ObservableSettingsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -90,7 +90,7 @@ export class ObservableSettingsApi { */ public getByIdWithHttpInfo(appId: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -104,7 +104,7 @@ export class ObservableSettingsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -115,7 +115,7 @@ export class ObservableSettingsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -153,7 +153,7 @@ export class ObservableSettingsApi { */ public replaceWithHttpInfo(appId: number, externalSettings: ExternalSettings, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -167,7 +167,7 @@ export class ObservableSettingsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -178,7 +178,7 @@ export class ObservableSettingsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/crm/imports/types/ObservableAPI.ts b/codegen/crm/imports/types/ObservableAPI.ts index da56d486b4..efd233372e 100644 --- a/codegen/crm/imports/types/ObservableAPI.ts +++ b/codegen/crm/imports/types/ObservableAPI.ts @@ -31,7 +31,7 @@ export class ObservableCoreApi { */ public cancelWithHttpInfo(importId: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -45,7 +45,7 @@ export class ObservableCoreApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -56,7 +56,7 @@ export class ObservableCoreApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -94,7 +94,7 @@ export class ObservableCoreApi { */ public createWithHttpInfo(files?: HttpFile, importRequest?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -108,7 +108,7 @@ export class ObservableCoreApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -119,7 +119,7 @@ export class ObservableCoreApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -157,7 +157,7 @@ export class ObservableCoreApi { */ public getByIdWithHttpInfo(importId: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -171,7 +171,7 @@ export class ObservableCoreApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -182,7 +182,7 @@ export class ObservableCoreApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -221,7 +221,7 @@ export class ObservableCoreApi { */ public getPageWithHttpInfo(after?: string, before?: string, limit?: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -235,7 +235,7 @@ export class ObservableCoreApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -246,7 +246,7 @@ export class ObservableCoreApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -305,7 +305,7 @@ export class ObservablePublicImportsApi { */ public getErrorsWithHttpInfo(importId: number, after?: string, limit?: number, includeErrorMessage?: boolean, includeRowData?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -319,7 +319,7 @@ export class ObservablePublicImportsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -330,7 +330,7 @@ export class ObservablePublicImportsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/crm/line_items/types/ObservableAPI.ts b/codegen/crm/line_items/types/ObservableAPI.ts index 100694a4b9..633074b143 100644 --- a/codegen/crm/line_items/types/ObservableAPI.ts +++ b/codegen/crm/line_items/types/ObservableAPI.ts @@ -43,7 +43,7 @@ export class ObservableBasicApi { */ public archiveWithHttpInfo(lineItemId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -57,7 +57,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -68,7 +68,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -105,7 +105,7 @@ export class ObservableBasicApi { */ public createWithHttpInfo(simplePublicObjectInputForCreate: SimplePublicObjectInputForCreate, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -119,7 +119,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -130,7 +130,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -172,7 +172,7 @@ export class ObservableBasicApi { */ public getByIdWithHttpInfo(lineItemId: string, properties?: Array, propertiesWithHistory?: Array, associations?: Array, archived?: boolean, idProperty?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -186,7 +186,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -197,7 +197,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -244,7 +244,7 @@ export class ObservableBasicApi { */ public getPageWithHttpInfo(limit?: number, after?: string, properties?: Array, propertiesWithHistory?: Array, associations?: Array, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -258,7 +258,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -269,7 +269,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -313,7 +313,7 @@ export class ObservableBasicApi { */ public updateWithHttpInfo(lineItemId: string, simplePublicObjectInput: SimplePublicObjectInput, idProperty?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -327,7 +327,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -338,7 +338,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -394,7 +394,7 @@ export class ObservableBatchApi { */ public archiveWithHttpInfo(batchInputSimplePublicObjectId: BatchInputSimplePublicObjectId, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -408,7 +408,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -419,7 +419,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -454,7 +454,7 @@ export class ObservableBatchApi { */ public createWithHttpInfo(batchInputSimplePublicObjectBatchInputForCreate: BatchInputSimplePublicObjectBatchInputForCreate, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -468,7 +468,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -479,7 +479,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -516,7 +516,7 @@ export class ObservableBatchApi { */ public readWithHttpInfo(batchReadInputSimplePublicObjectId: BatchReadInputSimplePublicObjectId, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -530,7 +530,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -541,7 +541,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -578,7 +578,7 @@ export class ObservableBatchApi { */ public updateWithHttpInfo(batchInputSimplePublicObjectBatchInput: BatchInputSimplePublicObjectBatchInput, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -592,7 +592,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -603,7 +603,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -639,7 +639,7 @@ export class ObservableBatchApi { */ public upsertWithHttpInfo(batchInputSimplePublicObjectBatchInputUpsert: BatchInputSimplePublicObjectBatchInputUpsert, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -653,7 +653,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -664,7 +664,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -719,7 +719,7 @@ export class ObservableSearchApi { */ public doSearchWithHttpInfo(publicObjectSearchRequest: PublicObjectSearchRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -733,7 +733,7 @@ export class ObservableSearchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -744,7 +744,7 @@ export class ObservableSearchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/crm/lists/types/ObservableAPI.ts b/codegen/crm/lists/types/ObservableAPI.ts index 66714835a4..f4b6862607 100644 --- a/codegen/crm/lists/types/ObservableAPI.ts +++ b/codegen/crm/lists/types/ObservableAPI.ts @@ -47,7 +47,7 @@ export class ObservableFoldersApi { */ public createWithHttpInfo(listFolderCreateRequest: ListFolderCreateRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -61,7 +61,7 @@ export class ObservableFoldersApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -72,7 +72,7 @@ export class ObservableFoldersApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -109,7 +109,7 @@ export class ObservableFoldersApi { */ public getAllWithHttpInfo(folderId?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -123,7 +123,7 @@ export class ObservableFoldersApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -134,7 +134,7 @@ export class ObservableFoldersApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -172,7 +172,7 @@ export class ObservableFoldersApi { */ public moveWithHttpInfo(folderId: string, newParentFolderId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -186,7 +186,7 @@ export class ObservableFoldersApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -197,7 +197,7 @@ export class ObservableFoldersApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -235,7 +235,7 @@ export class ObservableFoldersApi { */ public moveListWithHttpInfo(listMoveRequest: ListMoveRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -249,7 +249,7 @@ export class ObservableFoldersApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -260,7 +260,7 @@ export class ObservableFoldersApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -297,7 +297,7 @@ export class ObservableFoldersApi { */ public removeWithHttpInfo(folderId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -311,7 +311,7 @@ export class ObservableFoldersApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -322,7 +322,7 @@ export class ObservableFoldersApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -360,7 +360,7 @@ export class ObservableFoldersApi { */ public renameWithHttpInfo(folderId: string, newFolderName?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -374,7 +374,7 @@ export class ObservableFoldersApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -385,7 +385,7 @@ export class ObservableFoldersApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -441,7 +441,7 @@ export class ObservableListsApi { */ public cancelConversionWithHttpInfo(listId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -455,7 +455,7 @@ export class ObservableListsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -466,7 +466,7 @@ export class ObservableListsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -503,7 +503,7 @@ export class ObservableListsApi { */ public createWithHttpInfo(listCreateRequest: ListCreateRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -517,7 +517,7 @@ export class ObservableListsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -528,7 +528,7 @@ export class ObservableListsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -565,7 +565,7 @@ export class ObservableListsApi { */ public doSearchWithHttpInfo(listSearchRequest: ListSearchRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -579,7 +579,7 @@ export class ObservableListsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -590,7 +590,7 @@ export class ObservableListsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -628,7 +628,7 @@ export class ObservableListsApi { */ public getAllWithHttpInfo(listIds?: Array, includeFilters?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -642,7 +642,7 @@ export class ObservableListsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -653,7 +653,7 @@ export class ObservableListsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -692,7 +692,7 @@ export class ObservableListsApi { */ public getByIdWithHttpInfo(listId: string, includeFilters?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -706,7 +706,7 @@ export class ObservableListsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -717,7 +717,7 @@ export class ObservableListsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -757,7 +757,7 @@ export class ObservableListsApi { */ public getByNameWithHttpInfo(listName: string, objectTypeId: string, includeFilters?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -771,7 +771,7 @@ export class ObservableListsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -782,7 +782,7 @@ export class ObservableListsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -821,7 +821,7 @@ export class ObservableListsApi { */ public getConversionDetailsWithHttpInfo(listId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -835,7 +835,7 @@ export class ObservableListsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -846,7 +846,7 @@ export class ObservableListsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -883,7 +883,7 @@ export class ObservableListsApi { */ public removeWithHttpInfo(listId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -897,7 +897,7 @@ export class ObservableListsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -908,7 +908,7 @@ export class ObservableListsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -945,7 +945,7 @@ export class ObservableListsApi { */ public restoreWithHttpInfo(listId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -959,7 +959,7 @@ export class ObservableListsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -970,7 +970,7 @@ export class ObservableListsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1008,7 +1008,7 @@ export class ObservableListsApi { */ public scheduleOrUpdateConversionWithHttpInfo(listId: string, publicListConversionTime: PublicListConversionTime, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1022,7 +1022,7 @@ export class ObservableListsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1033,7 +1033,7 @@ export class ObservableListsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1073,7 +1073,7 @@ export class ObservableListsApi { */ public updateListFiltersWithHttpInfo(listId: string, listFilterUpdateRequest: ListFilterUpdateRequest, enrollObjectsInWorkflows?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1087,7 +1087,7 @@ export class ObservableListsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1098,7 +1098,7 @@ export class ObservableListsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1139,7 +1139,7 @@ export class ObservableListsApi { */ public updateNameWithHttpInfo(listId: string, listName?: string, includeFilters?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1153,7 +1153,7 @@ export class ObservableListsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1164,7 +1164,7 @@ export class ObservableListsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1221,7 +1221,7 @@ export class ObservableMappingApi { */ public translateLegacyListIdToListIdWithHttpInfo(legacyListId?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1235,7 +1235,7 @@ export class ObservableMappingApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1246,7 +1246,7 @@ export class ObservableMappingApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1283,7 +1283,7 @@ export class ObservableMappingApi { */ public translateLegacyListIdToListIdBatchWithHttpInfo(requestBody: Array, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1297,7 +1297,7 @@ export class ObservableMappingApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1308,7 +1308,7 @@ export class ObservableMappingApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1364,7 +1364,7 @@ export class ObservableMembershipsApi { */ public addWithHttpInfo(listId: string, requestBody: Array, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1378,7 +1378,7 @@ export class ObservableMembershipsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1389,7 +1389,7 @@ export class ObservableMembershipsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1428,7 +1428,7 @@ export class ObservableMembershipsApi { */ public addAllFromListWithHttpInfo(listId: string, sourceListId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1442,7 +1442,7 @@ export class ObservableMembershipsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1453,7 +1453,7 @@ export class ObservableMembershipsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1492,7 +1492,7 @@ export class ObservableMembershipsApi { */ public addAndRemoveWithHttpInfo(listId: string, membershipChangeRequest: MembershipChangeRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1506,7 +1506,7 @@ export class ObservableMembershipsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1517,7 +1517,7 @@ export class ObservableMembershipsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1556,7 +1556,7 @@ export class ObservableMembershipsApi { */ public getListsWithHttpInfo(objectTypeId: string, recordId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1570,7 +1570,7 @@ export class ObservableMembershipsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1581,7 +1581,7 @@ export class ObservableMembershipsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1622,7 +1622,7 @@ export class ObservableMembershipsApi { */ public getPageWithHttpInfo(listId: string, after?: string, before?: string, limit?: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1636,7 +1636,7 @@ export class ObservableMembershipsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1647,7 +1647,7 @@ export class ObservableMembershipsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1690,7 +1690,7 @@ export class ObservableMembershipsApi { */ public getPageOrderedByAddedToListDateWithHttpInfo(listId: string, after?: string, before?: string, limit?: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1704,7 +1704,7 @@ export class ObservableMembershipsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1715,7 +1715,7 @@ export class ObservableMembershipsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1756,7 +1756,7 @@ export class ObservableMembershipsApi { */ public removeWithHttpInfo(listId: string, requestBody: Array, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1770,7 +1770,7 @@ export class ObservableMembershipsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1781,7 +1781,7 @@ export class ObservableMembershipsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1819,7 +1819,7 @@ export class ObservableMembershipsApi { */ public removeAllWithHttpInfo(listId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1833,7 +1833,7 @@ export class ObservableMembershipsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1844,7 +1844,7 @@ export class ObservableMembershipsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/crm/objects/calls/types/ObservableAPI.ts b/codegen/crm/objects/calls/types/ObservableAPI.ts index 5eb1bbd2bc..9c8d2a0bb0 100644 --- a/codegen/crm/objects/calls/types/ObservableAPI.ts +++ b/codegen/crm/objects/calls/types/ObservableAPI.ts @@ -43,7 +43,7 @@ export class ObservableBasicApi { */ public archiveWithHttpInfo(callId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -57,7 +57,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -68,7 +68,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -105,7 +105,7 @@ export class ObservableBasicApi { */ public createWithHttpInfo(simplePublicObjectInputForCreate: SimplePublicObjectInputForCreate, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -119,7 +119,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -130,7 +130,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -172,7 +172,7 @@ export class ObservableBasicApi { */ public getByIdWithHttpInfo(callId: string, properties?: Array, propertiesWithHistory?: Array, associations?: Array, archived?: boolean, idProperty?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -186,7 +186,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -197,7 +197,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -244,7 +244,7 @@ export class ObservableBasicApi { */ public getPageWithHttpInfo(limit?: number, after?: string, properties?: Array, propertiesWithHistory?: Array, associations?: Array, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -258,7 +258,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -269,7 +269,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -313,7 +313,7 @@ export class ObservableBasicApi { */ public updateWithHttpInfo(callId: string, simplePublicObjectInput: SimplePublicObjectInput, idProperty?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -327,7 +327,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -338,7 +338,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -395,7 +395,7 @@ export class ObservableBatchApi { */ public archiveWithHttpInfo(batchInputSimplePublicObjectId: BatchInputSimplePublicObjectId, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -409,7 +409,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -420,7 +420,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -457,7 +457,7 @@ export class ObservableBatchApi { */ public createWithHttpInfo(batchInputSimplePublicObjectBatchInputForCreate: BatchInputSimplePublicObjectBatchInputForCreate, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -471,7 +471,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -482,7 +482,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -520,7 +520,7 @@ export class ObservableBatchApi { */ public readWithHttpInfo(batchReadInputSimplePublicObjectId: BatchReadInputSimplePublicObjectId, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -534,7 +534,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -545,7 +545,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -583,7 +583,7 @@ export class ObservableBatchApi { */ public updateWithHttpInfo(batchInputSimplePublicObjectBatchInput: BatchInputSimplePublicObjectBatchInput, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -597,7 +597,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -608,7 +608,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -645,7 +645,7 @@ export class ObservableBatchApi { */ public upsertWithHttpInfo(batchInputSimplePublicObjectBatchInputUpsert: BatchInputSimplePublicObjectBatchInputUpsert, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -659,7 +659,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -670,7 +670,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -725,7 +725,7 @@ export class ObservableSearchApi { */ public doSearchWithHttpInfo(publicObjectSearchRequest: PublicObjectSearchRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -739,7 +739,7 @@ export class ObservableSearchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -750,7 +750,7 @@ export class ObservableSearchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/crm/objects/communications/types/ObservableAPI.ts b/codegen/crm/objects/communications/types/ObservableAPI.ts index 66df974eee..199081d218 100644 --- a/codegen/crm/objects/communications/types/ObservableAPI.ts +++ b/codegen/crm/objects/communications/types/ObservableAPI.ts @@ -43,7 +43,7 @@ export class ObservableBasicApi { */ public archiveWithHttpInfo(communicationId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -57,7 +57,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -68,7 +68,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -105,7 +105,7 @@ export class ObservableBasicApi { */ public createWithHttpInfo(simplePublicObjectInputForCreate: SimplePublicObjectInputForCreate, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -119,7 +119,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -130,7 +130,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -172,7 +172,7 @@ export class ObservableBasicApi { */ public getByIdWithHttpInfo(communicationId: string, properties?: Array, propertiesWithHistory?: Array, associations?: Array, archived?: boolean, idProperty?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -186,7 +186,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -197,7 +197,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -244,7 +244,7 @@ export class ObservableBasicApi { */ public getPageWithHttpInfo(limit?: number, after?: string, properties?: Array, propertiesWithHistory?: Array, associations?: Array, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -258,7 +258,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -269,7 +269,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -313,7 +313,7 @@ export class ObservableBasicApi { */ public updateWithHttpInfo(communicationId: string, simplePublicObjectInput: SimplePublicObjectInput, idProperty?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -327,7 +327,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -338,7 +338,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -395,7 +395,7 @@ export class ObservableBatchApi { */ public archiveWithHttpInfo(batchInputSimplePublicObjectId: BatchInputSimplePublicObjectId, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -409,7 +409,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -420,7 +420,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -457,7 +457,7 @@ export class ObservableBatchApi { */ public createWithHttpInfo(batchInputSimplePublicObjectBatchInputForCreate: BatchInputSimplePublicObjectBatchInputForCreate, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -471,7 +471,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -482,7 +482,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -520,7 +520,7 @@ export class ObservableBatchApi { */ public readWithHttpInfo(batchReadInputSimplePublicObjectId: BatchReadInputSimplePublicObjectId, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -534,7 +534,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -545,7 +545,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -583,7 +583,7 @@ export class ObservableBatchApi { */ public updateWithHttpInfo(batchInputSimplePublicObjectBatchInput: BatchInputSimplePublicObjectBatchInput, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -597,7 +597,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -608,7 +608,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -645,7 +645,7 @@ export class ObservableBatchApi { */ public upsertWithHttpInfo(batchInputSimplePublicObjectBatchInputUpsert: BatchInputSimplePublicObjectBatchInputUpsert, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -659,7 +659,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -670,7 +670,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -725,7 +725,7 @@ export class ObservableSearchApi { */ public doSearchWithHttpInfo(publicObjectSearchRequest: PublicObjectSearchRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -739,7 +739,7 @@ export class ObservableSearchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -750,7 +750,7 @@ export class ObservableSearchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/crm/objects/deal_splits/types/ObservableAPI.ts b/codegen/crm/objects/deal_splits/types/ObservableAPI.ts index 6f25531c55..bc75856457 100644 --- a/codegen/crm/objects/deal_splits/types/ObservableAPI.ts +++ b/codegen/crm/objects/deal_splits/types/ObservableAPI.ts @@ -30,7 +30,7 @@ export class ObservableBatchApi { */ public readWithHttpInfo(batchInputPublicObjectId: BatchInputPublicObjectId, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -44,7 +44,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -55,7 +55,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -90,7 +90,7 @@ export class ObservableBatchApi { */ public upsertWithHttpInfo(publicDealSplitsBatchCreateRequest: PublicDealSplitsBatchCreateRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -104,7 +104,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -115,7 +115,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/crm/objects/emails/types/ObservableAPI.ts b/codegen/crm/objects/emails/types/ObservableAPI.ts index aa224a5a1d..1bcaadd40f 100644 --- a/codegen/crm/objects/emails/types/ObservableAPI.ts +++ b/codegen/crm/objects/emails/types/ObservableAPI.ts @@ -43,7 +43,7 @@ export class ObservableBasicApi { */ public archiveWithHttpInfo(emailId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -57,7 +57,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -68,7 +68,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -105,7 +105,7 @@ export class ObservableBasicApi { */ public createWithHttpInfo(simplePublicObjectInputForCreate: SimplePublicObjectInputForCreate, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -119,7 +119,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -130,7 +130,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -172,7 +172,7 @@ export class ObservableBasicApi { */ public getByIdWithHttpInfo(emailId: string, properties?: Array, propertiesWithHistory?: Array, associations?: Array, archived?: boolean, idProperty?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -186,7 +186,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -197,7 +197,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -244,7 +244,7 @@ export class ObservableBasicApi { */ public getPageWithHttpInfo(limit?: number, after?: string, properties?: Array, propertiesWithHistory?: Array, associations?: Array, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -258,7 +258,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -269,7 +269,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -313,7 +313,7 @@ export class ObservableBasicApi { */ public updateWithHttpInfo(emailId: string, simplePublicObjectInput: SimplePublicObjectInput, idProperty?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -327,7 +327,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -338,7 +338,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -394,7 +394,7 @@ export class ObservableBatchApi { */ public archiveWithHttpInfo(batchInputSimplePublicObjectId: BatchInputSimplePublicObjectId, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -408,7 +408,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -419,7 +419,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -454,7 +454,7 @@ export class ObservableBatchApi { */ public createWithHttpInfo(batchInputSimplePublicObjectBatchInputForCreate: BatchInputSimplePublicObjectBatchInputForCreate, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -468,7 +468,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -479,7 +479,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -516,7 +516,7 @@ export class ObservableBatchApi { */ public readWithHttpInfo(batchReadInputSimplePublicObjectId: BatchReadInputSimplePublicObjectId, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -530,7 +530,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -541,7 +541,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -578,7 +578,7 @@ export class ObservableBatchApi { */ public updateWithHttpInfo(batchInputSimplePublicObjectBatchInput: BatchInputSimplePublicObjectBatchInput, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -592,7 +592,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -603,7 +603,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -639,7 +639,7 @@ export class ObservableBatchApi { */ public upsertWithHttpInfo(batchInputSimplePublicObjectBatchInputUpsert: BatchInputSimplePublicObjectBatchInputUpsert, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -653,7 +653,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -664,7 +664,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -717,7 +717,7 @@ export class ObservableSearchApi { */ public doSearchWithHttpInfo(publicObjectSearchRequest: PublicObjectSearchRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -731,7 +731,7 @@ export class ObservableSearchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -742,7 +742,7 @@ export class ObservableSearchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/crm/objects/feedback_submissions/types/ObservableAPI.ts b/codegen/crm/objects/feedback_submissions/types/ObservableAPI.ts index a620d0eeac..88d9d0a00d 100644 --- a/codegen/crm/objects/feedback_submissions/types/ObservableAPI.ts +++ b/codegen/crm/objects/feedback_submissions/types/ObservableAPI.ts @@ -39,7 +39,7 @@ export class ObservableBasicApi { */ public getByIdWithHttpInfo(feedbackSubmissionId: string, properties?: Array, propertiesWithHistory?: Array, associations?: Array, archived?: boolean, idProperty?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -53,7 +53,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -64,7 +64,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -111,7 +111,7 @@ export class ObservableBasicApi { */ public getPageWithHttpInfo(limit?: number, after?: string, properties?: Array, propertiesWithHistory?: Array, associations?: Array, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -125,7 +125,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -136,7 +136,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -197,7 +197,7 @@ export class ObservableBatchApi { */ public readWithHttpInfo(batchReadInputSimplePublicObjectId: BatchReadInputSimplePublicObjectId, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -211,7 +211,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -222,7 +222,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -276,7 +276,7 @@ export class ObservableSearchApi { */ public doSearchWithHttpInfo(publicObjectSearchRequest: PublicObjectSearchRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -290,7 +290,7 @@ export class ObservableSearchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -301,7 +301,7 @@ export class ObservableSearchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/crm/objects/goals/types/ObservableAPI.ts b/codegen/crm/objects/goals/types/ObservableAPI.ts index eda999c45f..54f3ff007f 100644 --- a/codegen/crm/objects/goals/types/ObservableAPI.ts +++ b/codegen/crm/objects/goals/types/ObservableAPI.ts @@ -43,7 +43,7 @@ export class ObservableBasicApi { */ public archiveWithHttpInfo(goalTargetId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -57,7 +57,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -68,7 +68,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -105,7 +105,7 @@ export class ObservableBasicApi { */ public createWithHttpInfo(simplePublicObjectInputForCreate: SimplePublicObjectInputForCreate, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -119,7 +119,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -130,7 +130,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -172,7 +172,7 @@ export class ObservableBasicApi { */ public getByIdWithHttpInfo(goalTargetId: string, properties?: Array, propertiesWithHistory?: Array, associations?: Array, archived?: boolean, idProperty?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -186,7 +186,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -197,7 +197,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -244,7 +244,7 @@ export class ObservableBasicApi { */ public getPageWithHttpInfo(limit?: number, after?: string, properties?: Array, propertiesWithHistory?: Array, associations?: Array, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -258,7 +258,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -269,7 +269,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -313,7 +313,7 @@ export class ObservableBasicApi { */ public updateWithHttpInfo(goalTargetId: string, simplePublicObjectInput: SimplePublicObjectInput, idProperty?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -327,7 +327,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -338,7 +338,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -394,7 +394,7 @@ export class ObservableBatchApi { */ public archiveWithHttpInfo(batchInputSimplePublicObjectId: BatchInputSimplePublicObjectId, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -408,7 +408,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -419,7 +419,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -454,7 +454,7 @@ export class ObservableBatchApi { */ public createWithHttpInfo(batchInputSimplePublicObjectBatchInputForCreate: BatchInputSimplePublicObjectBatchInputForCreate, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -468,7 +468,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -479,7 +479,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -516,7 +516,7 @@ export class ObservableBatchApi { */ public readWithHttpInfo(batchReadInputSimplePublicObjectId: BatchReadInputSimplePublicObjectId, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -530,7 +530,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -541,7 +541,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -578,7 +578,7 @@ export class ObservableBatchApi { */ public updateWithHttpInfo(batchInputSimplePublicObjectBatchInput: BatchInputSimplePublicObjectBatchInput, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -592,7 +592,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -603,7 +603,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -639,7 +639,7 @@ export class ObservableBatchApi { */ public upsertWithHttpInfo(batchInputSimplePublicObjectBatchInputUpsert: BatchInputSimplePublicObjectBatchInputUpsert, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -653,7 +653,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -664,7 +664,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -717,7 +717,7 @@ export class ObservableSearchApi { */ public doSearchWithHttpInfo(publicObjectSearchRequest: PublicObjectSearchRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -731,7 +731,7 @@ export class ObservableSearchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -742,7 +742,7 @@ export class ObservableSearchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/crm/objects/leads/types/ObservableAPI.ts b/codegen/crm/objects/leads/types/ObservableAPI.ts index 9230decff2..34832d4d69 100644 --- a/codegen/crm/objects/leads/types/ObservableAPI.ts +++ b/codegen/crm/objects/leads/types/ObservableAPI.ts @@ -43,7 +43,7 @@ export class ObservableBasicApi { */ public archiveWithHttpInfo(leadsId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -57,7 +57,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -68,7 +68,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -105,7 +105,7 @@ export class ObservableBasicApi { */ public createWithHttpInfo(simplePublicObjectInputForCreate: SimplePublicObjectInputForCreate, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -119,7 +119,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -130,7 +130,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -172,7 +172,7 @@ export class ObservableBasicApi { */ public getByIdWithHttpInfo(leadsId: string, properties?: Array, propertiesWithHistory?: Array, associations?: Array, archived?: boolean, idProperty?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -186,7 +186,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -197,7 +197,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -244,7 +244,7 @@ export class ObservableBasicApi { */ public getPageWithHttpInfo(limit?: number, after?: string, properties?: Array, propertiesWithHistory?: Array, associations?: Array, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -258,7 +258,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -269,7 +269,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -313,7 +313,7 @@ export class ObservableBasicApi { */ public updateWithHttpInfo(leadsId: string, simplePublicObjectInput: SimplePublicObjectInput, idProperty?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -327,7 +327,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -338,7 +338,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -394,7 +394,7 @@ export class ObservableBatchApi { */ public archiveWithHttpInfo(batchInputSimplePublicObjectId: BatchInputSimplePublicObjectId, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -408,7 +408,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -419,7 +419,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -454,7 +454,7 @@ export class ObservableBatchApi { */ public createWithHttpInfo(batchInputSimplePublicObjectBatchInputForCreate: BatchInputSimplePublicObjectBatchInputForCreate, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -468,7 +468,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -479,7 +479,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -516,7 +516,7 @@ export class ObservableBatchApi { */ public readWithHttpInfo(batchReadInputSimplePublicObjectId: BatchReadInputSimplePublicObjectId, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -530,7 +530,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -541,7 +541,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -578,7 +578,7 @@ export class ObservableBatchApi { */ public updateWithHttpInfo(batchInputSimplePublicObjectBatchInput: BatchInputSimplePublicObjectBatchInput, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -592,7 +592,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -603,7 +603,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -639,7 +639,7 @@ export class ObservableBatchApi { */ public upsertWithHttpInfo(batchInputSimplePublicObjectBatchInputUpsert: BatchInputSimplePublicObjectBatchInputUpsert, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -653,7 +653,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -664,7 +664,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -717,7 +717,7 @@ export class ObservableSearchApi { */ public doSearchWithHttpInfo(publicObjectSearchRequest: PublicObjectSearchRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -731,7 +731,7 @@ export class ObservableSearchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -742,7 +742,7 @@ export class ObservableSearchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/crm/objects/meetings/types/ObservableAPI.ts b/codegen/crm/objects/meetings/types/ObservableAPI.ts index 70b4c55c23..b353be43df 100644 --- a/codegen/crm/objects/meetings/types/ObservableAPI.ts +++ b/codegen/crm/objects/meetings/types/ObservableAPI.ts @@ -43,7 +43,7 @@ export class ObservableBasicApi { */ public archiveWithHttpInfo(meetingId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -57,7 +57,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -68,7 +68,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -105,7 +105,7 @@ export class ObservableBasicApi { */ public createWithHttpInfo(simplePublicObjectInputForCreate: SimplePublicObjectInputForCreate, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -119,7 +119,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -130,7 +130,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -172,7 +172,7 @@ export class ObservableBasicApi { */ public getByIdWithHttpInfo(meetingId: string, properties?: Array, propertiesWithHistory?: Array, associations?: Array, archived?: boolean, idProperty?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -186,7 +186,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -197,7 +197,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -244,7 +244,7 @@ export class ObservableBasicApi { */ public getPageWithHttpInfo(limit?: number, after?: string, properties?: Array, propertiesWithHistory?: Array, associations?: Array, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -258,7 +258,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -269,7 +269,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -313,7 +313,7 @@ export class ObservableBasicApi { */ public updateWithHttpInfo(meetingId: string, simplePublicObjectInput: SimplePublicObjectInput, idProperty?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -327,7 +327,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -338,7 +338,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -394,7 +394,7 @@ export class ObservableBatchApi { */ public archiveWithHttpInfo(batchInputSimplePublicObjectId: BatchInputSimplePublicObjectId, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -408,7 +408,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -419,7 +419,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -454,7 +454,7 @@ export class ObservableBatchApi { */ public createWithHttpInfo(batchInputSimplePublicObjectBatchInputForCreate: BatchInputSimplePublicObjectBatchInputForCreate, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -468,7 +468,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -479,7 +479,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -516,7 +516,7 @@ export class ObservableBatchApi { */ public readWithHttpInfo(batchReadInputSimplePublicObjectId: BatchReadInputSimplePublicObjectId, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -530,7 +530,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -541,7 +541,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -578,7 +578,7 @@ export class ObservableBatchApi { */ public updateWithHttpInfo(batchInputSimplePublicObjectBatchInput: BatchInputSimplePublicObjectBatchInput, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -592,7 +592,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -603,7 +603,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -639,7 +639,7 @@ export class ObservableBatchApi { */ public upsertWithHttpInfo(batchInputSimplePublicObjectBatchInputUpsert: BatchInputSimplePublicObjectBatchInputUpsert, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -653,7 +653,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -664,7 +664,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -717,7 +717,7 @@ export class ObservableSearchApi { */ public doSearchWithHttpInfo(publicObjectSearchRequest: PublicObjectSearchRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -731,7 +731,7 @@ export class ObservableSearchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -742,7 +742,7 @@ export class ObservableSearchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/crm/objects/notes/types/ObservableAPI.ts b/codegen/crm/objects/notes/types/ObservableAPI.ts index fa08fa4573..a9c2b088b0 100644 --- a/codegen/crm/objects/notes/types/ObservableAPI.ts +++ b/codegen/crm/objects/notes/types/ObservableAPI.ts @@ -43,7 +43,7 @@ export class ObservableBasicApi { */ public archiveWithHttpInfo(noteId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -57,7 +57,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -68,7 +68,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -105,7 +105,7 @@ export class ObservableBasicApi { */ public createWithHttpInfo(simplePublicObjectInputForCreate: SimplePublicObjectInputForCreate, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -119,7 +119,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -130,7 +130,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -172,7 +172,7 @@ export class ObservableBasicApi { */ public getByIdWithHttpInfo(noteId: string, properties?: Array, propertiesWithHistory?: Array, associations?: Array, archived?: boolean, idProperty?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -186,7 +186,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -197,7 +197,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -244,7 +244,7 @@ export class ObservableBasicApi { */ public getPageWithHttpInfo(limit?: number, after?: string, properties?: Array, propertiesWithHistory?: Array, associations?: Array, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -258,7 +258,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -269,7 +269,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -313,7 +313,7 @@ export class ObservableBasicApi { */ public updateWithHttpInfo(noteId: string, simplePublicObjectInput: SimplePublicObjectInput, idProperty?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -327,7 +327,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -338,7 +338,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -394,7 +394,7 @@ export class ObservableBatchApi { */ public archiveWithHttpInfo(batchInputSimplePublicObjectId: BatchInputSimplePublicObjectId, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -408,7 +408,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -419,7 +419,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -454,7 +454,7 @@ export class ObservableBatchApi { */ public createWithHttpInfo(batchInputSimplePublicObjectBatchInputForCreate: BatchInputSimplePublicObjectBatchInputForCreate, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -468,7 +468,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -479,7 +479,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -516,7 +516,7 @@ export class ObservableBatchApi { */ public readWithHttpInfo(batchReadInputSimplePublicObjectId: BatchReadInputSimplePublicObjectId, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -530,7 +530,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -541,7 +541,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -578,7 +578,7 @@ export class ObservableBatchApi { */ public updateWithHttpInfo(batchInputSimplePublicObjectBatchInput: BatchInputSimplePublicObjectBatchInput, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -592,7 +592,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -603,7 +603,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -639,7 +639,7 @@ export class ObservableBatchApi { */ public upsertWithHttpInfo(batchInputSimplePublicObjectBatchInputUpsert: BatchInputSimplePublicObjectBatchInputUpsert, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -653,7 +653,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -664,7 +664,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -717,7 +717,7 @@ export class ObservableSearchApi { */ public doSearchWithHttpInfo(publicObjectSearchRequest: PublicObjectSearchRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -731,7 +731,7 @@ export class ObservableSearchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -742,7 +742,7 @@ export class ObservableSearchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/crm/objects/postal_mail/types/ObservableAPI.ts b/codegen/crm/objects/postal_mail/types/ObservableAPI.ts index c570678c5b..e19658fb44 100644 --- a/codegen/crm/objects/postal_mail/types/ObservableAPI.ts +++ b/codegen/crm/objects/postal_mail/types/ObservableAPI.ts @@ -43,7 +43,7 @@ export class ObservableBasicApi { */ public archiveWithHttpInfo(postalMailId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -57,7 +57,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -68,7 +68,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -105,7 +105,7 @@ export class ObservableBasicApi { */ public createWithHttpInfo(simplePublicObjectInputForCreate: SimplePublicObjectInputForCreate, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -119,7 +119,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -130,7 +130,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -172,7 +172,7 @@ export class ObservableBasicApi { */ public getByIdWithHttpInfo(postalMailId: string, properties?: Array, propertiesWithHistory?: Array, associations?: Array, archived?: boolean, idProperty?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -186,7 +186,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -197,7 +197,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -244,7 +244,7 @@ export class ObservableBasicApi { */ public getPageWithHttpInfo(limit?: number, after?: string, properties?: Array, propertiesWithHistory?: Array, associations?: Array, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -258,7 +258,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -269,7 +269,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -313,7 +313,7 @@ export class ObservableBasicApi { */ public updateWithHttpInfo(postalMailId: string, simplePublicObjectInput: SimplePublicObjectInput, idProperty?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -327,7 +327,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -338,7 +338,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -394,7 +394,7 @@ export class ObservableBatchApi { */ public archiveWithHttpInfo(batchInputSimplePublicObjectId: BatchInputSimplePublicObjectId, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -408,7 +408,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -419,7 +419,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -454,7 +454,7 @@ export class ObservableBatchApi { */ public createWithHttpInfo(batchInputSimplePublicObjectBatchInputForCreate: BatchInputSimplePublicObjectBatchInputForCreate, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -468,7 +468,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -479,7 +479,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -516,7 +516,7 @@ export class ObservableBatchApi { */ public readWithHttpInfo(batchReadInputSimplePublicObjectId: BatchReadInputSimplePublicObjectId, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -530,7 +530,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -541,7 +541,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -578,7 +578,7 @@ export class ObservableBatchApi { */ public updateWithHttpInfo(batchInputSimplePublicObjectBatchInput: BatchInputSimplePublicObjectBatchInput, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -592,7 +592,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -603,7 +603,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -639,7 +639,7 @@ export class ObservableBatchApi { */ public upsertWithHttpInfo(batchInputSimplePublicObjectBatchInputUpsert: BatchInputSimplePublicObjectBatchInputUpsert, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -653,7 +653,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -664,7 +664,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -717,7 +717,7 @@ export class ObservableSearchApi { */ public doSearchWithHttpInfo(publicObjectSearchRequest: PublicObjectSearchRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -731,7 +731,7 @@ export class ObservableSearchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -742,7 +742,7 @@ export class ObservableSearchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/crm/objects/tasks/types/ObservableAPI.ts b/codegen/crm/objects/tasks/types/ObservableAPI.ts index db61a5f220..ca39abad43 100644 --- a/codegen/crm/objects/tasks/types/ObservableAPI.ts +++ b/codegen/crm/objects/tasks/types/ObservableAPI.ts @@ -43,7 +43,7 @@ export class ObservableBasicApi { */ public archiveWithHttpInfo(taskId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -57,7 +57,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -68,7 +68,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -105,7 +105,7 @@ export class ObservableBasicApi { */ public createWithHttpInfo(simplePublicObjectInputForCreate: SimplePublicObjectInputForCreate, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -119,7 +119,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -130,7 +130,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -172,7 +172,7 @@ export class ObservableBasicApi { */ public getByIdWithHttpInfo(taskId: string, properties?: Array, propertiesWithHistory?: Array, associations?: Array, archived?: boolean, idProperty?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -186,7 +186,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -197,7 +197,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -244,7 +244,7 @@ export class ObservableBasicApi { */ public getPageWithHttpInfo(limit?: number, after?: string, properties?: Array, propertiesWithHistory?: Array, associations?: Array, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -258,7 +258,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -269,7 +269,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -313,7 +313,7 @@ export class ObservableBasicApi { */ public updateWithHttpInfo(taskId: string, simplePublicObjectInput: SimplePublicObjectInput, idProperty?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -327,7 +327,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -338,7 +338,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -394,7 +394,7 @@ export class ObservableBatchApi { */ public archiveWithHttpInfo(batchInputSimplePublicObjectId: BatchInputSimplePublicObjectId, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -408,7 +408,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -419,7 +419,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -454,7 +454,7 @@ export class ObservableBatchApi { */ public createWithHttpInfo(batchInputSimplePublicObjectBatchInputForCreate: BatchInputSimplePublicObjectBatchInputForCreate, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -468,7 +468,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -479,7 +479,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -516,7 +516,7 @@ export class ObservableBatchApi { */ public readWithHttpInfo(batchReadInputSimplePublicObjectId: BatchReadInputSimplePublicObjectId, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -530,7 +530,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -541,7 +541,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -578,7 +578,7 @@ export class ObservableBatchApi { */ public updateWithHttpInfo(batchInputSimplePublicObjectBatchInput: BatchInputSimplePublicObjectBatchInput, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -592,7 +592,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -603,7 +603,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -639,7 +639,7 @@ export class ObservableBatchApi { */ public upsertWithHttpInfo(batchInputSimplePublicObjectBatchInputUpsert: BatchInputSimplePublicObjectBatchInputUpsert, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -653,7 +653,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -664,7 +664,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -717,7 +717,7 @@ export class ObservableSearchApi { */ public doSearchWithHttpInfo(publicObjectSearchRequest: PublicObjectSearchRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -731,7 +731,7 @@ export class ObservableSearchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -742,7 +742,7 @@ export class ObservableSearchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/crm/objects/taxes/types/ObservableAPI.ts b/codegen/crm/objects/taxes/types/ObservableAPI.ts index f2e8d2408b..eef6a73c9f 100644 --- a/codegen/crm/objects/taxes/types/ObservableAPI.ts +++ b/codegen/crm/objects/taxes/types/ObservableAPI.ts @@ -43,7 +43,7 @@ export class ObservableBasicApi { */ public archiveWithHttpInfo(taxId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -57,7 +57,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -68,7 +68,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -105,7 +105,7 @@ export class ObservableBasicApi { */ public createWithHttpInfo(simplePublicObjectInputForCreate: SimplePublicObjectInputForCreate, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -119,7 +119,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -130,7 +130,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -172,7 +172,7 @@ export class ObservableBasicApi { */ public getByIdWithHttpInfo(taxId: string, properties?: Array, propertiesWithHistory?: Array, associations?: Array, archived?: boolean, idProperty?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -186,7 +186,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -197,7 +197,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -244,7 +244,7 @@ export class ObservableBasicApi { */ public getPageWithHttpInfo(limit?: number, after?: string, properties?: Array, propertiesWithHistory?: Array, associations?: Array, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -258,7 +258,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -269,7 +269,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -313,7 +313,7 @@ export class ObservableBasicApi { */ public updateWithHttpInfo(taxId: string, simplePublicObjectInput: SimplePublicObjectInput, idProperty?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -327,7 +327,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -338,7 +338,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -394,7 +394,7 @@ export class ObservableBatchApi { */ public archiveWithHttpInfo(batchInputSimplePublicObjectId: BatchInputSimplePublicObjectId, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -408,7 +408,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -419,7 +419,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -454,7 +454,7 @@ export class ObservableBatchApi { */ public createWithHttpInfo(batchInputSimplePublicObjectBatchInputForCreate: BatchInputSimplePublicObjectBatchInputForCreate, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -468,7 +468,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -479,7 +479,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -516,7 +516,7 @@ export class ObservableBatchApi { */ public readWithHttpInfo(batchReadInputSimplePublicObjectId: BatchReadInputSimplePublicObjectId, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -530,7 +530,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -541,7 +541,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -578,7 +578,7 @@ export class ObservableBatchApi { */ public updateWithHttpInfo(batchInputSimplePublicObjectBatchInput: BatchInputSimplePublicObjectBatchInput, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -592,7 +592,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -603,7 +603,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -639,7 +639,7 @@ export class ObservableBatchApi { */ public upsertWithHttpInfo(batchInputSimplePublicObjectBatchInputUpsert: BatchInputSimplePublicObjectBatchInputUpsert, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -653,7 +653,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -664,7 +664,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -717,7 +717,7 @@ export class ObservableSearchApi { */ public doSearchWithHttpInfo(publicObjectSearchRequest: PublicObjectSearchRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -731,7 +731,7 @@ export class ObservableSearchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -742,7 +742,7 @@ export class ObservableSearchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/crm/objects/types/ObservableAPI.ts b/codegen/crm/objects/types/ObservableAPI.ts index f7641f6399..5f8ed7a34a 100644 --- a/codegen/crm/objects/types/ObservableAPI.ts +++ b/codegen/crm/objects/types/ObservableAPI.ts @@ -44,7 +44,7 @@ export class ObservableBasicApi { */ public archiveWithHttpInfo(objectType: string, objectId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -58,7 +58,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -69,7 +69,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -108,7 +108,7 @@ export class ObservableBasicApi { */ public createWithHttpInfo(objectType: string, simplePublicObjectInputForCreate: SimplePublicObjectInputForCreate, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -122,7 +122,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -133,7 +133,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -177,7 +177,7 @@ export class ObservableBasicApi { */ public getByIdWithHttpInfo(objectType: string, objectId: string, properties?: Array, propertiesWithHistory?: Array, associations?: Array, archived?: boolean, idProperty?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -191,7 +191,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -202,7 +202,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -251,7 +251,7 @@ export class ObservableBasicApi { */ public getPageWithHttpInfo(objectType: string, limit?: number, after?: string, properties?: Array, propertiesWithHistory?: Array, associations?: Array, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -265,7 +265,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -276,7 +276,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -322,7 +322,7 @@ export class ObservableBasicApi { */ public updateWithHttpInfo(objectType: string, objectId: string, simplePublicObjectInput: SimplePublicObjectInput, idProperty?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -336,7 +336,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -347,7 +347,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -405,7 +405,7 @@ export class ObservableBatchApi { */ public archiveWithHttpInfo(objectType: string, batchInputSimplePublicObjectId: BatchInputSimplePublicObjectId, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -419,7 +419,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -430,7 +430,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -467,7 +467,7 @@ export class ObservableBatchApi { */ public createWithHttpInfo(objectType: string, batchInputSimplePublicObjectBatchInputForCreate: BatchInputSimplePublicObjectBatchInputForCreate, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -481,7 +481,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -492,7 +492,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -531,7 +531,7 @@ export class ObservableBatchApi { */ public readWithHttpInfo(objectType: string, batchReadInputSimplePublicObjectId: BatchReadInputSimplePublicObjectId, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -545,7 +545,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -556,7 +556,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -595,7 +595,7 @@ export class ObservableBatchApi { */ public updateWithHttpInfo(objectType: string, batchInputSimplePublicObjectBatchInput: BatchInputSimplePublicObjectBatchInput, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -609,7 +609,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -620,7 +620,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -658,7 +658,7 @@ export class ObservableBatchApi { */ public upsertWithHttpInfo(objectType: string, batchInputSimplePublicObjectBatchInputUpsert: BatchInputSimplePublicObjectBatchInputUpsert, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -672,7 +672,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -683,7 +683,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -738,7 +738,7 @@ export class ObservableSearchApi { */ public doSearchWithHttpInfo(objectType: string, publicObjectSearchRequest: PublicObjectSearchRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -752,7 +752,7 @@ export class ObservableSearchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -763,7 +763,7 @@ export class ObservableSearchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/crm/owners/types/ObservableAPI.ts b/codegen/crm/owners/types/ObservableAPI.ts index 688064ce32..98b05b7392 100644 --- a/codegen/crm/owners/types/ObservableAPI.ts +++ b/codegen/crm/owners/types/ObservableAPI.ts @@ -30,7 +30,7 @@ export class ObservableOwnersApi { */ public getByIdWithHttpInfo(ownerId: number, idProperty?: 'id' | 'userId', archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -44,7 +44,7 @@ export class ObservableOwnersApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -55,7 +55,7 @@ export class ObservableOwnersApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -95,7 +95,7 @@ export class ObservableOwnersApi { */ public getPageWithHttpInfo(email?: string, after?: string, limit?: number, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -109,7 +109,7 @@ export class ObservableOwnersApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -120,7 +120,7 @@ export class ObservableOwnersApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/crm/pipelines/types/ObservableAPI.ts b/codegen/crm/pipelines/types/ObservableAPI.ts index b114703607..da9255c465 100644 --- a/codegen/crm/pipelines/types/ObservableAPI.ts +++ b/codegen/crm/pipelines/types/ObservableAPI.ts @@ -37,7 +37,7 @@ export class ObservablePipelineAuditsApi { */ public getAuditWithHttpInfo(objectType: string, pipelineId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -51,7 +51,7 @@ export class ObservablePipelineAuditsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -62,7 +62,7 @@ export class ObservablePipelineAuditsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -119,7 +119,7 @@ export class ObservablePipelineStageAuditsApi { */ public getAuditWithHttpInfo(objectType: string, stageId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -133,7 +133,7 @@ export class ObservablePipelineStageAuditsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -144,7 +144,7 @@ export class ObservablePipelineStageAuditsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -202,7 +202,7 @@ export class ObservablePipelineStagesApi { */ public archiveWithHttpInfo(objectType: string, pipelineId: string, stageId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -216,7 +216,7 @@ export class ObservablePipelineStagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -227,7 +227,7 @@ export class ObservablePipelineStagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -268,7 +268,7 @@ export class ObservablePipelineStagesApi { */ public createWithHttpInfo(objectType: string, pipelineId: string, pipelineStageInput: PipelineStageInput, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -282,7 +282,7 @@ export class ObservablePipelineStagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -293,7 +293,7 @@ export class ObservablePipelineStagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -333,7 +333,7 @@ export class ObservablePipelineStagesApi { */ public getAllWithHttpInfo(objectType: string, pipelineId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -347,7 +347,7 @@ export class ObservablePipelineStagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -358,7 +358,7 @@ export class ObservablePipelineStagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -398,7 +398,7 @@ export class ObservablePipelineStagesApi { */ public getByIdWithHttpInfo(objectType: string, pipelineId: string, stageId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -412,7 +412,7 @@ export class ObservablePipelineStagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -423,7 +423,7 @@ export class ObservablePipelineStagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -465,7 +465,7 @@ export class ObservablePipelineStagesApi { */ public replaceWithHttpInfo(objectType: string, pipelineId: string, stageId: string, pipelineStageInput: PipelineStageInput, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -479,7 +479,7 @@ export class ObservablePipelineStagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -490,7 +490,7 @@ export class ObservablePipelineStagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -533,7 +533,7 @@ export class ObservablePipelineStagesApi { */ public updateWithHttpInfo(objectType: string, pipelineId: string, stageId: string, pipelineStagePatchInput: PipelineStagePatchInput, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -547,7 +547,7 @@ export class ObservablePipelineStagesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -558,7 +558,7 @@ export class ObservablePipelineStagesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -619,7 +619,7 @@ export class ObservablePipelinesApi { */ public archiveWithHttpInfo(objectType: string, pipelineId: string, validateReferencesBeforeDelete?: boolean, validateDealStageUsagesBeforeDelete?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -633,7 +633,7 @@ export class ObservablePipelinesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -644,7 +644,7 @@ export class ObservablePipelinesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -685,7 +685,7 @@ export class ObservablePipelinesApi { */ public createWithHttpInfo(objectType: string, pipelineInput: PipelineInput, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -699,7 +699,7 @@ export class ObservablePipelinesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -710,7 +710,7 @@ export class ObservablePipelinesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -748,7 +748,7 @@ export class ObservablePipelinesApi { */ public getAllWithHttpInfo(objectType: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -762,7 +762,7 @@ export class ObservablePipelinesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -773,7 +773,7 @@ export class ObservablePipelinesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -811,7 +811,7 @@ export class ObservablePipelinesApi { */ public getByIdWithHttpInfo(objectType: string, pipelineId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -825,7 +825,7 @@ export class ObservablePipelinesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -836,7 +836,7 @@ export class ObservablePipelinesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -878,7 +878,7 @@ export class ObservablePipelinesApi { */ public replaceWithHttpInfo(objectType: string, pipelineId: string, pipelineInput: PipelineInput, validateReferencesBeforeDelete?: boolean, validateDealStageUsagesBeforeDelete?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -892,7 +892,7 @@ export class ObservablePipelinesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -903,7 +903,7 @@ export class ObservablePipelinesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -948,7 +948,7 @@ export class ObservablePipelinesApi { */ public updateWithHttpInfo(objectType: string, pipelineId: string, pipelinePatchInput: PipelinePatchInput, validateReferencesBeforeDelete?: boolean, validateDealStageUsagesBeforeDelete?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -962,7 +962,7 @@ export class ObservablePipelinesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -973,7 +973,7 @@ export class ObservablePipelinesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/crm/products/types/ObservableAPI.ts b/codegen/crm/products/types/ObservableAPI.ts index 176e9f78af..81ed416adb 100644 --- a/codegen/crm/products/types/ObservableAPI.ts +++ b/codegen/crm/products/types/ObservableAPI.ts @@ -43,7 +43,7 @@ export class ObservableBasicApi { */ public archiveWithHttpInfo(productId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -57,7 +57,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -68,7 +68,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -105,7 +105,7 @@ export class ObservableBasicApi { */ public createWithHttpInfo(simplePublicObjectInputForCreate: SimplePublicObjectInputForCreate, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -119,7 +119,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -130,7 +130,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -172,7 +172,7 @@ export class ObservableBasicApi { */ public getByIdWithHttpInfo(productId: string, properties?: Array, propertiesWithHistory?: Array, associations?: Array, archived?: boolean, idProperty?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -186,7 +186,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -197,7 +197,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -244,7 +244,7 @@ export class ObservableBasicApi { */ public getPageWithHttpInfo(limit?: number, after?: string, properties?: Array, propertiesWithHistory?: Array, associations?: Array, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -258,7 +258,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -269,7 +269,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -313,7 +313,7 @@ export class ObservableBasicApi { */ public updateWithHttpInfo(productId: string, simplePublicObjectInput: SimplePublicObjectInput, idProperty?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -327,7 +327,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -338,7 +338,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -394,7 +394,7 @@ export class ObservableBatchApi { */ public archiveWithHttpInfo(batchInputSimplePublicObjectId: BatchInputSimplePublicObjectId, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -408,7 +408,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -419,7 +419,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -454,7 +454,7 @@ export class ObservableBatchApi { */ public createWithHttpInfo(batchInputSimplePublicObjectBatchInputForCreate: BatchInputSimplePublicObjectBatchInputForCreate, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -468,7 +468,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -479,7 +479,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -516,7 +516,7 @@ export class ObservableBatchApi { */ public readWithHttpInfo(batchReadInputSimplePublicObjectId: BatchReadInputSimplePublicObjectId, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -530,7 +530,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -541,7 +541,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -578,7 +578,7 @@ export class ObservableBatchApi { */ public updateWithHttpInfo(batchInputSimplePublicObjectBatchInput: BatchInputSimplePublicObjectBatchInput, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -592,7 +592,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -603,7 +603,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -639,7 +639,7 @@ export class ObservableBatchApi { */ public upsertWithHttpInfo(batchInputSimplePublicObjectBatchInputUpsert: BatchInputSimplePublicObjectBatchInputUpsert, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -653,7 +653,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -664,7 +664,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -717,7 +717,7 @@ export class ObservableSearchApi { */ public doSearchWithHttpInfo(publicObjectSearchRequest: PublicObjectSearchRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -731,7 +731,7 @@ export class ObservableSearchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -742,7 +742,7 @@ export class ObservableSearchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/crm/properties/types/ObservableAPI.ts b/codegen/crm/properties/types/ObservableAPI.ts index efb72df7da..9fa8dadecf 100644 --- a/codegen/crm/properties/types/ObservableAPI.ts +++ b/codegen/crm/properties/types/ObservableAPI.ts @@ -41,7 +41,7 @@ export class ObservableBatchApi { */ public archiveWithHttpInfo(objectType: string, batchInputPropertyName: BatchInputPropertyName, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -55,7 +55,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -66,7 +66,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -105,7 +105,7 @@ export class ObservableBatchApi { */ public createWithHttpInfo(objectType: string, batchInputPropertyCreate: BatchInputPropertyCreate, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -119,7 +119,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -130,7 +130,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -169,7 +169,7 @@ export class ObservableBatchApi { */ public readWithHttpInfo(objectType: string, batchReadInputPropertyName: BatchReadInputPropertyName, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -183,7 +183,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -194,7 +194,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -251,7 +251,7 @@ export class ObservableCoreApi { */ public archiveWithHttpInfo(objectType: string, propertyName: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -265,7 +265,7 @@ export class ObservableCoreApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -276,7 +276,7 @@ export class ObservableCoreApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -315,7 +315,7 @@ export class ObservableCoreApi { */ public createWithHttpInfo(objectType: string, propertyCreate: PropertyCreate, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -329,7 +329,7 @@ export class ObservableCoreApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -340,7 +340,7 @@ export class ObservableCoreApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -380,7 +380,7 @@ export class ObservableCoreApi { */ public getAllWithHttpInfo(objectType: string, archived?: boolean, properties?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -394,7 +394,7 @@ export class ObservableCoreApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -405,7 +405,7 @@ export class ObservableCoreApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -447,7 +447,7 @@ export class ObservableCoreApi { */ public getByNameWithHttpInfo(objectType: string, propertyName: string, archived?: boolean, properties?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -461,7 +461,7 @@ export class ObservableCoreApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -472,7 +472,7 @@ export class ObservableCoreApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -514,7 +514,7 @@ export class ObservableCoreApi { */ public updateWithHttpInfo(objectType: string, propertyName: string, propertyUpdate: PropertyUpdate, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -528,7 +528,7 @@ export class ObservableCoreApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -539,7 +539,7 @@ export class ObservableCoreApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -597,7 +597,7 @@ export class ObservableGroupsApi { */ public archiveWithHttpInfo(objectType: string, groupName: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -611,7 +611,7 @@ export class ObservableGroupsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -622,7 +622,7 @@ export class ObservableGroupsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -661,7 +661,7 @@ export class ObservableGroupsApi { */ public createWithHttpInfo(objectType: string, propertyGroupCreate: PropertyGroupCreate, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -675,7 +675,7 @@ export class ObservableGroupsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -686,7 +686,7 @@ export class ObservableGroupsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -724,7 +724,7 @@ export class ObservableGroupsApi { */ public getAllWithHttpInfo(objectType: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -738,7 +738,7 @@ export class ObservableGroupsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -749,7 +749,7 @@ export class ObservableGroupsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -787,7 +787,7 @@ export class ObservableGroupsApi { */ public getByNameWithHttpInfo(objectType: string, groupName: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -801,7 +801,7 @@ export class ObservableGroupsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -812,7 +812,7 @@ export class ObservableGroupsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -852,7 +852,7 @@ export class ObservableGroupsApi { */ public updateWithHttpInfo(objectType: string, groupName: string, propertyGroupUpdate: PropertyGroupUpdate, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -866,7 +866,7 @@ export class ObservableGroupsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -877,7 +877,7 @@ export class ObservableGroupsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/crm/quotes/types/ObservableAPI.ts b/codegen/crm/quotes/types/ObservableAPI.ts index be83816fe8..c16603382a 100644 --- a/codegen/crm/quotes/types/ObservableAPI.ts +++ b/codegen/crm/quotes/types/ObservableAPI.ts @@ -43,7 +43,7 @@ export class ObservableBasicApi { */ public archiveWithHttpInfo(quoteId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -57,7 +57,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -68,7 +68,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -105,7 +105,7 @@ export class ObservableBasicApi { */ public createWithHttpInfo(simplePublicObjectInputForCreate: SimplePublicObjectInputForCreate, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -119,7 +119,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -130,7 +130,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -172,7 +172,7 @@ export class ObservableBasicApi { */ public getByIdWithHttpInfo(quoteId: string, properties?: Array, propertiesWithHistory?: Array, associations?: Array, archived?: boolean, idProperty?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -186,7 +186,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -197,7 +197,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -244,7 +244,7 @@ export class ObservableBasicApi { */ public getPageWithHttpInfo(limit?: number, after?: string, properties?: Array, propertiesWithHistory?: Array, associations?: Array, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -258,7 +258,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -269,7 +269,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -313,7 +313,7 @@ export class ObservableBasicApi { */ public updateWithHttpInfo(quoteId: string, simplePublicObjectInput: SimplePublicObjectInput, idProperty?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -327,7 +327,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -338,7 +338,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -394,7 +394,7 @@ export class ObservableBatchApi { */ public archiveWithHttpInfo(batchInputSimplePublicObjectId: BatchInputSimplePublicObjectId, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -408,7 +408,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -419,7 +419,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -454,7 +454,7 @@ export class ObservableBatchApi { */ public createWithHttpInfo(batchInputSimplePublicObjectBatchInputForCreate: BatchInputSimplePublicObjectBatchInputForCreate, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -468,7 +468,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -479,7 +479,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -516,7 +516,7 @@ export class ObservableBatchApi { */ public readWithHttpInfo(batchReadInputSimplePublicObjectId: BatchReadInputSimplePublicObjectId, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -530,7 +530,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -541,7 +541,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -578,7 +578,7 @@ export class ObservableBatchApi { */ public updateWithHttpInfo(batchInputSimplePublicObjectBatchInput: BatchInputSimplePublicObjectBatchInput, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -592,7 +592,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -603,7 +603,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -639,7 +639,7 @@ export class ObservableBatchApi { */ public upsertWithHttpInfo(batchInputSimplePublicObjectBatchInputUpsert: BatchInputSimplePublicObjectBatchInputUpsert, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -653,7 +653,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -664,7 +664,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -717,7 +717,7 @@ export class ObservableSearchApi { */ public doSearchWithHttpInfo(publicObjectSearchRequest: PublicObjectSearchRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -731,7 +731,7 @@ export class ObservableSearchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -742,7 +742,7 @@ export class ObservableSearchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/crm/schemas/types/ObservableAPI.ts b/codegen/crm/schemas/types/ObservableAPI.ts index e5db956525..f8db112e94 100644 --- a/codegen/crm/schemas/types/ObservableAPI.ts +++ b/codegen/crm/schemas/types/ObservableAPI.ts @@ -35,7 +35,7 @@ export class ObservableCoreApi { */ public archiveWithHttpInfo(objectType: string, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -49,7 +49,7 @@ export class ObservableCoreApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -60,7 +60,7 @@ export class ObservableCoreApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -99,7 +99,7 @@ export class ObservableCoreApi { */ public archiveAssociationWithHttpInfo(objectType: string, associationIdentifier: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -113,7 +113,7 @@ export class ObservableCoreApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -124,7 +124,7 @@ export class ObservableCoreApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -162,7 +162,7 @@ export class ObservableCoreApi { */ public createWithHttpInfo(objectSchemaEgg: ObjectSchemaEgg, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -176,7 +176,7 @@ export class ObservableCoreApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -187,7 +187,7 @@ export class ObservableCoreApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -225,7 +225,7 @@ export class ObservableCoreApi { */ public createAssociationWithHttpInfo(objectType: string, associationDefinitionEgg: AssociationDefinitionEgg, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -239,7 +239,7 @@ export class ObservableCoreApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -250,7 +250,7 @@ export class ObservableCoreApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -288,7 +288,7 @@ export class ObservableCoreApi { */ public getAllWithHttpInfo(archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -302,7 +302,7 @@ export class ObservableCoreApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -313,7 +313,7 @@ export class ObservableCoreApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -350,7 +350,7 @@ export class ObservableCoreApi { */ public getByIdWithHttpInfo(objectType: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -364,7 +364,7 @@ export class ObservableCoreApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -375,7 +375,7 @@ export class ObservableCoreApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -413,7 +413,7 @@ export class ObservableCoreApi { */ public updateWithHttpInfo(objectType: string, objectTypeDefinitionPatch: ObjectTypeDefinitionPatch, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -427,7 +427,7 @@ export class ObservableCoreApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -438,7 +438,7 @@ export class ObservableCoreApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/crm/tickets/types/ObservableAPI.ts b/codegen/crm/tickets/types/ObservableAPI.ts index 12b29260a2..c812ceb150 100644 --- a/codegen/crm/tickets/types/ObservableAPI.ts +++ b/codegen/crm/tickets/types/ObservableAPI.ts @@ -44,7 +44,7 @@ export class ObservableBasicApi { */ public archiveWithHttpInfo(ticketId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -58,7 +58,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -69,7 +69,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -106,7 +106,7 @@ export class ObservableBasicApi { */ public createWithHttpInfo(simplePublicObjectInputForCreate: SimplePublicObjectInputForCreate, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -120,7 +120,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -131,7 +131,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -173,7 +173,7 @@ export class ObservableBasicApi { */ public getByIdWithHttpInfo(ticketId: string, properties?: Array, propertiesWithHistory?: Array, associations?: Array, archived?: boolean, idProperty?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -187,7 +187,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -198,7 +198,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -245,7 +245,7 @@ export class ObservableBasicApi { */ public getPageWithHttpInfo(limit?: number, after?: string, properties?: Array, propertiesWithHistory?: Array, associations?: Array, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -259,7 +259,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -270,7 +270,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -312,7 +312,7 @@ export class ObservableBasicApi { */ public mergeWithHttpInfo(publicMergeInput: PublicMergeInput, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -326,7 +326,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -337,7 +337,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -376,7 +376,7 @@ export class ObservableBasicApi { */ public updateWithHttpInfo(ticketId: string, simplePublicObjectInput: SimplePublicObjectInput, idProperty?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -390,7 +390,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -401,7 +401,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -458,7 +458,7 @@ export class ObservableBatchApi { */ public archiveWithHttpInfo(batchInputSimplePublicObjectId: BatchInputSimplePublicObjectId, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -472,7 +472,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -483,7 +483,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -520,7 +520,7 @@ export class ObservableBatchApi { */ public createWithHttpInfo(batchInputSimplePublicObjectBatchInputForCreate: BatchInputSimplePublicObjectBatchInputForCreate, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -534,7 +534,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -545,7 +545,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -583,7 +583,7 @@ export class ObservableBatchApi { */ public readWithHttpInfo(batchReadInputSimplePublicObjectId: BatchReadInputSimplePublicObjectId, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -597,7 +597,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -608,7 +608,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -646,7 +646,7 @@ export class ObservableBatchApi { */ public updateWithHttpInfo(batchInputSimplePublicObjectBatchInput: BatchInputSimplePublicObjectBatchInput, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -660,7 +660,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -671,7 +671,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -708,7 +708,7 @@ export class ObservableBatchApi { */ public upsertWithHttpInfo(batchInputSimplePublicObjectBatchInputUpsert: BatchInputSimplePublicObjectBatchInputUpsert, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -722,7 +722,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -733,7 +733,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -788,7 +788,7 @@ export class ObservableSearchApi { */ public doSearchWithHttpInfo(publicObjectSearchRequest: PublicObjectSearchRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -802,7 +802,7 @@ export class ObservableSearchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -813,7 +813,7 @@ export class ObservableSearchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/crm/timeline/types/ObservableAPI.ts b/codegen/crm/timeline/types/ObservableAPI.ts index 31c0e4008f..ea9d838847 100644 --- a/codegen/crm/timeline/types/ObservableAPI.ts +++ b/codegen/crm/timeline/types/ObservableAPI.ts @@ -39,7 +39,7 @@ export class ObservableEventsApi { */ public createWithHttpInfo(timelineEvent: TimelineEvent, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -53,7 +53,7 @@ export class ObservableEventsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -64,7 +64,7 @@ export class ObservableEventsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -101,7 +101,7 @@ export class ObservableEventsApi { */ public createBatchWithHttpInfo(batchInputTimelineEvent: BatchInputTimelineEvent, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -115,7 +115,7 @@ export class ObservableEventsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -126,7 +126,7 @@ export class ObservableEventsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -164,7 +164,7 @@ export class ObservableEventsApi { */ public getByIdWithHttpInfo(eventTemplateId: string, eventId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -178,7 +178,7 @@ export class ObservableEventsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -189,7 +189,7 @@ export class ObservableEventsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -228,7 +228,7 @@ export class ObservableEventsApi { */ public getDetailByIdWithHttpInfo(eventTemplateId: string, eventId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -242,7 +242,7 @@ export class ObservableEventsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -253,7 +253,7 @@ export class ObservableEventsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -293,7 +293,7 @@ export class ObservableEventsApi { */ public getRenderByIdWithHttpInfo(eventTemplateId: string, eventId: string, detail?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -307,7 +307,7 @@ export class ObservableEventsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -318,7 +318,7 @@ export class ObservableEventsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -376,7 +376,7 @@ export class ObservableTemplatesApi { */ public archiveWithHttpInfo(eventTemplateId: string, appId: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -390,7 +390,7 @@ export class ObservableTemplatesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -401,7 +401,7 @@ export class ObservableTemplatesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -440,7 +440,7 @@ export class ObservableTemplatesApi { */ public createWithHttpInfo(appId: number, timelineEventTemplateCreateRequest: TimelineEventTemplateCreateRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -454,7 +454,7 @@ export class ObservableTemplatesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -465,7 +465,7 @@ export class ObservableTemplatesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -503,7 +503,7 @@ export class ObservableTemplatesApi { */ public getAllWithHttpInfo(appId: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -517,7 +517,7 @@ export class ObservableTemplatesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -528,7 +528,7 @@ export class ObservableTemplatesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -566,7 +566,7 @@ export class ObservableTemplatesApi { */ public getByIdWithHttpInfo(eventTemplateId: string, appId: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -580,7 +580,7 @@ export class ObservableTemplatesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -591,7 +591,7 @@ export class ObservableTemplatesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -631,7 +631,7 @@ export class ObservableTemplatesApi { */ public updateWithHttpInfo(eventTemplateId: string, appId: number, timelineEventTemplateUpdateRequest: TimelineEventTemplateUpdateRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -645,7 +645,7 @@ export class ObservableTemplatesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -656,7 +656,7 @@ export class ObservableTemplatesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -715,7 +715,7 @@ export class ObservableTokensApi { */ public archiveWithHttpInfo(eventTemplateId: string, tokenName: string, appId: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -729,7 +729,7 @@ export class ObservableTokensApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -740,7 +740,7 @@ export class ObservableTokensApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -781,7 +781,7 @@ export class ObservableTokensApi { */ public createWithHttpInfo(eventTemplateId: string, appId: number, timelineEventTemplateToken: TimelineEventTemplateToken, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -795,7 +795,7 @@ export class ObservableTokensApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -806,7 +806,7 @@ export class ObservableTokensApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -848,7 +848,7 @@ export class ObservableTokensApi { */ public updateWithHttpInfo(eventTemplateId: string, tokenName: string, appId: number, timelineEventTemplateTokenUpdateRequest: TimelineEventTemplateTokenUpdateRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -862,7 +862,7 @@ export class ObservableTokensApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -873,7 +873,7 @@ export class ObservableTokensApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/events/send/types/ObservableAPI.ts b/codegen/events/send/types/ObservableAPI.ts index 40cc1a6f58..5561736338 100644 --- a/codegen/events/send/types/ObservableAPI.ts +++ b/codegen/events/send/types/ObservableAPI.ts @@ -29,7 +29,7 @@ export class ObservableBasicApi { */ public sendWithHttpInfo(behavioralEventHttpCompletionRequest: BehavioralEventHttpCompletionRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -43,7 +43,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -54,7 +54,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -109,7 +109,7 @@ export class ObservableBatchApi { */ public sendWithHttpInfo(batchedBehavioralEventHttpCompletionRequest: BatchedBehavioralEventHttpCompletionRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -123,7 +123,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -134,7 +134,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/events/types/ObservableAPI.ts b/codegen/events/types/ObservableAPI.ts index 5ae10f5797..19654560d6 100644 --- a/codegen/events/types/ObservableAPI.ts +++ b/codegen/events/types/ObservableAPI.ts @@ -40,7 +40,7 @@ export class ObservableEventsApi { */ public getPageWithHttpInfo(objectType?: string, eventType?: string, after?: string, before?: string, limit?: number, sort?: Array, occurredAfter?: Date, occurredBefore?: Date, objectId?: number, objectPropertyPropname?: any, propertyPropname?: any, id?: Array, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -54,7 +54,7 @@ export class ObservableEventsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -65,7 +65,7 @@ export class ObservableEventsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -112,7 +112,7 @@ export class ObservableEventsApi { */ public getTypesWithHttpInfo(_options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -126,7 +126,7 @@ export class ObservableEventsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -137,7 +137,7 @@ export class ObservableEventsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/files/types/ObservableAPI.ts b/codegen/files/types/ObservableAPI.ts index 6c2093d7a2..da1e9be717 100644 --- a/codegen/files/types/ObservableAPI.ts +++ b/codegen/files/types/ObservableAPI.ts @@ -41,7 +41,7 @@ export class ObservableFilesApi { */ public _deleteWithHttpInfo(fileId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -55,7 +55,7 @@ export class ObservableFilesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -66,7 +66,7 @@ export class ObservableFilesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -103,7 +103,7 @@ export class ObservableFilesApi { */ public archiveWithHttpInfo(fileId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -117,7 +117,7 @@ export class ObservableFilesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -128,7 +128,7 @@ export class ObservableFilesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -165,7 +165,7 @@ export class ObservableFilesApi { */ public checkImportWithHttpInfo(taskId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -179,7 +179,7 @@ export class ObservableFilesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -190,7 +190,7 @@ export class ObservableFilesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -262,7 +262,7 @@ export class ObservableFilesApi { */ public doSearchWithHttpInfo(properties?: Array, after?: string, before?: string, limit?: number, sort?: Array, ids?: Array, idLte?: number, idGte?: number, createdAt?: Date, createdAtLte?: Date, createdAtGte?: Date, updatedAt?: Date, updatedAtLte?: Date, updatedAtGte?: Date, name?: string, path?: string, parentFolderIds?: Array, size?: number, sizeLte?: number, sizeGte?: number, height?: number, heightLte?: number, heightGte?: number, width?: number, widthLte?: number, widthGte?: number, encoding?: string, type?: string, extension?: string, url?: string, isUsableInContent?: boolean, allowsAnonymousAccess?: boolean, fileMd5?: string, expiresAt?: Date, expiresAtLte?: Date, expiresAtGte?: Date, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -276,7 +276,7 @@ export class ObservableFilesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -287,7 +287,7 @@ export class ObservableFilesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -360,7 +360,7 @@ export class ObservableFilesApi { */ public getByIdWithHttpInfo(fileId: string, properties?: Array, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -374,7 +374,7 @@ export class ObservableFilesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -385,7 +385,7 @@ export class ObservableFilesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -424,7 +424,7 @@ export class ObservableFilesApi { */ public getMetadataWithHttpInfo(path: string, properties?: Array, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -438,7 +438,7 @@ export class ObservableFilesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -449,7 +449,7 @@ export class ObservableFilesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -490,7 +490,7 @@ export class ObservableFilesApi { */ public getSignedUrlWithHttpInfo(fileId: string, size?: 'thumb' | 'icon' | 'medium' | 'preview', expirationSeconds?: number, upscale?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -504,7 +504,7 @@ export class ObservableFilesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -515,7 +515,7 @@ export class ObservableFilesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -555,7 +555,7 @@ export class ObservableFilesApi { */ public importFromUrlWithHttpInfo(importFromUrlInput: ImportFromUrlInput, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -569,7 +569,7 @@ export class ObservableFilesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -580,7 +580,7 @@ export class ObservableFilesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -620,7 +620,7 @@ export class ObservableFilesApi { */ public replaceWithHttpInfo(fileId: string, file?: HttpFile, charsetHunch?: string, options?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -634,7 +634,7 @@ export class ObservableFilesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -645,7 +645,7 @@ export class ObservableFilesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -686,7 +686,7 @@ export class ObservableFilesApi { */ public updatePropertiesWithHttpInfo(fileId: string, fileUpdateInput: FileUpdateInput, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -700,7 +700,7 @@ export class ObservableFilesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -711,7 +711,7 @@ export class ObservableFilesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -754,7 +754,7 @@ export class ObservableFilesApi { */ public uploadWithHttpInfo(file?: HttpFile, folderId?: string, folderPath?: string, fileName?: string, charsetHunch?: string, options?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -768,7 +768,7 @@ export class ObservableFilesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -779,7 +779,7 @@ export class ObservableFilesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -839,7 +839,7 @@ export class ObservableFoldersApi { */ public archiveWithHttpInfo(folderId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -853,7 +853,7 @@ export class ObservableFoldersApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -864,7 +864,7 @@ export class ObservableFoldersApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -901,7 +901,7 @@ export class ObservableFoldersApi { */ public archiveByPathWithHttpInfo(folderPath: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -915,7 +915,7 @@ export class ObservableFoldersApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -926,7 +926,7 @@ export class ObservableFoldersApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -963,7 +963,7 @@ export class ObservableFoldersApi { */ public checkUpdateStatusWithHttpInfo(taskId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -977,7 +977,7 @@ export class ObservableFoldersApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -988,7 +988,7 @@ export class ObservableFoldersApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1025,7 +1025,7 @@ export class ObservableFoldersApi { */ public createWithHttpInfo(folderInput: FolderInput, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1039,7 +1039,7 @@ export class ObservableFoldersApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1050,7 +1050,7 @@ export class ObservableFoldersApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1103,7 +1103,7 @@ export class ObservableFoldersApi { */ public doSearchWithHttpInfo(properties?: Array, after?: string, before?: string, limit?: number, sort?: Array, ids?: Array, idLte?: number, idGte?: number, createdAt?: Date, createdAtLte?: Date, createdAtGte?: Date, updatedAt?: Date, updatedAtLte?: Date, updatedAtGte?: Date, name?: string, path?: string, parentFolderIds?: Array, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1117,7 +1117,7 @@ export class ObservableFoldersApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1128,7 +1128,7 @@ export class ObservableFoldersApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1182,7 +1182,7 @@ export class ObservableFoldersApi { */ public getByIdWithHttpInfo(folderId: string, properties?: Array, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1196,7 +1196,7 @@ export class ObservableFoldersApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1207,7 +1207,7 @@ export class ObservableFoldersApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1246,7 +1246,7 @@ export class ObservableFoldersApi { */ public getByPathWithHttpInfo(folderPath: string, properties?: Array, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1260,7 +1260,7 @@ export class ObservableFoldersApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1271,7 +1271,7 @@ export class ObservableFoldersApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1310,7 +1310,7 @@ export class ObservableFoldersApi { */ public updatePropertiesWithHttpInfo(folderId: string, folderUpdateInput: FolderUpdateInput, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1324,7 +1324,7 @@ export class ObservableFoldersApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1335,7 +1335,7 @@ export class ObservableFoldersApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1373,7 +1373,7 @@ export class ObservableFoldersApi { */ public updatePropertiesRecursivelyWithHttpInfo(folderUpdateInputWithId: FolderUpdateInputWithId, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1387,7 +1387,7 @@ export class ObservableFoldersApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1398,7 +1398,7 @@ export class ObservableFoldersApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/marketing/emails/types/ObservableAPI.ts b/codegen/marketing/emails/types/ObservableAPI.ts index 1ba9d1db04..c906d3b88d 100644 --- a/codegen/marketing/emails/types/ObservableAPI.ts +++ b/codegen/marketing/emails/types/ObservableAPI.ts @@ -37,7 +37,7 @@ export class ObservableMarketingEmailsApi { */ public archiveWithHttpInfo(emailId: string, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -51,7 +51,7 @@ export class ObservableMarketingEmailsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -62,7 +62,7 @@ export class ObservableMarketingEmailsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -99,7 +99,7 @@ export class ObservableMarketingEmailsApi { */ public cloneWithHttpInfo(contentCloneRequestVNext: ContentCloneRequestVNext, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -113,7 +113,7 @@ export class ObservableMarketingEmailsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -124,7 +124,7 @@ export class ObservableMarketingEmailsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -161,7 +161,7 @@ export class ObservableMarketingEmailsApi { */ public createWithHttpInfo(emailCreateRequest: EmailCreateRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -175,7 +175,7 @@ export class ObservableMarketingEmailsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -186,7 +186,7 @@ export class ObservableMarketingEmailsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -223,7 +223,7 @@ export class ObservableMarketingEmailsApi { */ public createAbTestVariationWithHttpInfo(abTestCreateRequestVNext: AbTestCreateRequestVNext, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -237,7 +237,7 @@ export class ObservableMarketingEmailsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -248,7 +248,7 @@ export class ObservableMarketingEmailsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -285,7 +285,7 @@ export class ObservableMarketingEmailsApi { */ public getAbTestVariationWithHttpInfo(emailId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -299,7 +299,7 @@ export class ObservableMarketingEmailsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -310,7 +310,7 @@ export class ObservableMarketingEmailsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -352,7 +352,7 @@ export class ObservableMarketingEmailsApi { */ public getByIdWithHttpInfo(emailId: string, includeStats?: boolean, marketingCampaignNames?: boolean, workflowNames?: boolean, includedProperties?: Array, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -366,7 +366,7 @@ export class ObservableMarketingEmailsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -377,7 +377,7 @@ export class ObservableMarketingEmailsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -419,7 +419,7 @@ export class ObservableMarketingEmailsApi { */ public getDraftWithHttpInfo(emailId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -433,7 +433,7 @@ export class ObservableMarketingEmailsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -444,7 +444,7 @@ export class ObservableMarketingEmailsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -497,7 +497,7 @@ export class ObservableMarketingEmailsApi { */ public getPageWithHttpInfo(createdAt?: Date, createdAfter?: Date, createdBefore?: Date, updatedAt?: Date, updatedAfter?: Date, updatedBefore?: Date, sort?: Array, after?: string, limit?: number, includeStats?: boolean, marketingCampaignNames?: boolean, workflowNames?: boolean, type?: 'AB_EMAIL' | 'BATCH_EMAIL' | 'LOCALTIME_EMAIL' | 'AUTOMATED_AB_EMAIL' | 'BLOG_EMAIL' | 'BLOG_EMAIL_CHILD' | 'RSS_EMAIL' | 'RSS_EMAIL_CHILD' | 'RESUBSCRIBE_EMAIL' | 'OPTIN_EMAIL' | 'OPTIN_FOLLOWUP_EMAIL' | 'AUTOMATED_EMAIL' | 'FEEDBACK_CES_EMAIL' | 'FEEDBACK_CUSTOM_EMAIL' | 'FEEDBACK_CUSTOM_SURVEY_EMAIL' | 'FEEDBACK_NPS_EMAIL' | 'FOLLOWUP_EMAIL' | 'LEADFLOW_EMAIL' | 'SINGLE_SEND_API' | 'MARKETING_SINGLE_SEND_API' | 'SMTP_TOKEN' | 'TICKET_EMAIL' | 'MEMBERSHIP_REGISTRATION_EMAIL' | 'MEMBERSHIP_PASSWORD_SAVED_EMAIL' | 'MEMBERSHIP_PASSWORD_RESET_EMAIL' | 'MEMBERSHIP_EMAIL_VERIFICATION_EMAIL' | 'MEMBERSHIP_PASSWORDLESS_AUTH_EMAIL' | 'MEMBERSHIP_REGISTRATION_FOLLOW_UP_EMAIL' | 'MEMBERSHIP_OTP_LOGIN_EMAIL' | 'MEMBERSHIP_FOLLOW_UP_EMAIL' | 'MEMBERSHIP_VERIFICATION_EMAIL', isPublished?: boolean, includedProperties?: Array, campaign?: string, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -511,7 +511,7 @@ export class ObservableMarketingEmailsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -522,7 +522,7 @@ export class ObservableMarketingEmailsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -576,7 +576,7 @@ export class ObservableMarketingEmailsApi { */ public getRevisionByIdWithHttpInfo(emailId: string, revisionId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -590,7 +590,7 @@ export class ObservableMarketingEmailsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -601,7 +601,7 @@ export class ObservableMarketingEmailsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -642,7 +642,7 @@ export class ObservableMarketingEmailsApi { */ public getRevisionsWithHttpInfo(emailId: string, after?: string, before?: string, limit?: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -656,7 +656,7 @@ export class ObservableMarketingEmailsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -667,7 +667,7 @@ export class ObservableMarketingEmailsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -707,7 +707,7 @@ export class ObservableMarketingEmailsApi { */ public publishOrSendWithHttpInfo(emailId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -721,7 +721,7 @@ export class ObservableMarketingEmailsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -732,7 +732,7 @@ export class ObservableMarketingEmailsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -769,7 +769,7 @@ export class ObservableMarketingEmailsApi { */ public resetDraftWithHttpInfo(emailId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -783,7 +783,7 @@ export class ObservableMarketingEmailsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -794,7 +794,7 @@ export class ObservableMarketingEmailsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -832,7 +832,7 @@ export class ObservableMarketingEmailsApi { */ public restoreDraftRevisionWithHttpInfo(emailId: string, revisionId: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -846,7 +846,7 @@ export class ObservableMarketingEmailsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -857,7 +857,7 @@ export class ObservableMarketingEmailsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -896,7 +896,7 @@ export class ObservableMarketingEmailsApi { */ public restoreRevisionWithHttpInfo(emailId: string, revisionId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -910,7 +910,7 @@ export class ObservableMarketingEmailsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -921,7 +921,7 @@ export class ObservableMarketingEmailsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -959,7 +959,7 @@ export class ObservableMarketingEmailsApi { */ public unpublishOrCancelWithHttpInfo(emailId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -973,7 +973,7 @@ export class ObservableMarketingEmailsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -984,7 +984,7 @@ export class ObservableMarketingEmailsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1023,7 +1023,7 @@ export class ObservableMarketingEmailsApi { */ public updateWithHttpInfo(emailId: string, emailUpdateRequest: EmailUpdateRequest, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1037,7 +1037,7 @@ export class ObservableMarketingEmailsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1048,7 +1048,7 @@ export class ObservableMarketingEmailsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1088,7 +1088,7 @@ export class ObservableMarketingEmailsApi { */ public upsertDraftWithHttpInfo(emailId: string, emailUpdateRequest: EmailUpdateRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1102,7 +1102,7 @@ export class ObservableMarketingEmailsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1113,7 +1113,7 @@ export class ObservableMarketingEmailsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1172,7 +1172,7 @@ export class ObservableStatisticsApi { */ public getEmailsListWithHttpInfo(startTimestamp?: string, endTimestamp?: string, emailIds?: Array, property?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1186,7 +1186,7 @@ export class ObservableStatisticsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1197,7 +1197,7 @@ export class ObservableStatisticsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1240,7 +1240,7 @@ export class ObservableStatisticsApi { */ public getHistogramWithHttpInfo(interval?: 'YEAR' | 'QUARTER' | 'MONTH' | 'WEEK' | 'DAY' | 'HOUR' | 'QUARTER_HOUR' | 'MINUTE' | 'SECOND', startTimestamp?: string, endTimestamp?: string, emailIds?: Array, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1254,7 +1254,7 @@ export class ObservableStatisticsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1265,7 +1265,7 @@ export class ObservableStatisticsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/marketing/events/types/ObservableAPI.ts b/codegen/marketing/events/types/ObservableAPI.ts index 992bd2c958..e6c6a13fb4 100644 --- a/codegen/marketing/events/types/ObservableAPI.ts +++ b/codegen/marketing/events/types/ObservableAPI.ts @@ -58,7 +58,7 @@ export class ObservableAddEventAttendeesApi { */ public recordByContactEmailsWithHttpInfo(externalEventId: string, subscriberState: string, batchInputMarketingEventEmailSubscriber: BatchInputMarketingEventEmailSubscriber, externalAccountId?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -72,7 +72,7 @@ export class ObservableAddEventAttendeesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -83,7 +83,7 @@ export class ObservableAddEventAttendeesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -125,7 +125,7 @@ export class ObservableAddEventAttendeesApi { */ public recordByContactIdWithHttpInfo(objectId: string, subscriberState: string, batchInputMarketingEventSubscriber: BatchInputMarketingEventSubscriber, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -139,7 +139,7 @@ export class ObservableAddEventAttendeesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -150,7 +150,7 @@ export class ObservableAddEventAttendeesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -192,7 +192,7 @@ export class ObservableAddEventAttendeesApi { */ public recordByContactIdsWithHttpInfo(externalEventId: string, subscriberState: string, batchInputMarketingEventSubscriber: BatchInputMarketingEventSubscriber, externalAccountId?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -206,7 +206,7 @@ export class ObservableAddEventAttendeesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -217,7 +217,7 @@ export class ObservableAddEventAttendeesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -259,7 +259,7 @@ export class ObservableAddEventAttendeesApi { */ public recordByEmailWithHttpInfo(objectId: string, subscriberState: string, batchInputMarketingEventEmailSubscriber: BatchInputMarketingEventEmailSubscriber, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -273,7 +273,7 @@ export class ObservableAddEventAttendeesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -284,7 +284,7 @@ export class ObservableAddEventAttendeesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -342,7 +342,7 @@ export class ObservableBasicApi { */ public archiveWithHttpInfo(externalEventId: string, externalAccountId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -356,7 +356,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -367,7 +367,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -405,7 +405,7 @@ export class ObservableBasicApi { */ public archiveByObjectIdWithHttpInfo(objectId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -419,7 +419,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -430,7 +430,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -467,7 +467,7 @@ export class ObservableBasicApi { */ public createWithHttpInfo(marketingEventCreateRequestParams: MarketingEventCreateRequestParams, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -481,7 +481,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -492,7 +492,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -530,7 +530,7 @@ export class ObservableBasicApi { */ public getAllWithHttpInfo(after?: string, limit?: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -544,7 +544,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -555,7 +555,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -593,7 +593,7 @@ export class ObservableBasicApi { */ public getByObjectIdWithHttpInfo(objectId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -607,7 +607,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -618,7 +618,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -656,7 +656,7 @@ export class ObservableBasicApi { */ public getDetailsWithHttpInfo(externalEventId: string, externalAccountId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -670,7 +670,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -681,7 +681,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -721,7 +721,7 @@ export class ObservableBasicApi { */ public updateWithHttpInfo(externalEventId: string, externalAccountId: string, marketingEventUpdateRequestParams: MarketingEventUpdateRequestParams, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -735,7 +735,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -746,7 +746,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -786,7 +786,7 @@ export class ObservableBasicApi { */ public updateByObjectIdWithHttpInfo(objectId: string, marketingEventPublicUpdateRequestV2: MarketingEventPublicUpdateRequestV2, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -800,7 +800,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -811,7 +811,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -850,7 +850,7 @@ export class ObservableBasicApi { */ public upsertWithHttpInfo(externalEventId: string, marketingEventCreateRequestParams: MarketingEventCreateRequestParams, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -864,7 +864,7 @@ export class ObservableBasicApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -875,7 +875,7 @@ export class ObservableBasicApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -931,7 +931,7 @@ export class ObservableBatchApi { */ public archiveWithHttpInfo(batchInputMarketingEventExternalUniqueIdentifier: BatchInputMarketingEventExternalUniqueIdentifier, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -945,7 +945,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -956,7 +956,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -993,7 +993,7 @@ export class ObservableBatchApi { */ public archiveByObjectIdWithHttpInfo(batchInputMarketingEventPublicObjectIdDeleteRequest: BatchInputMarketingEventPublicObjectIdDeleteRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1007,7 +1007,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1018,7 +1018,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1055,7 +1055,7 @@ export class ObservableBatchApi { */ public updateByObjectIdWithHttpInfo(batchInputMarketingEventPublicUpdateRequestFullV2: BatchInputMarketingEventPublicUpdateRequestFullV2, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1069,7 +1069,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1080,7 +1080,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1117,7 +1117,7 @@ export class ObservableBatchApi { */ public upsertWithHttpInfo(batchInputMarketingEventCreateRequestParams: BatchInputMarketingEventCreateRequestParams, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1131,7 +1131,7 @@ export class ObservableBatchApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1142,7 +1142,7 @@ export class ObservableBatchApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1198,7 +1198,7 @@ export class ObservableChangePropertyApi { */ public cancelWithHttpInfo(externalEventId: string, externalAccountId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1212,7 +1212,7 @@ export class ObservableChangePropertyApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1223,7 +1223,7 @@ export class ObservableChangePropertyApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1263,7 +1263,7 @@ export class ObservableChangePropertyApi { */ public completeWithHttpInfo(externalEventId: string, externalAccountId: string, marketingEventCompleteRequestParams: MarketingEventCompleteRequestParams, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1277,7 +1277,7 @@ export class ObservableChangePropertyApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1288,7 +1288,7 @@ export class ObservableChangePropertyApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1345,7 +1345,7 @@ export class ObservableIdentifiersApi { */ public doSearchWithHttpInfo(q: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1359,7 +1359,7 @@ export class ObservableIdentifiersApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1370,7 +1370,7 @@ export class ObservableIdentifiersApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1407,7 +1407,7 @@ export class ObservableIdentifiersApi { */ public searchPortalEventsWithHttpInfo(externalEventId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1421,7 +1421,7 @@ export class ObservableIdentifiersApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1432,7 +1432,7 @@ export class ObservableIdentifiersApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1489,7 +1489,7 @@ export class ObservableListAssociationsApi { */ public associateByExternalAccountAndEventIdsWithHttpInfo(externalAccountId: string, externalEventId: string, listId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1503,7 +1503,7 @@ export class ObservableListAssociationsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1514,7 +1514,7 @@ export class ObservableListAssociationsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1554,7 +1554,7 @@ export class ObservableListAssociationsApi { */ public associateByMarketingEventIdWithHttpInfo(marketingEventId: string, listId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1568,7 +1568,7 @@ export class ObservableListAssociationsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1579,7 +1579,7 @@ export class ObservableListAssociationsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1619,7 +1619,7 @@ export class ObservableListAssociationsApi { */ public disassociateByExternalAccountAndEventIdsWithHttpInfo(externalAccountId: string, externalEventId: string, listId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1633,7 +1633,7 @@ export class ObservableListAssociationsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1644,7 +1644,7 @@ export class ObservableListAssociationsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1684,7 +1684,7 @@ export class ObservableListAssociationsApi { */ public disassociateByMarketingEventIdWithHttpInfo(marketingEventId: string, listId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1698,7 +1698,7 @@ export class ObservableListAssociationsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1709,7 +1709,7 @@ export class ObservableListAssociationsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1748,7 +1748,7 @@ export class ObservableListAssociationsApi { */ public getAllByExternalAccountAndEventIdsWithHttpInfo(externalAccountId: string, externalEventId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1762,7 +1762,7 @@ export class ObservableListAssociationsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1773,7 +1773,7 @@ export class ObservableListAssociationsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1811,7 +1811,7 @@ export class ObservableListAssociationsApi { */ public getAllByMarketingEventIdWithHttpInfo(marketingEventId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1825,7 +1825,7 @@ export class ObservableListAssociationsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1836,7 +1836,7 @@ export class ObservableListAssociationsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1894,7 +1894,7 @@ export class ObservableRetrieveParticipantStateApi { */ public getParticipationsBreakdownByContactIdWithHttpInfo(contactIdentifier: string, state?: string, limit?: number, after?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1908,7 +1908,7 @@ export class ObservableRetrieveParticipantStateApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1919,7 +1919,7 @@ export class ObservableRetrieveParticipantStateApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -1964,7 +1964,7 @@ export class ObservableRetrieveParticipantStateApi { */ public getParticipationsBreakdownByExternalEventIdWithHttpInfo(externalAccountId: string, externalEventId: string, contactIdentifier?: string, state?: string, limit?: number, after?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -1978,7 +1978,7 @@ export class ObservableRetrieveParticipantStateApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -1989,7 +1989,7 @@ export class ObservableRetrieveParticipantStateApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -2035,7 +2035,7 @@ export class ObservableRetrieveParticipantStateApi { */ public getParticipationsBreakdownByMarketingEventIdWithHttpInfo(marketingEventId: number, contactIdentifier?: string, state?: string, limit?: number, after?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -2049,7 +2049,7 @@ export class ObservableRetrieveParticipantStateApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -2060,7 +2060,7 @@ export class ObservableRetrieveParticipantStateApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -2102,7 +2102,7 @@ export class ObservableRetrieveParticipantStateApi { */ public getParticipationsCountersByEventExternalIdWithHttpInfo(externalAccountId: string, externalEventId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -2116,7 +2116,7 @@ export class ObservableRetrieveParticipantStateApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -2127,7 +2127,7 @@ export class ObservableRetrieveParticipantStateApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -2165,7 +2165,7 @@ export class ObservableRetrieveParticipantStateApi { */ public getParticipationsCountersByMarketingEventIdWithHttpInfo(marketingEventId: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -2179,7 +2179,7 @@ export class ObservableRetrieveParticipantStateApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -2190,7 +2190,7 @@ export class ObservableRetrieveParticipantStateApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -2245,7 +2245,7 @@ export class ObservableSettingsApi { */ public getAllWithHttpInfo(appId: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -2259,7 +2259,7 @@ export class ObservableSettingsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -2270,7 +2270,7 @@ export class ObservableSettingsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -2308,7 +2308,7 @@ export class ObservableSettingsApi { */ public updateWithHttpInfo(appId: number, eventDetailSettingsUrl: EventDetailSettingsUrl, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -2322,7 +2322,7 @@ export class ObservableSettingsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -2333,7 +2333,7 @@ export class ObservableSettingsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -2392,7 +2392,7 @@ export class ObservableSubscriberStateChangesApi { */ public upsertByContactEmailWithHttpInfo(externalEventId: string, subscriberState: string, externalAccountId: string, batchInputMarketingEventEmailSubscriber: BatchInputMarketingEventEmailSubscriber, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -2406,7 +2406,7 @@ export class ObservableSubscriberStateChangesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -2417,7 +2417,7 @@ export class ObservableSubscriberStateChangesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -2460,7 +2460,7 @@ export class ObservableSubscriberStateChangesApi { */ public upsertByContactIdWithHttpInfo(externalEventId: string, subscriberState: string, externalAccountId: string, batchInputMarketingEventSubscriber: BatchInputMarketingEventSubscriber, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -2474,7 +2474,7 @@ export class ObservableSubscriberStateChangesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -2485,7 +2485,7 @@ export class ObservableSubscriberStateChangesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/marketing/forms/types/ObservableAPI.ts b/codegen/marketing/forms/types/ObservableAPI.ts index 7002a9c6e3..58d0cfdad9 100644 --- a/codegen/marketing/forms/types/ObservableAPI.ts +++ b/codegen/marketing/forms/types/ObservableAPI.ts @@ -32,7 +32,7 @@ export class ObservableFormsApi { */ public archiveWithHttpInfo(formId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -46,7 +46,7 @@ export class ObservableFormsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -57,7 +57,7 @@ export class ObservableFormsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -94,7 +94,7 @@ export class ObservableFormsApi { */ public createWithHttpInfo(formDefinitionCreateRequestBase: FormDefinitionCreateRequestBase, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -108,7 +108,7 @@ export class ObservableFormsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -119,7 +119,7 @@ export class ObservableFormsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -157,7 +157,7 @@ export class ObservableFormsApi { */ public getByIdWithHttpInfo(formId: string, archived?: boolean, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -171,7 +171,7 @@ export class ObservableFormsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -182,7 +182,7 @@ export class ObservableFormsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -223,7 +223,7 @@ export class ObservableFormsApi { */ public getPageWithHttpInfo(after?: string, limit?: number, archived?: boolean, formTypes?: Array<'hubspot' | 'captured' | 'flow' | 'blog_comment' | 'all'>, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -237,7 +237,7 @@ export class ObservableFormsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -248,7 +248,7 @@ export class ObservableFormsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -289,7 +289,7 @@ export class ObservableFormsApi { */ public replaceWithHttpInfo(formId: string, hubSpotFormDefinition: HubSpotFormDefinition, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -303,7 +303,7 @@ export class ObservableFormsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -314,7 +314,7 @@ export class ObservableFormsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -353,7 +353,7 @@ export class ObservableFormsApi { */ public updateWithHttpInfo(formId: string, hubSpotFormDefinitionPatchRequest: HubSpotFormDefinitionPatchRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -367,7 +367,7 @@ export class ObservableFormsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -378,7 +378,7 @@ export class ObservableFormsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/marketing/transactional/types/ObservableAPI.ts b/codegen/marketing/transactional/types/ObservableAPI.ts index 099ae5174d..5cfa39ba5a 100644 --- a/codegen/marketing/transactional/types/ObservableAPI.ts +++ b/codegen/marketing/transactional/types/ObservableAPI.ts @@ -32,7 +32,7 @@ export class ObservablePublicSMTPTokensApi { */ public archiveTokenWithHttpInfo(tokenId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -46,7 +46,7 @@ export class ObservablePublicSMTPTokensApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -57,7 +57,7 @@ export class ObservablePublicSMTPTokensApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -94,7 +94,7 @@ export class ObservablePublicSMTPTokensApi { */ public createTokenWithHttpInfo(smtpApiTokenRequestEgg: SmtpApiTokenRequestEgg, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -108,7 +108,7 @@ export class ObservablePublicSMTPTokensApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -119,7 +119,7 @@ export class ObservablePublicSMTPTokensApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -156,7 +156,7 @@ export class ObservablePublicSMTPTokensApi { */ public getTokenByIdWithHttpInfo(tokenId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -170,7 +170,7 @@ export class ObservablePublicSMTPTokensApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -181,7 +181,7 @@ export class ObservablePublicSMTPTokensApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -221,7 +221,7 @@ export class ObservablePublicSMTPTokensApi { */ public getTokensPageWithHttpInfo(campaignName?: string, emailCampaignId?: string, after?: string, limit?: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -235,7 +235,7 @@ export class ObservablePublicSMTPTokensApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -246,7 +246,7 @@ export class ObservablePublicSMTPTokensApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -286,7 +286,7 @@ export class ObservablePublicSMTPTokensApi { */ public resetPasswordWithHttpInfo(tokenId: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -300,7 +300,7 @@ export class ObservablePublicSMTPTokensApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -311,7 +311,7 @@ export class ObservablePublicSMTPTokensApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -366,7 +366,7 @@ export class ObservableSingleSendApi { */ public sendEmailWithHttpInfo(publicSingleSendRequestEgg: PublicSingleSendRequestEgg, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -380,7 +380,7 @@ export class ObservableSingleSendApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -391,7 +391,7 @@ export class ObservableSingleSendApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/oauth/types/ObservableAPI.ts b/codegen/oauth/types/ObservableAPI.ts index 1ad4177313..5c45390d0c 100644 --- a/codegen/oauth/types/ObservableAPI.ts +++ b/codegen/oauth/types/ObservableAPI.ts @@ -30,7 +30,7 @@ export class ObservableAccessTokensApi { */ public getWithHttpInfo(token: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -44,7 +44,7 @@ export class ObservableAccessTokensApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -55,7 +55,7 @@ export class ObservableAccessTokensApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -110,7 +110,7 @@ export class ObservableRefreshTokensApi { */ public archiveWithHttpInfo(token: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -124,7 +124,7 @@ export class ObservableRefreshTokensApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -135,7 +135,7 @@ export class ObservableRefreshTokensApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -172,7 +172,7 @@ export class ObservableRefreshTokensApi { */ public getWithHttpInfo(token: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -186,7 +186,7 @@ export class ObservableRefreshTokensApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -197,7 +197,7 @@ export class ObservableRefreshTokensApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -257,7 +257,7 @@ export class ObservableTokensApi { */ public createWithHttpInfo(grantType?: string, code?: string, redirectUri?: string, clientId?: string, clientSecret?: string, refreshToken?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -271,7 +271,7 @@ export class ObservableTokensApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -282,7 +282,7 @@ export class ObservableTokensApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/settings/business_units/types/ObservableAPI.ts b/codegen/settings/business_units/types/ObservableAPI.ts index 122c0015a2..d8ffaf3292 100644 --- a/codegen/settings/business_units/types/ObservableAPI.ts +++ b/codegen/settings/business_units/types/ObservableAPI.ts @@ -30,7 +30,7 @@ export class ObservableBusinessUnitApi { */ public getByUserIDWithHttpInfo(userId: string, properties?: Array, name?: Array, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -44,7 +44,7 @@ export class ObservableBusinessUnitApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -55,7 +55,7 @@ export class ObservableBusinessUnitApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/settings/users/types/ObservableAPI.ts b/codegen/settings/users/types/ObservableAPI.ts index 20b88ee5d0..23e1206be8 100644 --- a/codegen/settings/users/types/ObservableAPI.ts +++ b/codegen/settings/users/types/ObservableAPI.ts @@ -32,7 +32,7 @@ export class ObservableRolesApi { */ public getAllWithHttpInfo(_options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -46,7 +46,7 @@ export class ObservableRolesApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -57,7 +57,7 @@ export class ObservableRolesApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -110,7 +110,7 @@ export class ObservableTeamsApi { */ public getAllWithHttpInfo(_options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -124,7 +124,7 @@ export class ObservableTeamsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -135,7 +135,7 @@ export class ObservableTeamsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -190,7 +190,7 @@ export class ObservableUsersApi { */ public archiveWithHttpInfo(userId: string, idProperty?: 'USER_ID' | 'EMAIL', _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -204,7 +204,7 @@ export class ObservableUsersApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -215,7 +215,7 @@ export class ObservableUsersApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -253,7 +253,7 @@ export class ObservableUsersApi { */ public createWithHttpInfo(userProvisionRequest: UserProvisionRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -267,7 +267,7 @@ export class ObservableUsersApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -278,7 +278,7 @@ export class ObservableUsersApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -316,7 +316,7 @@ export class ObservableUsersApi { */ public getByIdWithHttpInfo(userId: string, idProperty?: 'USER_ID' | 'EMAIL', _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -330,7 +330,7 @@ export class ObservableUsersApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -341,7 +341,7 @@ export class ObservableUsersApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -380,7 +380,7 @@ export class ObservableUsersApi { */ public getPageWithHttpInfo(limit?: number, after?: string, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -394,7 +394,7 @@ export class ObservableUsersApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -405,7 +405,7 @@ export class ObservableUsersApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -445,7 +445,7 @@ export class ObservableUsersApi { */ public replaceWithHttpInfo(userId: string, publicUserUpdate: PublicUserUpdate, idProperty?: 'USER_ID' | 'EMAIL', _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -459,7 +459,7 @@ export class ObservableUsersApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -470,7 +470,7 @@ export class ObservableUsersApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } diff --git a/codegen/webhooks/types/ObservableAPI.ts b/codegen/webhooks/types/ObservableAPI.ts index afce260ece..169f8ea714 100644 --- a/codegen/webhooks/types/ObservableAPI.ts +++ b/codegen/webhooks/types/ObservableAPI.ts @@ -36,7 +36,7 @@ export class ObservableSettingsApi { */ public clearWithHttpInfo(appId: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -50,7 +50,7 @@ export class ObservableSettingsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -61,7 +61,7 @@ export class ObservableSettingsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -99,7 +99,7 @@ export class ObservableSettingsApi { */ public configureWithHttpInfo(appId: number, settingsChangeRequest: SettingsChangeRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -113,7 +113,7 @@ export class ObservableSettingsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -124,7 +124,7 @@ export class ObservableSettingsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -162,7 +162,7 @@ export class ObservableSettingsApi { */ public getAllWithHttpInfo(appId: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -176,7 +176,7 @@ export class ObservableSettingsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -187,7 +187,7 @@ export class ObservableSettingsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -243,7 +243,7 @@ export class ObservableSubscriptionsApi { */ public archiveWithHttpInfo(subscriptionId: number, appId: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -257,7 +257,7 @@ export class ObservableSubscriptionsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -268,7 +268,7 @@ export class ObservableSubscriptionsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -307,7 +307,7 @@ export class ObservableSubscriptionsApi { */ public createWithHttpInfo(appId: number, subscriptionCreateRequest: SubscriptionCreateRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -321,7 +321,7 @@ export class ObservableSubscriptionsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -332,7 +332,7 @@ export class ObservableSubscriptionsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -370,7 +370,7 @@ export class ObservableSubscriptionsApi { */ public getAllWithHttpInfo(appId: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -384,7 +384,7 @@ export class ObservableSubscriptionsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -395,7 +395,7 @@ export class ObservableSubscriptionsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -433,7 +433,7 @@ export class ObservableSubscriptionsApi { */ public getByIdWithHttpInfo(subscriptionId: number, appId: number, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -447,7 +447,7 @@ export class ObservableSubscriptionsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -458,7 +458,7 @@ export class ObservableSubscriptionsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -498,7 +498,7 @@ export class ObservableSubscriptionsApi { */ public updateWithHttpInfo(subscriptionId: number, appId: number, subscriptionPatchRequest: SubscriptionPatchRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -512,7 +512,7 @@ export class ObservableSubscriptionsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -523,7 +523,7 @@ export class ObservableSubscriptionsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; } @@ -563,7 +563,7 @@ export class ObservableSubscriptionsApi { */ public updateBatchWithHttpInfo(appId: number, batchInputSubscriptionBatchUpdateRequest: BatchInputSubscriptionBatchUpdateRequest, _options?: ConfigurationOptions): Observable> { let _config = this.configuration; - let allMiddleware: Middleware[] = []; + let allMiddleware: Middleware[] = [...this.configuration.middleware]; if (_options && _options.middleware){ const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior // call-time middleware provided @@ -577,7 +577,7 @@ export class ObservableSubscriptionsApi { allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) break; case 'replace': - allMiddleware = calltimeMiddleware + allMiddleware = [...calltimeMiddleware] break; default: throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) @@ -588,7 +588,7 @@ export class ObservableSubscriptionsApi { baseServer: _options.baseServer || this.configuration.baseServer, httpApi: _options.httpApi || this.configuration.httpApi, authMethods: _options.authMethods || this.configuration.authMethods, - middleware: allMiddleware || this.configuration.middleware + middleware: allMiddleware }; }