ng-configcat-publicapi
Advanced tools
Comparing version 2.5.4 to 2.5.6
@@ -16,15 +16,10 @@ /** | ||
import { HttpClient, HttpHeaders, HttpParams, | ||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext | ||
} from '@angular/common/http'; | ||
HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http'; | ||
import { CustomHttpParameterCodec } from '../encoder'; | ||
import { Observable } from 'rxjs'; | ||
// @ts-ignore | ||
import { AuditLogItemModel } from '../model/auditLogItemModel'; | ||
// @ts-ignore | ||
import { AuditLogType } from '../model/auditLogType'; | ||
// @ts-ignore | ||
import { SettingModel } from '../model/settingModel'; | ||
import { AuditLogItemModel } from '../model/models'; | ||
import { AuditLogType } from '../model/models'; | ||
import { SettingModel } from '../model/models'; | ||
// @ts-ignore | ||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; | ||
@@ -107,6 +102,6 @@ import { Configuration } from '../configuration'; | ||
*/ | ||
public getAuditlogs(productId: string, configId?: string, environmentId?: string, auditLogType?: AuditLogType, fromUtcDateTime?: string, toUtcDateTime?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<Array<AuditLogItemModel>>; | ||
public getAuditlogs(productId: string, configId?: string, environmentId?: string, auditLogType?: AuditLogType, fromUtcDateTime?: string, toUtcDateTime?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<Array<AuditLogItemModel>>>; | ||
public getAuditlogs(productId: string, configId?: string, environmentId?: string, auditLogType?: AuditLogType, fromUtcDateTime?: string, toUtcDateTime?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<Array<AuditLogItemModel>>>; | ||
public getAuditlogs(productId: string, configId?: string, environmentId?: string, auditLogType?: AuditLogType, fromUtcDateTime?: string, toUtcDateTime?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> { | ||
public getAuditlogs(productId: string, configId?: string, environmentId?: string, auditLogType?: AuditLogType, fromUtcDateTime?: string, toUtcDateTime?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<Array<AuditLogItemModel>>; | ||
public getAuditlogs(productId: string, configId?: string, environmentId?: string, auditLogType?: AuditLogType, fromUtcDateTime?: string, toUtcDateTime?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpResponse<Array<AuditLogItemModel>>>; | ||
public getAuditlogs(productId: string, configId?: string, environmentId?: string, auditLogType?: AuditLogType, fromUtcDateTime?: string, toUtcDateTime?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpEvent<Array<AuditLogItemModel>>>; | ||
public getAuditlogs(productId: string, configId?: string, environmentId?: string, auditLogType?: AuditLogType, fromUtcDateTime?: string, toUtcDateTime?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<any> { | ||
if (productId === null || productId === undefined) { | ||
@@ -116,35 +111,35 @@ throw new Error('Required parameter productId was null or undefined when calling getAuditlogs.'); | ||
let localVarQueryParameters = new HttpParams({encoder: this.encoder}); | ||
let queryParameters = new HttpParams({encoder: this.encoder}); | ||
if (configId !== undefined && configId !== null) { | ||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, | ||
queryParameters = this.addToHttpParams(queryParameters, | ||
<any>configId, 'configId'); | ||
} | ||
if (environmentId !== undefined && environmentId !== null) { | ||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, | ||
queryParameters = this.addToHttpParams(queryParameters, | ||
<any>environmentId, 'environmentId'); | ||
} | ||
if (auditLogType !== undefined && auditLogType !== null) { | ||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, | ||
queryParameters = this.addToHttpParams(queryParameters, | ||
<any>auditLogType, 'auditLogType'); | ||
} | ||
if (fromUtcDateTime !== undefined && fromUtcDateTime !== null) { | ||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, | ||
queryParameters = this.addToHttpParams(queryParameters, | ||
<any>fromUtcDateTime, 'fromUtcDateTime'); | ||
} | ||
if (toUtcDateTime !== undefined && toUtcDateTime !== null) { | ||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, | ||
queryParameters = this.addToHttpParams(queryParameters, | ||
<any>toUtcDateTime, 'toUtcDateTime'); | ||
} | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
@@ -155,17 +150,12 @@ const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -175,7 +165,6 @@ | ||
{ | ||
context: localVarHttpContext, | ||
params: localVarQueryParameters, | ||
responseType: <any>responseType_, | ||
params: queryParameters, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -194,6 +183,6 @@ reportProgress: reportProgress | ||
*/ | ||
public getDeletedSettings(configId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<Array<SettingModel>>; | ||
public getDeletedSettings(configId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<Array<SettingModel>>>; | ||
public getDeletedSettings(configId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<Array<SettingModel>>>; | ||
public getDeletedSettings(configId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> { | ||
public getDeletedSettings(configId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<Array<SettingModel>>; | ||
public getDeletedSettings(configId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpResponse<Array<SettingModel>>>; | ||
public getDeletedSettings(configId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpEvent<Array<SettingModel>>>; | ||
public getDeletedSettings(configId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<any> { | ||
if (configId === null || configId === undefined) { | ||
@@ -203,13 +192,13 @@ throw new Error('Required parameter configId was null or undefined when calling getDeletedSettings.'); | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
@@ -220,17 +209,12 @@ const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -240,6 +224,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -264,6 +247,6 @@ reportProgress: reportProgress | ||
*/ | ||
public getOrganizationAuditlogs(organizationId: string, productId?: string, configId?: string, environmentId?: string, auditLogType?: AuditLogType, fromUtcDateTime?: string, toUtcDateTime?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<Array<AuditLogItemModel>>; | ||
public getOrganizationAuditlogs(organizationId: string, productId?: string, configId?: string, environmentId?: string, auditLogType?: AuditLogType, fromUtcDateTime?: string, toUtcDateTime?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<Array<AuditLogItemModel>>>; | ||
public getOrganizationAuditlogs(organizationId: string, productId?: string, configId?: string, environmentId?: string, auditLogType?: AuditLogType, fromUtcDateTime?: string, toUtcDateTime?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<Array<AuditLogItemModel>>>; | ||
public getOrganizationAuditlogs(organizationId: string, productId?: string, configId?: string, environmentId?: string, auditLogType?: AuditLogType, fromUtcDateTime?: string, toUtcDateTime?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> { | ||
public getOrganizationAuditlogs(organizationId: string, productId?: string, configId?: string, environmentId?: string, auditLogType?: AuditLogType, fromUtcDateTime?: string, toUtcDateTime?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<Array<AuditLogItemModel>>; | ||
public getOrganizationAuditlogs(organizationId: string, productId?: string, configId?: string, environmentId?: string, auditLogType?: AuditLogType, fromUtcDateTime?: string, toUtcDateTime?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpResponse<Array<AuditLogItemModel>>>; | ||
public getOrganizationAuditlogs(organizationId: string, productId?: string, configId?: string, environmentId?: string, auditLogType?: AuditLogType, fromUtcDateTime?: string, toUtcDateTime?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpEvent<Array<AuditLogItemModel>>>; | ||
public getOrganizationAuditlogs(organizationId: string, productId?: string, configId?: string, environmentId?: string, auditLogType?: AuditLogType, fromUtcDateTime?: string, toUtcDateTime?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<any> { | ||
if (organizationId === null || organizationId === undefined) { | ||
@@ -273,39 +256,39 @@ throw new Error('Required parameter organizationId was null or undefined when calling getOrganizationAuditlogs.'); | ||
let localVarQueryParameters = new HttpParams({encoder: this.encoder}); | ||
let queryParameters = new HttpParams({encoder: this.encoder}); | ||
if (productId !== undefined && productId !== null) { | ||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, | ||
queryParameters = this.addToHttpParams(queryParameters, | ||
<any>productId, 'productId'); | ||
} | ||
if (configId !== undefined && configId !== null) { | ||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, | ||
queryParameters = this.addToHttpParams(queryParameters, | ||
<any>configId, 'configId'); | ||
} | ||
if (environmentId !== undefined && environmentId !== null) { | ||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, | ||
queryParameters = this.addToHttpParams(queryParameters, | ||
<any>environmentId, 'environmentId'); | ||
} | ||
if (auditLogType !== undefined && auditLogType !== null) { | ||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, | ||
queryParameters = this.addToHttpParams(queryParameters, | ||
<any>auditLogType, 'auditLogType'); | ||
} | ||
if (fromUtcDateTime !== undefined && fromUtcDateTime !== null) { | ||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, | ||
queryParameters = this.addToHttpParams(queryParameters, | ||
<any>fromUtcDateTime, 'fromUtcDateTime'); | ||
} | ||
if (toUtcDateTime !== undefined && toUtcDateTime !== null) { | ||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, | ||
queryParameters = this.addToHttpParams(queryParameters, | ||
<any>toUtcDateTime, 'toUtcDateTime'); | ||
} | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
@@ -316,17 +299,12 @@ const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -336,7 +314,6 @@ | ||
{ | ||
context: localVarHttpContext, | ||
params: localVarQueryParameters, | ||
responseType: <any>responseType_, | ||
params: queryParameters, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -343,0 +320,0 @@ reportProgress: reportProgress |
@@ -16,15 +16,10 @@ /** | ||
import { HttpClient, HttpHeaders, HttpParams, | ||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext | ||
} from '@angular/common/http'; | ||
HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http'; | ||
import { CustomHttpParameterCodec } from '../encoder'; | ||
import { Observable } from 'rxjs'; | ||
// @ts-ignore | ||
import { ConfigModel } from '../model/configModel'; | ||
// @ts-ignore | ||
import { CreateConfigRequest } from '../model/createConfigRequest'; | ||
// @ts-ignore | ||
import { UpdateConfigRequest } from '../model/updateConfigRequest'; | ||
import { ConfigModel } from '../model/models'; | ||
import { CreateConfigRequest } from '../model/models'; | ||
import { UpdateConfigRequest } from '../model/models'; | ||
// @ts-ignore | ||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; | ||
@@ -103,6 +98,6 @@ import { Configuration } from '../configuration'; | ||
*/ | ||
public createConfig(productId: string, createConfigRequest: CreateConfigRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<ConfigModel>; | ||
public createConfig(productId: string, createConfigRequest: CreateConfigRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<ConfigModel>>; | ||
public createConfig(productId: string, createConfigRequest: CreateConfigRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<ConfigModel>>; | ||
public createConfig(productId: string, createConfigRequest: CreateConfigRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> { | ||
public createConfig(productId: string, createConfigRequest: CreateConfigRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<ConfigModel>; | ||
public createConfig(productId: string, createConfigRequest: CreateConfigRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpResponse<ConfigModel>>; | ||
public createConfig(productId: string, createConfigRequest: CreateConfigRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpEvent<ConfigModel>>; | ||
public createConfig(productId: string, createConfigRequest: CreateConfigRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<any> { | ||
if (productId === null || productId === undefined) { | ||
@@ -115,13 +110,13 @@ throw new Error('Required parameter productId was null or undefined when calling createConfig.'); | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
@@ -132,14 +127,9 @@ const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
// to determine the Content-Type header | ||
@@ -153,8 +143,8 @@ const consumes: string[] = [ | ||
if (httpContentTypeSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); | ||
headers = headers.set('Content-Type', httpContentTypeSelected); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -165,6 +155,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -183,6 +172,6 @@ reportProgress: reportProgress | ||
*/ | ||
public deleteConfig(configId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any>; | ||
public deleteConfig(configId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpResponse<any>>; | ||
public deleteConfig(configId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpEvent<any>>; | ||
public deleteConfig(configId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any> { | ||
public deleteConfig(configId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined}): Observable<any>; | ||
public deleteConfig(configId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined}): Observable<HttpResponse<any>>; | ||
public deleteConfig(configId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined}): Observable<HttpEvent<any>>; | ||
public deleteConfig(configId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined}): Observable<any> { | ||
if (configId === null || configId === undefined) { | ||
@@ -192,31 +181,26 @@ throw new Error('Required parameter configId was null or undefined when calling deleteConfig.'); | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -226,6 +210,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -244,6 +227,6 @@ reportProgress: reportProgress | ||
*/ | ||
public getConfig(configId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<ConfigModel>; | ||
public getConfig(configId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<ConfigModel>>; | ||
public getConfig(configId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<ConfigModel>>; | ||
public getConfig(configId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> { | ||
public getConfig(configId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<ConfigModel>; | ||
public getConfig(configId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpResponse<ConfigModel>>; | ||
public getConfig(configId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpEvent<ConfigModel>>; | ||
public getConfig(configId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<any> { | ||
if (configId === null || configId === undefined) { | ||
@@ -253,13 +236,13 @@ throw new Error('Required parameter configId was null or undefined when calling getConfig.'); | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
@@ -270,17 +253,12 @@ const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -290,6 +268,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -308,6 +285,6 @@ reportProgress: reportProgress | ||
*/ | ||
public getConfigs(productId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<Array<ConfigModel>>; | ||
public getConfigs(productId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<Array<ConfigModel>>>; | ||
public getConfigs(productId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<Array<ConfigModel>>>; | ||
public getConfigs(productId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> { | ||
public getConfigs(productId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<Array<ConfigModel>>; | ||
public getConfigs(productId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpResponse<Array<ConfigModel>>>; | ||
public getConfigs(productId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpEvent<Array<ConfigModel>>>; | ||
public getConfigs(productId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<any> { | ||
if (productId === null || productId === undefined) { | ||
@@ -317,13 +294,13 @@ throw new Error('Required parameter productId was null or undefined when calling getConfigs.'); | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
@@ -334,17 +311,12 @@ const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -354,6 +326,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -373,6 +344,6 @@ reportProgress: reportProgress | ||
*/ | ||
public updateConfig(configId: string, updateConfigRequest: UpdateConfigRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<ConfigModel>; | ||
public updateConfig(configId: string, updateConfigRequest: UpdateConfigRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<ConfigModel>>; | ||
public updateConfig(configId: string, updateConfigRequest: UpdateConfigRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<ConfigModel>>; | ||
public updateConfig(configId: string, updateConfigRequest: UpdateConfigRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> { | ||
public updateConfig(configId: string, updateConfigRequest: UpdateConfigRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<ConfigModel>; | ||
public updateConfig(configId: string, updateConfigRequest: UpdateConfigRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpResponse<ConfigModel>>; | ||
public updateConfig(configId: string, updateConfigRequest: UpdateConfigRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpEvent<ConfigModel>>; | ||
public updateConfig(configId: string, updateConfigRequest: UpdateConfigRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<any> { | ||
if (configId === null || configId === undefined) { | ||
@@ -385,13 +356,13 @@ throw new Error('Required parameter configId was null or undefined when calling updateConfig.'); | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
@@ -402,14 +373,9 @@ const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
// to determine the Content-Type header | ||
@@ -423,8 +389,8 @@ const consumes: string[] = [ | ||
if (httpContentTypeSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); | ||
headers = headers.set('Content-Type', httpContentTypeSelected); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -435,6 +401,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -441,0 +406,0 @@ reportProgress: reportProgress |
@@ -16,15 +16,10 @@ /** | ||
import { HttpClient, HttpHeaders, HttpParams, | ||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext | ||
} from '@angular/common/http'; | ||
HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http'; | ||
import { CustomHttpParameterCodec } from '../encoder'; | ||
import { Observable } from 'rxjs'; | ||
// @ts-ignore | ||
import { CreateEnvironmentModel } from '../model/createEnvironmentModel'; | ||
// @ts-ignore | ||
import { EnvironmentModel } from '../model/environmentModel'; | ||
// @ts-ignore | ||
import { UpdateEnvironmentModel } from '../model/updateEnvironmentModel'; | ||
import { CreateEnvironmentModel } from '../model/models'; | ||
import { EnvironmentModel } from '../model/models'; | ||
import { UpdateEnvironmentModel } from '../model/models'; | ||
// @ts-ignore | ||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; | ||
@@ -103,6 +98,6 @@ import { Configuration } from '../configuration'; | ||
*/ | ||
public createEnvironment(productId: string, createEnvironmentModel: CreateEnvironmentModel, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<EnvironmentModel>; | ||
public createEnvironment(productId: string, createEnvironmentModel: CreateEnvironmentModel, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<EnvironmentModel>>; | ||
public createEnvironment(productId: string, createEnvironmentModel: CreateEnvironmentModel, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<EnvironmentModel>>; | ||
public createEnvironment(productId: string, createEnvironmentModel: CreateEnvironmentModel, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> { | ||
public createEnvironment(productId: string, createEnvironmentModel: CreateEnvironmentModel, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<EnvironmentModel>; | ||
public createEnvironment(productId: string, createEnvironmentModel: CreateEnvironmentModel, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpResponse<EnvironmentModel>>; | ||
public createEnvironment(productId: string, createEnvironmentModel: CreateEnvironmentModel, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpEvent<EnvironmentModel>>; | ||
public createEnvironment(productId: string, createEnvironmentModel: CreateEnvironmentModel, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<any> { | ||
if (productId === null || productId === undefined) { | ||
@@ -115,13 +110,13 @@ throw new Error('Required parameter productId was null or undefined when calling createEnvironment.'); | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
@@ -132,14 +127,9 @@ const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
// to determine the Content-Type header | ||
@@ -153,8 +143,8 @@ const consumes: string[] = [ | ||
if (httpContentTypeSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); | ||
headers = headers.set('Content-Type', httpContentTypeSelected); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -165,6 +155,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -183,6 +172,6 @@ reportProgress: reportProgress | ||
*/ | ||
public deleteEnvironment(environmentId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any>; | ||
public deleteEnvironment(environmentId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpResponse<any>>; | ||
public deleteEnvironment(environmentId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpEvent<any>>; | ||
public deleteEnvironment(environmentId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any> { | ||
public deleteEnvironment(environmentId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined}): Observable<any>; | ||
public deleteEnvironment(environmentId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined}): Observable<HttpResponse<any>>; | ||
public deleteEnvironment(environmentId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined}): Observable<HttpEvent<any>>; | ||
public deleteEnvironment(environmentId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined}): Observable<any> { | ||
if (environmentId === null || environmentId === undefined) { | ||
@@ -192,31 +181,26 @@ throw new Error('Required parameter environmentId was null or undefined when calling deleteEnvironment.'); | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -226,6 +210,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -244,6 +227,6 @@ reportProgress: reportProgress | ||
*/ | ||
public getEnvironment(environmentId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<EnvironmentModel>; | ||
public getEnvironment(environmentId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<EnvironmentModel>>; | ||
public getEnvironment(environmentId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<EnvironmentModel>>; | ||
public getEnvironment(environmentId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> { | ||
public getEnvironment(environmentId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<EnvironmentModel>; | ||
public getEnvironment(environmentId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpResponse<EnvironmentModel>>; | ||
public getEnvironment(environmentId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpEvent<EnvironmentModel>>; | ||
public getEnvironment(environmentId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<any> { | ||
if (environmentId === null || environmentId === undefined) { | ||
@@ -253,13 +236,13 @@ throw new Error('Required parameter environmentId was null or undefined when calling getEnvironment.'); | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
@@ -270,17 +253,12 @@ const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -290,6 +268,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -308,6 +285,6 @@ reportProgress: reportProgress | ||
*/ | ||
public getEnvironments(productId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<Array<EnvironmentModel>>; | ||
public getEnvironments(productId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<Array<EnvironmentModel>>>; | ||
public getEnvironments(productId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<Array<EnvironmentModel>>>; | ||
public getEnvironments(productId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> { | ||
public getEnvironments(productId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<Array<EnvironmentModel>>; | ||
public getEnvironments(productId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpResponse<Array<EnvironmentModel>>>; | ||
public getEnvironments(productId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpEvent<Array<EnvironmentModel>>>; | ||
public getEnvironments(productId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<any> { | ||
if (productId === null || productId === undefined) { | ||
@@ -317,13 +294,13 @@ throw new Error('Required parameter productId was null or undefined when calling getEnvironments.'); | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
@@ -334,17 +311,12 @@ const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -354,6 +326,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -373,6 +344,6 @@ reportProgress: reportProgress | ||
*/ | ||
public updateEnvironment(environmentId: string, updateEnvironmentModel: UpdateEnvironmentModel, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<EnvironmentModel>; | ||
public updateEnvironment(environmentId: string, updateEnvironmentModel: UpdateEnvironmentModel, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<EnvironmentModel>>; | ||
public updateEnvironment(environmentId: string, updateEnvironmentModel: UpdateEnvironmentModel, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<EnvironmentModel>>; | ||
public updateEnvironment(environmentId: string, updateEnvironmentModel: UpdateEnvironmentModel, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> { | ||
public updateEnvironment(environmentId: string, updateEnvironmentModel: UpdateEnvironmentModel, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<EnvironmentModel>; | ||
public updateEnvironment(environmentId: string, updateEnvironmentModel: UpdateEnvironmentModel, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpResponse<EnvironmentModel>>; | ||
public updateEnvironment(environmentId: string, updateEnvironmentModel: UpdateEnvironmentModel, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpEvent<EnvironmentModel>>; | ||
public updateEnvironment(environmentId: string, updateEnvironmentModel: UpdateEnvironmentModel, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<any> { | ||
if (environmentId === null || environmentId === undefined) { | ||
@@ -385,13 +356,13 @@ throw new Error('Required parameter environmentId was null or undefined when calling updateEnvironment.'); | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
@@ -402,14 +373,9 @@ const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
// to determine the Content-Type header | ||
@@ -423,8 +389,8 @@ const consumes: string[] = [ | ||
if (httpContentTypeSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); | ||
headers = headers.set('Content-Type', httpContentTypeSelected); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -435,6 +401,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -441,0 +406,0 @@ reportProgress: reportProgress |
@@ -16,17 +16,11 @@ /** | ||
import { HttpClient, HttpHeaders, HttpParams, | ||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext | ||
} from '@angular/common/http'; | ||
HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http'; | ||
import { CustomHttpParameterCodec } from '../encoder'; | ||
import { Observable } from 'rxjs'; | ||
// @ts-ignore | ||
import { ConfigSettingValuesModel } from '../model/configSettingValuesModel'; | ||
// @ts-ignore | ||
import { Operation } from '../model/operation'; | ||
// @ts-ignore | ||
import { SettingValueModel } from '../model/settingValueModel'; | ||
// @ts-ignore | ||
import { UpdateSettingValueModel } from '../model/updateSettingValueModel'; | ||
import { ConfigSettingValuesModel } from '../model/models'; | ||
import { Operation } from '../model/models'; | ||
import { SettingValueModel } from '../model/models'; | ||
import { UpdateSettingValueModel } from '../model/models'; | ||
// @ts-ignore | ||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; | ||
@@ -105,6 +99,6 @@ import { Configuration } from '../configuration'; | ||
*/ | ||
public getSettingValue(environmentId: string, settingId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<SettingValueModel>; | ||
public getSettingValue(environmentId: string, settingId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<SettingValueModel>>; | ||
public getSettingValue(environmentId: string, settingId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<SettingValueModel>>; | ||
public getSettingValue(environmentId: string, settingId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> { | ||
public getSettingValue(environmentId: string, settingId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<SettingValueModel>; | ||
public getSettingValue(environmentId: string, settingId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpResponse<SettingValueModel>>; | ||
public getSettingValue(environmentId: string, settingId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpEvent<SettingValueModel>>; | ||
public getSettingValue(environmentId: string, settingId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<any> { | ||
if (environmentId === null || environmentId === undefined) { | ||
@@ -117,13 +111,13 @@ throw new Error('Required parameter environmentId was null or undefined when calling getSettingValue.'); | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
@@ -134,17 +128,12 @@ const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -154,6 +143,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -173,6 +161,6 @@ reportProgress: reportProgress | ||
*/ | ||
public getSettingValues(configId: string, environmentId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<ConfigSettingValuesModel>; | ||
public getSettingValues(configId: string, environmentId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<ConfigSettingValuesModel>>; | ||
public getSettingValues(configId: string, environmentId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<ConfigSettingValuesModel>>; | ||
public getSettingValues(configId: string, environmentId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> { | ||
public getSettingValues(configId: string, environmentId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<ConfigSettingValuesModel>; | ||
public getSettingValues(configId: string, environmentId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpResponse<ConfigSettingValuesModel>>; | ||
public getSettingValues(configId: string, environmentId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpEvent<ConfigSettingValuesModel>>; | ||
public getSettingValues(configId: string, environmentId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<any> { | ||
if (configId === null || configId === undefined) { | ||
@@ -185,13 +173,13 @@ throw new Error('Required parameter configId was null or undefined when calling getSettingValues.'); | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
@@ -202,17 +190,12 @@ const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -222,6 +205,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -243,6 +225,6 @@ reportProgress: reportProgress | ||
*/ | ||
public replaceSettingValue(environmentId: string, settingId: number, updateSettingValueModel: UpdateSettingValueModel, reason?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<SettingValueModel>; | ||
public replaceSettingValue(environmentId: string, settingId: number, updateSettingValueModel: UpdateSettingValueModel, reason?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<SettingValueModel>>; | ||
public replaceSettingValue(environmentId: string, settingId: number, updateSettingValueModel: UpdateSettingValueModel, reason?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<SettingValueModel>>; | ||
public replaceSettingValue(environmentId: string, settingId: number, updateSettingValueModel: UpdateSettingValueModel, reason?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> { | ||
public replaceSettingValue(environmentId: string, settingId: number, updateSettingValueModel: UpdateSettingValueModel, reason?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<SettingValueModel>; | ||
public replaceSettingValue(environmentId: string, settingId: number, updateSettingValueModel: UpdateSettingValueModel, reason?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpResponse<SettingValueModel>>; | ||
public replaceSettingValue(environmentId: string, settingId: number, updateSettingValueModel: UpdateSettingValueModel, reason?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpEvent<SettingValueModel>>; | ||
public replaceSettingValue(environmentId: string, settingId: number, updateSettingValueModel: UpdateSettingValueModel, reason?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<any> { | ||
if (environmentId === null || environmentId === undefined) { | ||
@@ -258,19 +240,19 @@ throw new Error('Required parameter environmentId was null or undefined when calling replaceSettingValue.'); | ||
let localVarQueryParameters = new HttpParams({encoder: this.encoder}); | ||
let queryParameters = new HttpParams({encoder: this.encoder}); | ||
if (reason !== undefined && reason !== null) { | ||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, | ||
queryParameters = this.addToHttpParams(queryParameters, | ||
<any>reason, 'reason'); | ||
} | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
@@ -281,14 +263,9 @@ const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
// to determine the Content-Type header | ||
@@ -302,8 +279,8 @@ const consumes: string[] = [ | ||
if (httpContentTypeSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); | ||
headers = headers.set('Content-Type', httpContentTypeSelected); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -314,7 +291,6 @@ | ||
{ | ||
context: localVarHttpContext, | ||
params: localVarQueryParameters, | ||
responseType: <any>responseType_, | ||
params: queryParameters, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -336,6 +312,6 @@ reportProgress: reportProgress | ||
*/ | ||
public updateSettingValue(environmentId: string, settingId: number, operation: Array<Operation>, reason?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<SettingValueModel>; | ||
public updateSettingValue(environmentId: string, settingId: number, operation: Array<Operation>, reason?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<SettingValueModel>>; | ||
public updateSettingValue(environmentId: string, settingId: number, operation: Array<Operation>, reason?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<SettingValueModel>>; | ||
public updateSettingValue(environmentId: string, settingId: number, operation: Array<Operation>, reason?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> { | ||
public updateSettingValue(environmentId: string, settingId: number, operation: Array<Operation>, reason?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<SettingValueModel>; | ||
public updateSettingValue(environmentId: string, settingId: number, operation: Array<Operation>, reason?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpResponse<SettingValueModel>>; | ||
public updateSettingValue(environmentId: string, settingId: number, operation: Array<Operation>, reason?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpEvent<SettingValueModel>>; | ||
public updateSettingValue(environmentId: string, settingId: number, operation: Array<Operation>, reason?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<any> { | ||
if (environmentId === null || environmentId === undefined) { | ||
@@ -351,19 +327,19 @@ throw new Error('Required parameter environmentId was null or undefined when calling updateSettingValue.'); | ||
let localVarQueryParameters = new HttpParams({encoder: this.encoder}); | ||
let queryParameters = new HttpParams({encoder: this.encoder}); | ||
if (reason !== undefined && reason !== null) { | ||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, | ||
queryParameters = this.addToHttpParams(queryParameters, | ||
<any>reason, 'reason'); | ||
} | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
@@ -374,14 +350,9 @@ const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
// to determine the Content-Type header | ||
@@ -396,8 +367,8 @@ const consumes: string[] = [ | ||
if (httpContentTypeSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); | ||
headers = headers.set('Content-Type', httpContentTypeSelected); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -408,7 +379,6 @@ | ||
{ | ||
context: localVarHttpContext, | ||
params: localVarQueryParameters, | ||
responseType: <any>responseType_, | ||
params: queryParameters, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -415,0 +385,0 @@ reportProgress: reportProgress |
@@ -16,15 +16,10 @@ /** | ||
import { HttpClient, HttpHeaders, HttpParams, | ||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext | ||
} from '@angular/common/http'; | ||
HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http'; | ||
import { CustomHttpParameterCodec } from '../encoder'; | ||
import { Observable } from 'rxjs'; | ||
// @ts-ignore | ||
import { Operation } from '../model/operation'; | ||
// @ts-ignore | ||
import { SettingValueModel } from '../model/settingValueModel'; | ||
// @ts-ignore | ||
import { UpdateSettingValueModel } from '../model/updateSettingValueModel'; | ||
import { Operation } from '../model/models'; | ||
import { SettingValueModel } from '../model/models'; | ||
import { UpdateSettingValueModel } from '../model/models'; | ||
// @ts-ignore | ||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; | ||
@@ -103,6 +98,6 @@ import { Configuration } from '../configuration'; | ||
*/ | ||
public getSettingValueBySdkkey(settingKeyOrId: string, xCONFIGCATSDKKEY?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<SettingValueModel>; | ||
public getSettingValueBySdkkey(settingKeyOrId: string, xCONFIGCATSDKKEY?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<SettingValueModel>>; | ||
public getSettingValueBySdkkey(settingKeyOrId: string, xCONFIGCATSDKKEY?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<SettingValueModel>>; | ||
public getSettingValueBySdkkey(settingKeyOrId: string, xCONFIGCATSDKKEY?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> { | ||
public getSettingValueBySdkkey(settingKeyOrId: string, xCONFIGCATSDKKEY?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<SettingValueModel>; | ||
public getSettingValueBySdkkey(settingKeyOrId: string, xCONFIGCATSDKKEY?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpResponse<SettingValueModel>>; | ||
public getSettingValueBySdkkey(settingKeyOrId: string, xCONFIGCATSDKKEY?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpEvent<SettingValueModel>>; | ||
public getSettingValueBySdkkey(settingKeyOrId: string, xCONFIGCATSDKKEY?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<any> { | ||
if (settingKeyOrId === null || settingKeyOrId === undefined) { | ||
@@ -112,16 +107,16 @@ throw new Error('Required parameter settingKeyOrId was null or undefined when calling getSettingValueBySdkkey.'); | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
if (xCONFIGCATSDKKEY !== undefined && xCONFIGCATSDKKEY !== null) { | ||
localVarHeaders = localVarHeaders.set('X-CONFIGCAT-SDKKEY', String(xCONFIGCATSDKKEY)); | ||
headers = headers.set('X-CONFIGCAT-SDKKEY', String(xCONFIGCATSDKKEY)); | ||
} | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
@@ -132,17 +127,12 @@ const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -152,6 +142,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -173,6 +162,6 @@ reportProgress: reportProgress | ||
*/ | ||
public replaceSettingValueBySdkkey(settingKeyOrId: string, updateSettingValueModel: UpdateSettingValueModel, reason?: string, xCONFIGCATSDKKEY?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<SettingValueModel>; | ||
public replaceSettingValueBySdkkey(settingKeyOrId: string, updateSettingValueModel: UpdateSettingValueModel, reason?: string, xCONFIGCATSDKKEY?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<SettingValueModel>>; | ||
public replaceSettingValueBySdkkey(settingKeyOrId: string, updateSettingValueModel: UpdateSettingValueModel, reason?: string, xCONFIGCATSDKKEY?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<SettingValueModel>>; | ||
public replaceSettingValueBySdkkey(settingKeyOrId: string, updateSettingValueModel: UpdateSettingValueModel, reason?: string, xCONFIGCATSDKKEY?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> { | ||
public replaceSettingValueBySdkkey(settingKeyOrId: string, updateSettingValueModel: UpdateSettingValueModel, reason?: string, xCONFIGCATSDKKEY?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<SettingValueModel>; | ||
public replaceSettingValueBySdkkey(settingKeyOrId: string, updateSettingValueModel: UpdateSettingValueModel, reason?: string, xCONFIGCATSDKKEY?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpResponse<SettingValueModel>>; | ||
public replaceSettingValueBySdkkey(settingKeyOrId: string, updateSettingValueModel: UpdateSettingValueModel, reason?: string, xCONFIGCATSDKKEY?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpEvent<SettingValueModel>>; | ||
public replaceSettingValueBySdkkey(settingKeyOrId: string, updateSettingValueModel: UpdateSettingValueModel, reason?: string, xCONFIGCATSDKKEY?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<any> { | ||
if (settingKeyOrId === null || settingKeyOrId === undefined) { | ||
@@ -185,22 +174,22 @@ throw new Error('Required parameter settingKeyOrId was null or undefined when calling replaceSettingValueBySdkkey.'); | ||
let localVarQueryParameters = new HttpParams({encoder: this.encoder}); | ||
let queryParameters = new HttpParams({encoder: this.encoder}); | ||
if (reason !== undefined && reason !== null) { | ||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, | ||
queryParameters = this.addToHttpParams(queryParameters, | ||
<any>reason, 'reason'); | ||
} | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
if (xCONFIGCATSDKKEY !== undefined && xCONFIGCATSDKKEY !== null) { | ||
localVarHeaders = localVarHeaders.set('X-CONFIGCAT-SDKKEY', String(xCONFIGCATSDKKEY)); | ||
headers = headers.set('X-CONFIGCAT-SDKKEY', String(xCONFIGCATSDKKEY)); | ||
} | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
@@ -211,14 +200,9 @@ const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
// to determine the Content-Type header | ||
@@ -232,8 +216,8 @@ const consumes: string[] = [ | ||
if (httpContentTypeSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); | ||
headers = headers.set('Content-Type', httpContentTypeSelected); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -244,7 +228,6 @@ | ||
{ | ||
context: localVarHttpContext, | ||
params: localVarQueryParameters, | ||
responseType: <any>responseType_, | ||
params: queryParameters, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -266,6 +249,6 @@ reportProgress: reportProgress | ||
*/ | ||
public updateSettingValueBySdkkey(settingKeyOrId: string, operation: Array<Operation>, reason?: string, xCONFIGCATSDKKEY?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<SettingValueModel>; | ||
public updateSettingValueBySdkkey(settingKeyOrId: string, operation: Array<Operation>, reason?: string, xCONFIGCATSDKKEY?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<SettingValueModel>>; | ||
public updateSettingValueBySdkkey(settingKeyOrId: string, operation: Array<Operation>, reason?: string, xCONFIGCATSDKKEY?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<SettingValueModel>>; | ||
public updateSettingValueBySdkkey(settingKeyOrId: string, operation: Array<Operation>, reason?: string, xCONFIGCATSDKKEY?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> { | ||
public updateSettingValueBySdkkey(settingKeyOrId: string, operation: Array<Operation>, reason?: string, xCONFIGCATSDKKEY?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<SettingValueModel>; | ||
public updateSettingValueBySdkkey(settingKeyOrId: string, operation: Array<Operation>, reason?: string, xCONFIGCATSDKKEY?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpResponse<SettingValueModel>>; | ||
public updateSettingValueBySdkkey(settingKeyOrId: string, operation: Array<Operation>, reason?: string, xCONFIGCATSDKKEY?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpEvent<SettingValueModel>>; | ||
public updateSettingValueBySdkkey(settingKeyOrId: string, operation: Array<Operation>, reason?: string, xCONFIGCATSDKKEY?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<any> { | ||
if (settingKeyOrId === null || settingKeyOrId === undefined) { | ||
@@ -278,22 +261,22 @@ throw new Error('Required parameter settingKeyOrId was null or undefined when calling updateSettingValueBySdkkey.'); | ||
let localVarQueryParameters = new HttpParams({encoder: this.encoder}); | ||
let queryParameters = new HttpParams({encoder: this.encoder}); | ||
if (reason !== undefined && reason !== null) { | ||
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, | ||
queryParameters = this.addToHttpParams(queryParameters, | ||
<any>reason, 'reason'); | ||
} | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
if (xCONFIGCATSDKKEY !== undefined && xCONFIGCATSDKKEY !== null) { | ||
localVarHeaders = localVarHeaders.set('X-CONFIGCAT-SDKKEY', String(xCONFIGCATSDKKEY)); | ||
headers = headers.set('X-CONFIGCAT-SDKKEY', String(xCONFIGCATSDKKEY)); | ||
} | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
@@ -304,14 +287,9 @@ const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
// to determine the Content-Type header | ||
@@ -326,8 +304,8 @@ const consumes: string[] = [ | ||
if (httpContentTypeSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); | ||
headers = headers.set('Content-Type', httpContentTypeSelected); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -338,7 +316,6 @@ | ||
{ | ||
context: localVarHttpContext, | ||
params: localVarQueryParameters, | ||
responseType: <any>responseType_, | ||
params: queryParameters, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -345,0 +322,0 @@ reportProgress: reportProgress |
@@ -16,15 +16,10 @@ /** | ||
import { HttpClient, HttpHeaders, HttpParams, | ||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext | ||
} from '@angular/common/http'; | ||
HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http'; | ||
import { CustomHttpParameterCodec } from '../encoder'; | ||
import { Observable } from 'rxjs'; | ||
// @ts-ignore | ||
import { CreateSettingModel } from '../model/createSettingModel'; | ||
// @ts-ignore | ||
import { Operation } from '../model/operation'; | ||
// @ts-ignore | ||
import { SettingModel } from '../model/settingModel'; | ||
import { CreateSettingModel } from '../model/models'; | ||
import { Operation } from '../model/models'; | ||
import { SettingModel } from '../model/models'; | ||
// @ts-ignore | ||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; | ||
@@ -103,6 +98,6 @@ import { Configuration } from '../configuration'; | ||
*/ | ||
public createSetting(configId: string, createSettingModel: CreateSettingModel, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<SettingModel>; | ||
public createSetting(configId: string, createSettingModel: CreateSettingModel, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<SettingModel>>; | ||
public createSetting(configId: string, createSettingModel: CreateSettingModel, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<SettingModel>>; | ||
public createSetting(configId: string, createSettingModel: CreateSettingModel, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> { | ||
public createSetting(configId: string, createSettingModel: CreateSettingModel, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<SettingModel>; | ||
public createSetting(configId: string, createSettingModel: CreateSettingModel, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpResponse<SettingModel>>; | ||
public createSetting(configId: string, createSettingModel: CreateSettingModel, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpEvent<SettingModel>>; | ||
public createSetting(configId: string, createSettingModel: CreateSettingModel, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<any> { | ||
if (configId === null || configId === undefined) { | ||
@@ -115,13 +110,13 @@ throw new Error('Required parameter configId was null or undefined when calling createSetting.'); | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
@@ -132,14 +127,9 @@ const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
// to determine the Content-Type header | ||
@@ -153,8 +143,8 @@ const consumes: string[] = [ | ||
if (httpContentTypeSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); | ||
headers = headers.set('Content-Type', httpContentTypeSelected); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -165,6 +155,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -183,6 +172,6 @@ reportProgress: reportProgress | ||
*/ | ||
public deleteSetting(settingId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any>; | ||
public deleteSetting(settingId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpResponse<any>>; | ||
public deleteSetting(settingId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpEvent<any>>; | ||
public deleteSetting(settingId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any> { | ||
public deleteSetting(settingId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined}): Observable<any>; | ||
public deleteSetting(settingId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined}): Observable<HttpResponse<any>>; | ||
public deleteSetting(settingId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined}): Observable<HttpEvent<any>>; | ||
public deleteSetting(settingId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined}): Observable<any> { | ||
if (settingId === null || settingId === undefined) { | ||
@@ -192,31 +181,26 @@ throw new Error('Required parameter settingId was null or undefined when calling deleteSetting.'); | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -226,6 +210,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -244,6 +227,6 @@ reportProgress: reportProgress | ||
*/ | ||
public getSetting(settingId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<SettingModel>; | ||
public getSetting(settingId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<SettingModel>>; | ||
public getSetting(settingId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<SettingModel>>; | ||
public getSetting(settingId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> { | ||
public getSetting(settingId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<SettingModel>; | ||
public getSetting(settingId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpResponse<SettingModel>>; | ||
public getSetting(settingId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpEvent<SettingModel>>; | ||
public getSetting(settingId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<any> { | ||
if (settingId === null || settingId === undefined) { | ||
@@ -253,13 +236,13 @@ throw new Error('Required parameter settingId was null or undefined when calling getSetting.'); | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
@@ -270,17 +253,12 @@ const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -290,6 +268,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -308,6 +285,6 @@ reportProgress: reportProgress | ||
*/ | ||
public getSettings(configId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<Array<SettingModel>>; | ||
public getSettings(configId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<Array<SettingModel>>>; | ||
public getSettings(configId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<Array<SettingModel>>>; | ||
public getSettings(configId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> { | ||
public getSettings(configId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<Array<SettingModel>>; | ||
public getSettings(configId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpResponse<Array<SettingModel>>>; | ||
public getSettings(configId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpEvent<Array<SettingModel>>>; | ||
public getSettings(configId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<any> { | ||
if (configId === null || configId === undefined) { | ||
@@ -317,13 +294,13 @@ throw new Error('Required parameter configId was null or undefined when calling getSettings.'); | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
@@ -334,17 +311,12 @@ const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -354,6 +326,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -373,6 +344,6 @@ reportProgress: reportProgress | ||
*/ | ||
public updateSetting(settingId: number, operation: Array<Operation>, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<SettingModel>; | ||
public updateSetting(settingId: number, operation: Array<Operation>, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<SettingModel>>; | ||
public updateSetting(settingId: number, operation: Array<Operation>, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<SettingModel>>; | ||
public updateSetting(settingId: number, operation: Array<Operation>, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> { | ||
public updateSetting(settingId: number, operation: Array<Operation>, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<SettingModel>; | ||
public updateSetting(settingId: number, operation: Array<Operation>, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpResponse<SettingModel>>; | ||
public updateSetting(settingId: number, operation: Array<Operation>, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpEvent<SettingModel>>; | ||
public updateSetting(settingId: number, operation: Array<Operation>, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<any> { | ||
if (settingId === null || settingId === undefined) { | ||
@@ -385,13 +356,13 @@ throw new Error('Required parameter settingId was null or undefined when calling updateSetting.'); | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
@@ -402,14 +373,9 @@ const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
// to determine the Content-Type header | ||
@@ -424,8 +390,8 @@ const consumes: string[] = [ | ||
if (httpContentTypeSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); | ||
headers = headers.set('Content-Type', httpContentTypeSelected); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -436,6 +402,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -442,0 +407,0 @@ reportProgress: reportProgress |
@@ -16,23 +16,14 @@ /** | ||
import { HttpClient, HttpHeaders, HttpParams, | ||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext | ||
} from '@angular/common/http'; | ||
HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http'; | ||
import { CustomHttpParameterCodec } from '../encoder'; | ||
import { Observable } from 'rxjs'; | ||
// @ts-ignore | ||
import { AddOrUpdateIntegrationLinkModel } from '../model/addOrUpdateIntegrationLinkModel'; | ||
// @ts-ignore | ||
import { AddOrUpdateJiraIntegrationLinkModel } from '../model/addOrUpdateJiraIntegrationLinkModel'; | ||
// @ts-ignore | ||
import { ConnectRequest } from '../model/connectRequest'; | ||
// @ts-ignore | ||
import { DeleteIntegrationLinkModel } from '../model/deleteIntegrationLinkModel'; | ||
// @ts-ignore | ||
import { IntegrationLinkDetailsModel } from '../model/integrationLinkDetailsModel'; | ||
// @ts-ignore | ||
import { IntegrationLinkModel } from '../model/integrationLinkModel'; | ||
// @ts-ignore | ||
import { IntegrationLinkType } from '../model/integrationLinkType'; | ||
import { AddOrUpdateIntegrationLinkModel } from '../model/models'; | ||
import { AddOrUpdateJiraIntegrationLinkModel } from '../model/models'; | ||
import { ConnectRequest } from '../model/models'; | ||
import { DeleteIntegrationLinkModel } from '../model/models'; | ||
import { IntegrationLinkDetailsModel } from '../model/models'; | ||
import { IntegrationLinkModel } from '../model/models'; | ||
import { IntegrationLinkType } from '../model/models'; | ||
// @ts-ignore | ||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; | ||
@@ -113,6 +104,6 @@ import { Configuration } from '../configuration'; | ||
*/ | ||
public addOrUpdateIntegrationLink(environmentId: string, settingId: number, integrationLinkType: IntegrationLinkType, key: string, addOrUpdateIntegrationLinkModel?: AddOrUpdateIntegrationLinkModel, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<IntegrationLinkModel>; | ||
public addOrUpdateIntegrationLink(environmentId: string, settingId: number, integrationLinkType: IntegrationLinkType, key: string, addOrUpdateIntegrationLinkModel?: AddOrUpdateIntegrationLinkModel, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<IntegrationLinkModel>>; | ||
public addOrUpdateIntegrationLink(environmentId: string, settingId: number, integrationLinkType: IntegrationLinkType, key: string, addOrUpdateIntegrationLinkModel?: AddOrUpdateIntegrationLinkModel, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<IntegrationLinkModel>>; | ||
public addOrUpdateIntegrationLink(environmentId: string, settingId: number, integrationLinkType: IntegrationLinkType, key: string, addOrUpdateIntegrationLinkModel?: AddOrUpdateIntegrationLinkModel, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> { | ||
public addOrUpdateIntegrationLink(environmentId: string, settingId: number, integrationLinkType: IntegrationLinkType, key: string, addOrUpdateIntegrationLinkModel?: AddOrUpdateIntegrationLinkModel, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<IntegrationLinkModel>; | ||
public addOrUpdateIntegrationLink(environmentId: string, settingId: number, integrationLinkType: IntegrationLinkType, key: string, addOrUpdateIntegrationLinkModel?: AddOrUpdateIntegrationLinkModel, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpResponse<IntegrationLinkModel>>; | ||
public addOrUpdateIntegrationLink(environmentId: string, settingId: number, integrationLinkType: IntegrationLinkType, key: string, addOrUpdateIntegrationLinkModel?: AddOrUpdateIntegrationLinkModel, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpEvent<IntegrationLinkModel>>; | ||
public addOrUpdateIntegrationLink(environmentId: string, settingId: number, integrationLinkType: IntegrationLinkType, key: string, addOrUpdateIntegrationLinkModel?: AddOrUpdateIntegrationLinkModel, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<any> { | ||
if (environmentId === null || environmentId === undefined) { | ||
@@ -131,13 +122,13 @@ throw new Error('Required parameter environmentId was null or undefined when calling addOrUpdateIntegrationLink.'); | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
@@ -148,14 +139,9 @@ const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
// to determine the Content-Type header | ||
@@ -169,8 +155,8 @@ const consumes: string[] = [ | ||
if (httpContentTypeSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); | ||
headers = headers.set('Content-Type', httpContentTypeSelected); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -181,6 +167,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -201,6 +186,6 @@ reportProgress: reportProgress | ||
*/ | ||
public deleteIntegrationLink(environmentId: string, settingId: number, integrationLinkType: IntegrationLinkType, key: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<DeleteIntegrationLinkModel>; | ||
public deleteIntegrationLink(environmentId: string, settingId: number, integrationLinkType: IntegrationLinkType, key: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<DeleteIntegrationLinkModel>>; | ||
public deleteIntegrationLink(environmentId: string, settingId: number, integrationLinkType: IntegrationLinkType, key: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<DeleteIntegrationLinkModel>>; | ||
public deleteIntegrationLink(environmentId: string, settingId: number, integrationLinkType: IntegrationLinkType, key: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> { | ||
public deleteIntegrationLink(environmentId: string, settingId: number, integrationLinkType: IntegrationLinkType, key: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<DeleteIntegrationLinkModel>; | ||
public deleteIntegrationLink(environmentId: string, settingId: number, integrationLinkType: IntegrationLinkType, key: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpResponse<DeleteIntegrationLinkModel>>; | ||
public deleteIntegrationLink(environmentId: string, settingId: number, integrationLinkType: IntegrationLinkType, key: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpEvent<DeleteIntegrationLinkModel>>; | ||
public deleteIntegrationLink(environmentId: string, settingId: number, integrationLinkType: IntegrationLinkType, key: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<any> { | ||
if (environmentId === null || environmentId === undefined) { | ||
@@ -219,13 +204,13 @@ throw new Error('Required parameter environmentId was null or undefined when calling deleteIntegrationLink.'); | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
@@ -236,17 +221,12 @@ const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -256,6 +236,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -274,6 +253,6 @@ reportProgress: reportProgress | ||
*/ | ||
public getIntegrationLinkDetails(integrationLinkType: IntegrationLinkType, key: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<IntegrationLinkDetailsModel>; | ||
public getIntegrationLinkDetails(integrationLinkType: IntegrationLinkType, key: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<IntegrationLinkDetailsModel>>; | ||
public getIntegrationLinkDetails(integrationLinkType: IntegrationLinkType, key: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<IntegrationLinkDetailsModel>>; | ||
public getIntegrationLinkDetails(integrationLinkType: IntegrationLinkType, key: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> { | ||
public getIntegrationLinkDetails(integrationLinkType: IntegrationLinkType, key: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<IntegrationLinkDetailsModel>; | ||
public getIntegrationLinkDetails(integrationLinkType: IntegrationLinkType, key: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpResponse<IntegrationLinkDetailsModel>>; | ||
public getIntegrationLinkDetails(integrationLinkType: IntegrationLinkType, key: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpEvent<IntegrationLinkDetailsModel>>; | ||
public getIntegrationLinkDetails(integrationLinkType: IntegrationLinkType, key: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<any> { | ||
if (integrationLinkType === null || integrationLinkType === undefined) { | ||
@@ -286,13 +265,13 @@ throw new Error('Required parameter integrationLinkType was null or undefined when calling getIntegrationLinkDetails.'); | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
@@ -303,17 +282,12 @@ const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -323,6 +297,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -342,6 +315,6 @@ reportProgress: reportProgress | ||
*/ | ||
public jiraAddOrUpdateIntegrationLink(environmentId: string, settingId: number, key: string, addOrUpdateJiraIntegrationLinkModel?: AddOrUpdateJiraIntegrationLinkModel, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<IntegrationLinkModel>; | ||
public jiraAddOrUpdateIntegrationLink(environmentId: string, settingId: number, key: string, addOrUpdateJiraIntegrationLinkModel?: AddOrUpdateJiraIntegrationLinkModel, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<IntegrationLinkModel>>; | ||
public jiraAddOrUpdateIntegrationLink(environmentId: string, settingId: number, key: string, addOrUpdateJiraIntegrationLinkModel?: AddOrUpdateJiraIntegrationLinkModel, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<IntegrationLinkModel>>; | ||
public jiraAddOrUpdateIntegrationLink(environmentId: string, settingId: number, key: string, addOrUpdateJiraIntegrationLinkModel?: AddOrUpdateJiraIntegrationLinkModel, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> { | ||
public jiraAddOrUpdateIntegrationLink(environmentId: string, settingId: number, key: string, addOrUpdateJiraIntegrationLinkModel?: AddOrUpdateJiraIntegrationLinkModel, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<IntegrationLinkModel>; | ||
public jiraAddOrUpdateIntegrationLink(environmentId: string, settingId: number, key: string, addOrUpdateJiraIntegrationLinkModel?: AddOrUpdateJiraIntegrationLinkModel, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpResponse<IntegrationLinkModel>>; | ||
public jiraAddOrUpdateIntegrationLink(environmentId: string, settingId: number, key: string, addOrUpdateJiraIntegrationLinkModel?: AddOrUpdateJiraIntegrationLinkModel, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpEvent<IntegrationLinkModel>>; | ||
public jiraAddOrUpdateIntegrationLink(environmentId: string, settingId: number, key: string, addOrUpdateJiraIntegrationLinkModel?: AddOrUpdateJiraIntegrationLinkModel, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<any> { | ||
if (environmentId === null || environmentId === undefined) { | ||
@@ -357,13 +330,13 @@ throw new Error('Required parameter environmentId was null or undefined when calling jiraAddOrUpdateIntegrationLink.'); | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
@@ -374,14 +347,9 @@ const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
// to determine the Content-Type header | ||
@@ -395,8 +363,8 @@ const consumes: string[] = [ | ||
if (httpContentTypeSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); | ||
headers = headers.set('Content-Type', httpContentTypeSelected); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -407,6 +375,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -423,33 +390,28 @@ reportProgress: reportProgress | ||
*/ | ||
public v1JiraConnectPost(connectRequest?: ConnectRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any>; | ||
public v1JiraConnectPost(connectRequest?: ConnectRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpResponse<any>>; | ||
public v1JiraConnectPost(connectRequest?: ConnectRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpEvent<any>>; | ||
public v1JiraConnectPost(connectRequest?: ConnectRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any> { | ||
public v1JiraConnectPost(connectRequest?: ConnectRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined}): Observable<any>; | ||
public v1JiraConnectPost(connectRequest?: ConnectRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined}): Observable<HttpResponse<any>>; | ||
public v1JiraConnectPost(connectRequest?: ConnectRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined}): Observable<HttpEvent<any>>; | ||
public v1JiraConnectPost(connectRequest?: ConnectRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined}): Observable<any> { | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
// to determine the Content-Type header | ||
@@ -463,8 +425,8 @@ const consumes: string[] = [ | ||
if (httpContentTypeSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); | ||
headers = headers.set('Content-Type', httpContentTypeSelected); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -475,6 +437,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -481,0 +442,0 @@ reportProgress: reportProgress |
@@ -16,11 +16,8 @@ /** | ||
import { HttpClient, HttpHeaders, HttpParams, | ||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext | ||
} from '@angular/common/http'; | ||
HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http'; | ||
import { CustomHttpParameterCodec } from '../encoder'; | ||
import { Observable } from 'rxjs'; | ||
// @ts-ignore | ||
import { MeModel } from '../model/meModel'; | ||
import { MeModel } from '../model/models'; | ||
// @ts-ignore | ||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; | ||
@@ -96,18 +93,18 @@ import { Configuration } from '../configuration'; | ||
*/ | ||
public getMe(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<MeModel>; | ||
public getMe(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<MeModel>>; | ||
public getMe(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<MeModel>>; | ||
public getMe(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> { | ||
public getMe(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<MeModel>; | ||
public getMe(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpResponse<MeModel>>; | ||
public getMe(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpEvent<MeModel>>; | ||
public getMe(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<any> { | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
@@ -118,17 +115,12 @@ const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -138,6 +130,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -144,0 +135,0 @@ reportProgress: reportProgress |
@@ -16,15 +16,10 @@ /** | ||
import { HttpClient, HttpHeaders, HttpParams, | ||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext | ||
} from '@angular/common/http'; | ||
HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http'; | ||
import { CustomHttpParameterCodec } from '../encoder'; | ||
import { Observable } from 'rxjs'; | ||
// @ts-ignore | ||
import { InviteMembersRequest } from '../model/inviteMembersRequest'; | ||
// @ts-ignore | ||
import { MemberModel } from '../model/memberModel'; | ||
// @ts-ignore | ||
import { UserModel } from '../model/userModel'; | ||
import { InviteMembersRequest } from '../model/models'; | ||
import { MemberModel } from '../model/models'; | ||
import { UserModel } from '../model/models'; | ||
// @ts-ignore | ||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; | ||
@@ -103,6 +98,6 @@ import { Configuration } from '../configuration'; | ||
*/ | ||
public deleteOrganizationMember(organizationId: string, userId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any>; | ||
public deleteOrganizationMember(organizationId: string, userId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpResponse<any>>; | ||
public deleteOrganizationMember(organizationId: string, userId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpEvent<any>>; | ||
public deleteOrganizationMember(organizationId: string, userId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any> { | ||
public deleteOrganizationMember(organizationId: string, userId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined}): Observable<any>; | ||
public deleteOrganizationMember(organizationId: string, userId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined}): Observable<HttpResponse<any>>; | ||
public deleteOrganizationMember(organizationId: string, userId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined}): Observable<HttpEvent<any>>; | ||
public deleteOrganizationMember(organizationId: string, userId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined}): Observable<any> { | ||
if (organizationId === null || organizationId === undefined) { | ||
@@ -115,31 +110,26 @@ throw new Error('Required parameter organizationId was null or undefined when calling deleteOrganizationMember.'); | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -149,6 +139,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -168,6 +157,6 @@ reportProgress: reportProgress | ||
*/ | ||
public deleteProductMember(productId: string, userId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any>; | ||
public deleteProductMember(productId: string, userId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpResponse<any>>; | ||
public deleteProductMember(productId: string, userId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpEvent<any>>; | ||
public deleteProductMember(productId: string, userId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any> { | ||
public deleteProductMember(productId: string, userId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined}): Observable<any>; | ||
public deleteProductMember(productId: string, userId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined}): Observable<HttpResponse<any>>; | ||
public deleteProductMember(productId: string, userId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined}): Observable<HttpEvent<any>>; | ||
public deleteProductMember(productId: string, userId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined}): Observable<any> { | ||
if (productId === null || productId === undefined) { | ||
@@ -180,31 +169,26 @@ throw new Error('Required parameter productId was null or undefined when calling deleteProductMember.'); | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -214,6 +198,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -232,6 +215,6 @@ reportProgress: reportProgress | ||
*/ | ||
public getOrganizationMembers(organizationId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<Array<UserModel>>; | ||
public getOrganizationMembers(organizationId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<Array<UserModel>>>; | ||
public getOrganizationMembers(organizationId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<Array<UserModel>>>; | ||
public getOrganizationMembers(organizationId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> { | ||
public getOrganizationMembers(organizationId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<Array<UserModel>>; | ||
public getOrganizationMembers(organizationId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpResponse<Array<UserModel>>>; | ||
public getOrganizationMembers(organizationId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpEvent<Array<UserModel>>>; | ||
public getOrganizationMembers(organizationId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<any> { | ||
if (organizationId === null || organizationId === undefined) { | ||
@@ -241,13 +224,13 @@ throw new Error('Required parameter organizationId was null or undefined when calling getOrganizationMembers.'); | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
@@ -258,17 +241,12 @@ const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -278,6 +256,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -296,6 +273,6 @@ reportProgress: reportProgress | ||
*/ | ||
public getProductMembers(productId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<Array<MemberModel>>; | ||
public getProductMembers(productId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<Array<MemberModel>>>; | ||
public getProductMembers(productId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<Array<MemberModel>>>; | ||
public getProductMembers(productId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> { | ||
public getProductMembers(productId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<Array<MemberModel>>; | ||
public getProductMembers(productId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpResponse<Array<MemberModel>>>; | ||
public getProductMembers(productId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpEvent<Array<MemberModel>>>; | ||
public getProductMembers(productId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<any> { | ||
if (productId === null || productId === undefined) { | ||
@@ -305,13 +282,13 @@ throw new Error('Required parameter productId was null or undefined when calling getProductMembers.'); | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
@@ -322,17 +299,12 @@ const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -342,6 +314,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -361,6 +332,6 @@ reportProgress: reportProgress | ||
*/ | ||
public inviteMember(productId: string, inviteMembersRequest: InviteMembersRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any>; | ||
public inviteMember(productId: string, inviteMembersRequest: InviteMembersRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpResponse<any>>; | ||
public inviteMember(productId: string, inviteMembersRequest: InviteMembersRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpEvent<any>>; | ||
public inviteMember(productId: string, inviteMembersRequest: InviteMembersRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any> { | ||
public inviteMember(productId: string, inviteMembersRequest: InviteMembersRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined}): Observable<any>; | ||
public inviteMember(productId: string, inviteMembersRequest: InviteMembersRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined}): Observable<HttpResponse<any>>; | ||
public inviteMember(productId: string, inviteMembersRequest: InviteMembersRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined}): Observable<HttpEvent<any>>; | ||
public inviteMember(productId: string, inviteMembersRequest: InviteMembersRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined}): Observable<any> { | ||
if (productId === null || productId === undefined) { | ||
@@ -373,28 +344,23 @@ throw new Error('Required parameter productId was null or undefined when calling inviteMember.'); | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
// to determine the Content-Type header | ||
@@ -408,8 +374,8 @@ const consumes: string[] = [ | ||
if (httpContentTypeSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); | ||
headers = headers.set('Content-Type', httpContentTypeSelected); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -420,6 +386,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -426,0 +391,0 @@ reportProgress: reportProgress |
@@ -16,11 +16,8 @@ /** | ||
import { HttpClient, HttpHeaders, HttpParams, | ||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext | ||
} from '@angular/common/http'; | ||
HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http'; | ||
import { CustomHttpParameterCodec } from '../encoder'; | ||
import { Observable } from 'rxjs'; | ||
// @ts-ignore | ||
import { OrganizationModel } from '../model/organizationModel'; | ||
import { OrganizationModel } from '../model/models'; | ||
// @ts-ignore | ||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; | ||
@@ -97,18 +94,18 @@ import { Configuration } from '../configuration'; | ||
*/ | ||
public getOrganizations(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<Array<OrganizationModel>>; | ||
public getOrganizations(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<Array<OrganizationModel>>>; | ||
public getOrganizations(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<Array<OrganizationModel>>>; | ||
public getOrganizations(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> { | ||
public getOrganizations(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<Array<OrganizationModel>>; | ||
public getOrganizations(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpResponse<Array<OrganizationModel>>>; | ||
public getOrganizations(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpEvent<Array<OrganizationModel>>>; | ||
public getOrganizations(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<any> { | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
@@ -119,17 +116,12 @@ const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -139,6 +131,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -145,0 +136,0 @@ reportProgress: reportProgress |
@@ -16,15 +16,10 @@ /** | ||
import { HttpClient, HttpHeaders, HttpParams, | ||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext | ||
} from '@angular/common/http'; | ||
HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http'; | ||
import { CustomHttpParameterCodec } from '../encoder'; | ||
import { Observable } from 'rxjs'; | ||
// @ts-ignore | ||
import { CreatePermissionGroupRequest } from '../model/createPermissionGroupRequest'; | ||
// @ts-ignore | ||
import { PermissionGroupModel } from '../model/permissionGroupModel'; | ||
// @ts-ignore | ||
import { UpdatePermissionGroupRequest } from '../model/updatePermissionGroupRequest'; | ||
import { CreatePermissionGroupRequest } from '../model/models'; | ||
import { PermissionGroupModel } from '../model/models'; | ||
import { UpdatePermissionGroupRequest } from '../model/models'; | ||
// @ts-ignore | ||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; | ||
@@ -103,6 +98,6 @@ import { Configuration } from '../configuration'; | ||
*/ | ||
public createPermissionGroup(productId: string, createPermissionGroupRequest: CreatePermissionGroupRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<PermissionGroupModel>; | ||
public createPermissionGroup(productId: string, createPermissionGroupRequest: CreatePermissionGroupRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<PermissionGroupModel>>; | ||
public createPermissionGroup(productId: string, createPermissionGroupRequest: CreatePermissionGroupRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<PermissionGroupModel>>; | ||
public createPermissionGroup(productId: string, createPermissionGroupRequest: CreatePermissionGroupRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> { | ||
public createPermissionGroup(productId: string, createPermissionGroupRequest: CreatePermissionGroupRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<PermissionGroupModel>; | ||
public createPermissionGroup(productId: string, createPermissionGroupRequest: CreatePermissionGroupRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpResponse<PermissionGroupModel>>; | ||
public createPermissionGroup(productId: string, createPermissionGroupRequest: CreatePermissionGroupRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpEvent<PermissionGroupModel>>; | ||
public createPermissionGroup(productId: string, createPermissionGroupRequest: CreatePermissionGroupRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<any> { | ||
if (productId === null || productId === undefined) { | ||
@@ -115,13 +110,13 @@ throw new Error('Required parameter productId was null or undefined when calling createPermissionGroup.'); | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
@@ -132,14 +127,9 @@ const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
// to determine the Content-Type header | ||
@@ -153,8 +143,8 @@ const consumes: string[] = [ | ||
if (httpContentTypeSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); | ||
headers = headers.set('Content-Type', httpContentTypeSelected); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -165,6 +155,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -183,6 +172,6 @@ reportProgress: reportProgress | ||
*/ | ||
public deletePermissionGroup(permissionGroupId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any>; | ||
public deletePermissionGroup(permissionGroupId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpResponse<any>>; | ||
public deletePermissionGroup(permissionGroupId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpEvent<any>>; | ||
public deletePermissionGroup(permissionGroupId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any> { | ||
public deletePermissionGroup(permissionGroupId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined}): Observable<any>; | ||
public deletePermissionGroup(permissionGroupId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined}): Observable<HttpResponse<any>>; | ||
public deletePermissionGroup(permissionGroupId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined}): Observable<HttpEvent<any>>; | ||
public deletePermissionGroup(permissionGroupId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined}): Observable<any> { | ||
if (permissionGroupId === null || permissionGroupId === undefined) { | ||
@@ -192,31 +181,26 @@ throw new Error('Required parameter permissionGroupId was null or undefined when calling deletePermissionGroup.'); | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -226,6 +210,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -244,6 +227,6 @@ reportProgress: reportProgress | ||
*/ | ||
public getPermissionGroup(permissionGroupId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<PermissionGroupModel>; | ||
public getPermissionGroup(permissionGroupId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<PermissionGroupModel>>; | ||
public getPermissionGroup(permissionGroupId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<PermissionGroupModel>>; | ||
public getPermissionGroup(permissionGroupId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> { | ||
public getPermissionGroup(permissionGroupId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<PermissionGroupModel>; | ||
public getPermissionGroup(permissionGroupId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpResponse<PermissionGroupModel>>; | ||
public getPermissionGroup(permissionGroupId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpEvent<PermissionGroupModel>>; | ||
public getPermissionGroup(permissionGroupId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<any> { | ||
if (permissionGroupId === null || permissionGroupId === undefined) { | ||
@@ -253,13 +236,13 @@ throw new Error('Required parameter permissionGroupId was null or undefined when calling getPermissionGroup.'); | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
@@ -270,17 +253,12 @@ const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -290,6 +268,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -308,6 +285,6 @@ reportProgress: reportProgress | ||
*/ | ||
public getPermissionGroups(productId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<Array<PermissionGroupModel>>; | ||
public getPermissionGroups(productId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<Array<PermissionGroupModel>>>; | ||
public getPermissionGroups(productId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<Array<PermissionGroupModel>>>; | ||
public getPermissionGroups(productId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> { | ||
public getPermissionGroups(productId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<Array<PermissionGroupModel>>; | ||
public getPermissionGroups(productId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpResponse<Array<PermissionGroupModel>>>; | ||
public getPermissionGroups(productId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpEvent<Array<PermissionGroupModel>>>; | ||
public getPermissionGroups(productId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<any> { | ||
if (productId === null || productId === undefined) { | ||
@@ -317,13 +294,13 @@ throw new Error('Required parameter productId was null or undefined when calling getPermissionGroups.'); | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
@@ -334,17 +311,12 @@ const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -354,6 +326,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -373,6 +344,6 @@ reportProgress: reportProgress | ||
*/ | ||
public updatePermissionGroup(permissionGroupId: number, updatePermissionGroupRequest: UpdatePermissionGroupRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<PermissionGroupModel>; | ||
public updatePermissionGroup(permissionGroupId: number, updatePermissionGroupRequest: UpdatePermissionGroupRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<PermissionGroupModel>>; | ||
public updatePermissionGroup(permissionGroupId: number, updatePermissionGroupRequest: UpdatePermissionGroupRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<PermissionGroupModel>>; | ||
public updatePermissionGroup(permissionGroupId: number, updatePermissionGroupRequest: UpdatePermissionGroupRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> { | ||
public updatePermissionGroup(permissionGroupId: number, updatePermissionGroupRequest: UpdatePermissionGroupRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<PermissionGroupModel>; | ||
public updatePermissionGroup(permissionGroupId: number, updatePermissionGroupRequest: UpdatePermissionGroupRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpResponse<PermissionGroupModel>>; | ||
public updatePermissionGroup(permissionGroupId: number, updatePermissionGroupRequest: UpdatePermissionGroupRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpEvent<PermissionGroupModel>>; | ||
public updatePermissionGroup(permissionGroupId: number, updatePermissionGroupRequest: UpdatePermissionGroupRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<any> { | ||
if (permissionGroupId === null || permissionGroupId === undefined) { | ||
@@ -385,13 +356,13 @@ throw new Error('Required parameter permissionGroupId was null or undefined when calling updatePermissionGroup.'); | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
@@ -402,14 +373,9 @@ const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
// to determine the Content-Type header | ||
@@ -423,8 +389,8 @@ const consumes: string[] = [ | ||
if (httpContentTypeSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); | ||
headers = headers.set('Content-Type', httpContentTypeSelected); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -435,6 +401,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -441,0 +406,0 @@ reportProgress: reportProgress |
@@ -16,15 +16,10 @@ /** | ||
import { HttpClient, HttpHeaders, HttpParams, | ||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext | ||
} from '@angular/common/http'; | ||
HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http'; | ||
import { CustomHttpParameterCodec } from '../encoder'; | ||
import { Observable } from 'rxjs'; | ||
// @ts-ignore | ||
import { CreateProductRequest } from '../model/createProductRequest'; | ||
// @ts-ignore | ||
import { ProductModel } from '../model/productModel'; | ||
// @ts-ignore | ||
import { UpdateProductRequest } from '../model/updateProductRequest'; | ||
import { CreateProductRequest } from '../model/models'; | ||
import { ProductModel } from '../model/models'; | ||
import { UpdateProductRequest } from '../model/models'; | ||
// @ts-ignore | ||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; | ||
@@ -103,6 +98,6 @@ import { Configuration } from '../configuration'; | ||
*/ | ||
public createProduct(organizationId: string, createProductRequest: CreateProductRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<ProductModel>; | ||
public createProduct(organizationId: string, createProductRequest: CreateProductRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<ProductModel>>; | ||
public createProduct(organizationId: string, createProductRequest: CreateProductRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<ProductModel>>; | ||
public createProduct(organizationId: string, createProductRequest: CreateProductRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> { | ||
public createProduct(organizationId: string, createProductRequest: CreateProductRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<ProductModel>; | ||
public createProduct(organizationId: string, createProductRequest: CreateProductRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpResponse<ProductModel>>; | ||
public createProduct(organizationId: string, createProductRequest: CreateProductRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpEvent<ProductModel>>; | ||
public createProduct(organizationId: string, createProductRequest: CreateProductRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<any> { | ||
if (organizationId === null || organizationId === undefined) { | ||
@@ -115,13 +110,13 @@ throw new Error('Required parameter organizationId was null or undefined when calling createProduct.'); | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
@@ -132,14 +127,9 @@ const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
// to determine the Content-Type header | ||
@@ -153,8 +143,8 @@ const consumes: string[] = [ | ||
if (httpContentTypeSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); | ||
headers = headers.set('Content-Type', httpContentTypeSelected); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -165,6 +155,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -183,6 +172,6 @@ reportProgress: reportProgress | ||
*/ | ||
public deleteProduct(productId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any>; | ||
public deleteProduct(productId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpResponse<any>>; | ||
public deleteProduct(productId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpEvent<any>>; | ||
public deleteProduct(productId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any> { | ||
public deleteProduct(productId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined}): Observable<any>; | ||
public deleteProduct(productId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined}): Observable<HttpResponse<any>>; | ||
public deleteProduct(productId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined}): Observable<HttpEvent<any>>; | ||
public deleteProduct(productId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined}): Observable<any> { | ||
if (productId === null || productId === undefined) { | ||
@@ -192,31 +181,26 @@ throw new Error('Required parameter productId was null or undefined when calling deleteProduct.'); | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -226,6 +210,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -244,6 +227,6 @@ reportProgress: reportProgress | ||
*/ | ||
public getProduct(productId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<ProductModel>; | ||
public getProduct(productId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<ProductModel>>; | ||
public getProduct(productId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<ProductModel>>; | ||
public getProduct(productId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> { | ||
public getProduct(productId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<ProductModel>; | ||
public getProduct(productId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpResponse<ProductModel>>; | ||
public getProduct(productId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpEvent<ProductModel>>; | ||
public getProduct(productId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<any> { | ||
if (productId === null || productId === undefined) { | ||
@@ -253,13 +236,13 @@ throw new Error('Required parameter productId was null or undefined when calling getProduct.'); | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
@@ -270,17 +253,12 @@ const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -290,6 +268,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -307,18 +284,18 @@ reportProgress: reportProgress | ||
*/ | ||
public getProducts(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<Array<ProductModel>>; | ||
public getProducts(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<Array<ProductModel>>>; | ||
public getProducts(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<Array<ProductModel>>>; | ||
public getProducts(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> { | ||
public getProducts(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<Array<ProductModel>>; | ||
public getProducts(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpResponse<Array<ProductModel>>>; | ||
public getProducts(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpEvent<Array<ProductModel>>>; | ||
public getProducts(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<any> { | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
@@ -329,17 +306,12 @@ const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -349,6 +321,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -368,6 +339,6 @@ reportProgress: reportProgress | ||
*/ | ||
public updateProduct(productId: string, updateProductRequest: UpdateProductRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<ProductModel>; | ||
public updateProduct(productId: string, updateProductRequest: UpdateProductRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<ProductModel>>; | ||
public updateProduct(productId: string, updateProductRequest: UpdateProductRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<ProductModel>>; | ||
public updateProduct(productId: string, updateProductRequest: UpdateProductRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> { | ||
public updateProduct(productId: string, updateProductRequest: UpdateProductRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<ProductModel>; | ||
public updateProduct(productId: string, updateProductRequest: UpdateProductRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpResponse<ProductModel>>; | ||
public updateProduct(productId: string, updateProductRequest: UpdateProductRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpEvent<ProductModel>>; | ||
public updateProduct(productId: string, updateProductRequest: UpdateProductRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<any> { | ||
if (productId === null || productId === undefined) { | ||
@@ -380,13 +351,13 @@ throw new Error('Required parameter productId was null or undefined when calling updateProduct.'); | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
@@ -397,14 +368,9 @@ const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
// to determine the Content-Type header | ||
@@ -418,8 +384,8 @@ const consumes: string[] = [ | ||
if (httpContentTypeSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); | ||
headers = headers.set('Content-Type', httpContentTypeSelected); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -430,6 +396,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -436,0 +401,0 @@ reportProgress: reportProgress |
@@ -16,11 +16,8 @@ /** | ||
import { HttpClient, HttpHeaders, HttpParams, | ||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext | ||
} from '@angular/common/http'; | ||
HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http'; | ||
import { CustomHttpParameterCodec } from '../encoder'; | ||
import { Observable } from 'rxjs'; | ||
// @ts-ignore | ||
import { SdkKeysModel } from '../model/sdkKeysModel'; | ||
import { SdkKeysModel } from '../model/models'; | ||
// @ts-ignore | ||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; | ||
@@ -99,6 +96,6 @@ import { Configuration } from '../configuration'; | ||
*/ | ||
public getSdkKeys(configId: string, environmentId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<SdkKeysModel>; | ||
public getSdkKeys(configId: string, environmentId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<SdkKeysModel>>; | ||
public getSdkKeys(configId: string, environmentId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<SdkKeysModel>>; | ||
public getSdkKeys(configId: string, environmentId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> { | ||
public getSdkKeys(configId: string, environmentId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<SdkKeysModel>; | ||
public getSdkKeys(configId: string, environmentId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpResponse<SdkKeysModel>>; | ||
public getSdkKeys(configId: string, environmentId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpEvent<SdkKeysModel>>; | ||
public getSdkKeys(configId: string, environmentId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<any> { | ||
if (configId === null || configId === undefined) { | ||
@@ -111,13 +108,13 @@ throw new Error('Required parameter configId was null or undefined when calling getSdkKeys.'); | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
@@ -128,17 +125,12 @@ const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -148,6 +140,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -154,0 +145,0 @@ reportProgress: reportProgress |
@@ -16,17 +16,11 @@ /** | ||
import { HttpClient, HttpHeaders, HttpParams, | ||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext | ||
} from '@angular/common/http'; | ||
HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http'; | ||
import { CustomHttpParameterCodec } from '../encoder'; | ||
import { Observable } from 'rxjs'; | ||
// @ts-ignore | ||
import { CreateTagModel } from '../model/createTagModel'; | ||
// @ts-ignore | ||
import { SettingModel } from '../model/settingModel'; | ||
// @ts-ignore | ||
import { TagModel } from '../model/tagModel'; | ||
// @ts-ignore | ||
import { UpdateTagModel } from '../model/updateTagModel'; | ||
import { CreateTagModel } from '../model/models'; | ||
import { SettingModel } from '../model/models'; | ||
import { TagModel } from '../model/models'; | ||
import { UpdateTagModel } from '../model/models'; | ||
// @ts-ignore | ||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; | ||
@@ -105,6 +99,6 @@ import { Configuration } from '../configuration'; | ||
*/ | ||
public createTag(productId: string, createTagModel: CreateTagModel, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<TagModel>; | ||
public createTag(productId: string, createTagModel: CreateTagModel, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<TagModel>>; | ||
public createTag(productId: string, createTagModel: CreateTagModel, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<TagModel>>; | ||
public createTag(productId: string, createTagModel: CreateTagModel, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> { | ||
public createTag(productId: string, createTagModel: CreateTagModel, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<TagModel>; | ||
public createTag(productId: string, createTagModel: CreateTagModel, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpResponse<TagModel>>; | ||
public createTag(productId: string, createTagModel: CreateTagModel, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpEvent<TagModel>>; | ||
public createTag(productId: string, createTagModel: CreateTagModel, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<any> { | ||
if (productId === null || productId === undefined) { | ||
@@ -117,13 +111,13 @@ throw new Error('Required parameter productId was null or undefined when calling createTag.'); | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
@@ -134,14 +128,9 @@ const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
// to determine the Content-Type header | ||
@@ -155,8 +144,8 @@ const consumes: string[] = [ | ||
if (httpContentTypeSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); | ||
headers = headers.set('Content-Type', httpContentTypeSelected); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -167,6 +156,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -185,6 +173,6 @@ reportProgress: reportProgress | ||
*/ | ||
public deleteTag(tagId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any>; | ||
public deleteTag(tagId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpResponse<any>>; | ||
public deleteTag(tagId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpEvent<any>>; | ||
public deleteTag(tagId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any> { | ||
public deleteTag(tagId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined}): Observable<any>; | ||
public deleteTag(tagId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined}): Observable<HttpResponse<any>>; | ||
public deleteTag(tagId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined}): Observable<HttpEvent<any>>; | ||
public deleteTag(tagId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined}): Observable<any> { | ||
if (tagId === null || tagId === undefined) { | ||
@@ -194,31 +182,26 @@ throw new Error('Required parameter tagId was null or undefined when calling deleteTag.'); | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -228,6 +211,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -246,6 +228,6 @@ reportProgress: reportProgress | ||
*/ | ||
public getSettingsByTag(tagId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<Array<SettingModel>>; | ||
public getSettingsByTag(tagId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<Array<SettingModel>>>; | ||
public getSettingsByTag(tagId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<Array<SettingModel>>>; | ||
public getSettingsByTag(tagId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> { | ||
public getSettingsByTag(tagId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<Array<SettingModel>>; | ||
public getSettingsByTag(tagId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpResponse<Array<SettingModel>>>; | ||
public getSettingsByTag(tagId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpEvent<Array<SettingModel>>>; | ||
public getSettingsByTag(tagId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<any> { | ||
if (tagId === null || tagId === undefined) { | ||
@@ -255,13 +237,13 @@ throw new Error('Required parameter tagId was null or undefined when calling getSettingsByTag.'); | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
@@ -272,17 +254,12 @@ const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -292,6 +269,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -310,6 +286,6 @@ reportProgress: reportProgress | ||
*/ | ||
public getTag(tagId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<TagModel>; | ||
public getTag(tagId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<TagModel>>; | ||
public getTag(tagId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<TagModel>>; | ||
public getTag(tagId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> { | ||
public getTag(tagId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<TagModel>; | ||
public getTag(tagId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpResponse<TagModel>>; | ||
public getTag(tagId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpEvent<TagModel>>; | ||
public getTag(tagId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<any> { | ||
if (tagId === null || tagId === undefined) { | ||
@@ -319,13 +295,13 @@ throw new Error('Required parameter tagId was null or undefined when calling getTag.'); | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
@@ -336,17 +312,12 @@ const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -356,6 +327,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -374,6 +344,6 @@ reportProgress: reportProgress | ||
*/ | ||
public getTags(productId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<Array<TagModel>>; | ||
public getTags(productId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<Array<TagModel>>>; | ||
public getTags(productId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<Array<TagModel>>>; | ||
public getTags(productId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> { | ||
public getTags(productId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<Array<TagModel>>; | ||
public getTags(productId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpResponse<Array<TagModel>>>; | ||
public getTags(productId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpEvent<Array<TagModel>>>; | ||
public getTags(productId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<any> { | ||
if (productId === null || productId === undefined) { | ||
@@ -383,13 +353,13 @@ throw new Error('Required parameter productId was null or undefined when calling getTags.'); | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
@@ -400,17 +370,12 @@ const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -420,6 +385,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -439,6 +403,6 @@ reportProgress: reportProgress | ||
*/ | ||
public updateTag(tagId: number, updateTagModel: UpdateTagModel, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<TagModel>; | ||
public updateTag(tagId: number, updateTagModel: UpdateTagModel, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<TagModel>>; | ||
public updateTag(tagId: number, updateTagModel: UpdateTagModel, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<TagModel>>; | ||
public updateTag(tagId: number, updateTagModel: UpdateTagModel, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json', context?: HttpContext}): Observable<any> { | ||
public updateTag(tagId: number, updateTagModel: UpdateTagModel, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<TagModel>; | ||
public updateTag(tagId: number, updateTagModel: UpdateTagModel, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpResponse<TagModel>>; | ||
public updateTag(tagId: number, updateTagModel: UpdateTagModel, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<HttpEvent<TagModel>>; | ||
public updateTag(tagId: number, updateTagModel: UpdateTagModel, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/hal+json'}): Observable<any> { | ||
if (tagId === null || tagId === undefined) { | ||
@@ -451,13 +415,13 @@ throw new Error('Required parameter tagId was null or undefined when calling updateTag.'); | ||
let localVarHeaders = this.defaultHeaders; | ||
let headers = this.defaultHeaders; | ||
let localVarCredential: string | undefined; | ||
let credential: string | undefined; | ||
// authentication (Basic) required | ||
localVarCredential = this.configuration.lookupCredential('Basic'); | ||
if (localVarCredential) { | ||
localVarHeaders = localVarHeaders.set('Authorization', 'Basic ' + localVarCredential); | ||
credential = this.configuration.lookupCredential('Basic'); | ||
if (credential) { | ||
headers = headers.set('Authorization', 'Basic ' + credential); | ||
} | ||
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (localVarHttpHeaderAcceptSelected === undefined) { | ||
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; | ||
if (httpHeaderAcceptSelected === undefined) { | ||
// to determine the Accept header | ||
@@ -468,14 +432,9 @@ const httpHeaderAccepts: string[] = [ | ||
]; | ||
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); | ||
} | ||
if (localVarHttpHeaderAcceptSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); | ||
if (httpHeaderAcceptSelected !== undefined) { | ||
headers = headers.set('Accept', httpHeaderAcceptSelected); | ||
} | ||
let localVarHttpContext: HttpContext | undefined = options && options.context; | ||
if (localVarHttpContext === undefined) { | ||
localVarHttpContext = new HttpContext(); | ||
} | ||
// to determine the Content-Type header | ||
@@ -489,8 +448,8 @@ const consumes: string[] = [ | ||
if (httpContentTypeSelected !== undefined) { | ||
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); | ||
headers = headers.set('Content-Type', httpContentTypeSelected); | ||
} | ||
let responseType_: 'text' | 'json' = 'json'; | ||
if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) { | ||
responseType_ = 'text'; | ||
let responseType: 'text' | 'json' = 'json'; | ||
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) { | ||
responseType = 'text'; | ||
} | ||
@@ -501,6 +460,5 @@ | ||
{ | ||
context: localVarHttpContext, | ||
responseType: <any>responseType_, | ||
responseType: <any>responseType, | ||
withCredentials: this.configuration.withCredentials, | ||
headers: localVarHeaders, | ||
headers: headers, | ||
observe: observe, | ||
@@ -507,0 +465,0 @@ reportProgress: reportProgress |
@@ -64,5 +64,5 @@ import { HttpParameterCodec } from '@angular/common/http'; | ||
this.credentials['Basic'] = () => { | ||
return (this.username || this.password) | ||
? btoa(this.username + ':' + this.password) | ||
: undefined; | ||
if (this.username || this.password) { | ||
return btoa(this.username + ':' + this.password); | ||
} | ||
}; | ||
@@ -69,0 +69,0 @@ } |
{ | ||
"name": "ng-configcat-publicapi", | ||
"version": "2.5.4", | ||
"version": "2.5.6", | ||
"description": "OpenAPI client for ng-configcat-publicapi", | ||
@@ -24,9 +24,8 @@ "author": "OpenAPI-Generator Contributors", | ||
"@angular/platform-browser": "^12.2.12", | ||
"ng-packagr": "^12.2.1", | ||
"ng-packagr": "^12.2.5", | ||
"reflect-metadata": "^0.1.3", | ||
"rxjs": "^6.6.0", | ||
"tsickle": "^0.43.0", | ||
"typescript": ">=4.3.0 <4.4.0", | ||
"zone.js": "^0.11.4" | ||
"typescript": "^4.3.5", | ||
"zone.js": "^0.11.3" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
## ng-configcat-publicapi@2.5.4 | ||
## ng-configcat-publicapi@2.5.6 | ||
@@ -22,3 +22,3 @@ ### Building | ||
``` | ||
npm install ng-configcat-publicapi@2.5.4 --save | ||
npm install ng-configcat-publicapi@2.5.6 --save | ||
``` | ||
@@ -79,3 +79,3 @@ | ||
export function apiConfigFactory (): Configuration { | ||
export function apiConfigFactory (): Configuration => { | ||
const params: ConfigurationParameters = { | ||
@@ -125,3 +125,3 @@ // set configuration parameters here. | ||
export class AppComponent { | ||
constructor(private apiGateway: DefaultApi) { } | ||
constructor(private apiGateway: DefaultApi) { } | ||
} | ||
@@ -158,3 +158,3 @@ ``` | ||
### Set service base path | ||
If different than the generated base path, during app bootstrap, you can provide the base path to your service. | ||
If different than the generated base path, during app bootstrap, you can provide the base path to your service. | ||
@@ -207,2 +207,2 @@ ``` | ||
export class AppModule { } | ||
``` | ||
``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
10
466417
6317