import { mergeMap as _observableMergeMap , catchError as _observableCatch } from 'rxjs/operators' ; import { Observable , throwError as _observableThrow , of as _observableOf } from 'rxjs' ; import { Injectable , Inject , Optional , InjectionToken } from '@angular/core' ; import { HttpClient , HttpHeaders , HttpResponse , HttpResponseBase } from '@angular/common/http' ; import { DateTime , Duration } from "luxon" ; export const API_BASE_URL = new InjectionToken < string > ( 'API_BASE_URL' ) ; @ Injectable ( ) export class AccountServiceProxy { private http : HttpClient ; private baseUrl : string ; protected jsonParseReviver : ( ( key : string , value : any ) => any ) | undefined = undefined ; constructor ( @ Inject ( HttpClient ) http , @ Optional ( ) @ Inject ( API_BASE_URL ) baseUrl ? ) { this . http = http ; this . baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "" ; } param body return isTenantAvailable ( body ) { let url_ = this . baseUrl + "/api/services/app/Account/IsTenantAvailable" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , "Accept" : "text/plain" } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processIsTenantAvailable ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processIsTenantAvailable ( < any > response_ ) ; } catch ( e ) { return < Observable < IsTenantAvailableOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < IsTenantAvailableOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processIsTenantAvailable ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = IsTenantAvailableOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return resolveTenantId ( body ) { let url_ = this . baseUrl + "/api/services/app/Account/ResolveTenantId" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , "Accept" : "text/plain" } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processResolveTenantId ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processResolveTenantId ( < any > response_ ) ; } catch ( e ) { return < Observable < number > > < any > _observableThrow ( e ) ; } } else return < Observable < number > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processResolveTenantId ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = resultData200 !== undefined ? resultData200 : < any > null ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return register ( body ) { let url_ = this . baseUrl + "/api/services/app/Account/Register" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , "Accept" : "text/plain" } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processRegister ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processRegister ( < any > response_ ) ; } catch ( e ) { return < Observable < RegisterOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < RegisterOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processRegister ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = RegisterOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return sendPasswordResetCode ( body ) { let url_ = this . baseUrl + "/api/services/app/Account/SendPasswordResetCode" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processSendPasswordResetCode ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processSendPasswordResetCode ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processSendPasswordResetCode ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return resetPassword ( body ) { let url_ = this . baseUrl + "/api/services/app/Account/ResetPassword" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , "Accept" : "text/plain" } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processResetPassword ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processResetPassword ( < any > response_ ) ; } catch ( e ) { return < Observable < ResetPasswordOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < ResetPasswordOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processResetPassword ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = ResetPasswordOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return sendEmailActivationLink ( body ) { let url_ = this . baseUrl + "/api/services/app/Account/SendEmailActivationLink" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processSendEmailActivationLink ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processSendEmailActivationLink ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processSendEmailActivationLink ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return activateEmail ( body ) { let url_ = this . baseUrl + "/api/services/app/Account/ActivateEmail" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processActivateEmail ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processActivateEmail ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processActivateEmail ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return impersonate ( body ) { let url_ = this . baseUrl + "/api/services/app/Account/Impersonate" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , "Accept" : "text/plain" } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processImpersonate ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processImpersonate ( < any > response_ ) ; } catch ( e ) { return < Observable < ImpersonateOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < ImpersonateOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processImpersonate ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = ImpersonateOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return delegatedImpersonate ( body ) { let url_ = this . baseUrl + "/api/services/app/Account/DelegatedImpersonate" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , "Accept" : "text/plain" } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processDelegatedImpersonate ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processDelegatedImpersonate ( < any > response_ ) ; } catch ( e ) { return < Observable < ImpersonateOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < ImpersonateOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processDelegatedImpersonate ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = ImpersonateOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } return backToImpersonator ( ) { let url_ = this . baseUrl + "/api/services/app/Account/BackToImpersonator" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processBackToImpersonator ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processBackToImpersonator ( < any > response_ ) ; } catch ( e ) { return < Observable < ImpersonateOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < ImpersonateOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processBackToImpersonator ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = ImpersonateOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return switchToLinkedAccount ( body ) { let url_ = this . baseUrl + "/api/services/app/Account/SwitchToLinkedAccount" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , "Accept" : "text/plain" } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processSwitchToLinkedAccount ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processSwitchToLinkedAccount ( < any > response_ ) ; } catch ( e ) { return < Observable < SwitchToLinkedAccountOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < SwitchToLinkedAccountOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processSwitchToLinkedAccount ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = SwitchToLinkedAccountOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } } @ Injectable ( ) export class AuditLogServiceProxy { private http : HttpClient ; private baseUrl : string ; protected jsonParseReviver : ( ( key : string , value : any ) => any ) | undefined = undefined ; constructor ( @ Inject ( HttpClient ) http , @ Optional ( ) @ Inject ( API_BASE_URL ) baseUrl ? ) { this . http = http ; this . baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "" ; } param startDate param endDate param userName param serviceName param methodName param browserInfo param hasException param minExecutionDuration param maxExecutionDuration param sorting param maxResultCount param skipCount return getAuditLogs ( startDate , endDate , userName , serviceName , methodName , browserInfo , hasException , minExecutionDuration , maxExecutionDuration , sorting , maxResultCount , skipCount ) { let url_ = this . baseUrl + "/api/services/app/AuditLog/GetAuditLogs?" ; if ( startDate === null ) throw new Error ( "The parameter 'startDate' cannot be null." ) ; else if ( startDate !== undefined ) url_ += "StartDate=" + encodeURIComponent ( startDate ? "" + startDate . toJSON ( ) : "" ) + "&" ; if ( endDate === null ) throw new Error ( "The parameter 'endDate' cannot be null." ) ; else if ( endDate !== undefined ) url_ += "EndDate=" + encodeURIComponent ( endDate ? "" + endDate . toJSON ( ) : "" ) + "&" ; if ( userName !== undefined && userName !== null ) url_ += "UserName=" + encodeURIComponent ( "" + userName ) + "&" ; if ( serviceName !== undefined && serviceName !== null ) url_ += "ServiceName=" + encodeURIComponent ( "" + serviceName ) + "&" ; if ( methodName !== undefined && methodName !== null ) url_ += "MethodName=" + encodeURIComponent ( "" + methodName ) + "&" ; if ( browserInfo !== undefined && browserInfo !== null ) url_ += "BrowserInfo=" + encodeURIComponent ( "" + browserInfo ) + "&" ; if ( hasException !== undefined && hasException !== null ) url_ += "HasException=" + encodeURIComponent ( "" + hasException ) + "&" ; if ( minExecutionDuration !== undefined && minExecutionDuration !== null ) url_ += "MinExecutionDuration=" + encodeURIComponent ( "" + minExecutionDuration ) + "&" ; if ( maxExecutionDuration !== undefined && maxExecutionDuration !== null ) url_ += "MaxExecutionDuration=" + encodeURIComponent ( "" + maxExecutionDuration ) + "&" ; if ( sorting !== undefined && sorting !== null ) url_ += "Sorting=" + encodeURIComponent ( "" + sorting ) + "&" ; if ( maxResultCount === null ) throw new Error ( "The parameter 'maxResultCount' cannot be null." ) ; else if ( maxResultCount !== undefined ) url_ += "MaxResultCount=" + encodeURIComponent ( "" + maxResultCount ) + "&" ; if ( skipCount === null ) throw new Error ( "The parameter 'skipCount' cannot be null." ) ; else if ( skipCount !== undefined ) url_ += "SkipCount=" + encodeURIComponent ( "" + skipCount ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetAuditLogs ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetAuditLogs ( < any > response_ ) ; } catch ( e ) { return < Observable < PagedResultDtoOfAuditLogListDto > > < any > _observableThrow ( e ) ; } } else return < Observable < PagedResultDtoOfAuditLogListDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetAuditLogs ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = PagedResultDtoOfAuditLogListDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param startDate param endDate param userName param serviceName param methodName param browserInfo param hasException param minExecutionDuration param maxExecutionDuration param sorting param maxResultCount param skipCount return getAuditLogsToExcel ( startDate , endDate , userName , serviceName , methodName , browserInfo , hasException , minExecutionDuration , maxExecutionDuration , sorting , maxResultCount , skipCount ) { let url_ = this . baseUrl + "/api/services/app/AuditLog/GetAuditLogsToExcel?" ; if ( startDate === null ) throw new Error ( "The parameter 'startDate' cannot be null." ) ; else if ( startDate !== undefined ) url_ += "StartDate=" + encodeURIComponent ( startDate ? "" + startDate . toJSON ( ) : "" ) + "&" ; if ( endDate === null ) throw new Error ( "The parameter 'endDate' cannot be null." ) ; else if ( endDate !== undefined ) url_ += "EndDate=" + encodeURIComponent ( endDate ? "" + endDate . toJSON ( ) : "" ) + "&" ; if ( userName !== undefined && userName !== null ) url_ += "UserName=" + encodeURIComponent ( "" + userName ) + "&" ; if ( serviceName !== undefined && serviceName !== null ) url_ += "ServiceName=" + encodeURIComponent ( "" + serviceName ) + "&" ; if ( methodName !== undefined && methodName !== null ) url_ += "MethodName=" + encodeURIComponent ( "" + methodName ) + "&" ; if ( browserInfo !== undefined && browserInfo !== null ) url_ += "BrowserInfo=" + encodeURIComponent ( "" + browserInfo ) + "&" ; if ( hasException !== undefined && hasException !== null ) url_ += "HasException=" + encodeURIComponent ( "" + hasException ) + "&" ; if ( minExecutionDuration !== undefined && minExecutionDuration !== null ) url_ += "MinExecutionDuration=" + encodeURIComponent ( "" + minExecutionDuration ) + "&" ; if ( maxExecutionDuration !== undefined && maxExecutionDuration !== null ) url_ += "MaxExecutionDuration=" + encodeURIComponent ( "" + maxExecutionDuration ) + "&" ; if ( sorting !== undefined && sorting !== null ) url_ += "Sorting=" + encodeURIComponent ( "" + sorting ) + "&" ; if ( maxResultCount === null ) throw new Error ( "The parameter 'maxResultCount' cannot be null." ) ; else if ( maxResultCount !== undefined ) url_ += "MaxResultCount=" + encodeURIComponent ( "" + maxResultCount ) + "&" ; if ( skipCount === null ) throw new Error ( "The parameter 'skipCount' cannot be null." ) ; else if ( skipCount !== undefined ) url_ += "SkipCount=" + encodeURIComponent ( "" + skipCount ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetAuditLogsToExcel ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetAuditLogsToExcel ( < any > response_ ) ; } catch ( e ) { return < Observable < FileDto > > < any > _observableThrow ( e ) ; } } else return < Observable < FileDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetAuditLogsToExcel ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = FileDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } return getEntityHistoryObjectTypes ( ) { let url_ = this . baseUrl + "/api/services/app/AuditLog/GetEntityHistoryObjectTypes" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetEntityHistoryObjectTypes ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetEntityHistoryObjectTypes ( < any > response_ ) ; } catch ( e ) { return < Observable < NameValueDto [ ] > > < any > _observableThrow ( e ) ; } } else return < Observable < NameValueDto [ ] > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetEntityHistoryObjectTypes ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; if ( Array . isArray ( resultData200 ) ) { result200 = [ ] as any ; for ( let item of resultData200 ) result200 ! . push ( NameValueDto . fromJS ( item ) ) ; } else { result200 = < any > null ; } return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param startDate param endDate param userName param entityTypeFullName param sorting param maxResultCount param skipCount return getEntityChanges ( startDate , endDate , userName , entityTypeFullName , sorting , maxResultCount , skipCount ) { let url_ = this . baseUrl + "/api/services/app/AuditLog/GetEntityChanges?" ; if ( startDate === null ) throw new Error ( "The parameter 'startDate' cannot be null." ) ; else if ( startDate !== undefined ) url_ += "StartDate=" + encodeURIComponent ( startDate ? "" + startDate . toJSON ( ) : "" ) + "&" ; if ( endDate === null ) throw new Error ( "The parameter 'endDate' cannot be null." ) ; else if ( endDate !== undefined ) url_ += "EndDate=" + encodeURIComponent ( endDate ? "" + endDate . toJSON ( ) : "" ) + "&" ; if ( userName !== undefined && userName !== null ) url_ += "UserName=" + encodeURIComponent ( "" + userName ) + "&" ; if ( entityTypeFullName !== undefined && entityTypeFullName !== null ) url_ += "EntityTypeFullName=" + encodeURIComponent ( "" + entityTypeFullName ) + "&" ; if ( sorting !== undefined && sorting !== null ) url_ += "Sorting=" + encodeURIComponent ( "" + sorting ) + "&" ; if ( maxResultCount === null ) throw new Error ( "The parameter 'maxResultCount' cannot be null." ) ; else if ( maxResultCount !== undefined ) url_ += "MaxResultCount=" + encodeURIComponent ( "" + maxResultCount ) + "&" ; if ( skipCount === null ) throw new Error ( "The parameter 'skipCount' cannot be null." ) ; else if ( skipCount !== undefined ) url_ += "SkipCount=" + encodeURIComponent ( "" + skipCount ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetEntityChanges ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetEntityChanges ( < any > response_ ) ; } catch ( e ) { return < Observable < PagedResultDtoOfEntityChangeListDto > > < any > _observableThrow ( e ) ; } } else return < Observable < PagedResultDtoOfEntityChangeListDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetEntityChanges ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = PagedResultDtoOfEntityChangeListDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param entityTypeFullName param entityId param sorting param maxResultCount param skipCount return getEntityTypeChanges ( entityTypeFullName , entityId , sorting , maxResultCount , skipCount ) { let url_ = this . baseUrl + "/api/services/app/AuditLog/GetEntityTypeChanges?" ; if ( entityTypeFullName !== undefined && entityTypeFullName !== null ) url_ += "EntityTypeFullName=" + encodeURIComponent ( "" + entityTypeFullName ) + "&" ; if ( entityId !== undefined && entityId !== null ) url_ += "EntityId=" + encodeURIComponent ( "" + entityId ) + "&" ; if ( sorting !== undefined && sorting !== null ) url_ += "Sorting=" + encodeURIComponent ( "" + sorting ) + "&" ; if ( maxResultCount === null ) throw new Error ( "The parameter 'maxResultCount' cannot be null." ) ; else if ( maxResultCount !== undefined ) url_ += "MaxResultCount=" + encodeURIComponent ( "" + maxResultCount ) + "&" ; if ( skipCount === null ) throw new Error ( "The parameter 'skipCount' cannot be null." ) ; else if ( skipCount !== undefined ) url_ += "SkipCount=" + encodeURIComponent ( "" + skipCount ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetEntityTypeChanges ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetEntityTypeChanges ( < any > response_ ) ; } catch ( e ) { return < Observable < PagedResultDtoOfEntityChangeListDto > > < any > _observableThrow ( e ) ; } } else return < Observable < PagedResultDtoOfEntityChangeListDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetEntityTypeChanges ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = PagedResultDtoOfEntityChangeListDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param startDate param endDate param userName param entityTypeFullName param sorting param maxResultCount param skipCount return getEntityChangesToExcel ( startDate , endDate , userName , entityTypeFullName , sorting , maxResultCount , skipCount ) { let url_ = this . baseUrl + "/api/services/app/AuditLog/GetEntityChangesToExcel?" ; if ( startDate === null ) throw new Error ( "The parameter 'startDate' cannot be null." ) ; else if ( startDate !== undefined ) url_ += "StartDate=" + encodeURIComponent ( startDate ? "" + startDate . toJSON ( ) : "" ) + "&" ; if ( endDate === null ) throw new Error ( "The parameter 'endDate' cannot be null." ) ; else if ( endDate !== undefined ) url_ += "EndDate=" + encodeURIComponent ( endDate ? "" + endDate . toJSON ( ) : "" ) + "&" ; if ( userName !== undefined && userName !== null ) url_ += "UserName=" + encodeURIComponent ( "" + userName ) + "&" ; if ( entityTypeFullName !== undefined && entityTypeFullName !== null ) url_ += "EntityTypeFullName=" + encodeURIComponent ( "" + entityTypeFullName ) + "&" ; if ( sorting !== undefined && sorting !== null ) url_ += "Sorting=" + encodeURIComponent ( "" + sorting ) + "&" ; if ( maxResultCount === null ) throw new Error ( "The parameter 'maxResultCount' cannot be null." ) ; else if ( maxResultCount !== undefined ) url_ += "MaxResultCount=" + encodeURIComponent ( "" + maxResultCount ) + "&" ; if ( skipCount === null ) throw new Error ( "The parameter 'skipCount' cannot be null." ) ; else if ( skipCount !== undefined ) url_ += "SkipCount=" + encodeURIComponent ( "" + skipCount ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetEntityChangesToExcel ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetEntityChangesToExcel ( < any > response_ ) ; } catch ( e ) { return < Observable < FileDto > > < any > _observableThrow ( e ) ; } } else return < Observable < FileDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetEntityChangesToExcel ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = FileDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param entityChangeId return getEntityPropertyChanges ( entityChangeId ) { let url_ = this . baseUrl + "/api/services/app/AuditLog/GetEntityPropertyChanges?" ; if ( entityChangeId === null ) throw new Error ( "The parameter 'entityChangeId' cannot be null." ) ; else if ( entityChangeId !== undefined ) url_ += "entityChangeId=" + encodeURIComponent ( "" + entityChangeId ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetEntityPropertyChanges ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetEntityPropertyChanges ( < any > response_ ) ; } catch ( e ) { return < Observable < EntityPropertyChangeDto [ ] > > < any > _observableThrow ( e ) ; } } else return < Observable < EntityPropertyChangeDto [ ] > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetEntityPropertyChanges ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; if ( Array . isArray ( resultData200 ) ) { result200 = [ ] as any ; for ( let item of resultData200 ) result200 ! . push ( EntityPropertyChangeDto . fromJS ( item ) ) ; } else { result200 = < any > null ; } return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } } @ Injectable ( ) export class CachingServiceProxy { private http : HttpClient ; private baseUrl : string ; protected jsonParseReviver : ( ( key : string , value : any ) => any ) | undefined = undefined ; constructor ( @ Inject ( HttpClient ) http , @ Optional ( ) @ Inject ( API_BASE_URL ) baseUrl ? ) { this . http = http ; this . baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "" ; } return getAllCaches ( ) { let url_ = this . baseUrl + "/api/services/app/Caching/GetAllCaches" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetAllCaches ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetAllCaches ( < any > response_ ) ; } catch ( e ) { return < Observable < ListResultDtoOfCacheDto > > < any > _observableThrow ( e ) ; } } else return < Observable < ListResultDtoOfCacheDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetAllCaches ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = ListResultDtoOfCacheDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return clearCache ( body ) { let url_ = this . baseUrl + "/api/services/app/Caching/ClearCache" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processClearCache ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processClearCache ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processClearCache ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } return clearAllCaches ( ) { let url_ = this . baseUrl + "/api/services/app/Caching/ClearAllCaches" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processClearAllCaches ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processClearAllCaches ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processClearAllCaches ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } } @ Injectable ( ) export class ChatServiceProxy { private http : HttpClient ; private baseUrl : string ; protected jsonParseReviver : ( ( key : string , value : any ) => any ) | undefined = undefined ; constructor ( @ Inject ( HttpClient ) http , @ Optional ( ) @ Inject ( API_BASE_URL ) baseUrl ? ) { this . http = http ; this . baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "" ; } return getUserChatFriendsWithSettings ( ) { let url_ = this . baseUrl + "/api/services/app/Chat/GetUserChatFriendsWithSettings" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetUserChatFriendsWithSettings ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetUserChatFriendsWithSettings ( < any > response_ ) ; } catch ( e ) { return < Observable < GetUserChatFriendsWithSettingsOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < GetUserChatFriendsWithSettingsOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetUserChatFriendsWithSettings ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = GetUserChatFriendsWithSettingsOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param tenantId param userId param minMessageId return getUserChatMessages ( tenantId , userId , minMessageId ) { let url_ = this . baseUrl + "/api/services/app/Chat/GetUserChatMessages?" ; if ( tenantId !== undefined && tenantId !== null ) url_ += "TenantId=" + encodeURIComponent ( "" + tenantId ) + "&" ; if ( userId === null ) throw new Error ( "The parameter 'userId' cannot be null." ) ; else if ( userId !== undefined ) url_ += "UserId=" + encodeURIComponent ( "" + userId ) + "&" ; if ( minMessageId !== undefined && minMessageId !== null ) url_ += "MinMessageId=" + encodeURIComponent ( "" + minMessageId ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetUserChatMessages ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetUserChatMessages ( < any > response_ ) ; } catch ( e ) { return < Observable < ListResultDtoOfChatMessageDto > > < any > _observableThrow ( e ) ; } } else return < Observable < ListResultDtoOfChatMessageDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetUserChatMessages ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = ListResultDtoOfChatMessageDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return markAllUnreadMessagesOfUserAsRead ( body ) { let url_ = this . baseUrl + "/api/services/app/Chat/MarkAllUnreadMessagesOfUserAsRead" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processMarkAllUnreadMessagesOfUserAsRead ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processMarkAllUnreadMessagesOfUserAsRead ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processMarkAllUnreadMessagesOfUserAsRead ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } } @ Injectable ( ) export class CommonLookupServiceProxy { private http : HttpClient ; private baseUrl : string ; protected jsonParseReviver : ( ( key : string , value : any ) => any ) | undefined = undefined ; constructor ( @ Inject ( HttpClient ) http , @ Optional ( ) @ Inject ( API_BASE_URL ) baseUrl ? ) { this . http = http ; this . baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "" ; } param onlyFreeItems return getEditionsForCombobox ( onlyFreeItems ) { let url_ = this . baseUrl + "/api/services/app/CommonLookup/GetEditionsForCombobox?" ; if ( onlyFreeItems === null ) throw new Error ( "The parameter 'onlyFreeItems' cannot be null." ) ; else if ( onlyFreeItems !== undefined ) url_ += "onlyFreeItems=" + encodeURIComponent ( "" + onlyFreeItems ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetEditionsForCombobox ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetEditionsForCombobox ( < any > response_ ) ; } catch ( e ) { return < Observable < ListResultDtoOfSubscribableEditionComboboxItemDto > > < any > _observableThrow ( e ) ; } } else return < Observable < ListResultDtoOfSubscribableEditionComboboxItemDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetEditionsForCombobox ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = ListResultDtoOfSubscribableEditionComboboxItemDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return findUsers ( body ) { let url_ = this . baseUrl + "/api/services/app/CommonLookup/FindUsers" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , "Accept" : "text/plain" } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processFindUsers ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processFindUsers ( < any > response_ ) ; } catch ( e ) { return < Observable < PagedResultDtoOfNameValueDto > > < any > _observableThrow ( e ) ; } } else return < Observable < PagedResultDtoOfNameValueDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processFindUsers ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = PagedResultDtoOfNameValueDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } return getDefaultEditionName ( ) { let url_ = this . baseUrl + "/api/services/app/CommonLookup/GetDefaultEditionName" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetDefaultEditionName ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetDefaultEditionName ( < any > response_ ) ; } catch ( e ) { return < Observable < GetDefaultEditionNameOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < GetDefaultEditionNameOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetDefaultEditionName ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = GetDefaultEditionNameOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } } @ Injectable ( ) export class DashboardCustomizationServiceProxy { private http : HttpClient ; private baseUrl : string ; protected jsonParseReviver : ( ( key : string , value : any ) => any ) | undefined = undefined ; constructor ( @ Inject ( HttpClient ) http , @ Optional ( ) @ Inject ( API_BASE_URL ) baseUrl ? ) { this . http = http ; this . baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "" ; } param dashboardName param application return getUserDashboard ( dashboardName , application ) { let url_ = this . baseUrl + "/api/services/app/DashboardCustomization/GetUserDashboard?" ; if ( dashboardName !== undefined && dashboardName !== null ) url_ += "DashboardName=" + encodeURIComponent ( "" + dashboardName ) + "&" ; if ( application !== undefined && application !== null ) url_ += "Application=" + encodeURIComponent ( "" + application ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetUserDashboard ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetUserDashboard ( < any > response_ ) ; } catch ( e ) { return < Observable < Dashboard > > < any > _observableThrow ( e ) ; } } else return < Observable < Dashboard > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetUserDashboard ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = Dashboard . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return savePage ( body ) { let url_ = this . baseUrl + "/api/services/app/DashboardCustomization/SavePage" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processSavePage ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processSavePage ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processSavePage ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return renamePage ( body ) { let url_ = this . baseUrl + "/api/services/app/DashboardCustomization/RenamePage" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processRenamePage ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processRenamePage ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processRenamePage ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return addNewPage ( body ) { let url_ = this . baseUrl + "/api/services/app/DashboardCustomization/AddNewPage" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , "Accept" : "text/plain" } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processAddNewPage ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processAddNewPage ( < any > response_ ) ; } catch ( e ) { return < Observable < AddNewPageOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < AddNewPageOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processAddNewPage ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = AddNewPageOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param id param dashboardName param application return deletePage ( id , dashboardName , application ) { let url_ = this . baseUrl + "/api/services/app/DashboardCustomization/DeletePage?" ; if ( id !== undefined && id !== null ) url_ += "Id=" + encodeURIComponent ( "" + id ) + "&" ; if ( dashboardName !== undefined && dashboardName !== null ) url_ += "DashboardName=" + encodeURIComponent ( "" + dashboardName ) + "&" ; if ( application !== undefined && application !== null ) url_ += "Application=" + encodeURIComponent ( "" + application ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { } ) } ; return this . http . request ( "delete" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processDeletePage ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processDeletePage ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processDeletePage ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return addWidget ( body ) { let url_ = this . baseUrl + "/api/services/app/DashboardCustomization/AddWidget" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , "Accept" : "text/plain" } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processAddWidget ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processAddWidget ( < any > response_ ) ; } catch ( e ) { return < Observable < Widget > > < any > _observableThrow ( e ) ; } } else return < Observable < Widget > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processAddWidget ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = Widget . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param dashboardName param application return getDashboardDefinition ( dashboardName , application ) { let url_ = this . baseUrl + "/api/services/app/DashboardCustomization/GetDashboardDefinition?" ; if ( dashboardName !== undefined && dashboardName !== null ) url_ += "DashboardName=" + encodeURIComponent ( "" + dashboardName ) + "&" ; if ( application !== undefined && application !== null ) url_ += "Application=" + encodeURIComponent ( "" + application ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetDashboardDefinition ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetDashboardDefinition ( < any > response_ ) ; } catch ( e ) { return < Observable < DashboardOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < DashboardOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetDashboardDefinition ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = DashboardOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param dashboardName param application return getAllWidgetDefinitions ( dashboardName , application ) { let url_ = this . baseUrl + "/api/services/app/DashboardCustomization/GetAllWidgetDefinitions?" ; if ( dashboardName !== undefined && dashboardName !== null ) url_ += "DashboardName=" + encodeURIComponent ( "" + dashboardName ) + "&" ; if ( application !== undefined && application !== null ) url_ += "Application=" + encodeURIComponent ( "" + application ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetAllWidgetDefinitions ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetAllWidgetDefinitions ( < any > response_ ) ; } catch ( e ) { return < Observable < WidgetOutput [ ] > > < any > _observableThrow ( e ) ; } } else return < Observable < WidgetOutput [ ] > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetAllWidgetDefinitions ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; if ( Array . isArray ( resultData200 ) ) { result200 = [ ] as any ; for ( let item of resultData200 ) result200 ! . push ( WidgetOutput . fromJS ( item ) ) ; } else { result200 = < any > null ; } return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param application return getSettingName ( application ) { let url_ = this . baseUrl + "/api/services/app/DashboardCustomization/GetSettingName?" ; if ( application !== undefined && application !== null ) url_ += "application=" + encodeURIComponent ( "" + application ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetSettingName ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetSettingName ( < any > response_ ) ; } catch ( e ) { return < Observable < string > > < any > _observableThrow ( e ) ; } } else return < Observable < string > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetSettingName ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = resultData200 !== undefined ? resultData200 : < any > null ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } } @ Injectable ( ) export class DemoUiComponentsServiceProxy { private http : HttpClient ; private baseUrl : string ; protected jsonParseReviver : ( ( key : string , value : any ) => any ) | undefined = undefined ; constructor ( @ Inject ( HttpClient ) http , @ Optional ( ) @ Inject ( API_BASE_URL ) baseUrl ? ) { this . http = http ; this . baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "" ; } param date return sendAndGetDate ( date ) { let url_ = this . baseUrl + "/api/services/app/DemoUiComponents/SendAndGetDate?" ; if ( date !== undefined && date !== null ) url_ += "date=" + encodeURIComponent ( date ? "" + date . toJSON ( ) : "" ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processSendAndGetDate ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processSendAndGetDate ( < any > response_ ) ; } catch ( e ) { return < Observable < DateToStringOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < DateToStringOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processSendAndGetDate ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = DateToStringOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param date return sendAndGetDateTime ( date ) { let url_ = this . baseUrl + "/api/services/app/DemoUiComponents/SendAndGetDateTime?" ; if ( date !== undefined && date !== null ) url_ += "date=" + encodeURIComponent ( date ? "" + date . toJSON ( ) : "" ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processSendAndGetDateTime ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processSendAndGetDateTime ( < any > response_ ) ; } catch ( e ) { return < Observable < DateToStringOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < DateToStringOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processSendAndGetDateTime ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = DateToStringOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param startDate param endDate return sendAndGetDateRange ( startDate , endDate ) { let url_ = this . baseUrl + "/api/services/app/DemoUiComponents/SendAndGetDateRange?" ; if ( startDate !== undefined && startDate !== null ) url_ += "startDate=" + encodeURIComponent ( startDate ? "" + startDate . toJSON ( ) : "" ) + "&" ; if ( endDate !== undefined && endDate !== null ) url_ += "endDate=" + encodeURIComponent ( endDate ? "" + endDate . toJSON ( ) : "" ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processSendAndGetDateRange ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processSendAndGetDateRange ( < any > response_ ) ; } catch ( e ) { return < Observable < DateToStringOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < DateToStringOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processSendAndGetDateRange ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = DateToStringOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param searchTerm return getCountries ( searchTerm ) { let url_ = this . baseUrl + "/api/services/app/DemoUiComponents/GetCountries?" ; if ( searchTerm !== undefined && searchTerm !== null ) url_ += "searchTerm=" + encodeURIComponent ( "" + searchTerm ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetCountries ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetCountries ( < any > response_ ) ; } catch ( e ) { return < Observable < NameValueOfString [ ] > > < any > _observableThrow ( e ) ; } } else return < Observable < NameValueOfString [ ] > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetCountries ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; if ( Array . isArray ( resultData200 ) ) { result200 = [ ] as any ; for ( let item of resultData200 ) result200 ! . push ( NameValueOfString . fromJS ( item ) ) ; } else { result200 = < any > null ; } return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return sendAndGetSelectedCountries ( body ) { let url_ = this . baseUrl + "/api/services/app/DemoUiComponents/SendAndGetSelectedCountries" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , "Accept" : "text/plain" } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processSendAndGetSelectedCountries ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processSendAndGetSelectedCountries ( < any > response_ ) ; } catch ( e ) { return < Observable < NameValueOfString [ ] > > < any > _observableThrow ( e ) ; } } else return < Observable < NameValueOfString [ ] > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processSendAndGetSelectedCountries ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; if ( Array . isArray ( resultData200 ) ) { result200 = [ ] as any ; for ( let item of resultData200 ) result200 ! . push ( NameValueOfString . fromJS ( item ) ) ; } else { result200 = < any > null ; } return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param input return sendAndGetValue ( input ) { let url_ = this . baseUrl + "/api/services/app/DemoUiComponents/SendAndGetValue?" ; if ( input !== undefined && input !== null ) url_ += "input=" + encodeURIComponent ( "" + input ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processSendAndGetValue ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processSendAndGetValue ( < any > response_ ) ; } catch ( e ) { return < Observable < StringOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < StringOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processSendAndGetValue ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = StringOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } } @ Injectable ( ) export class DynamicEntityParameterDefinitionServiceProxy { private http : HttpClient ; private baseUrl : string ; protected jsonParseReviver : ( ( key : string , value : any ) => any ) | undefined = undefined ; constructor ( @ Inject ( HttpClient ) http , @ Optional ( ) @ Inject ( API_BASE_URL ) baseUrl ? ) { this . http = http ; this . baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "" ; } return getAllAllowedInputTypeNames ( ) { let url_ = this . baseUrl + "/api/services/app/DynamicEntityParameterDefinition/GetAllAllowedInputTypeNames" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetAllAllowedInputTypeNames ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetAllAllowedInputTypeNames ( < any > response_ ) ; } catch ( e ) { return < Observable < string [ ] > > < any > _observableThrow ( e ) ; } } else return < Observable < string [ ] > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetAllAllowedInputTypeNames ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; if ( Array . isArray ( resultData200 ) ) { result200 = [ ] as any ; for ( let item of resultData200 ) result200 ! . push ( item ) ; } else { result200 = < any > null ; } return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } return getAllEntities ( ) { let url_ = this . baseUrl + "/api/services/app/DynamicEntityParameterDefinition/GetAllEntities" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetAllEntities ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetAllEntities ( < any > response_ ) ; } catch ( e ) { return < Observable < string [ ] > > < any > _observableThrow ( e ) ; } } else return < Observable < string [ ] > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetAllEntities ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; if ( Array . isArray ( resultData200 ) ) { result200 = [ ] as any ; for ( let item of resultData200 ) result200 ! . push ( item ) ; } else { result200 = < any > null ; } return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } } @ Injectable ( ) export class DynamicParameterServiceProxy { private http : HttpClient ; private baseUrl : string ; protected jsonParseReviver : ( ( key : string , value : any ) => any ) | undefined = undefined ; constructor ( @ Inject ( HttpClient ) http , @ Optional ( ) @ Inject ( API_BASE_URL ) baseUrl ? ) { this . http = http ; this . baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "" ; } param id return get ( id ) { let url_ = this . baseUrl + "/api/services/app/DynamicParameter/Get?" ; if ( id === null ) throw new Error ( "The parameter 'id' cannot be null." ) ; else if ( id !== undefined ) url_ += "id=" + encodeURIComponent ( "" + id ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGet ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGet ( < any > response_ ) ; } catch ( e ) { return < Observable < DynamicParameterDto > > < any > _observableThrow ( e ) ; } } else return < Observable < DynamicParameterDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGet ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = DynamicParameterDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } return getAll ( ) { let url_ = this . baseUrl + "/api/services/app/DynamicParameter/GetAll" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetAll ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetAll ( < any > response_ ) ; } catch ( e ) { return < Observable < ListResultDtoOfDynamicParameterDto > > < any > _observableThrow ( e ) ; } } else return < Observable < ListResultDtoOfDynamicParameterDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetAll ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = ListResultDtoOfDynamicParameterDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return add ( body ) { let url_ = this . baseUrl + "/api/services/app/DynamicParameter/Add" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processAdd ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processAdd ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processAdd ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return update ( body ) { let url_ = this . baseUrl + "/api/services/app/DynamicParameter/Update" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "put" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processUpdate ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processUpdate ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processUpdate ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param id return delete ( id ) { let url_ = this . baseUrl + "/api/services/app/DynamicParameter/Delete?" ; if ( id === null ) throw new Error ( "The parameter 'id' cannot be null." ) ; else if ( id !== undefined ) url_ += "id=" + encodeURIComponent ( "" + id ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { } ) } ; return this . http . request ( "delete" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processDelete ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processDelete ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processDelete ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param name return findAllowedInputType ( name ) { let url_ = this . baseUrl + "/api/services/app/DynamicParameter/FindAllowedInputType?" ; if ( name !== undefined && name !== null ) url_ += "name=" + encodeURIComponent ( "" + name ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processFindAllowedInputType ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processFindAllowedInputType ( < any > response_ ) ; } catch ( e ) { return < Observable < IInputType > > < any > _observableThrow ( e ) ; } } else return < Observable < IInputType > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processFindAllowedInputType ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = IInputType . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } } @ Injectable ( ) export class DynamicParameterValueServiceProxy { private http : HttpClient ; private baseUrl : string ; protected jsonParseReviver : ( ( key : string , value : any ) => any ) | undefined = undefined ; constructor ( @ Inject ( HttpClient ) http , @ Optional ( ) @ Inject ( API_BASE_URL ) baseUrl ? ) { this . http = http ; this . baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "" ; } param id return get ( id ) { let url_ = this . baseUrl + "/api/services/app/DynamicParameterValue/Get?" ; if ( id === null ) throw new Error ( "The parameter 'id' cannot be null." ) ; else if ( id !== undefined ) url_ += "id=" + encodeURIComponent ( "" + id ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGet ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGet ( < any > response_ ) ; } catch ( e ) { return < Observable < DynamicParameterValueDto > > < any > _observableThrow ( e ) ; } } else return < Observable < DynamicParameterValueDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGet ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = DynamicParameterValueDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param id return getAllValuesOfDynamicParameter ( id ) { let url_ = this . baseUrl + "/api/services/app/DynamicParameterValue/GetAllValuesOfDynamicParameter?" ; if ( id === null ) throw new Error ( "The parameter 'id' cannot be null." ) ; else if ( id !== undefined ) url_ += "Id=" + encodeURIComponent ( "" + id ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetAllValuesOfDynamicParameter ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetAllValuesOfDynamicParameter ( < any > response_ ) ; } catch ( e ) { return < Observable < ListResultDtoOfDynamicParameterValueDto > > < any > _observableThrow ( e ) ; } } else return < Observable < ListResultDtoOfDynamicParameterValueDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetAllValuesOfDynamicParameter ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = ListResultDtoOfDynamicParameterValueDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return add ( body ) { let url_ = this . baseUrl + "/api/services/app/DynamicParameterValue/Add" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processAdd ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processAdd ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processAdd ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return update ( body ) { let url_ = this . baseUrl + "/api/services/app/DynamicParameterValue/Update" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "put" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processUpdate ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processUpdate ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processUpdate ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param id return delete ( id ) { let url_ = this . baseUrl + "/api/services/app/DynamicParameterValue/Delete?" ; if ( id === null ) throw new Error ( "The parameter 'id' cannot be null." ) ; else if ( id !== undefined ) url_ += "id=" + encodeURIComponent ( "" + id ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { } ) } ; return this . http . request ( "delete" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processDelete ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processDelete ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processDelete ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } } @ Injectable ( ) export class EditionServiceProxy { private http : HttpClient ; private baseUrl : string ; protected jsonParseReviver : ( ( key : string , value : any ) => any ) | undefined = undefined ; constructor ( @ Inject ( HttpClient ) http , @ Optional ( ) @ Inject ( API_BASE_URL ) baseUrl ? ) { this . http = http ; this . baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "" ; } return getEditions ( ) { let url_ = this . baseUrl + "/api/services/app/Edition/GetEditions" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetEditions ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetEditions ( < any > response_ ) ; } catch ( e ) { return < Observable < ListResultDtoOfEditionListDto > > < any > _observableThrow ( e ) ; } } else return < Observable < ListResultDtoOfEditionListDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetEditions ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = ListResultDtoOfEditionListDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param id return getEditionForEdit ( id ) { let url_ = this . baseUrl + "/api/services/app/Edition/GetEditionForEdit?" ; if ( id !== undefined && id !== null ) url_ += "Id=" + encodeURIComponent ( "" + id ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetEditionForEdit ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetEditionForEdit ( < any > response_ ) ; } catch ( e ) { return < Observable < GetEditionEditOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < GetEditionEditOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetEditionForEdit ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = GetEditionEditOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return createEdition ( body ) { let url_ = this . baseUrl + "/api/services/app/Edition/CreateEdition" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processCreateEdition ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processCreateEdition ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processCreateEdition ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return updateEdition ( body ) { let url_ = this . baseUrl + "/api/services/app/Edition/UpdateEdition" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "put" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processUpdateEdition ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processUpdateEdition ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processUpdateEdition ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param id return deleteEdition ( id ) { let url_ = this . baseUrl + "/api/services/app/Edition/DeleteEdition?" ; if ( id === null ) throw new Error ( "The parameter 'id' cannot be null." ) ; else if ( id !== undefined ) url_ += "Id=" + encodeURIComponent ( "" + id ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { } ) } ; return this . http . request ( "delete" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processDeleteEdition ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processDeleteEdition ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processDeleteEdition ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return moveTenantsToAnotherEdition ( body ) { let url_ = this . baseUrl + "/api/services/app/Edition/MoveTenantsToAnotherEdition" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processMoveTenantsToAnotherEdition ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processMoveTenantsToAnotherEdition ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processMoveTenantsToAnotherEdition ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param selectedEditionId param addAllItem param onlyFreeItems return getEditionComboboxItems ( selectedEditionId , addAllItem , onlyFreeItems ) { let url_ = this . baseUrl + "/api/services/app/Edition/GetEditionComboboxItems?" ; if ( selectedEditionId !== undefined && selectedEditionId !== null ) url_ += "selectedEditionId=" + encodeURIComponent ( "" + selectedEditionId ) + "&" ; if ( addAllItem === null ) throw new Error ( "The parameter 'addAllItem' cannot be null." ) ; else if ( addAllItem !== undefined ) url_ += "addAllItem=" + encodeURIComponent ( "" + addAllItem ) + "&" ; if ( onlyFreeItems === null ) throw new Error ( "The parameter 'onlyFreeItems' cannot be null." ) ; else if ( onlyFreeItems !== undefined ) url_ += "onlyFreeItems=" + encodeURIComponent ( "" + onlyFreeItems ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetEditionComboboxItems ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetEditionComboboxItems ( < any > response_ ) ; } catch ( e ) { return < Observable < SubscribableEditionComboboxItemDto [ ] > > < any > _observableThrow ( e ) ; } } else return < Observable < SubscribableEditionComboboxItemDto [ ] > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetEditionComboboxItems ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; if ( Array . isArray ( resultData200 ) ) { result200 = [ ] as any ; for ( let item of resultData200 ) result200 ! . push ( SubscribableEditionComboboxItemDto . fromJS ( item ) ) ; } else { result200 = < any > null ; } return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param editionId return getTenantCount ( editionId ) { let url_ = this . baseUrl + "/api/services/app/Edition/GetTenantCount?" ; if ( editionId === null ) throw new Error ( "The parameter 'editionId' cannot be null." ) ; else if ( editionId !== undefined ) url_ += "editionId=" + encodeURIComponent ( "" + editionId ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetTenantCount ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetTenantCount ( < any > response_ ) ; } catch ( e ) { return < Observable < number > > < any > _observableThrow ( e ) ; } } else return < Observable < number > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetTenantCount ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = resultData200 !== undefined ? resultData200 : < any > null ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } } @ Injectable ( ) export class EntityDynamicParameterServiceProxy { private http : HttpClient ; private baseUrl : string ; protected jsonParseReviver : ( ( key : string , value : any ) => any ) | undefined = undefined ; constructor ( @ Inject ( HttpClient ) http , @ Optional ( ) @ Inject ( API_BASE_URL ) baseUrl ? ) { this . http = http ; this . baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "" ; } param id return get ( id ) { let url_ = this . baseUrl + "/api/services/app/EntityDynamicParameter/Get?" ; if ( id === null ) throw new Error ( "The parameter 'id' cannot be null." ) ; else if ( id !== undefined ) url_ += "id=" + encodeURIComponent ( "" + id ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGet ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGet ( < any > response_ ) ; } catch ( e ) { return < Observable < EntityDynamicParameterDto > > < any > _observableThrow ( e ) ; } } else return < Observable < EntityDynamicParameterDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGet ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = EntityDynamicParameterDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param entityFullName return getAllParametersOfAnEntity ( entityFullName ) { let url_ = this . baseUrl + "/api/services/app/EntityDynamicParameter/GetAllParametersOfAnEntity?" ; if ( entityFullName !== undefined && entityFullName !== null ) url_ += "EntityFullName=" + encodeURIComponent ( "" + entityFullName ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetAllParametersOfAnEntity ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetAllParametersOfAnEntity ( < any > response_ ) ; } catch ( e ) { return < Observable < ListResultDtoOfEntityDynamicParameterDto > > < any > _observableThrow ( e ) ; } } else return < Observable < ListResultDtoOfEntityDynamicParameterDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetAllParametersOfAnEntity ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = ListResultDtoOfEntityDynamicParameterDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } return getAll ( ) { let url_ = this . baseUrl + "/api/services/app/EntityDynamicParameter/GetAll" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetAll ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetAll ( < any > response_ ) ; } catch ( e ) { return < Observable < ListResultDtoOfEntityDynamicParameterDto > > < any > _observableThrow ( e ) ; } } else return < Observable < ListResultDtoOfEntityDynamicParameterDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetAll ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = ListResultDtoOfEntityDynamicParameterDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return add ( body ) { let url_ = this . baseUrl + "/api/services/app/EntityDynamicParameter/Add" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processAdd ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processAdd ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processAdd ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return update ( body ) { let url_ = this . baseUrl + "/api/services/app/EntityDynamicParameter/Update" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "put" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processUpdate ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processUpdate ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processUpdate ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param id return delete ( id ) { let url_ = this . baseUrl + "/api/services/app/EntityDynamicParameter/Delete?" ; if ( id === null ) throw new Error ( "The parameter 'id' cannot be null." ) ; else if ( id !== undefined ) url_ += "id=" + encodeURIComponent ( "" + id ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { } ) } ; return this . http . request ( "delete" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processDelete ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processDelete ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processDelete ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } } @ Injectable ( ) export class EntityDynamicParameterValueServiceProxy { private http : HttpClient ; private baseUrl : string ; protected jsonParseReviver : ( ( key : string , value : any ) => any ) | undefined = undefined ; constructor ( @ Inject ( HttpClient ) http , @ Optional ( ) @ Inject ( API_BASE_URL ) baseUrl ? ) { this . http = http ; this . baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "" ; } param id return get ( id ) { let url_ = this . baseUrl + "/api/services/app/EntityDynamicParameterValue/Get?" ; if ( id === null ) throw new Error ( "The parameter 'id' cannot be null." ) ; else if ( id !== undefined ) url_ += "id=" + encodeURIComponent ( "" + id ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGet ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGet ( < any > response_ ) ; } catch ( e ) { return < Observable < EntityDynamicParameterValueDto > > < any > _observableThrow ( e ) ; } } else return < Observable < EntityDynamicParameterValueDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGet ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = EntityDynamicParameterValueDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param entityId param parameterId return getAll ( entityId , parameterId ) { let url_ = this . baseUrl + "/api/services/app/EntityDynamicParameterValue/GetAll?" ; if ( entityId !== undefined && entityId !== null ) url_ += "EntityId=" + encodeURIComponent ( "" + entityId ) + "&" ; if ( parameterId === null ) throw new Error ( "The parameter 'parameterId' cannot be null." ) ; else if ( parameterId !== undefined ) url_ += "ParameterId=" + encodeURIComponent ( "" + parameterId ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetAll ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetAll ( < any > response_ ) ; } catch ( e ) { return < Observable < ListResultDtoOfEntityDynamicParameterValueDto > > < any > _observableThrow ( e ) ; } } else return < Observable < ListResultDtoOfEntityDynamicParameterValueDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetAll ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = ListResultDtoOfEntityDynamicParameterValueDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return add ( body ) { let url_ = this . baseUrl + "/api/services/app/EntityDynamicParameterValue/Add" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processAdd ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processAdd ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processAdd ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return update ( body ) { let url_ = this . baseUrl + "/api/services/app/EntityDynamicParameterValue/Update" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "put" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processUpdate ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processUpdate ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processUpdate ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param id return delete ( id ) { let url_ = this . baseUrl + "/api/services/app/EntityDynamicParameterValue/Delete?" ; if ( id === null ) throw new Error ( "The parameter 'id' cannot be null." ) ; else if ( id !== undefined ) url_ += "id=" + encodeURIComponent ( "" + id ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { } ) } ; return this . http . request ( "delete" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processDelete ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processDelete ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processDelete ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } return getAllEntityDynamicParameterValues ( entityFullName , entityId ) { let url_ = this . baseUrl + "/api/services/app/EntityDynamicParameterValue/GetAllEntityDynamicParameterValues?" ; if ( entityFullName === undefined || entityFullName === null ) throw new Error ( "The parameter 'entityFullName' must be defined and cannot be null." ) ; else url_ += "EntityFullName=" + encodeURIComponent ( "" + entityFullName ) + "&" ; if ( entityId === undefined || entityId === null ) throw new Error ( "The parameter 'entityId' must be defined and cannot be null." ) ; else url_ += "EntityId=" + encodeURIComponent ( "" + entityId ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetAllEntityDynamicParameterValues ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetAllEntityDynamicParameterValues ( < any > response_ ) ; } catch ( e ) { return < Observable < GetAllEntityDynamicParameterValuesOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < GetAllEntityDynamicParameterValuesOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetAllEntityDynamicParameterValues ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = GetAllEntityDynamicParameterValuesOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return insertOrUpdateAllValues ( body ) { let url_ = this . baseUrl + "/api/services/app/EntityDynamicParameterValue/InsertOrUpdateAllValues" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processInsertOrUpdateAllValues ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processInsertOrUpdateAllValues ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processInsertOrUpdateAllValues ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return cleanValues ( body ) { let url_ = this . baseUrl + "/api/services/app/EntityDynamicParameterValue/CleanValues" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processCleanValues ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processCleanValues ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processCleanValues ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } } @ Injectable ( ) export class FriendshipServiceProxy { private http : HttpClient ; private baseUrl : string ; protected jsonParseReviver : ( ( key : string , value : any ) => any ) | undefined = undefined ; constructor ( @ Inject ( HttpClient ) http , @ Optional ( ) @ Inject ( API_BASE_URL ) baseUrl ? ) { this . http = http ; this . baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "" ; } param body return createFriendshipRequest ( body ) { let url_ = this . baseUrl + "/api/services/app/Friendship/CreateFriendshipRequest" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , "Accept" : "text/plain" } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processCreateFriendshipRequest ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processCreateFriendshipRequest ( < any > response_ ) ; } catch ( e ) { return < Observable < FriendDto > > < any > _observableThrow ( e ) ; } } else return < Observable < FriendDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processCreateFriendshipRequest ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = FriendDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return createFriendshipRequestByUserName ( body ) { let url_ = this . baseUrl + "/api/services/app/Friendship/CreateFriendshipRequestByUserName" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , "Accept" : "text/plain" } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processCreateFriendshipRequestByUserName ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processCreateFriendshipRequestByUserName ( < any > response_ ) ; } catch ( e ) { return < Observable < FriendDto > > < any > _observableThrow ( e ) ; } } else return < Observable < FriendDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processCreateFriendshipRequestByUserName ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = FriendDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return blockUser ( body ) { let url_ = this . baseUrl + "/api/services/app/Friendship/BlockUser" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processBlockUser ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processBlockUser ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processBlockUser ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return unblockUser ( body ) { let url_ = this . baseUrl + "/api/services/app/Friendship/UnblockUser" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processUnblockUser ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processUnblockUser ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processUnblockUser ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return acceptFriendshipRequest ( body ) { let url_ = this . baseUrl + "/api/services/app/Friendship/AcceptFriendshipRequest" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processAcceptFriendshipRequest ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processAcceptFriendshipRequest ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processAcceptFriendshipRequest ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } } @ Injectable ( ) export class HostDashboardServiceProxy { private http : HttpClient ; private baseUrl : string ; protected jsonParseReviver : ( ( key : string , value : any ) => any ) | undefined = undefined ; constructor ( @ Inject ( HttpClient ) http , @ Optional ( ) @ Inject ( API_BASE_URL ) baseUrl ? ) { this . http = http ; this . baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "" ; } param startDate param endDate return getTopStatsData ( startDate , endDate ) { let url_ = this . baseUrl + "/api/services/app/HostDashboard/GetTopStatsData?" ; if ( startDate === null ) throw new Error ( "The parameter 'startDate' cannot be null." ) ; else if ( startDate !== undefined ) url_ += "StartDate=" + encodeURIComponent ( startDate ? "" + startDate . toJSON ( ) : "" ) + "&" ; if ( endDate === null ) throw new Error ( "The parameter 'endDate' cannot be null." ) ; else if ( endDate !== undefined ) url_ += "EndDate=" + encodeURIComponent ( endDate ? "" + endDate . toJSON ( ) : "" ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetTopStatsData ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetTopStatsData ( < any > response_ ) ; } catch ( e ) { return < Observable < TopStatsData > > < any > _observableThrow ( e ) ; } } else return < Observable < TopStatsData > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetTopStatsData ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = TopStatsData . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } return getRecentTenantsData ( ) { let url_ = this . baseUrl + "/api/services/app/HostDashboard/GetRecentTenantsData" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetRecentTenantsData ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetRecentTenantsData ( < any > response_ ) ; } catch ( e ) { return < Observable < GetRecentTenantsOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < GetRecentTenantsOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetRecentTenantsData ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = GetRecentTenantsOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } return getSubscriptionExpiringTenantsData ( ) { let url_ = this . baseUrl + "/api/services/app/HostDashboard/GetSubscriptionExpiringTenantsData" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetSubscriptionExpiringTenantsData ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetSubscriptionExpiringTenantsData ( < any > response_ ) ; } catch ( e ) { return < Observable < GetExpiringTenantsOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < GetExpiringTenantsOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetSubscriptionExpiringTenantsData ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = GetExpiringTenantsOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param startDate param endDate return getIncomeStatistics ( incomeStatisticsDateInterval , startDate , endDate ) { let url_ = this . baseUrl + "/api/services/app/HostDashboard/GetIncomeStatistics?" ; if ( incomeStatisticsDateInterval === undefined || incomeStatisticsDateInterval === null ) throw new Error ( "The parameter 'incomeStatisticsDateInterval' must be defined and cannot be null." ) ; else url_ += "IncomeStatisticsDateInterval=" + encodeURIComponent ( "" + incomeStatisticsDateInterval ) + "&" ; if ( startDate === null ) throw new Error ( "The parameter 'startDate' cannot be null." ) ; else if ( startDate !== undefined ) url_ += "StartDate=" + encodeURIComponent ( startDate ? "" + startDate . toJSON ( ) : "" ) + "&" ; if ( endDate === null ) throw new Error ( "The parameter 'endDate' cannot be null." ) ; else if ( endDate !== undefined ) url_ += "EndDate=" + encodeURIComponent ( endDate ? "" + endDate . toJSON ( ) : "" ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetIncomeStatistics ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetIncomeStatistics ( < any > response_ ) ; } catch ( e ) { return < Observable < GetIncomeStatisticsDataOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < GetIncomeStatisticsDataOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetIncomeStatistics ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = GetIncomeStatisticsDataOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param startDate param endDate return getEditionTenantStatistics ( startDate , endDate ) { let url_ = this . baseUrl + "/api/services/app/HostDashboard/GetEditionTenantStatistics?" ; if ( startDate === null ) throw new Error ( "The parameter 'startDate' cannot be null." ) ; else if ( startDate !== undefined ) url_ += "StartDate=" + encodeURIComponent ( startDate ? "" + startDate . toJSON ( ) : "" ) + "&" ; if ( endDate === null ) throw new Error ( "The parameter 'endDate' cannot be null." ) ; else if ( endDate !== undefined ) url_ += "EndDate=" + encodeURIComponent ( endDate ? "" + endDate . toJSON ( ) : "" ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetEditionTenantStatistics ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetEditionTenantStatistics ( < any > response_ ) ; } catch ( e ) { return < Observable < GetEditionTenantStatisticsOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < GetEditionTenantStatisticsOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetEditionTenantStatistics ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = GetEditionTenantStatisticsOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } } @ Injectable ( ) export class HostSettingsServiceProxy { private http : HttpClient ; private baseUrl : string ; protected jsonParseReviver : ( ( key : string , value : any ) => any ) | undefined = undefined ; constructor ( @ Inject ( HttpClient ) http , @ Optional ( ) @ Inject ( API_BASE_URL ) baseUrl ? ) { this . http = http ; this . baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "" ; } return getAllSettings ( ) { let url_ = this . baseUrl + "/api/services/app/HostSettings/GetAllSettings" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetAllSettings ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetAllSettings ( < any > response_ ) ; } catch ( e ) { return < Observable < HostSettingsEditDto > > < any > _observableThrow ( e ) ; } } else return < Observable < HostSettingsEditDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetAllSettings ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = HostSettingsEditDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return updateAllSettings ( body ) { let url_ = this . baseUrl + "/api/services/app/HostSettings/UpdateAllSettings" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "put" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processUpdateAllSettings ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processUpdateAllSettings ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processUpdateAllSettings ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return sendTestEmail ( body ) { let url_ = this . baseUrl + "/api/services/app/HostSettings/SendTestEmail" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processSendTestEmail ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processSendTestEmail ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processSendTestEmail ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } return getEnabledSocialLoginSettings ( ) { let url_ = this . baseUrl + "/api/services/app/HostSettings/GetEnabledSocialLoginSettings" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetEnabledSocialLoginSettings ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetEnabledSocialLoginSettings ( < any > response_ ) ; } catch ( e ) { return < Observable < ExternalLoginSettingsDto > > < any > _observableThrow ( e ) ; } } else return < Observable < ExternalLoginSettingsDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetEnabledSocialLoginSettings ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = ExternalLoginSettingsDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } } @ Injectable ( ) export class InstallServiceProxy { private http : HttpClient ; private baseUrl : string ; protected jsonParseReviver : ( ( key : string , value : any ) => any ) | undefined = undefined ; constructor ( @ Inject ( HttpClient ) http , @ Optional ( ) @ Inject ( API_BASE_URL ) baseUrl ? ) { this . http = http ; this . baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "" ; } param body return setup ( body ) { let url_ = this . baseUrl + "/api/services/app/Install/Setup" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processSetup ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processSetup ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processSetup ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } return getAppSettingsJson ( ) { let url_ = this . baseUrl + "/api/services/app/Install/GetAppSettingsJson" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetAppSettingsJson ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetAppSettingsJson ( < any > response_ ) ; } catch ( e ) { return < Observable < AppSettingsJsonDto > > < any > _observableThrow ( e ) ; } } else return < Observable < AppSettingsJsonDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetAppSettingsJson ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = AppSettingsJsonDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } return checkDatabase ( ) { let url_ = this . baseUrl + "/api/services/app/Install/CheckDatabase" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processCheckDatabase ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processCheckDatabase ( < any > response_ ) ; } catch ( e ) { return < Observable < CheckDatabaseOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < CheckDatabaseOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processCheckDatabase ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = CheckDatabaseOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } } @ Injectable ( ) export class InvoiceServiceProxy { private http : HttpClient ; private baseUrl : string ; protected jsonParseReviver : ( ( key : string , value : any ) => any ) | undefined = undefined ; constructor ( @ Inject ( HttpClient ) http , @ Optional ( ) @ Inject ( API_BASE_URL ) baseUrl ? ) { this . http = http ; this . baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "" ; } param id return getInvoiceInfo ( id ) { let url_ = this . baseUrl + "/api/services/app/Invoice/GetInvoiceInfo?" ; if ( id === null ) throw new Error ( "The parameter 'id' cannot be null." ) ; else if ( id !== undefined ) url_ += "Id=" + encodeURIComponent ( "" + id ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetInvoiceInfo ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetInvoiceInfo ( < any > response_ ) ; } catch ( e ) { return < Observable < InvoiceDto > > < any > _observableThrow ( e ) ; } } else return < Observable < InvoiceDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetInvoiceInfo ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = InvoiceDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return createInvoice ( body ) { let url_ = this . baseUrl + "/api/services/app/Invoice/CreateInvoice" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processCreateInvoice ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processCreateInvoice ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processCreateInvoice ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } } @ Injectable ( ) export class LanguageServiceProxy { private http : HttpClient ; private baseUrl : string ; protected jsonParseReviver : ( ( key : string , value : any ) => any ) | undefined = undefined ; constructor ( @ Inject ( HttpClient ) http , @ Optional ( ) @ Inject ( API_BASE_URL ) baseUrl ? ) { this . http = http ; this . baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "" ; } return getLanguages ( ) { let url_ = this . baseUrl + "/api/services/app/Language/GetLanguages" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetLanguages ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetLanguages ( < any > response_ ) ; } catch ( e ) { return < Observable < GetLanguagesOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < GetLanguagesOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetLanguages ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = GetLanguagesOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param id return getLanguageForEdit ( id ) { let url_ = this . baseUrl + "/api/services/app/Language/GetLanguageForEdit?" ; if ( id !== undefined && id !== null ) url_ += "Id=" + encodeURIComponent ( "" + id ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetLanguageForEdit ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetLanguageForEdit ( < any > response_ ) ; } catch ( e ) { return < Observable < GetLanguageForEditOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < GetLanguageForEditOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetLanguageForEdit ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = GetLanguageForEditOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return createOrUpdateLanguage ( body ) { let url_ = this . baseUrl + "/api/services/app/Language/CreateOrUpdateLanguage" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processCreateOrUpdateLanguage ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processCreateOrUpdateLanguage ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processCreateOrUpdateLanguage ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param id return deleteLanguage ( id ) { let url_ = this . baseUrl + "/api/services/app/Language/DeleteLanguage?" ; if ( id === null ) throw new Error ( "The parameter 'id' cannot be null." ) ; else if ( id !== undefined ) url_ += "Id=" + encodeURIComponent ( "" + id ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { } ) } ; return this . http . request ( "delete" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processDeleteLanguage ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processDeleteLanguage ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processDeleteLanguage ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return setDefaultLanguage ( body ) { let url_ = this . baseUrl + "/api/services/app/Language/SetDefaultLanguage" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processSetDefaultLanguage ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processSetDefaultLanguage ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processSetDefaultLanguage ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param maxResultCount param skipCount param sorting param baseLanguageName param targetValueFilter param filterText return getLanguageTexts ( maxResultCount , skipCount , sorting , sourceName , baseLanguageName , targetLanguageName , targetValueFilter , filterText ) { let url_ = this . baseUrl + "/api/services/app/Language/GetLanguageTexts?" ; if ( maxResultCount === null ) throw new Error ( "The parameter 'maxResultCount' cannot be null." ) ; else if ( maxResultCount !== undefined ) url_ += "MaxResultCount=" + encodeURIComponent ( "" + maxResultCount ) + "&" ; if ( skipCount === null ) throw new Error ( "The parameter 'skipCount' cannot be null." ) ; else if ( skipCount !== undefined ) url_ += "SkipCount=" + encodeURIComponent ( "" + skipCount ) + "&" ; if ( sorting !== undefined && sorting !== null ) url_ += "Sorting=" + encodeURIComponent ( "" + sorting ) + "&" ; if ( sourceName === undefined || sourceName === null ) throw new Error ( "The parameter 'sourceName' must be defined and cannot be null." ) ; else url_ += "SourceName=" + encodeURIComponent ( "" + sourceName ) + "&" ; if ( baseLanguageName !== undefined && baseLanguageName !== null ) url_ += "BaseLanguageName=" + encodeURIComponent ( "" + baseLanguageName ) + "&" ; if ( targetLanguageName === undefined || targetLanguageName === null ) throw new Error ( "The parameter 'targetLanguageName' must be defined and cannot be null." ) ; else url_ += "TargetLanguageName=" + encodeURIComponent ( "" + targetLanguageName ) + "&" ; if ( targetValueFilter !== undefined && targetValueFilter !== null ) url_ += "TargetValueFilter=" + encodeURIComponent ( "" + targetValueFilter ) + "&" ; if ( filterText !== undefined && filterText !== null ) url_ += "FilterText=" + encodeURIComponent ( "" + filterText ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetLanguageTexts ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetLanguageTexts ( < any > response_ ) ; } catch ( e ) { return < Observable < PagedResultDtoOfLanguageTextListDto > > < any > _observableThrow ( e ) ; } } else return < Observable < PagedResultDtoOfLanguageTextListDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetLanguageTexts ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = PagedResultDtoOfLanguageTextListDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return updateLanguageText ( body ) { let url_ = this . baseUrl + "/api/services/app/Language/UpdateLanguageText" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "put" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processUpdateLanguageText ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processUpdateLanguageText ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processUpdateLanguageText ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } } @ Injectable ( ) export class NotificationServiceProxy { private http : HttpClient ; private baseUrl : string ; protected jsonParseReviver : ( ( key : string , value : any ) => any ) | undefined = undefined ; constructor ( @ Inject ( HttpClient ) http , @ Optional ( ) @ Inject ( API_BASE_URL ) baseUrl ? ) { this . http = http ; this . baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "" ; } param state param startDate param endDate param maxResultCount param skipCount return getUserNotifications ( state , startDate , endDate , maxResultCount , skipCount ) { let url_ = this . baseUrl + "/api/services/app/Notification/GetUserNotifications?" ; if ( state === null ) throw new Error ( "The parameter 'state' cannot be null." ) ; else if ( state !== undefined ) url_ += "State=" + encodeURIComponent ( "" + state ) + "&" ; if ( startDate !== undefined && startDate !== null ) url_ += "StartDate=" + encodeURIComponent ( startDate ? "" + startDate . toJSON ( ) : "" ) + "&" ; if ( endDate !== undefined && endDate !== null ) url_ += "EndDate=" + encodeURIComponent ( endDate ? "" + endDate . toJSON ( ) : "" ) + "&" ; if ( maxResultCount === null ) throw new Error ( "The parameter 'maxResultCount' cannot be null." ) ; else if ( maxResultCount !== undefined ) url_ += "MaxResultCount=" + encodeURIComponent ( "" + maxResultCount ) + "&" ; if ( skipCount === null ) throw new Error ( "The parameter 'skipCount' cannot be null." ) ; else if ( skipCount !== undefined ) url_ += "SkipCount=" + encodeURIComponent ( "" + skipCount ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetUserNotifications ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetUserNotifications ( < any > response_ ) ; } catch ( e ) { return < Observable < GetNotificationsOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < GetNotificationsOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetUserNotifications ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = GetNotificationsOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } return setAllNotificationsAsRead ( ) { let url_ = this . baseUrl + "/api/services/app/Notification/SetAllNotificationsAsRead" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processSetAllNotificationsAsRead ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processSetAllNotificationsAsRead ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processSetAllNotificationsAsRead ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return setNotificationAsRead ( body ) { let url_ = this . baseUrl + "/api/services/app/Notification/SetNotificationAsRead" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processSetNotificationAsRead ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processSetNotificationAsRead ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processSetNotificationAsRead ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } return getNotificationSettings ( ) { let url_ = this . baseUrl + "/api/services/app/Notification/GetNotificationSettings" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetNotificationSettings ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetNotificationSettings ( < any > response_ ) ; } catch ( e ) { return < Observable < GetNotificationSettingsOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < GetNotificationSettingsOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetNotificationSettings ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = GetNotificationSettingsOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return updateNotificationSettings ( body ) { let url_ = this . baseUrl + "/api/services/app/Notification/UpdateNotificationSettings" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "put" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processUpdateNotificationSettings ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processUpdateNotificationSettings ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processUpdateNotificationSettings ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param id return deleteNotification ( id ) { let url_ = this . baseUrl + "/api/services/app/Notification/DeleteNotification?" ; if ( id === null ) throw new Error ( "The parameter 'id' cannot be null." ) ; else if ( id !== undefined ) url_ += "Id=" + encodeURIComponent ( "" + id ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { } ) } ; return this . http . request ( "delete" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processDeleteNotification ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processDeleteNotification ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processDeleteNotification ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param state param startDate param endDate return deleteAllUserNotifications ( state , startDate , endDate ) { let url_ = this . baseUrl + "/api/services/app/Notification/DeleteAllUserNotifications?" ; if ( state === null ) throw new Error ( "The parameter 'state' cannot be null." ) ; else if ( state !== undefined ) url_ += "State=" + encodeURIComponent ( "" + state ) + "&" ; if ( startDate !== undefined && startDate !== null ) url_ += "StartDate=" + encodeURIComponent ( startDate ? "" + startDate . toJSON ( ) : "" ) + "&" ; if ( endDate !== undefined && endDate !== null ) url_ += "EndDate=" + encodeURIComponent ( endDate ? "" + endDate . toJSON ( ) : "" ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { } ) } ; return this . http . request ( "delete" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processDeleteAllUserNotifications ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processDeleteAllUserNotifications ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processDeleteAllUserNotifications ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } } @ Injectable ( ) export class OrganizationUnitServiceProxy { private http : HttpClient ; private baseUrl : string ; protected jsonParseReviver : ( ( key : string , value : any ) => any ) | undefined = undefined ; constructor ( @ Inject ( HttpClient ) http , @ Optional ( ) @ Inject ( API_BASE_URL ) baseUrl ? ) { this . http = http ; this . baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "" ; } return getOrganizationUnits ( ) { let url_ = this . baseUrl + "/api/services/app/OrganizationUnit/GetOrganizationUnits" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetOrganizationUnits ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetOrganizationUnits ( < any > response_ ) ; } catch ( e ) { return < Observable < ListResultDtoOfOrganizationUnitDto > > < any > _observableThrow ( e ) ; } } else return < Observable < ListResultDtoOfOrganizationUnitDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetOrganizationUnits ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = ListResultDtoOfOrganizationUnitDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param id param sorting param maxResultCount param skipCount return getOrganizationUnitUsers ( id , sorting , maxResultCount , skipCount ) { let url_ = this . baseUrl + "/api/services/app/OrganizationUnit/GetOrganizationUnitUsers?" ; if ( id === null ) throw new Error ( "The parameter 'id' cannot be null." ) ; else if ( id !== undefined ) url_ += "Id=" + encodeURIComponent ( "" + id ) + "&" ; if ( sorting !== undefined && sorting !== null ) url_ += "Sorting=" + encodeURIComponent ( "" + sorting ) + "&" ; if ( maxResultCount === null ) throw new Error ( "The parameter 'maxResultCount' cannot be null." ) ; else if ( maxResultCount !== undefined ) url_ += "MaxResultCount=" + encodeURIComponent ( "" + maxResultCount ) + "&" ; if ( skipCount === null ) throw new Error ( "The parameter 'skipCount' cannot be null." ) ; else if ( skipCount !== undefined ) url_ += "SkipCount=" + encodeURIComponent ( "" + skipCount ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetOrganizationUnitUsers ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetOrganizationUnitUsers ( < any > response_ ) ; } catch ( e ) { return < Observable < PagedResultDtoOfOrganizationUnitUserListDto > > < any > _observableThrow ( e ) ; } } else return < Observable < PagedResultDtoOfOrganizationUnitUserListDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetOrganizationUnitUsers ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = PagedResultDtoOfOrganizationUnitUserListDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param id param sorting param maxResultCount param skipCount return getOrganizationUnitRoles ( id , sorting , maxResultCount , skipCount ) { let url_ = this . baseUrl + "/api/services/app/OrganizationUnit/GetOrganizationUnitRoles?" ; if ( id === null ) throw new Error ( "The parameter 'id' cannot be null." ) ; else if ( id !== undefined ) url_ += "Id=" + encodeURIComponent ( "" + id ) + "&" ; if ( sorting !== undefined && sorting !== null ) url_ += "Sorting=" + encodeURIComponent ( "" + sorting ) + "&" ; if ( maxResultCount === null ) throw new Error ( "The parameter 'maxResultCount' cannot be null." ) ; else if ( maxResultCount !== undefined ) url_ += "MaxResultCount=" + encodeURIComponent ( "" + maxResultCount ) + "&" ; if ( skipCount === null ) throw new Error ( "The parameter 'skipCount' cannot be null." ) ; else if ( skipCount !== undefined ) url_ += "SkipCount=" + encodeURIComponent ( "" + skipCount ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetOrganizationUnitRoles ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetOrganizationUnitRoles ( < any > response_ ) ; } catch ( e ) { return < Observable < PagedResultDtoOfOrganizationUnitRoleListDto > > < any > _observableThrow ( e ) ; } } else return < Observable < PagedResultDtoOfOrganizationUnitRoleListDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetOrganizationUnitRoles ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = PagedResultDtoOfOrganizationUnitRoleListDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return createOrganizationUnit ( body ) { let url_ = this . baseUrl + "/api/services/app/OrganizationUnit/CreateOrganizationUnit" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , "Accept" : "text/plain" } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processCreateOrganizationUnit ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processCreateOrganizationUnit ( < any > response_ ) ; } catch ( e ) { return < Observable < OrganizationUnitDto > > < any > _observableThrow ( e ) ; } } else return < Observable < OrganizationUnitDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processCreateOrganizationUnit ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = OrganizationUnitDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return updateOrganizationUnit ( body ) { let url_ = this . baseUrl + "/api/services/app/OrganizationUnit/UpdateOrganizationUnit" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , "Accept" : "text/plain" } ) } ; return this . http . request ( "put" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processUpdateOrganizationUnit ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processUpdateOrganizationUnit ( < any > response_ ) ; } catch ( e ) { return < Observable < OrganizationUnitDto > > < any > _observableThrow ( e ) ; } } else return < Observable < OrganizationUnitDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processUpdateOrganizationUnit ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = OrganizationUnitDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return moveOrganizationUnit ( body ) { let url_ = this . baseUrl + "/api/services/app/OrganizationUnit/MoveOrganizationUnit" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , "Accept" : "text/plain" } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processMoveOrganizationUnit ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processMoveOrganizationUnit ( < any > response_ ) ; } catch ( e ) { return < Observable < OrganizationUnitDto > > < any > _observableThrow ( e ) ; } } else return < Observable < OrganizationUnitDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processMoveOrganizationUnit ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = OrganizationUnitDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param id return deleteOrganizationUnit ( id ) { let url_ = this . baseUrl + "/api/services/app/OrganizationUnit/DeleteOrganizationUnit?" ; if ( id === null ) throw new Error ( "The parameter 'id' cannot be null." ) ; else if ( id !== undefined ) url_ += "Id=" + encodeURIComponent ( "" + id ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { } ) } ; return this . http . request ( "delete" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processDeleteOrganizationUnit ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processDeleteOrganizationUnit ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processDeleteOrganizationUnit ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param userId param organizationUnitId return removeUserFromOrganizationUnit ( userId , organizationUnitId ) { let url_ = this . baseUrl + "/api/services/app/OrganizationUnit/RemoveUserFromOrganizationUnit?" ; if ( userId === null ) throw new Error ( "The parameter 'userId' cannot be null." ) ; else if ( userId !== undefined ) url_ += "UserId=" + encodeURIComponent ( "" + userId ) + "&" ; if ( organizationUnitId === null ) throw new Error ( "The parameter 'organizationUnitId' cannot be null." ) ; else if ( organizationUnitId !== undefined ) url_ += "OrganizationUnitId=" + encodeURIComponent ( "" + organizationUnitId ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { } ) } ; return this . http . request ( "delete" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processRemoveUserFromOrganizationUnit ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processRemoveUserFromOrganizationUnit ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processRemoveUserFromOrganizationUnit ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param roleId param organizationUnitId return removeRoleFromOrganizationUnit ( roleId , organizationUnitId ) { let url_ = this . baseUrl + "/api/services/app/OrganizationUnit/RemoveRoleFromOrganizationUnit?" ; if ( roleId === null ) throw new Error ( "The parameter 'roleId' cannot be null." ) ; else if ( roleId !== undefined ) url_ += "RoleId=" + encodeURIComponent ( "" + roleId ) + "&" ; if ( organizationUnitId === null ) throw new Error ( "The parameter 'organizationUnitId' cannot be null." ) ; else if ( organizationUnitId !== undefined ) url_ += "OrganizationUnitId=" + encodeURIComponent ( "" + organizationUnitId ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { } ) } ; return this . http . request ( "delete" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processRemoveRoleFromOrganizationUnit ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processRemoveRoleFromOrganizationUnit ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processRemoveRoleFromOrganizationUnit ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return addUsersToOrganizationUnit ( body ) { let url_ = this . baseUrl + "/api/services/app/OrganizationUnit/AddUsersToOrganizationUnit" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processAddUsersToOrganizationUnit ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processAddUsersToOrganizationUnit ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processAddUsersToOrganizationUnit ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return addRolesToOrganizationUnit ( body ) { let url_ = this . baseUrl + "/api/services/app/OrganizationUnit/AddRolesToOrganizationUnit" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processAddRolesToOrganizationUnit ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processAddRolesToOrganizationUnit ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processAddRolesToOrganizationUnit ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return findUsers ( body ) { let url_ = this . baseUrl + "/api/services/app/OrganizationUnit/FindUsers" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , "Accept" : "text/plain" } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processFindUsers ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processFindUsers ( < any > response_ ) ; } catch ( e ) { return < Observable < PagedResultDtoOfNameValueDto > > < any > _observableThrow ( e ) ; } } else return < Observable < PagedResultDtoOfNameValueDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processFindUsers ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = PagedResultDtoOfNameValueDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return findRoles ( body ) { let url_ = this . baseUrl + "/api/services/app/OrganizationUnit/FindRoles" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , "Accept" : "text/plain" } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processFindRoles ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processFindRoles ( < any > response_ ) ; } catch ( e ) { return < Observable < PagedResultDtoOfNameValueDto > > < any > _observableThrow ( e ) ; } } else return < Observable < PagedResultDtoOfNameValueDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processFindRoles ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = PagedResultDtoOfNameValueDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } } @ Injectable ( ) export class PaymentServiceProxy { private http : HttpClient ; private baseUrl : string ; protected jsonParseReviver : ( ( key : string , value : any ) => any ) | undefined = undefined ; constructor ( @ Inject ( HttpClient ) http , @ Optional ( ) @ Inject ( API_BASE_URL ) baseUrl ? ) { this . http = http ; this . baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "" ; } param upgradeEditionId return getPaymentInfo ( upgradeEditionId ) { let url_ = this . baseUrl + "/api/services/app/Payment/GetPaymentInfo?" ; if ( upgradeEditionId !== undefined && upgradeEditionId !== null ) url_ += "UpgradeEditionId=" + encodeURIComponent ( "" + upgradeEditionId ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetPaymentInfo ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetPaymentInfo ( < any > response_ ) ; } catch ( e ) { return < Observable < PaymentInfoDto > > < any > _observableThrow ( e ) ; } } else return < Observable < PaymentInfoDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetPaymentInfo ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = PaymentInfoDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return createPayment ( body ) { let url_ = this . baseUrl + "/api/services/app/Payment/CreatePayment" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , "Accept" : "text/plain" } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processCreatePayment ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processCreatePayment ( < any > response_ ) ; } catch ( e ) { return < Observable < number > > < any > _observableThrow ( e ) ; } } else return < Observable < number > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processCreatePayment ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = resultData200 !== undefined ? resultData200 : < any > null ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return cancelPayment ( body ) { let url_ = this . baseUrl + "/api/services/app/Payment/CancelPayment" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processCancelPayment ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processCancelPayment ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processCancelPayment ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param sorting param maxResultCount param skipCount return getPaymentHistory ( sorting , maxResultCount , skipCount ) { let url_ = this . baseUrl + "/api/services/app/Payment/GetPaymentHistory?" ; if ( sorting !== undefined && sorting !== null ) url_ += "Sorting=" + encodeURIComponent ( "" + sorting ) + "&" ; if ( maxResultCount === null ) throw new Error ( "The parameter 'maxResultCount' cannot be null." ) ; else if ( maxResultCount !== undefined ) url_ += "MaxResultCount=" + encodeURIComponent ( "" + maxResultCount ) + "&" ; if ( skipCount === null ) throw new Error ( "The parameter 'skipCount' cannot be null." ) ; else if ( skipCount !== undefined ) url_ += "SkipCount=" + encodeURIComponent ( "" + skipCount ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetPaymentHistory ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetPaymentHistory ( < any > response_ ) ; } catch ( e ) { return < Observable < PagedResultDtoOfSubscriptionPaymentListDto > > < any > _observableThrow ( e ) ; } } else return < Observable < PagedResultDtoOfSubscriptionPaymentListDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetPaymentHistory ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = PagedResultDtoOfSubscriptionPaymentListDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param recurringPaymentsEnabled return getActiveGateways ( recurringPaymentsEnabled ) { let url_ = this . baseUrl + "/api/services/app/Payment/GetActiveGateways?" ; if ( recurringPaymentsEnabled !== undefined && recurringPaymentsEnabled !== null ) url_ += "RecurringPaymentsEnabled=" + encodeURIComponent ( "" + recurringPaymentsEnabled ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetActiveGateways ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetActiveGateways ( < any > response_ ) ; } catch ( e ) { return < Observable < PaymentGatewayModel [ ] > > < any > _observableThrow ( e ) ; } } else return < Observable < PaymentGatewayModel [ ] > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetActiveGateways ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; if ( Array . isArray ( resultData200 ) ) { result200 = [ ] as any ; for ( let item of resultData200 ) result200 ! . push ( PaymentGatewayModel . fromJS ( item ) ) ; } else { result200 = < any > null ; } return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param paymentId return getPayment ( paymentId ) { let url_ = this . baseUrl + "/api/services/app/Payment/GetPayment?" ; if ( paymentId === null ) throw new Error ( "The parameter 'paymentId' cannot be null." ) ; else if ( paymentId !== undefined ) url_ += "paymentId=" + encodeURIComponent ( "" + paymentId ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetPayment ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetPayment ( < any > response_ ) ; } catch ( e ) { return < Observable < SubscriptionPaymentDto > > < any > _observableThrow ( e ) ; } } else return < Observable < SubscriptionPaymentDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetPayment ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = SubscriptionPaymentDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } return getLastCompletedPayment ( ) { let url_ = this . baseUrl + "/api/services/app/Payment/GetLastCompletedPayment" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetLastCompletedPayment ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetLastCompletedPayment ( < any > response_ ) ; } catch ( e ) { return < Observable < SubscriptionPaymentDto > > < any > _observableThrow ( e ) ; } } else return < Observable < SubscriptionPaymentDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetLastCompletedPayment ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = SubscriptionPaymentDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param paymentId return buyNowSucceed ( paymentId ) { let url_ = this . baseUrl + "/api/services/app/Payment/BuyNowSucceed?" ; if ( paymentId === null ) throw new Error ( "The parameter 'paymentId' cannot be null." ) ; else if ( paymentId !== undefined ) url_ += "paymentId=" + encodeURIComponent ( "" + paymentId ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processBuyNowSucceed ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processBuyNowSucceed ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processBuyNowSucceed ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param paymentId return newRegistrationSucceed ( paymentId ) { let url_ = this . baseUrl + "/api/services/app/Payment/NewRegistrationSucceed?" ; if ( paymentId === null ) throw new Error ( "The parameter 'paymentId' cannot be null." ) ; else if ( paymentId !== undefined ) url_ += "paymentId=" + encodeURIComponent ( "" + paymentId ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processNewRegistrationSucceed ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processNewRegistrationSucceed ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processNewRegistrationSucceed ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param paymentId return upgradeSucceed ( paymentId ) { let url_ = this . baseUrl + "/api/services/app/Payment/UpgradeSucceed?" ; if ( paymentId === null ) throw new Error ( "The parameter 'paymentId' cannot be null." ) ; else if ( paymentId !== undefined ) url_ += "paymentId=" + encodeURIComponent ( "" + paymentId ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processUpgradeSucceed ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processUpgradeSucceed ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processUpgradeSucceed ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param paymentId return extendSucceed ( paymentId ) { let url_ = this . baseUrl + "/api/services/app/Payment/ExtendSucceed?" ; if ( paymentId === null ) throw new Error ( "The parameter 'paymentId' cannot be null." ) ; else if ( paymentId !== undefined ) url_ += "paymentId=" + encodeURIComponent ( "" + paymentId ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processExtendSucceed ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processExtendSucceed ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processExtendSucceed ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param paymentId return paymentFailed ( paymentId ) { let url_ = this . baseUrl + "/api/services/app/Payment/PaymentFailed?" ; if ( paymentId === null ) throw new Error ( "The parameter 'paymentId' cannot be null." ) ; else if ( paymentId !== undefined ) url_ += "paymentId=" + encodeURIComponent ( "" + paymentId ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processPaymentFailed ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processPaymentFailed ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processPaymentFailed ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param upgradeEditionId return switchBetweenFreeEditions ( upgradeEditionId ) { let url_ = this . baseUrl + "/api/services/app/Payment/SwitchBetweenFreeEditions?" ; if ( upgradeEditionId === null ) throw new Error ( "The parameter 'upgradeEditionId' cannot be null." ) ; else if ( upgradeEditionId !== undefined ) url_ += "upgradeEditionId=" + encodeURIComponent ( "" + upgradeEditionId ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processSwitchBetweenFreeEditions ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processSwitchBetweenFreeEditions ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processSwitchBetweenFreeEditions ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param editionId return upgradeSubscriptionCostsLessThenMinAmount ( editionId ) { let url_ = this . baseUrl + "/api/services/app/Payment/UpgradeSubscriptionCostsLessThenMinAmount?" ; if ( editionId === null ) throw new Error ( "The parameter 'editionId' cannot be null." ) ; else if ( editionId !== undefined ) url_ += "editionId=" + encodeURIComponent ( "" + editionId ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processUpgradeSubscriptionCostsLessThenMinAmount ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processUpgradeSubscriptionCostsLessThenMinAmount ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processUpgradeSubscriptionCostsLessThenMinAmount ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } return hasAnyPayment ( ) { let url_ = this . baseUrl + "/api/services/app/Payment/HasAnyPayment" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processHasAnyPayment ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processHasAnyPayment ( < any > response_ ) ; } catch ( e ) { return < Observable < boolean > > < any > _observableThrow ( e ) ; } } else return < Observable < boolean > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processHasAnyPayment ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = resultData200 !== undefined ? resultData200 : < any > null ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } } @ Injectable ( ) export class PayPalPaymentServiceProxy { private http : HttpClient ; private baseUrl : string ; protected jsonParseReviver : ( ( key : string , value : any ) => any ) | undefined = undefined ; constructor ( @ Inject ( HttpClient ) http , @ Optional ( ) @ Inject ( API_BASE_URL ) baseUrl ? ) { this . http = http ; this . baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "" ; } param paymentId param paypalOrderId return confirmPayment ( paymentId , paypalOrderId ) { let url_ = this . baseUrl + "/api/services/app/PayPalPayment/ConfirmPayment?" ; if ( paymentId === null ) throw new Error ( "The parameter 'paymentId' cannot be null." ) ; else if ( paymentId !== undefined ) url_ += "paymentId=" + encodeURIComponent ( "" + paymentId ) + "&" ; if ( paypalOrderId !== undefined && paypalOrderId !== null ) url_ += "paypalOrderId=" + encodeURIComponent ( "" + paypalOrderId ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processConfirmPayment ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processConfirmPayment ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processConfirmPayment ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } return getConfiguration ( ) { let url_ = this . baseUrl + "/api/services/app/PayPalPayment/GetConfiguration" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetConfiguration ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetConfiguration ( < any > response_ ) ; } catch ( e ) { return < Observable < PayPalConfigurationDto > > < any > _observableThrow ( e ) ; } } else return < Observable < PayPalConfigurationDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetConfiguration ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = PayPalConfigurationDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } } @ Injectable ( ) export class PermissionServiceProxy { private http : HttpClient ; private baseUrl : string ; protected jsonParseReviver : ( ( key : string , value : any ) => any ) | undefined = undefined ; constructor ( @ Inject ( HttpClient ) http , @ Optional ( ) @ Inject ( API_BASE_URL ) baseUrl ? ) { this . http = http ; this . baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "" ; } return getAllPermissions ( ) { let url_ = this . baseUrl + "/api/services/app/Permission/GetAllPermissions" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetAllPermissions ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetAllPermissions ( < any > response_ ) ; } catch ( e ) { return < Observable < ListResultDtoOfFlatPermissionWithLevelDto > > < any > _observableThrow ( e ) ; } } else return < Observable < ListResultDtoOfFlatPermissionWithLevelDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetAllPermissions ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = ListResultDtoOfFlatPermissionWithLevelDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } } @ Injectable ( ) export class ProfileServiceProxy { private http : HttpClient ; private baseUrl : string ; protected jsonParseReviver : ( ( key : string , value : any ) => any ) | undefined = undefined ; constructor ( @ Inject ( HttpClient ) http , @ Optional ( ) @ Inject ( API_BASE_URL ) baseUrl ? ) { this . http = http ; this . baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "" ; } return getCurrentUserProfileForEdit ( ) { let url_ = this . baseUrl + "/api/services/app/Profile/GetCurrentUserProfileForEdit" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetCurrentUserProfileForEdit ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetCurrentUserProfileForEdit ( < any > response_ ) ; } catch ( e ) { return < Observable < CurrentUserProfileEditDto > > < any > _observableThrow ( e ) ; } } else return < Observable < CurrentUserProfileEditDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetCurrentUserProfileForEdit ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = CurrentUserProfileEditDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } return disableGoogleAuthenticator ( ) { let url_ = this . baseUrl + "/api/services/app/Profile/DisableGoogleAuthenticator" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processDisableGoogleAuthenticator ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processDisableGoogleAuthenticator ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processDisableGoogleAuthenticator ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } return updateGoogleAuthenticatorKey ( ) { let url_ = this . baseUrl + "/api/services/app/Profile/UpdateGoogleAuthenticatorKey" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "put" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processUpdateGoogleAuthenticatorKey ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processUpdateGoogleAuthenticatorKey ( < any > response_ ) ; } catch ( e ) { return < Observable < UpdateGoogleAuthenticatorKeyOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < UpdateGoogleAuthenticatorKeyOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processUpdateGoogleAuthenticatorKey ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = UpdateGoogleAuthenticatorKeyOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return sendVerificationSms ( body ) { let url_ = this . baseUrl + "/api/services/app/Profile/SendVerificationSms" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processSendVerificationSms ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processSendVerificationSms ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processSendVerificationSms ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return verifySmsCode ( body ) { let url_ = this . baseUrl + "/api/services/app/Profile/VerifySmsCode" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processVerifySmsCode ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processVerifySmsCode ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processVerifySmsCode ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } return prepareCollectedData ( ) { let url_ = this . baseUrl + "/api/services/app/Profile/PrepareCollectedData" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processPrepareCollectedData ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processPrepareCollectedData ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processPrepareCollectedData ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return updateCurrentUserProfile ( body ) { let url_ = this . baseUrl + "/api/services/app/Profile/UpdateCurrentUserProfile" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "put" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processUpdateCurrentUserProfile ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processUpdateCurrentUserProfile ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processUpdateCurrentUserProfile ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return changePassword ( body ) { let url_ = this . baseUrl + "/api/services/app/Profile/ChangePassword" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processChangePassword ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processChangePassword ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processChangePassword ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return updateProfilePicture ( body ) { let url_ = this . baseUrl + "/api/services/app/Profile/UpdateProfilePicture" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "put" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processUpdateProfilePicture ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processUpdateProfilePicture ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processUpdateProfilePicture ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } return getPasswordComplexitySetting ( ) { let url_ = this . baseUrl + "/api/services/app/Profile/GetPasswordComplexitySetting" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetPasswordComplexitySetting ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetPasswordComplexitySetting ( < any > response_ ) ; } catch ( e ) { return < Observable < GetPasswordComplexitySettingOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < GetPasswordComplexitySettingOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetPasswordComplexitySetting ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = GetPasswordComplexitySettingOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } return getProfilePicture ( ) { let url_ = this . baseUrl + "/api/services/app/Profile/GetProfilePicture" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetProfilePicture ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetProfilePicture ( < any > response_ ) ; } catch ( e ) { return < Observable < GetProfilePictureOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < GetProfilePictureOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetProfilePicture ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = GetProfilePictureOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param username return getProfilePictureByUserName ( username ) { let url_ = this . baseUrl + "/api/services/app/Profile/GetProfilePictureByUserName?" ; if ( username !== undefined && username !== null ) url_ += "username=" + encodeURIComponent ( "" + username ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetProfilePictureByUserName ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetProfilePictureByUserName ( < any > response_ ) ; } catch ( e ) { return < Observable < GetProfilePictureOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < GetProfilePictureOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetProfilePictureByUserName ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = GetProfilePictureOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param userId param tenantId return getFriendProfilePicture ( userId , tenantId ) { let url_ = this . baseUrl + "/api/services/app/Profile/GetFriendProfilePicture?" ; if ( userId === null ) throw new Error ( "The parameter 'userId' cannot be null." ) ; else if ( userId !== undefined ) url_ += "UserId=" + encodeURIComponent ( "" + userId ) + "&" ; if ( tenantId !== undefined && tenantId !== null ) url_ += "TenantId=" + encodeURIComponent ( "" + tenantId ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetFriendProfilePicture ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetFriendProfilePicture ( < any > response_ ) ; } catch ( e ) { return < Observable < GetProfilePictureOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < GetProfilePictureOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetFriendProfilePicture ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = GetProfilePictureOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param userId return getProfilePictureByUser ( userId ) { let url_ = this . baseUrl + "/api/services/app/Profile/GetProfilePictureByUser?" ; if ( userId === null ) throw new Error ( "The parameter 'userId' cannot be null." ) ; else if ( userId !== undefined ) url_ += "userId=" + encodeURIComponent ( "" + userId ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetProfilePictureByUser ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetProfilePictureByUser ( < any > response_ ) ; } catch ( e ) { return < Observable < GetProfilePictureOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < GetProfilePictureOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetProfilePictureByUser ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = GetProfilePictureOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return changeLanguage ( body ) { let url_ = this . baseUrl + "/api/services/app/Profile/ChangeLanguage" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processChangeLanguage ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processChangeLanguage ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processChangeLanguage ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } } @ Injectable ( ) export class QuartzServiceProxy { private http : HttpClient ; private baseUrl : string ; protected jsonParseReviver : ( ( key : string , value : any ) => any ) | undefined = undefined ; constructor ( @ Inject ( HttpClient ) http , @ Optional ( ) @ Inject ( API_BASE_URL ) baseUrl ? ) { this . http = http ; this . baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "" ; } param name return schduleWriteLogJob ( name ) { let url_ = this . baseUrl + "/api/services/app/Quartz/SchduleWriteLogJob?" ; if ( name !== undefined && name !== null ) url_ += "name=" + encodeURIComponent ( "" + name ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processSchduleWriteLogJob ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processSchduleWriteLogJob ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processSchduleWriteLogJob ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } } @ Injectable ( ) export class RoleServiceProxy { private http : HttpClient ; private baseUrl : string ; protected jsonParseReviver : ( ( key : string , value : any ) => any ) | undefined = undefined ; constructor ( @ Inject ( HttpClient ) http , @ Optional ( ) @ Inject ( API_BASE_URL ) baseUrl ? ) { this . http = http ; this . baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "" ; } param permissions return getRoles ( permissions ) { let url_ = this . baseUrl + "/api/services/app/Role/GetRoles?" ; if ( permissions !== undefined && permissions !== null ) permissions && permissions . forEach ( item => { url_ += "Permissions=" + encodeURIComponent ( "" + item ) + "&" ; } ) ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetRoles ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetRoles ( < any > response_ ) ; } catch ( e ) { return < Observable < ListResultDtoOfRoleListDto > > < any > _observableThrow ( e ) ; } } else return < Observable < ListResultDtoOfRoleListDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetRoles ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = ListResultDtoOfRoleListDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param id return getRoleForEdit ( id ) { let url_ = this . baseUrl + "/api/services/app/Role/GetRoleForEdit?" ; if ( id !== undefined && id !== null ) url_ += "Id=" + encodeURIComponent ( "" + id ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetRoleForEdit ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetRoleForEdit ( < any > response_ ) ; } catch ( e ) { return < Observable < GetRoleForEditOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < GetRoleForEditOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetRoleForEdit ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = GetRoleForEditOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return createOrUpdateRole ( body ) { let url_ = this . baseUrl + "/api/services/app/Role/CreateOrUpdateRole" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processCreateOrUpdateRole ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processCreateOrUpdateRole ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processCreateOrUpdateRole ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param id return deleteRole ( id ) { let url_ = this . baseUrl + "/api/services/app/Role/DeleteRole?" ; if ( id === null ) throw new Error ( "The parameter 'id' cannot be null." ) ; else if ( id !== undefined ) url_ += "Id=" + encodeURIComponent ( "" + id ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { } ) } ; return this . http . request ( "delete" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processDeleteRole ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processDeleteRole ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processDeleteRole ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } } @ Injectable ( ) export class SessionServiceProxy { private http : HttpClient ; private baseUrl : string ; protected jsonParseReviver : ( ( key : string , value : any ) => any ) | undefined = undefined ; constructor ( @ Inject ( HttpClient ) http , @ Optional ( ) @ Inject ( API_BASE_URL ) baseUrl ? ) { this . http = http ; this . baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "" ; } return getCurrentLoginInformations ( ) { let url_ = this . baseUrl + "/api/services/app/Session/GetCurrentLoginInformations" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetCurrentLoginInformations ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetCurrentLoginInformations ( < any > response_ ) ; } catch ( e ) { return < Observable < GetCurrentLoginInformationsOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < GetCurrentLoginInformationsOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetCurrentLoginInformations ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = GetCurrentLoginInformationsOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } return updateUserSignInToken ( ) { let url_ = this . baseUrl + "/api/services/app/Session/UpdateUserSignInToken" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "put" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processUpdateUserSignInToken ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processUpdateUserSignInToken ( < any > response_ ) ; } catch ( e ) { return < Observable < UpdateUserSignInTokenOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < UpdateUserSignInTokenOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processUpdateUserSignInToken ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = UpdateUserSignInTokenOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } } @ Injectable ( ) export class StripePaymentServiceProxy { private http : HttpClient ; private baseUrl : string ; protected jsonParseReviver : ( ( key : string , value : any ) => any ) | undefined = undefined ; constructor ( @ Inject ( HttpClient ) http , @ Optional ( ) @ Inject ( API_BASE_URL ) baseUrl ? ) { this . http = http ; this . baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "" ; } return getConfiguration ( ) { let url_ = this . baseUrl + "/api/services/app/StripePayment/GetConfiguration" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetConfiguration ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetConfiguration ( < any > response_ ) ; } catch ( e ) { return < Observable < StripeConfigurationDto > > < any > _observableThrow ( e ) ; } } else return < Observable < StripeConfigurationDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetConfiguration ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = StripeConfigurationDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param stripeSessionId return getPayment ( stripeSessionId ) { let url_ = this . baseUrl + "/api/services/app/StripePayment/GetPayment?" ; if ( stripeSessionId !== undefined && stripeSessionId !== null ) url_ += "StripeSessionId=" + encodeURIComponent ( "" + stripeSessionId ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetPayment ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetPayment ( < any > response_ ) ; } catch ( e ) { return < Observable < SubscriptionPaymentDto > > < any > _observableThrow ( e ) ; } } else return < Observable < SubscriptionPaymentDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetPayment ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = SubscriptionPaymentDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return createPaymentSession ( body ) { let url_ = this . baseUrl + "/api/services/app/StripePayment/CreatePaymentSession" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , "Accept" : "text/plain" } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processCreatePaymentSession ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processCreatePaymentSession ( < any > response_ ) ; } catch ( e ) { return < Observable < string > > < any > _observableThrow ( e ) ; } } else return < Observable < string > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processCreatePaymentSession ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = resultData200 !== undefined ? resultData200 : < any > null ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param paymentId return getPaymentResult ( paymentId ) { let url_ = this . baseUrl + "/api/services/app/StripePayment/GetPaymentResult?" ; if ( paymentId === null ) throw new Error ( "The parameter 'paymentId' cannot be null." ) ; else if ( paymentId !== undefined ) url_ += "PaymentId=" + encodeURIComponent ( "" + paymentId ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetPaymentResult ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetPaymentResult ( < any > response_ ) ; } catch ( e ) { return < Observable < StripePaymentResultOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < StripePaymentResultOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetPaymentResult ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = StripePaymentResultOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } } @ Injectable ( ) export class SubscriptionServiceProxy { private http : HttpClient ; private baseUrl : string ; protected jsonParseReviver : ( ( key : string , value : any ) => any ) | undefined = undefined ; constructor ( @ Inject ( HttpClient ) http , @ Optional ( ) @ Inject ( API_BASE_URL ) baseUrl ? ) { this . http = http ; this . baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "" ; } return disableRecurringPayments ( ) { let url_ = this . baseUrl + "/api/services/app/Subscription/DisableRecurringPayments" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processDisableRecurringPayments ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processDisableRecurringPayments ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processDisableRecurringPayments ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } return enableRecurringPayments ( ) { let url_ = this . baseUrl + "/api/services/app/Subscription/EnableRecurringPayments" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processEnableRecurringPayments ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processEnableRecurringPayments ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processEnableRecurringPayments ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } } @ Injectable ( ) export class TenantServiceProxy { private http : HttpClient ; private baseUrl : string ; protected jsonParseReviver : ( ( key : string , value : any ) => any ) | undefined = undefined ; constructor ( @ Inject ( HttpClient ) http , @ Optional ( ) @ Inject ( API_BASE_URL ) baseUrl ? ) { this . http = http ; this . baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "" ; } param filter param subscriptionEndDateStart param subscriptionEndDateEnd param creationDateStart param creationDateEnd param editionId param editionIdSpecified param sorting param maxResultCount param skipCount return getTenants ( filter , subscriptionEndDateStart , subscriptionEndDateEnd , creationDateStart , creationDateEnd , editionId , editionIdSpecified , sorting , maxResultCount , skipCount ) { let url_ = this . baseUrl + "/api/services/app/Tenant/GetTenants?" ; if ( filter !== undefined && filter !== null ) url_ += "Filter=" + encodeURIComponent ( "" + filter ) + "&" ; if ( subscriptionEndDateStart !== undefined && subscriptionEndDateStart !== null ) url_ += "SubscriptionEndDateStart=" + encodeURIComponent ( subscriptionEndDateStart ? "" + subscriptionEndDateStart . toJSON ( ) : "" ) + "&" ; if ( subscriptionEndDateEnd !== undefined && subscriptionEndDateEnd !== null ) url_ += "SubscriptionEndDateEnd=" + encodeURIComponent ( subscriptionEndDateEnd ? "" + subscriptionEndDateEnd . toJSON ( ) : "" ) + "&" ; if ( creationDateStart !== undefined && creationDateStart !== null ) url_ += "CreationDateStart=" + encodeURIComponent ( creationDateStart ? "" + creationDateStart . toJSON ( ) : "" ) + "&" ; if ( creationDateEnd !== undefined && creationDateEnd !== null ) url_ += "CreationDateEnd=" + encodeURIComponent ( creationDateEnd ? "" + creationDateEnd . toJSON ( ) : "" ) + "&" ; if ( editionId !== undefined && editionId !== null ) url_ += "EditionId=" + encodeURIComponent ( "" + editionId ) + "&" ; if ( editionIdSpecified === null ) throw new Error ( "The parameter 'editionIdSpecified' cannot be null." ) ; else if ( editionIdSpecified !== undefined ) url_ += "EditionIdSpecified=" + encodeURIComponent ( "" + editionIdSpecified ) + "&" ; if ( sorting !== undefined && sorting !== null ) url_ += "Sorting=" + encodeURIComponent ( "" + sorting ) + "&" ; if ( maxResultCount === null ) throw new Error ( "The parameter 'maxResultCount' cannot be null." ) ; else if ( maxResultCount !== undefined ) url_ += "MaxResultCount=" + encodeURIComponent ( "" + maxResultCount ) + "&" ; if ( skipCount === null ) throw new Error ( "The parameter 'skipCount' cannot be null." ) ; else if ( skipCount !== undefined ) url_ += "SkipCount=" + encodeURIComponent ( "" + skipCount ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetTenants ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetTenants ( < any > response_ ) ; } catch ( e ) { return < Observable < PagedResultDtoOfTenantListDto > > < any > _observableThrow ( e ) ; } } else return < Observable < PagedResultDtoOfTenantListDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetTenants ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = PagedResultDtoOfTenantListDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return createTenant ( body ) { let url_ = this . baseUrl + "/api/services/app/Tenant/CreateTenant" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processCreateTenant ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processCreateTenant ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processCreateTenant ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param id return getTenantForEdit ( id ) { let url_ = this . baseUrl + "/api/services/app/Tenant/GetTenantForEdit?" ; if ( id === null ) throw new Error ( "The parameter 'id' cannot be null." ) ; else if ( id !== undefined ) url_ += "Id=" + encodeURIComponent ( "" + id ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetTenantForEdit ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetTenantForEdit ( < any > response_ ) ; } catch ( e ) { return < Observable < TenantEditDto > > < any > _observableThrow ( e ) ; } } else return < Observable < TenantEditDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetTenantForEdit ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = TenantEditDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return updateTenant ( body ) { let url_ = this . baseUrl + "/api/services/app/Tenant/UpdateTenant" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "put" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processUpdateTenant ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processUpdateTenant ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processUpdateTenant ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param id return deleteTenant ( id ) { let url_ = this . baseUrl + "/api/services/app/Tenant/DeleteTenant?" ; if ( id === null ) throw new Error ( "The parameter 'id' cannot be null." ) ; else if ( id !== undefined ) url_ += "Id=" + encodeURIComponent ( "" + id ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { } ) } ; return this . http . request ( "delete" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processDeleteTenant ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processDeleteTenant ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processDeleteTenant ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param id return getTenantFeaturesForEdit ( id ) { let url_ = this . baseUrl + "/api/services/app/Tenant/GetTenantFeaturesForEdit?" ; if ( id === null ) throw new Error ( "The parameter 'id' cannot be null." ) ; else if ( id !== undefined ) url_ += "Id=" + encodeURIComponent ( "" + id ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetTenantFeaturesForEdit ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetTenantFeaturesForEdit ( < any > response_ ) ; } catch ( e ) { return < Observable < GetTenantFeaturesEditOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < GetTenantFeaturesEditOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetTenantFeaturesForEdit ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = GetTenantFeaturesEditOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return updateTenantFeatures ( body ) { let url_ = this . baseUrl + "/api/services/app/Tenant/UpdateTenantFeatures" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "put" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processUpdateTenantFeatures ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processUpdateTenantFeatures ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processUpdateTenantFeatures ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return resetTenantSpecificFeatures ( body ) { let url_ = this . baseUrl + "/api/services/app/Tenant/ResetTenantSpecificFeatures" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processResetTenantSpecificFeatures ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processResetTenantSpecificFeatures ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processResetTenantSpecificFeatures ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return unlockTenantAdmin ( body ) { let url_ = this . baseUrl + "/api/services/app/Tenant/UnlockTenantAdmin" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processUnlockTenantAdmin ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processUnlockTenantAdmin ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processUnlockTenantAdmin ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } } @ Injectable ( ) export class TenantDashboardServiceProxy { private http : HttpClient ; private baseUrl : string ; protected jsonParseReviver : ( ( key : string , value : any ) => any ) | undefined = undefined ; constructor ( @ Inject ( HttpClient ) http , @ Optional ( ) @ Inject ( API_BASE_URL ) baseUrl ? ) { this . http = http ; this . baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "" ; } return getMemberActivity ( ) { let url_ = this . baseUrl + "/api/services/app/TenantDashboard/GetMemberActivity" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetMemberActivity ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetMemberActivity ( < any > response_ ) ; } catch ( e ) { return < Observable < GetMemberActivityOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < GetMemberActivityOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetMemberActivity ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = GetMemberActivityOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } return getDashboardData ( salesSummaryDatePeriod ) { let url_ = this . baseUrl + "/api/services/app/TenantDashboard/GetDashboardData?" ; if ( salesSummaryDatePeriod === undefined || salesSummaryDatePeriod === null ) throw new Error ( "The parameter 'salesSummaryDatePeriod' must be defined and cannot be null." ) ; else url_ += "SalesSummaryDatePeriod=" + encodeURIComponent ( "" + salesSummaryDatePeriod ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetDashboardData ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetDashboardData ( < any > response_ ) ; } catch ( e ) { return < Observable < GetDashboardDataOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < GetDashboardDataOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetDashboardData ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = GetDashboardDataOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } return getTopStats ( ) { let url_ = this . baseUrl + "/api/services/app/TenantDashboard/GetTopStats" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetTopStats ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetTopStats ( < any > response_ ) ; } catch ( e ) { return < Observable < GetTopStatsOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < GetTopStatsOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetTopStats ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = GetTopStatsOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } return getProfitShare ( ) { let url_ = this . baseUrl + "/api/services/app/TenantDashboard/GetProfitShare" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetProfitShare ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetProfitShare ( < any > response_ ) ; } catch ( e ) { return < Observable < GetProfitShareOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < GetProfitShareOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetProfitShare ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = GetProfitShareOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } return getDailySales ( ) { let url_ = this . baseUrl + "/api/services/app/TenantDashboard/GetDailySales" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetDailySales ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetDailySales ( < any > response_ ) ; } catch ( e ) { return < Observable < GetDailySalesOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < GetDailySalesOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetDailySales ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = GetDailySalesOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } return getSalesSummary ( salesSummaryDatePeriod ) { let url_ = this . baseUrl + "/api/services/app/TenantDashboard/GetSalesSummary?" ; if ( salesSummaryDatePeriod === undefined || salesSummaryDatePeriod === null ) throw new Error ( "The parameter 'salesSummaryDatePeriod' must be defined and cannot be null." ) ; else url_ += "SalesSummaryDatePeriod=" + encodeURIComponent ( "" + salesSummaryDatePeriod ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetSalesSummary ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetSalesSummary ( < any > response_ ) ; } catch ( e ) { return < Observable < GetSalesSummaryOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < GetSalesSummaryOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetSalesSummary ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = GetSalesSummaryOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } return getRegionalStats ( ) { let url_ = this . baseUrl + "/api/services/app/TenantDashboard/GetRegionalStats" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetRegionalStats ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetRegionalStats ( < any > response_ ) ; } catch ( e ) { return < Observable < GetRegionalStatsOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < GetRegionalStatsOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetRegionalStats ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = GetRegionalStatsOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } return getGeneralStats ( ) { let url_ = this . baseUrl + "/api/services/app/TenantDashboard/GetGeneralStats" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetGeneralStats ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetGeneralStats ( < any > response_ ) ; } catch ( e ) { return < Observable < GetGeneralStatsOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < GetGeneralStatsOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetGeneralStats ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = GetGeneralStatsOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } } @ Injectable ( ) export class TenantRegistrationServiceProxy { private http : HttpClient ; private baseUrl : string ; protected jsonParseReviver : ( ( key : string , value : any ) => any ) | undefined = undefined ; constructor ( @ Inject ( HttpClient ) http , @ Optional ( ) @ Inject ( API_BASE_URL ) baseUrl ? ) { this . http = http ; this . baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "" ; } param body return registerTenant ( body ) { let url_ = this . baseUrl + "/api/services/app/TenantRegistration/RegisterTenant" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , "Accept" : "text/plain" } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processRegisterTenant ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processRegisterTenant ( < any > response_ ) ; } catch ( e ) { return < Observable < RegisterTenantOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < RegisterTenantOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processRegisterTenant ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = RegisterTenantOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } return getEditionsForSelect ( ) { let url_ = this . baseUrl + "/api/services/app/TenantRegistration/GetEditionsForSelect" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetEditionsForSelect ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetEditionsForSelect ( < any > response_ ) ; } catch ( e ) { return < Observable < EditionsSelectOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < EditionsSelectOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetEditionsForSelect ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = EditionsSelectOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param editionId return getEdition ( editionId ) { let url_ = this . baseUrl + "/api/services/app/TenantRegistration/GetEdition?" ; if ( editionId === null ) throw new Error ( "The parameter 'editionId' cannot be null." ) ; else if ( editionId !== undefined ) url_ += "editionId=" + encodeURIComponent ( "" + editionId ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetEdition ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetEdition ( < any > response_ ) ; } catch ( e ) { return < Observable < EditionSelectDto > > < any > _observableThrow ( e ) ; } } else return < Observable < EditionSelectDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetEdition ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = EditionSelectDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } } @ Injectable ( ) export class TenantSettingsServiceProxy { private http : HttpClient ; private baseUrl : string ; protected jsonParseReviver : ( ( key : string , value : any ) => any ) | undefined = undefined ; constructor ( @ Inject ( HttpClient ) http , @ Optional ( ) @ Inject ( API_BASE_URL ) baseUrl ? ) { this . http = http ; this . baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "" ; } return getAllSettings ( ) { let url_ = this . baseUrl + "/api/services/app/TenantSettings/GetAllSettings" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetAllSettings ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetAllSettings ( < any > response_ ) ; } catch ( e ) { return < Observable < TenantSettingsEditDto > > < any > _observableThrow ( e ) ; } } else return < Observable < TenantSettingsEditDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetAllSettings ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = TenantSettingsEditDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return updateAllSettings ( body ) { let url_ = this . baseUrl + "/api/services/app/TenantSettings/UpdateAllSettings" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "put" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processUpdateAllSettings ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processUpdateAllSettings ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processUpdateAllSettings ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } return clearLogo ( ) { let url_ = this . baseUrl + "/api/services/app/TenantSettings/ClearLogo" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processClearLogo ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processClearLogo ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processClearLogo ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } return clearCustomCss ( ) { let url_ = this . baseUrl + "/api/services/app/TenantSettings/ClearCustomCss" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processClearCustomCss ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processClearCustomCss ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processClearCustomCss ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return sendTestEmail ( body ) { let url_ = this . baseUrl + "/api/services/app/TenantSettings/SendTestEmail" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processSendTestEmail ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processSendTestEmail ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processSendTestEmail ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } return getEnabledSocialLoginSettings ( ) { let url_ = this . baseUrl + "/api/services/app/TenantSettings/GetEnabledSocialLoginSettings" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetEnabledSocialLoginSettings ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetEnabledSocialLoginSettings ( < any > response_ ) ; } catch ( e ) { return < Observable < ExternalLoginSettingsDto > > < any > _observableThrow ( e ) ; } } else return < Observable < ExternalLoginSettingsDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetEnabledSocialLoginSettings ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = ExternalLoginSettingsDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } } @ Injectable ( ) export class TimingServiceProxy { private http : HttpClient ; private baseUrl : string ; protected jsonParseReviver : ( ( key : string , value : any ) => any ) | undefined = undefined ; constructor ( @ Inject ( HttpClient ) http , @ Optional ( ) @ Inject ( API_BASE_URL ) baseUrl ? ) { this . http = http ; this . baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "" ; } return getTimezones ( defaultTimezoneScope ) { let url_ = this . baseUrl + "/api/services/app/Timing/GetTimezones?" ; if ( defaultTimezoneScope === undefined || defaultTimezoneScope === null ) throw new Error ( "The parameter 'defaultTimezoneScope' must be defined and cannot be null." ) ; else url_ += "DefaultTimezoneScope=" + encodeURIComponent ( "" + defaultTimezoneScope ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetTimezones ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetTimezones ( < any > response_ ) ; } catch ( e ) { return < Observable < ListResultDtoOfNameValueDto > > < any > _observableThrow ( e ) ; } } else return < Observable < ListResultDtoOfNameValueDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetTimezones ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = ListResultDtoOfNameValueDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param selectedTimezoneId return getTimezoneComboboxItems ( selectedTimezoneId ) { let url_ = this . baseUrl + "/api/services/app/Timing/GetTimezoneComboboxItems?" ; if ( selectedTimezoneId !== undefined && selectedTimezoneId !== null ) url_ += "SelectedTimezoneId=" + encodeURIComponent ( "" + selectedTimezoneId ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetTimezoneComboboxItems ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetTimezoneComboboxItems ( < any > response_ ) ; } catch ( e ) { return < Observable < ComboboxItemDto [ ] > > < any > _observableThrow ( e ) ; } } else return < Observable < ComboboxItemDto [ ] > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetTimezoneComboboxItems ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; if ( Array . isArray ( resultData200 ) ) { result200 = [ ] as any ; for ( let item of resultData200 ) result200 ! . push ( ComboboxItemDto . fromJS ( item ) ) ; } else { result200 = < any > null ; } return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } } @ Injectable ( ) export class TokenAuthServiceProxy { private http : HttpClient ; private baseUrl : string ; protected jsonParseReviver : ( ( key : string , value : any ) => any ) | undefined = undefined ; constructor ( @ Inject ( HttpClient ) http , @ Optional ( ) @ Inject ( API_BASE_URL ) baseUrl ? ) { this . http = http ; this . baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "" ; } param body return authenticate ( body ) { let url_ = this . baseUrl + "/api/TokenAuth/Authenticate" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , "Accept" : "text/plain" } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processAuthenticate ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processAuthenticate ( < any > response_ ) ; } catch ( e ) { return < Observable < AuthenticateResultModel > > < any > _observableThrow ( e ) ; } } else return < Observable < AuthenticateResultModel > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processAuthenticate ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = AuthenticateResultModel . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param refreshToken return refreshToken ( refreshToken ) { let url_ = this . baseUrl + "/api/TokenAuth/RefreshToken?" ; if ( refreshToken !== undefined && refreshToken !== null ) url_ += "refreshToken=" + encodeURIComponent ( "" + refreshToken ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processRefreshToken ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processRefreshToken ( < any > response_ ) ; } catch ( e ) { return < Observable < RefreshTokenResult > > < any > _observableThrow ( e ) ; } } else return < Observable < RefreshTokenResult > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processRefreshToken ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = RefreshTokenResult . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } return logOut ( ) { let url_ = this . baseUrl + "/api/TokenAuth/LogOut" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processLogOut ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processLogOut ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processLogOut ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return sendTwoFactorAuthCode ( body ) { let url_ = this . baseUrl + "/api/TokenAuth/SendTwoFactorAuthCode" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processSendTwoFactorAuthCode ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processSendTwoFactorAuthCode ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processSendTwoFactorAuthCode ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param impersonationToken return impersonatedAuthenticate ( impersonationToken ) { let url_ = this . baseUrl + "/api/TokenAuth/ImpersonatedAuthenticate?" ; if ( impersonationToken !== undefined && impersonationToken !== null ) url_ += "impersonationToken=" + encodeURIComponent ( "" + impersonationToken ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processImpersonatedAuthenticate ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processImpersonatedAuthenticate ( < any > response_ ) ; } catch ( e ) { return < Observable < ImpersonatedAuthenticateResultModel > > < any > _observableThrow ( e ) ; } } else return < Observable < ImpersonatedAuthenticateResultModel > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processImpersonatedAuthenticate ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = ImpersonatedAuthenticateResultModel . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param userDelegationId param impersonationToken return delegatedImpersonatedAuthenticate ( userDelegationId , impersonationToken ) { let url_ = this . baseUrl + "/api/TokenAuth/DelegatedImpersonatedAuthenticate?" ; if ( userDelegationId === null ) throw new Error ( "The parameter 'userDelegationId' cannot be null." ) ; else if ( userDelegationId !== undefined ) url_ += "userDelegationId=" + encodeURIComponent ( "" + userDelegationId ) + "&" ; if ( impersonationToken !== undefined && impersonationToken !== null ) url_ += "impersonationToken=" + encodeURIComponent ( "" + impersonationToken ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processDelegatedImpersonatedAuthenticate ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processDelegatedImpersonatedAuthenticate ( < any > response_ ) ; } catch ( e ) { return < Observable < ImpersonatedAuthenticateResultModel > > < any > _observableThrow ( e ) ; } } else return < Observable < ImpersonatedAuthenticateResultModel > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processDelegatedImpersonatedAuthenticate ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = ImpersonatedAuthenticateResultModel . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param switchAccountToken return linkedAccountAuthenticate ( switchAccountToken ) { let url_ = this . baseUrl + "/api/TokenAuth/LinkedAccountAuthenticate?" ; if ( switchAccountToken !== undefined && switchAccountToken !== null ) url_ += "switchAccountToken=" + encodeURIComponent ( "" + switchAccountToken ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processLinkedAccountAuthenticate ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processLinkedAccountAuthenticate ( < any > response_ ) ; } catch ( e ) { return < Observable < SwitchedAccountAuthenticateResultModel > > < any > _observableThrow ( e ) ; } } else return < Observable < SwitchedAccountAuthenticateResultModel > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processLinkedAccountAuthenticate ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = SwitchedAccountAuthenticateResultModel . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } return getExternalAuthenticationProviders ( ) { let url_ = this . baseUrl + "/api/TokenAuth/GetExternalAuthenticationProviders" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetExternalAuthenticationProviders ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetExternalAuthenticationProviders ( < any > response_ ) ; } catch ( e ) { return < Observable < ExternalLoginProviderInfoModel [ ] > > < any > _observableThrow ( e ) ; } } else return < Observable < ExternalLoginProviderInfoModel [ ] > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetExternalAuthenticationProviders ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; if ( Array . isArray ( resultData200 ) ) { result200 = [ ] as any ; for ( let item of resultData200 ) result200 ! . push ( ExternalLoginProviderInfoModel . fromJS ( item ) ) ; } else { result200 = < any > null ; } return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return externalAuthenticate ( body ) { let url_ = this . baseUrl + "/api/TokenAuth/ExternalAuthenticate" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , "Accept" : "text/plain" } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processExternalAuthenticate ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processExternalAuthenticate ( < any > response_ ) ; } catch ( e ) { return < Observable < ExternalAuthenticateResultModel > > < any > _observableThrow ( e ) ; } } else return < Observable < ExternalAuthenticateResultModel > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processExternalAuthenticate ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = ExternalAuthenticateResultModel . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param message param severity return testNotification ( message , severity ) { let url_ = this . baseUrl + "/api/TokenAuth/TestNotification?" ; if ( message !== undefined && message !== null ) url_ += "message=" + encodeURIComponent ( "" + message ) + "&" ; if ( severity !== undefined && severity !== null ) url_ += "severity=" + encodeURIComponent ( "" + severity ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processTestNotification ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processTestNotification ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processTestNotification ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } } @ Injectable ( ) export class UiCustomizationSettingsServiceProxy { private http : HttpClient ; private baseUrl : string ; protected jsonParseReviver : ( ( key : string , value : any ) => any ) | undefined = undefined ; constructor ( @ Inject ( HttpClient ) http , @ Optional ( ) @ Inject ( API_BASE_URL ) baseUrl ? ) { this . http = http ; this . baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "" ; } return getUiManagementSettings ( ) { let url_ = this . baseUrl + "/api/services/app/UiCustomizationSettings/GetUiManagementSettings" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetUiManagementSettings ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetUiManagementSettings ( < any > response_ ) ; } catch ( e ) { return < Observable < ThemeSettingsDto [ ] > > < any > _observableThrow ( e ) ; } } else return < Observable < ThemeSettingsDto [ ] > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetUiManagementSettings ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; if ( Array . isArray ( resultData200 ) ) { result200 = [ ] as any ; for ( let item of resultData200 ) result200 ! . push ( ThemeSettingsDto . fromJS ( item ) ) ; } else { result200 = < any > null ; } return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param themeName return changeThemeWithDefaultValues ( themeName ) { let url_ = this . baseUrl + "/api/services/app/UiCustomizationSettings/ChangeThemeWithDefaultValues?" ; if ( themeName !== undefined && themeName !== null ) url_ += "themeName=" + encodeURIComponent ( "" + themeName ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processChangeThemeWithDefaultValues ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processChangeThemeWithDefaultValues ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processChangeThemeWithDefaultValues ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return updateUiManagementSettings ( body ) { let url_ = this . baseUrl + "/api/services/app/UiCustomizationSettings/UpdateUiManagementSettings" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "put" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processUpdateUiManagementSettings ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processUpdateUiManagementSettings ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processUpdateUiManagementSettings ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return updateDefaultUiManagementSettings ( body ) { let url_ = this . baseUrl + "/api/services/app/UiCustomizationSettings/UpdateDefaultUiManagementSettings" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "put" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processUpdateDefaultUiManagementSettings ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processUpdateDefaultUiManagementSettings ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processUpdateDefaultUiManagementSettings ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } return useSystemDefaultSettings ( ) { let url_ = this . baseUrl + "/api/services/app/UiCustomizationSettings/UseSystemDefaultSettings" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processUseSystemDefaultSettings ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processUseSystemDefaultSettings ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processUseSystemDefaultSettings ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } } @ Injectable ( ) export class UserServiceProxy { private http : HttpClient ; private baseUrl : string ; protected jsonParseReviver : ( ( key : string , value : any ) => any ) | undefined = undefined ; constructor ( @ Inject ( HttpClient ) http , @ Optional ( ) @ Inject ( API_BASE_URL ) baseUrl ? ) { this . http = http ; this . baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "" ; } param filter param permissions param role param onlyLockedUsers param sorting param maxResultCount param skipCount return getUsers ( filter , permissions , role , onlyLockedUsers , sorting , maxResultCount , skipCount ) { let url_ = this . baseUrl + "/api/services/app/User/GetUsers?" ; if ( filter !== undefined && filter !== null ) url_ += "Filter=" + encodeURIComponent ( "" + filter ) + "&" ; if ( permissions !== undefined && permissions !== null ) permissions && permissions . forEach ( item => { url_ += "Permissions=" + encodeURIComponent ( "" + item ) + "&" ; } ) ; if ( role !== undefined && role !== null ) url_ += "Role=" + encodeURIComponent ( "" + role ) + "&" ; if ( onlyLockedUsers === null ) throw new Error ( "The parameter 'onlyLockedUsers' cannot be null." ) ; else if ( onlyLockedUsers !== undefined ) url_ += "OnlyLockedUsers=" + encodeURIComponent ( "" + onlyLockedUsers ) + "&" ; if ( sorting !== undefined && sorting !== null ) url_ += "Sorting=" + encodeURIComponent ( "" + sorting ) + "&" ; if ( maxResultCount === null ) throw new Error ( "The parameter 'maxResultCount' cannot be null." ) ; else if ( maxResultCount !== undefined ) url_ += "MaxResultCount=" + encodeURIComponent ( "" + maxResultCount ) + "&" ; if ( skipCount === null ) throw new Error ( "The parameter 'skipCount' cannot be null." ) ; else if ( skipCount !== undefined ) url_ += "SkipCount=" + encodeURIComponent ( "" + skipCount ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetUsers ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetUsers ( < any > response_ ) ; } catch ( e ) { return < Observable < PagedResultDtoOfUserListDto > > < any > _observableThrow ( e ) ; } } else return < Observable < PagedResultDtoOfUserListDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetUsers ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = PagedResultDtoOfUserListDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param filter param permissions param role param onlyLockedUsers param sorting return getUsersToExcel ( filter , permissions , role , onlyLockedUsers , sorting ) { let url_ = this . baseUrl + "/api/services/app/User/GetUsersToExcel?" ; if ( filter !== undefined && filter !== null ) url_ += "Filter=" + encodeURIComponent ( "" + filter ) + "&" ; if ( permissions !== undefined && permissions !== null ) permissions && permissions . forEach ( item => { url_ += "Permissions=" + encodeURIComponent ( "" + item ) + "&" ; } ) ; if ( role !== undefined && role !== null ) url_ += "Role=" + encodeURIComponent ( "" + role ) + "&" ; if ( onlyLockedUsers === null ) throw new Error ( "The parameter 'onlyLockedUsers' cannot be null." ) ; else if ( onlyLockedUsers !== undefined ) url_ += "OnlyLockedUsers=" + encodeURIComponent ( "" + onlyLockedUsers ) + "&" ; if ( sorting !== undefined && sorting !== null ) url_ += "Sorting=" + encodeURIComponent ( "" + sorting ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetUsersToExcel ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetUsersToExcel ( < any > response_ ) ; } catch ( e ) { return < Observable < FileDto > > < any > _observableThrow ( e ) ; } } else return < Observable < FileDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetUsersToExcel ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = FileDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param id return getUserForEdit ( id ) { let url_ = this . baseUrl + "/api/services/app/User/GetUserForEdit?" ; if ( id !== undefined && id !== null ) url_ += "Id=" + encodeURIComponent ( "" + id ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetUserForEdit ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetUserForEdit ( < any > response_ ) ; } catch ( e ) { return < Observable < GetUserForEditOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < GetUserForEditOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetUserForEdit ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = GetUserForEditOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param id return getUserPermissionsForEdit ( id ) { let url_ = this . baseUrl + "/api/services/app/User/GetUserPermissionsForEdit?" ; if ( id === null ) throw new Error ( "The parameter 'id' cannot be null." ) ; else if ( id !== undefined ) url_ += "Id=" + encodeURIComponent ( "" + id ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetUserPermissionsForEdit ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetUserPermissionsForEdit ( < any > response_ ) ; } catch ( e ) { return < Observable < GetUserPermissionsForEditOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < GetUserPermissionsForEditOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetUserPermissionsForEdit ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = GetUserPermissionsForEditOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return resetUserSpecificPermissions ( body ) { let url_ = this . baseUrl + "/api/services/app/User/ResetUserSpecificPermissions" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processResetUserSpecificPermissions ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processResetUserSpecificPermissions ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processResetUserSpecificPermissions ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return updateUserPermissions ( body ) { let url_ = this . baseUrl + "/api/services/app/User/UpdateUserPermissions" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "put" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processUpdateUserPermissions ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processUpdateUserPermissions ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processUpdateUserPermissions ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return createOrUpdateUser ( body ) { let url_ = this . baseUrl + "/api/services/app/User/CreateOrUpdateUser" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processCreateOrUpdateUser ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processCreateOrUpdateUser ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processCreateOrUpdateUser ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param id return deleteUser ( id ) { let url_ = this . baseUrl + "/api/services/app/User/DeleteUser?" ; if ( id === null ) throw new Error ( "The parameter 'id' cannot be null." ) ; else if ( id !== undefined ) url_ += "Id=" + encodeURIComponent ( "" + id ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { } ) } ; return this . http . request ( "delete" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processDeleteUser ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processDeleteUser ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processDeleteUser ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return unlockUser ( body ) { let url_ = this . baseUrl + "/api/services/app/User/UnlockUser" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processUnlockUser ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processUnlockUser ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processUnlockUser ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } } @ Injectable ( ) export class UserDelegationServiceProxy { private http : HttpClient ; private baseUrl : string ; protected jsonParseReviver : ( ( key : string , value : any ) => any ) | undefined = undefined ; constructor ( @ Inject ( HttpClient ) http , @ Optional ( ) @ Inject ( API_BASE_URL ) baseUrl ? ) { this . http = http ; this . baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "" ; } param maxResultCount param skipCount param sorting return getDelegatedUsers ( maxResultCount , skipCount , sorting ) { let url_ = this . baseUrl + "/api/services/app/UserDelegation/GetDelegatedUsers?" ; if ( maxResultCount === null ) throw new Error ( "The parameter 'maxResultCount' cannot be null." ) ; else if ( maxResultCount !== undefined ) url_ += "MaxResultCount=" + encodeURIComponent ( "" + maxResultCount ) + "&" ; if ( skipCount === null ) throw new Error ( "The parameter 'skipCount' cannot be null." ) ; else if ( skipCount !== undefined ) url_ += "SkipCount=" + encodeURIComponent ( "" + skipCount ) + "&" ; if ( sorting !== undefined && sorting !== null ) url_ += "Sorting=" + encodeURIComponent ( "" + sorting ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetDelegatedUsers ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetDelegatedUsers ( < any > response_ ) ; } catch ( e ) { return < Observable < PagedResultDtoOfUserDelegationDto > > < any > _observableThrow ( e ) ; } } else return < Observable < PagedResultDtoOfUserDelegationDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetDelegatedUsers ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = PagedResultDtoOfUserDelegationDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return delegateNewUser ( body ) { let url_ = this . baseUrl + "/api/services/app/UserDelegation/DelegateNewUser" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processDelegateNewUser ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processDelegateNewUser ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processDelegateNewUser ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param id return removeDelegation ( id ) { let url_ = this . baseUrl + "/api/services/app/UserDelegation/RemoveDelegation?" ; if ( id === null ) throw new Error ( "The parameter 'id' cannot be null." ) ; else if ( id !== undefined ) url_ += "Id=" + encodeURIComponent ( "" + id ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { } ) } ; return this . http . request ( "delete" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processRemoveDelegation ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processRemoveDelegation ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processRemoveDelegation ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } return getActiveUserDelegations ( ) { let url_ = this . baseUrl + "/api/services/app/UserDelegation/GetActiveUserDelegations" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetActiveUserDelegations ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetActiveUserDelegations ( < any > response_ ) ; } catch ( e ) { return < Observable < UserDelegationDto [ ] > > < any > _observableThrow ( e ) ; } } else return < Observable < UserDelegationDto [ ] > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetActiveUserDelegations ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; if ( Array . isArray ( resultData200 ) ) { result200 = [ ] as any ; for ( let item of resultData200 ) result200 ! . push ( UserDelegationDto . fromJS ( item ) ) ; } else { result200 = < any > null ; } return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } } @ Injectable ( ) export class UserLinkServiceProxy { private http : HttpClient ; private baseUrl : string ; protected jsonParseReviver : ( ( key : string , value : any ) => any ) | undefined = undefined ; constructor ( @ Inject ( HttpClient ) http , @ Optional ( ) @ Inject ( API_BASE_URL ) baseUrl ? ) { this . http = http ; this . baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "" ; } param body return linkToUser ( body ) { let url_ = this . baseUrl + "/api/services/app/UserLink/LinkToUser" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processLinkToUser ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processLinkToUser ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processLinkToUser ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param maxResultCount param skipCount param sorting return getLinkedUsers ( maxResultCount , skipCount , sorting ) { let url_ = this . baseUrl + "/api/services/app/UserLink/GetLinkedUsers?" ; if ( maxResultCount === null ) throw new Error ( "The parameter 'maxResultCount' cannot be null." ) ; else if ( maxResultCount !== undefined ) url_ += "MaxResultCount=" + encodeURIComponent ( "" + maxResultCount ) + "&" ; if ( skipCount === null ) throw new Error ( "The parameter 'skipCount' cannot be null." ) ; else if ( skipCount !== undefined ) url_ += "SkipCount=" + encodeURIComponent ( "" + skipCount ) + "&" ; if ( sorting !== undefined && sorting !== null ) url_ += "Sorting=" + encodeURIComponent ( "" + sorting ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetLinkedUsers ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetLinkedUsers ( < any > response_ ) ; } catch ( e ) { return < Observable < PagedResultDtoOfLinkedUserDto > > < any > _observableThrow ( e ) ; } } else return < Observable < PagedResultDtoOfLinkedUserDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetLinkedUsers ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = PagedResultDtoOfLinkedUserDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } return getRecentlyUsedLinkedUsers ( ) { let url_ = this . baseUrl + "/api/services/app/UserLink/GetRecentlyUsedLinkedUsers" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetRecentlyUsedLinkedUsers ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetRecentlyUsedLinkedUsers ( < any > response_ ) ; } catch ( e ) { return < Observable < ListResultDtoOfLinkedUserDto > > < any > _observableThrow ( e ) ; } } else return < Observable < ListResultDtoOfLinkedUserDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetRecentlyUsedLinkedUsers ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = ListResultDtoOfLinkedUserDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return unlinkUser ( body ) { let url_ = this . baseUrl + "/api/services/app/UserLink/UnlinkUser" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processUnlinkUser ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processUnlinkUser ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processUnlinkUser ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } } @ Injectable ( ) export class UserLoginServiceProxy { private http : HttpClient ; private baseUrl : string ; protected jsonParseReviver : ( ( key : string , value : any ) => any ) | undefined = undefined ; constructor ( @ Inject ( HttpClient ) http , @ Optional ( ) @ Inject ( API_BASE_URL ) baseUrl ? ) { this . http = http ; this . baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "" ; } return getRecentUserLoginAttempts ( ) { let url_ = this . baseUrl + "/api/services/app/UserLogin/GetRecentUserLoginAttempts" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetRecentUserLoginAttempts ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetRecentUserLoginAttempts ( < any > response_ ) ; } catch ( e ) { return < Observable < ListResultDtoOfUserLoginAttemptDto > > < any > _observableThrow ( e ) ; } } else return < Observable < ListResultDtoOfUserLoginAttemptDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetRecentUserLoginAttempts ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = ListResultDtoOfUserLoginAttemptDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } } @ Injectable ( ) export class WebhookEventServiceProxy { private http : HttpClient ; private baseUrl : string ; protected jsonParseReviver : ( ( key : string , value : any ) => any ) | undefined = undefined ; constructor ( @ Inject ( HttpClient ) http , @ Optional ( ) @ Inject ( API_BASE_URL ) baseUrl ? ) { this . http = http ; this . baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "" ; } param id return get ( id ) { let url_ = this . baseUrl + "/api/services/app/WebhookEvent/Get?" ; if ( id !== undefined && id !== null ) url_ += "id=" + encodeURIComponent ( "" + id ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGet ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGet ( < any > response_ ) ; } catch ( e ) { return < Observable < WebhookEvent > > < any > _observableThrow ( e ) ; } } else return < Observable < WebhookEvent > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGet ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = WebhookEvent . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } } @ Injectable ( ) export class WebhookSendAttemptServiceProxy { private http : HttpClient ; private baseUrl : string ; protected jsonParseReviver : ( ( key : string , value : any ) => any ) | undefined = undefined ; constructor ( @ Inject ( HttpClient ) http , @ Optional ( ) @ Inject ( API_BASE_URL ) baseUrl ? ) { this . http = http ; this . baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "" ; } param subscriptionId param maxResultCount param skipCount return getAllSendAttempts ( subscriptionId , maxResultCount , skipCount ) { let url_ = this . baseUrl + "/api/services/app/WebhookSendAttempt/GetAllSendAttempts?" ; if ( subscriptionId !== undefined && subscriptionId !== null ) url_ += "SubscriptionId=" + encodeURIComponent ( "" + subscriptionId ) + "&" ; if ( maxResultCount === null ) throw new Error ( "The parameter 'maxResultCount' cannot be null." ) ; else if ( maxResultCount !== undefined ) url_ += "MaxResultCount=" + encodeURIComponent ( "" + maxResultCount ) + "&" ; if ( skipCount === null ) throw new Error ( "The parameter 'skipCount' cannot be null." ) ; else if ( skipCount !== undefined ) url_ += "SkipCount=" + encodeURIComponent ( "" + skipCount ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetAllSendAttempts ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetAllSendAttempts ( < any > response_ ) ; } catch ( e ) { return < Observable < PagedResultDtoOfGetAllSendAttemptsOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < PagedResultDtoOfGetAllSendAttemptsOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetAllSendAttempts ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = PagedResultDtoOfGetAllSendAttemptsOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param id return getAllSendAttemptsOfWebhookEvent ( id ) { let url_ = this . baseUrl + "/api/services/app/WebhookSendAttempt/GetAllSendAttemptsOfWebhookEvent?" ; if ( id !== undefined && id !== null ) url_ += "Id=" + encodeURIComponent ( "" + id ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetAllSendAttemptsOfWebhookEvent ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetAllSendAttemptsOfWebhookEvent ( < any > response_ ) ; } catch ( e ) { return < Observable < ListResultDtoOfGetAllSendAttemptsOfWebhookEventOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < ListResultDtoOfGetAllSendAttemptsOfWebhookEventOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetAllSendAttemptsOfWebhookEvent ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = ListResultDtoOfGetAllSendAttemptsOfWebhookEventOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param sendAttemptId return resend ( sendAttemptId ) { let url_ = this . baseUrl + "/api/services/app/WebhookSendAttempt/Resend?" ; if ( sendAttemptId !== undefined && sendAttemptId !== null ) url_ += "sendAttemptId=" + encodeURIComponent ( "" + sendAttemptId ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processResend ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processResend ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processResend ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } } @ Injectable ( ) export class WebhookSubscriptionServiceProxy { private http : HttpClient ; private baseUrl : string ; protected jsonParseReviver : ( ( key : string , value : any ) => any ) | undefined = undefined ; constructor ( @ Inject ( HttpClient ) http , @ Optional ( ) @ Inject ( API_BASE_URL ) baseUrl ? ) { this . http = http ; this . baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "" ; } return publishTestWebhook ( ) { let url_ = this . baseUrl + "/api/services/app/WebhookSubscription/PublishTestWebhook" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processPublishTestWebhook ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processPublishTestWebhook ( < any > response_ ) ; } catch ( e ) { return < Observable < string > > < any > _observableThrow ( e ) ; } } else return < Observable < string > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processPublishTestWebhook ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = resultData200 !== undefined ? resultData200 : < any > null ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } return getAllSubscriptions ( ) { let url_ = this . baseUrl + "/api/services/app/WebhookSubscription/GetAllSubscriptions" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetAllSubscriptions ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetAllSubscriptions ( < any > response_ ) ; } catch ( e ) { return < Observable < ListResultDtoOfGetAllSubscriptionsOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < ListResultDtoOfGetAllSubscriptionsOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetAllSubscriptions ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = ListResultDtoOfGetAllSubscriptionsOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param subscriptionId return getSubscription ( subscriptionId ) { let url_ = this . baseUrl + "/api/services/app/WebhookSubscription/GetSubscription?" ; if ( subscriptionId !== undefined && subscriptionId !== null ) url_ += "subscriptionId=" + encodeURIComponent ( "" + subscriptionId ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetSubscription ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetSubscription ( < any > response_ ) ; } catch ( e ) { return < Observable < WebhookSubscription > > < any > _observableThrow ( e ) ; } } else return < Observable < WebhookSubscription > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetSubscription ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = WebhookSubscription . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return addSubscription ( body ) { let url_ = this . baseUrl + "/api/services/app/WebhookSubscription/AddSubscription" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processAddSubscription ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processAddSubscription ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processAddSubscription ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return updateSubscription ( body ) { let url_ = this . baseUrl + "/api/services/app/WebhookSubscription/UpdateSubscription" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "put" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processUpdateSubscription ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processUpdateSubscription ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processUpdateSubscription ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param body return activateWebhookSubscription ( body ) { let url_ = this . baseUrl + "/api/services/app/WebhookSubscription/ActivateWebhookSubscription" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; const content_ = JSON . stringify ( body ) ; let options_ = { body : content_ , observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Content-Type" : "application/json-patch+json" , } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processActivateWebhookSubscription ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processActivateWebhookSubscription ( < any > response_ ) ; } catch ( e ) { return < Observable < void > > < any > _observableThrow ( e ) ; } } else return < Observable < void > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processActivateWebhookSubscription ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return _observableOf ( < any > null ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param webhookName return isSubscribed ( webhookName ) { let url_ = this . baseUrl + "/api/services/app/WebhookSubscription/IsSubscribed?" ; if ( webhookName !== undefined && webhookName !== null ) url_ += "webhookName=" + encodeURIComponent ( "" + webhookName ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processIsSubscribed ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processIsSubscribed ( < any > response_ ) ; } catch ( e ) { return < Observable < boolean > > < any > _observableThrow ( e ) ; } } else return < Observable < boolean > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processIsSubscribed ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = resultData200 !== undefined ? resultData200 : < any > null ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } param webhookName return getAllSubscriptionsIfFeaturesGranted ( webhookName ) { let url_ = this . baseUrl + "/api/services/app/WebhookSubscription/GetAllSubscriptionsIfFeaturesGranted?" ; if ( webhookName !== undefined && webhookName !== null ) url_ += "webhookName=" + encodeURIComponent ( "" + webhookName ) + "&" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetAllSubscriptionsIfFeaturesGranted ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetAllSubscriptionsIfFeaturesGranted ( < any > response_ ) ; } catch ( e ) { return < Observable < ListResultDtoOfGetAllSubscriptionsOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < ListResultDtoOfGetAllSubscriptionsOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetAllSubscriptionsIfFeaturesGranted ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = ListResultDtoOfGetAllSubscriptionsOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } return getAllAvailableWebhooks ( ) { let url_ = this . baseUrl + "/api/services/app/WebhookSubscription/GetAllAvailableWebhooks" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetAllAvailableWebhooks ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetAllAvailableWebhooks ( < any > response_ ) ; } catch ( e ) { return < Observable < ListResultDtoOfGetAllAvailableWebhooksOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < ListResultDtoOfGetAllAvailableWebhooksOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetAllAvailableWebhooks ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = ListResultDtoOfGetAllAvailableWebhooksOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } } @ Injectable ( ) export class WebLogServiceProxy { private http : HttpClient ; private baseUrl : string ; protected jsonParseReviver : ( ( key : string , value : any ) => any ) | undefined = undefined ; constructor ( @ Inject ( HttpClient ) http , @ Optional ( ) @ Inject ( API_BASE_URL ) baseUrl ? ) { this . http = http ; this . baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "" ; } return getLatestWebLogs ( ) { let url_ = this . baseUrl + "/api/services/app/WebLog/GetLatestWebLogs" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "get" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processGetLatestWebLogs ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processGetLatestWebLogs ( < any > response_ ) ; } catch ( e ) { return < Observable < GetLatestWebLogsOutput > > < any > _observableThrow ( e ) ; } } else return < Observable < GetLatestWebLogsOutput > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processGetLatestWebLogs ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = GetLatestWebLogsOutput . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } return downloadWebLogs ( ) { let url_ = this . baseUrl + "/api/services/app/WebLog/DownloadWebLogs" ; url_ = url_ . replace ( /[?&]$/ , "" ) ; let options_ = { observe : "response" , responseType : "blob" , headers : new HttpHeaders ( { "Accept" : "text/plain" } ) } ; return this . http . request ( "post" , url_ , options_ ) . pipe ( _observableMergeMap ( ( response_ ) => { return this . processDownloadWebLogs ( response_ ) ; } ) ) . pipe ( _observableCatch ( ( response_ ) => { if ( response_ instanceof HttpResponseBase ) { try { return this . processDownloadWebLogs ( < any > response_ ) ; } catch ( e ) { return < Observable < FileDto > > < any > _observableThrow ( e ) ; } } else return < Observable < FileDto > > < any > _observableThrow ( response_ ) ; } ) ) ; } protected processDownloadWebLogs ( response ) { const status = response . status ; const responseBlob = response instanceof HttpResponse ? response . body : ( < any > response ) . error instanceof Blob ? ( < any > response ) . error : undefined ; let _headers = { } ; if ( response . headers ) { for ( let key of response . headers . keys ( ) ) { _headers [ key ] = response . headers . get ( key ) ; } } if ( status === 200 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { let result200 = null ; let resultData200 = _responseText === "" ? null : JSON . parse ( _responseText , this . jsonParseReviver ) ; result200 = FileDto . fromJS ( resultData200 ) ; return _observableOf ( result200 ) ; } ) ) ; } else if ( status !== 200 && status !== 204 ) { return blobToText ( responseBlob ) . pipe ( _observableMergeMap ( ( _responseText ) => { return throwException ( "An unexpected server error occurred." , status , _responseText , _headers ) ; } ) ) ; } return _observableOf ( < any > null ) ; } } export class IsTenantAvailableInput implements IIsTenantAvailableInput { tenancyName ! : string ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . tenancyName = _data [ "tenancyName" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new IsTenantAvailableInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "tenancyName" ] = this . tenancyName ; return data ; } } export interface IIsTenantAvailableInput { tenancyName : string ; } export enum TenantAvailabilityState { Available = 1 , InActive = 2 , NotFound = 3 } export class IsTenantAvailableOutput implements IIsTenantAvailableOutput { state ! : TenantAvailabilityState ; tenantId ! : number | undefined ; serverRootAddress ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . state = _data [ "state" ] ; this . tenantId = _data [ "tenantId" ] ; this . serverRootAddress = _data [ "serverRootAddress" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new IsTenantAvailableOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "state" ] = this . state ; data [ "tenantId" ] = this . tenantId ; data [ "serverRootAddress" ] = this . serverRootAddress ; return data ; } } export interface IIsTenantAvailableOutput { state : TenantAvailabilityState ; tenantId : number | undefined ; serverRootAddress : string | undefined ; } export class ResolveTenantIdInput implements IResolveTenantIdInput { c ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . c = _data [ "c" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new ResolveTenantIdInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "c" ] = this . c ; return data ; } } export interface IResolveTenantIdInput { c : string | undefined ; } export class RegisterInput implements IRegisterInput { name ! : string ; surname ! : string ; userName ! : string ; emailAddress ! : string ; password ! : string ; captchaResponse ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . name = _data [ "name" ] ; this . surname = _data [ "surname" ] ; this . userName = _data [ "userName" ] ; this . emailAddress = _data [ "emailAddress" ] ; this . password = _data [ "password" ] ; this . captchaResponse = _data [ "captchaResponse" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new RegisterInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "name" ] = this . name ; data [ "surname" ] = this . surname ; data [ "userName" ] = this . userName ; data [ "emailAddress" ] = this . emailAddress ; data [ "password" ] = this . password ; data [ "captchaResponse" ] = this . captchaResponse ; return data ; } } export interface IRegisterInput { name : string ; surname : string ; userName : string ; emailAddress : string ; password : string ; captchaResponse : string | undefined ; } export class RegisterOutput implements IRegisterOutput { canLogin ! : boolean ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . canLogin = _data [ "canLogin" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new RegisterOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "canLogin" ] = this . canLogin ; return data ; } } export interface IRegisterOutput { canLogin : boolean ; } export class SendPasswordResetCodeInput implements ISendPasswordResetCodeInput { emailAddress ! : string ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . emailAddress = _data [ "emailAddress" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new SendPasswordResetCodeInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "emailAddress" ] = this . emailAddress ; return data ; } } export interface ISendPasswordResetCodeInput { emailAddress : string ; } export class ResetPasswordInput implements IResetPasswordInput { userId ! : number ; resetCode ! : string | undefined ; password ! : string | undefined ; returnUrl ! : string | undefined ; singleSignIn ! : string | undefined ; c ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . userId = _data [ "userId" ] ; this . resetCode = _data [ "resetCode" ] ; this . password = _data [ "password" ] ; this . returnUrl = _data [ "returnUrl" ] ; this . singleSignIn = _data [ "singleSignIn" ] ; this . c = _data [ "c" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new ResetPasswordInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "userId" ] = this . userId ; data [ "resetCode" ] = this . resetCode ; data [ "password" ] = this . password ; data [ "returnUrl" ] = this . returnUrl ; data [ "singleSignIn" ] = this . singleSignIn ; data [ "c" ] = this . c ; return data ; } } export interface IResetPasswordInput { userId : number ; resetCode : string | undefined ; password : string | undefined ; returnUrl : string | undefined ; singleSignIn : string | undefined ; c : string | undefined ; } export class ResetPasswordOutput implements IResetPasswordOutput { canLogin ! : boolean ; userName ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . canLogin = _data [ "canLogin" ] ; this . userName = _data [ "userName" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new ResetPasswordOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "canLogin" ] = this . canLogin ; data [ "userName" ] = this . userName ; return data ; } } export interface IResetPasswordOutput { canLogin : boolean ; userName : string | undefined ; } export class SendEmailActivationLinkInput implements ISendEmailActivationLinkInput { emailAddress ! : string ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . emailAddress = _data [ "emailAddress" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new SendEmailActivationLinkInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "emailAddress" ] = this . emailAddress ; return data ; } } export interface ISendEmailActivationLinkInput { emailAddress : string ; } export class ActivateEmailInput implements IActivateEmailInput { userId ! : number ; confirmationCode ! : string | undefined ; c ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . userId = _data [ "userId" ] ; this . confirmationCode = _data [ "confirmationCode" ] ; this . c = _data [ "c" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new ActivateEmailInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "userId" ] = this . userId ; data [ "confirmationCode" ] = this . confirmationCode ; data [ "c" ] = this . c ; return data ; } } export interface IActivateEmailInput { userId : number ; confirmationCode : string | undefined ; c : string | undefined ; } export class ImpersonateInput implements IImpersonateInput { tenantId ! : number | undefined ; userId ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . tenantId = _data [ "tenantId" ] ; this . userId = _data [ "userId" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new ImpersonateInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "tenantId" ] = this . tenantId ; data [ "userId" ] = this . userId ; return data ; } } export interface IImpersonateInput { tenantId : number | undefined ; userId : number ; } export class ImpersonateOutput implements IImpersonateOutput { impersonationToken ! : string | undefined ; tenancyName ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . impersonationToken = _data [ "impersonationToken" ] ; this . tenancyName = _data [ "tenancyName" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new ImpersonateOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "impersonationToken" ] = this . impersonationToken ; data [ "tenancyName" ] = this . tenancyName ; return data ; } } export interface IImpersonateOutput { impersonationToken : string | undefined ; tenancyName : string | undefined ; } export class DelegatedImpersonateInput implements IDelegatedImpersonateInput { userDelegationId ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . userDelegationId = _data [ "userDelegationId" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new DelegatedImpersonateInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "userDelegationId" ] = this . userDelegationId ; return data ; } } export interface IDelegatedImpersonateInput { userDelegationId : number ; } export class SwitchToLinkedAccountInput implements ISwitchToLinkedAccountInput { targetTenantId ! : number | undefined ; targetUserId ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . targetTenantId = _data [ "targetTenantId" ] ; this . targetUserId = _data [ "targetUserId" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new SwitchToLinkedAccountInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "targetTenantId" ] = this . targetTenantId ; data [ "targetUserId" ] = this . targetUserId ; return data ; } } export interface ISwitchToLinkedAccountInput { targetTenantId : number | undefined ; targetUserId : number ; } export class SwitchToLinkedAccountOutput implements ISwitchToLinkedAccountOutput { switchAccountToken ! : string | undefined ; tenancyName ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . switchAccountToken = _data [ "switchAccountToken" ] ; this . tenancyName = _data [ "tenancyName" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new SwitchToLinkedAccountOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "switchAccountToken" ] = this . switchAccountToken ; data [ "tenancyName" ] = this . tenancyName ; return data ; } } export interface ISwitchToLinkedAccountOutput { switchAccountToken : string | undefined ; tenancyName : string | undefined ; } export class AuditLogListDto implements IAuditLogListDto { userId ! : number | undefined ; userName ! : string | undefined ; impersonatorTenantId ! : number | undefined ; impersonatorUserId ! : number | undefined ; serviceName ! : string | undefined ; methodName ! : string | undefined ; parameters ! : string | undefined ; executionTime ! : DateTime ; executionDuration ! : number ; clientIpAddress ! : string | undefined ; clientName ! : string | undefined ; browserInfo ! : string | undefined ; exception ! : string | undefined ; customData ! : string | undefined ; id ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . userId = _data [ "userId" ] ; this . userName = _data [ "userName" ] ; this . impersonatorTenantId = _data [ "impersonatorTenantId" ] ; this . impersonatorUserId = _data [ "impersonatorUserId" ] ; this . serviceName = _data [ "serviceName" ] ; this . methodName = _data [ "methodName" ] ; this . parameters = _data [ "parameters" ] ; this . executionTime = _data [ "executionTime" ] ? DateTime . fromISO ( _data [ "executionTime" ] . toString ( ) ) : < any > undefined ; this . executionDuration = _data [ "executionDuration" ] ; this . clientIpAddress = _data [ "clientIpAddress" ] ; this . clientName = _data [ "clientName" ] ; this . browserInfo = _data [ "browserInfo" ] ; this . exception = _data [ "exception" ] ; this . customData = _data [ "customData" ] ; this . id = _data [ "id" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new AuditLogListDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "userId" ] = this . userId ; data [ "userName" ] = this . userName ; data [ "impersonatorTenantId" ] = this . impersonatorTenantId ; data [ "impersonatorUserId" ] = this . impersonatorUserId ; data [ "serviceName" ] = this . serviceName ; data [ "methodName" ] = this . methodName ; data [ "parameters" ] = this . parameters ; data [ "executionTime" ] = this . executionTime ? this . executionTime . toString ( ) : < any > undefined ; data [ "executionDuration" ] = this . executionDuration ; data [ "clientIpAddress" ] = this . clientIpAddress ; data [ "clientName" ] = this . clientName ; data [ "browserInfo" ] = this . browserInfo ; data [ "exception" ] = this . exception ; data [ "customData" ] = this . customData ; data [ "id" ] = this . id ; return data ; } } export interface IAuditLogListDto { userId : number | undefined ; userName : string | undefined ; impersonatorTenantId : number | undefined ; impersonatorUserId : number | undefined ; serviceName : string | undefined ; methodName : string | undefined ; parameters : string | undefined ; executionTime : DateTime ; executionDuration : number ; clientIpAddress : string | undefined ; clientName : string | undefined ; browserInfo : string | undefined ; exception : string | undefined ; customData : string | undefined ; id : number ; } export class PagedResultDtoOfAuditLogListDto implements IPagedResultDtoOfAuditLogListDto { totalCount ! : number ; items ! : AuditLogListDto [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . totalCount = _data [ "totalCount" ] ; if ( Array . isArray ( _data [ "items" ] ) ) { this . items = [ ] as any ; for ( let item of _data [ "items" ] ) this . items ! . push ( AuditLogListDto . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new PagedResultDtoOfAuditLogListDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "totalCount" ] = this . totalCount ; if ( Array . isArray ( this . items ) ) { data [ "items" ] = [ ] ; for ( let item of this . items ) data [ "items" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IPagedResultDtoOfAuditLogListDto { totalCount : number ; items : AuditLogListDto [ ] | undefined ; } export class FileDto implements IFileDto { fileName ! : string ; fileType ! : string | undefined ; fileToken ! : string ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . fileName = _data [ "fileName" ] ; this . fileType = _data [ "fileType" ] ; this . fileToken = _data [ "fileToken" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new FileDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "fileName" ] = this . fileName ; data [ "fileType" ] = this . fileType ; data [ "fileToken" ] = this . fileToken ; return data ; } } export interface IFileDto { fileName : string ; fileType : string | undefined ; fileToken : string ; } export class NameValueDto implements INameValueDto { name ! : string | undefined ; value ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . name = _data [ "name" ] ; this . value = _data [ "value" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new NameValueDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "name" ] = this . name ; data [ "value" ] = this . value ; return data ; } } export interface INameValueDto { name : string | undefined ; value : string | undefined ; } export enum EntityChangeType { Created = 0 , Updated = 1 , Deleted = 2 } export class EntityChangeListDto implements IEntityChangeListDto { userId ! : number | undefined ; userName ! : string | undefined ; changeTime ! : DateTime ; entityTypeFullName ! : string | undefined ; changeType ! : EntityChangeType ; readonly changeTypeName ! : string | undefined ; entityChangeSetId ! : number ; id ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . userId = _data [ "userId" ] ; this . userName = _data [ "userName" ] ; this . changeTime = _data [ "changeTime" ] ? DateTime . fromISO ( _data [ "changeTime" ] . toString ( ) ) : < any > undefined ; this . entityTypeFullName = _data [ "entityTypeFullName" ] ; this . changeType = _data [ "changeType" ] ; ( < any > this ) . changeTypeName = _data [ "changeTypeName" ] ; this . entityChangeSetId = _data [ "entityChangeSetId" ] ; this . id = _data [ "id" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new EntityChangeListDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "userId" ] = this . userId ; data [ "userName" ] = this . userName ; data [ "changeTime" ] = this . changeTime ? this . changeTime . toString ( ) : < any > undefined ; data [ "entityTypeFullName" ] = this . entityTypeFullName ; data [ "changeType" ] = this . changeType ; data [ "changeTypeName" ] = this . changeTypeName ; data [ "entityChangeSetId" ] = this . entityChangeSetId ; data [ "id" ] = this . id ; return data ; } } export interface IEntityChangeListDto { userId : number | undefined ; userName : string | undefined ; changeTime : DateTime ; entityTypeFullName : string | undefined ; changeType : EntityChangeType ; changeTypeName : string | undefined ; entityChangeSetId : number ; id : number ; } export class PagedResultDtoOfEntityChangeListDto implements IPagedResultDtoOfEntityChangeListDto { totalCount ! : number ; items ! : EntityChangeListDto [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . totalCount = _data [ "totalCount" ] ; if ( Array . isArray ( _data [ "items" ] ) ) { this . items = [ ] as any ; for ( let item of _data [ "items" ] ) this . items ! . push ( EntityChangeListDto . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new PagedResultDtoOfEntityChangeListDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "totalCount" ] = this . totalCount ; if ( Array . isArray ( this . items ) ) { data [ "items" ] = [ ] ; for ( let item of this . items ) data [ "items" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IPagedResultDtoOfEntityChangeListDto { totalCount : number ; items : EntityChangeListDto [ ] | undefined ; } export class EntityPropertyChangeDto implements IEntityPropertyChangeDto { entityChangeId ! : number ; newValue ! : string | undefined ; originalValue ! : string | undefined ; propertyName ! : string | undefined ; propertyTypeFullName ! : string | undefined ; tenantId ! : number | undefined ; id ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . entityChangeId = _data [ "entityChangeId" ] ; this . newValue = _data [ "newValue" ] ; this . originalValue = _data [ "originalValue" ] ; this . propertyName = _data [ "propertyName" ] ; this . propertyTypeFullName = _data [ "propertyTypeFullName" ] ; this . tenantId = _data [ "tenantId" ] ; this . id = _data [ "id" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new EntityPropertyChangeDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "entityChangeId" ] = this . entityChangeId ; data [ "newValue" ] = this . newValue ; data [ "originalValue" ] = this . originalValue ; data [ "propertyName" ] = this . propertyName ; data [ "propertyTypeFullName" ] = this . propertyTypeFullName ; data [ "tenantId" ] = this . tenantId ; data [ "id" ] = this . id ; return data ; } } export interface IEntityPropertyChangeDto { entityChangeId : number ; newValue : string | undefined ; originalValue : string | undefined ; propertyName : string | undefined ; propertyTypeFullName : string | undefined ; tenantId : number | undefined ; id : number ; } export class CacheDto implements ICacheDto { name ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . name = _data [ "name" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new CacheDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "name" ] = this . name ; return data ; } } export interface ICacheDto { name : string | undefined ; } export class ListResultDtoOfCacheDto implements IListResultDtoOfCacheDto { items ! : CacheDto [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { if ( Array . isArray ( _data [ "items" ] ) ) { this . items = [ ] as any ; for ( let item of _data [ "items" ] ) this . items ! . push ( CacheDto . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new ListResultDtoOfCacheDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; if ( Array . isArray ( this . items ) ) { data [ "items" ] = [ ] ; for ( let item of this . items ) data [ "items" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IListResultDtoOfCacheDto { items : CacheDto [ ] | undefined ; } export class EntityDtoOfString implements IEntityDtoOfString { id ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . id = _data [ "id" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new EntityDtoOfString ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "id" ] = this . id ; return data ; } } export interface IEntityDtoOfString { id : string | undefined ; } export enum FriendshipState { Accepted = 1 , Blocked = 2 } export class FriendDto implements IFriendDto { friendUserId ! : number ; friendTenantId ! : number | undefined ; friendUserName ! : string | undefined ; friendTenancyName ! : string | undefined ; friendProfilePictureId ! : string | undefined ; unreadMessageCount ! : number ; isOnline ! : boolean ; state ! : FriendshipState ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . friendUserId = _data [ "friendUserId" ] ; this . friendTenantId = _data [ "friendTenantId" ] ; this . friendUserName = _data [ "friendUserName" ] ; this . friendTenancyName = _data [ "friendTenancyName" ] ; this . friendProfilePictureId = _data [ "friendProfilePictureId" ] ; this . unreadMessageCount = _data [ "unreadMessageCount" ] ; this . isOnline = _data [ "isOnline" ] ; this . state = _data [ "state" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new FriendDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "friendUserId" ] = this . friendUserId ; data [ "friendTenantId" ] = this . friendTenantId ; data [ "friendUserName" ] = this . friendUserName ; data [ "friendTenancyName" ] = this . friendTenancyName ; data [ "friendProfilePictureId" ] = this . friendProfilePictureId ; data [ "unreadMessageCount" ] = this . unreadMessageCount ; data [ "isOnline" ] = this . isOnline ; data [ "state" ] = this . state ; return data ; } } export interface IFriendDto { friendUserId : number ; friendTenantId : number | undefined ; friendUserName : string | undefined ; friendTenancyName : string | undefined ; friendProfilePictureId : string | undefined ; unreadMessageCount : number ; isOnline : boolean ; state : FriendshipState ; } export class GetUserChatFriendsWithSettingsOutput implements IGetUserChatFriendsWithSettingsOutput { serverTime ! : DateTime ; friends ! : FriendDto [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . serverTime = _data [ "serverTime" ] ? DateTime . fromISO ( _data [ "serverTime" ] . toString ( ) ) : < any > undefined ; if ( Array . isArray ( _data [ "friends" ] ) ) { this . friends = [ ] as any ; for ( let item of _data [ "friends" ] ) this . friends ! . push ( FriendDto . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new GetUserChatFriendsWithSettingsOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "serverTime" ] = this . serverTime ? this . serverTime . toString ( ) : < any > undefined ; if ( Array . isArray ( this . friends ) ) { data [ "friends" ] = [ ] ; for ( let item of this . friends ) data [ "friends" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IGetUserChatFriendsWithSettingsOutput { serverTime : DateTime ; friends : FriendDto [ ] | undefined ; } export enum ChatSide { Sender = 1 , Receiver = 2 } export enum ChatMessageReadState { Unread = 1 , Read = 2 } export class ChatMessageDto implements IChatMessageDto { userId ! : number ; tenantId ! : number | undefined ; targetUserId ! : number ; targetTenantId ! : number | undefined ; side ! : ChatSide ; readState ! : ChatMessageReadState ; receiverReadState ! : ChatMessageReadState ; message ! : string | undefined ; creationTime ! : DateTime ; sharedMessageId ! : string | undefined ; id ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . userId = _data [ "userId" ] ; this . tenantId = _data [ "tenantId" ] ; this . targetUserId = _data [ "targetUserId" ] ; this . targetTenantId = _data [ "targetTenantId" ] ; this . side = _data [ "side" ] ; this . readState = _data [ "readState" ] ; this . receiverReadState = _data [ "receiverReadState" ] ; this . message = _data [ "message" ] ; this . creationTime = _data [ "creationTime" ] ? DateTime . fromISO ( _data [ "creationTime" ] . toString ( ) ) : < any > undefined ; this . sharedMessageId = _data [ "sharedMessageId" ] ; this . id = _data [ "id" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new ChatMessageDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "userId" ] = this . userId ; data [ "tenantId" ] = this . tenantId ; data [ "targetUserId" ] = this . targetUserId ; data [ "targetTenantId" ] = this . targetTenantId ; data [ "side" ] = this . side ; data [ "readState" ] = this . readState ; data [ "receiverReadState" ] = this . receiverReadState ; data [ "message" ] = this . message ; data [ "creationTime" ] = this . creationTime ? this . creationTime . toString ( ) : < any > undefined ; data [ "sharedMessageId" ] = this . sharedMessageId ; data [ "id" ] = this . id ; return data ; } } export interface IChatMessageDto { userId : number ; tenantId : number | undefined ; targetUserId : number ; targetTenantId : number | undefined ; side : ChatSide ; readState : ChatMessageReadState ; receiverReadState : ChatMessageReadState ; message : string | undefined ; creationTime : DateTime ; sharedMessageId : string | undefined ; id : number ; } export class ListResultDtoOfChatMessageDto implements IListResultDtoOfChatMessageDto { items ! : ChatMessageDto [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { if ( Array . isArray ( _data [ "items" ] ) ) { this . items = [ ] as any ; for ( let item of _data [ "items" ] ) this . items ! . push ( ChatMessageDto . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new ListResultDtoOfChatMessageDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; if ( Array . isArray ( this . items ) ) { data [ "items" ] = [ ] ; for ( let item of this . items ) data [ "items" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IListResultDtoOfChatMessageDto { items : ChatMessageDto [ ] | undefined ; } export class MarkAllUnreadMessagesOfUserAsReadInput implements IMarkAllUnreadMessagesOfUserAsReadInput { tenantId ! : number | undefined ; userId ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . tenantId = _data [ "tenantId" ] ; this . userId = _data [ "userId" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new MarkAllUnreadMessagesOfUserAsReadInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "tenantId" ] = this . tenantId ; data [ "userId" ] = this . userId ; return data ; } } export interface IMarkAllUnreadMessagesOfUserAsReadInput { tenantId : number | undefined ; userId : number ; } export class SubscribableEditionComboboxItemDto implements ISubscribableEditionComboboxItemDto { isFree ! : boolean | undefined ; value ! : string | undefined ; displayText ! : string | undefined ; isSelected ! : boolean ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . isFree = _data [ "isFree" ] ; this . value = _data [ "value" ] ; this . displayText = _data [ "displayText" ] ; this . isSelected = _data [ "isSelected" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new SubscribableEditionComboboxItemDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "isFree" ] = this . isFree ; data [ "value" ] = this . value ; data [ "displayText" ] = this . displayText ; data [ "isSelected" ] = this . isSelected ; return data ; } } export interface ISubscribableEditionComboboxItemDto { isFree : boolean | undefined ; value : string | undefined ; displayText : string | undefined ; isSelected : boolean ; } export class ListResultDtoOfSubscribableEditionComboboxItemDto implements IListResultDtoOfSubscribableEditionComboboxItemDto { items ! : SubscribableEditionComboboxItemDto [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { if ( Array . isArray ( _data [ "items" ] ) ) { this . items = [ ] as any ; for ( let item of _data [ "items" ] ) this . items ! . push ( SubscribableEditionComboboxItemDto . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new ListResultDtoOfSubscribableEditionComboboxItemDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; if ( Array . isArray ( this . items ) ) { data [ "items" ] = [ ] ; for ( let item of this . items ) data [ "items" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IListResultDtoOfSubscribableEditionComboboxItemDto { items : SubscribableEditionComboboxItemDto [ ] | undefined ; } export class FindUsersInput implements IFindUsersInput { tenantId ! : number | undefined ; excludeCurrentUser ! : boolean ; maxResultCount ! : number ; skipCount ! : number ; filter ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . tenantId = _data [ "tenantId" ] ; this . excludeCurrentUser = _data [ "excludeCurrentUser" ] ; this . maxResultCount = _data [ "maxResultCount" ] ; this . skipCount = _data [ "skipCount" ] ; this . filter = _data [ "filter" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new FindUsersInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "tenantId" ] = this . tenantId ; data [ "excludeCurrentUser" ] = this . excludeCurrentUser ; data [ "maxResultCount" ] = this . maxResultCount ; data [ "skipCount" ] = this . skipCount ; data [ "filter" ] = this . filter ; return data ; } } export interface IFindUsersInput { tenantId : number | undefined ; excludeCurrentUser : boolean ; maxResultCount : number ; skipCount : number ; filter : string | undefined ; } export class PagedResultDtoOfNameValueDto implements IPagedResultDtoOfNameValueDto { totalCount ! : number ; items ! : NameValueDto [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . totalCount = _data [ "totalCount" ] ; if ( Array . isArray ( _data [ "items" ] ) ) { this . items = [ ] as any ; for ( let item of _data [ "items" ] ) this . items ! . push ( NameValueDto . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new PagedResultDtoOfNameValueDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "totalCount" ] = this . totalCount ; if ( Array . isArray ( this . items ) ) { data [ "items" ] = [ ] ; for ( let item of this . items ) data [ "items" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IPagedResultDtoOfNameValueDto { totalCount : number ; items : NameValueDto [ ] | undefined ; } export class GetDefaultEditionNameOutput implements IGetDefaultEditionNameOutput { name ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . name = _data [ "name" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new GetDefaultEditionNameOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "name" ] = this . name ; return data ; } } export interface IGetDefaultEditionNameOutput { name : string | undefined ; } export class Widget implements IWidget { widgetId ! : string | undefined ; height ! : number ; width ! : number ; positionX ! : number ; positionY ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . widgetId = _data [ "widgetId" ] ; this . height = _data [ "height" ] ; this . width = _data [ "width" ] ; this . positionX = _data [ "positionX" ] ; this . positionY = _data [ "positionY" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new Widget ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "widgetId" ] = this . widgetId ; data [ "height" ] = this . height ; data [ "width" ] = this . width ; data [ "positionX" ] = this . positionX ; data [ "positionY" ] = this . positionY ; return data ; } } export interface IWidget { widgetId : string | undefined ; height : number ; width : number ; positionX : number ; positionY : number ; } export class Page implements IPage { id ! : string | undefined ; name ! : string | undefined ; widgets ! : Widget [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . id = _data [ "id" ] ; this . name = _data [ "name" ] ; if ( Array . isArray ( _data [ "widgets" ] ) ) { this . widgets = [ ] as any ; for ( let item of _data [ "widgets" ] ) this . widgets ! . push ( Widget . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new Page ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "id" ] = this . id ; data [ "name" ] = this . name ; if ( Array . isArray ( this . widgets ) ) { data [ "widgets" ] = [ ] ; for ( let item of this . widgets ) data [ "widgets" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IPage { id : string | undefined ; name : string | undefined ; widgets : Widget [ ] | undefined ; } export class Dashboard implements IDashboard { dashboardName ! : string | undefined ; pages ! : Page [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . dashboardName = _data [ "dashboardName" ] ; if ( Array . isArray ( _data [ "pages" ] ) ) { this . pages = [ ] as any ; for ( let item of _data [ "pages" ] ) this . pages ! . push ( Page . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new Dashboard ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "dashboardName" ] = this . dashboardName ; if ( Array . isArray ( this . pages ) ) { data [ "pages" ] = [ ] ; for ( let item of this . pages ) data [ "pages" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IDashboard { dashboardName : string | undefined ; pages : Page [ ] | undefined ; } export class SavePageInput implements ISavePageInput { dashboardName ! : string | undefined ; application ! : string | undefined ; pages ! : Page [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . dashboardName = _data [ "dashboardName" ] ; this . application = _data [ "application" ] ; if ( Array . isArray ( _data [ "pages" ] ) ) { this . pages = [ ] as any ; for ( let item of _data [ "pages" ] ) this . pages ! . push ( Page . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new SavePageInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "dashboardName" ] = this . dashboardName ; data [ "application" ] = this . application ; if ( Array . isArray ( this . pages ) ) { data [ "pages" ] = [ ] ; for ( let item of this . pages ) data [ "pages" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface ISavePageInput { dashboardName : string | undefined ; application : string | undefined ; pages : Page [ ] | undefined ; } export class RenamePageInput implements IRenamePageInput { dashboardName ! : string | undefined ; id ! : string | undefined ; name ! : string | undefined ; application ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . dashboardName = _data [ "dashboardName" ] ; this . id = _data [ "id" ] ; this . name = _data [ "name" ] ; this . application = _data [ "application" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new RenamePageInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "dashboardName" ] = this . dashboardName ; data [ "id" ] = this . id ; data [ "name" ] = this . name ; data [ "application" ] = this . application ; return data ; } } export interface IRenamePageInput { dashboardName : string | undefined ; id : string | undefined ; name : string | undefined ; application : string | undefined ; } export class AddNewPageInput implements IAddNewPageInput { dashboardName ! : string | undefined ; name ! : string | undefined ; application ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . dashboardName = _data [ "dashboardName" ] ; this . name = _data [ "name" ] ; this . application = _data [ "application" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new AddNewPageInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "dashboardName" ] = this . dashboardName ; data [ "name" ] = this . name ; data [ "application" ] = this . application ; return data ; } } export interface IAddNewPageInput { dashboardName : string | undefined ; name : string | undefined ; application : string | undefined ; } export class AddNewPageOutput implements IAddNewPageOutput { pageId ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . pageId = _data [ "pageId" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new AddNewPageOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "pageId" ] = this . pageId ; return data ; } } export interface IAddNewPageOutput { pageId : string | undefined ; } export class AddWidgetInput implements IAddWidgetInput { widgetId ! : string | undefined ; pageId ! : string | undefined ; dashboardName ! : string | undefined ; width ! : number ; height ! : number ; application ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . widgetId = _data [ "widgetId" ] ; this . pageId = _data [ "pageId" ] ; this . dashboardName = _data [ "dashboardName" ] ; this . width = _data [ "width" ] ; this . height = _data [ "height" ] ; this . application = _data [ "application" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new AddWidgetInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "widgetId" ] = this . widgetId ; data [ "pageId" ] = this . pageId ; data [ "dashboardName" ] = this . dashboardName ; data [ "width" ] = this . width ; data [ "height" ] = this . height ; data [ "application" ] = this . application ; return data ; } } export interface IAddWidgetInput { widgetId : string | undefined ; pageId : string | undefined ; dashboardName : string | undefined ; width : number ; height : number ; application : string | undefined ; } export class WidgetFilterOutput implements IWidgetFilterOutput { id ! : string | undefined ; name ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . id = _data [ "id" ] ; this . name = _data [ "name" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new WidgetFilterOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "id" ] = this . id ; data [ "name" ] = this . name ; return data ; } } export interface IWidgetFilterOutput { id : string | undefined ; name : string | undefined ; } export class WidgetOutput implements IWidgetOutput { id ! : string | undefined ; name ! : string | undefined ; description ! : string | undefined ; filters ! : WidgetFilterOutput [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . id = _data [ "id" ] ; this . name = _data [ "name" ] ; this . description = _data [ "description" ] ; if ( Array . isArray ( _data [ "filters" ] ) ) { this . filters = [ ] as any ; for ( let item of _data [ "filters" ] ) this . filters ! . push ( WidgetFilterOutput . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new WidgetOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "id" ] = this . id ; data [ "name" ] = this . name ; data [ "description" ] = this . description ; if ( Array . isArray ( this . filters ) ) { data [ "filters" ] = [ ] ; for ( let item of this . filters ) data [ "filters" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IWidgetOutput { id : string | undefined ; name : string | undefined ; description : string | undefined ; filters : WidgetFilterOutput [ ] | undefined ; } export class DashboardOutput implements IDashboardOutput { name ! : string | undefined ; widgets ! : WidgetOutput [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . name = _data [ "name" ] ; if ( Array . isArray ( _data [ "widgets" ] ) ) { this . widgets = [ ] as any ; for ( let item of _data [ "widgets" ] ) this . widgets ! . push ( WidgetOutput . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new DashboardOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "name" ] = this . name ; if ( Array . isArray ( this . widgets ) ) { data [ "widgets" ] = [ ] ; for ( let item of this . widgets ) data [ "widgets" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IDashboardOutput { name : string | undefined ; widgets : WidgetOutput [ ] | undefined ; } export class DateToStringOutput implements IDateToStringOutput { dateString ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . dateString = _data [ "dateString" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new DateToStringOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "dateString" ] = this . dateString ; return data ; } } export interface IDateToStringOutput { dateString : string | undefined ; } export class NameValueOfString implements INameValueOfString { name ! : string | undefined ; value ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . name = _data [ "name" ] ; this . value = _data [ "value" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new NameValueOfString ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "name" ] = this . name ; data [ "value" ] = this . value ; return data ; } } export interface INameValueOfString { name : string | undefined ; value : string | undefined ; } export class StringOutput implements IStringOutput { output ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . output = _data [ "output" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new StringOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "output" ] = this . output ; return data ; } } export interface IStringOutput { output : string | undefined ; } export class DynamicParameterDto implements IDynamicParameterDto { parameterName ! : string | undefined ; inputType ! : string | undefined ; permission ! : string | undefined ; tenantId ! : number | undefined ; id ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . parameterName = _data [ "parameterName" ] ; this . inputType = _data [ "inputType" ] ; this . permission = _data [ "permission" ] ; this . tenantId = _data [ "tenantId" ] ; this . id = _data [ "id" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new DynamicParameterDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "parameterName" ] = this . parameterName ; data [ "inputType" ] = this . inputType ; data [ "permission" ] = this . permission ; data [ "tenantId" ] = this . tenantId ; data [ "id" ] = this . id ; return data ; } } export interface IDynamicParameterDto { parameterName : string | undefined ; inputType : string | undefined ; permission : string | undefined ; tenantId : number | undefined ; id : number ; } export class ListResultDtoOfDynamicParameterDto implements IListResultDtoOfDynamicParameterDto { items ! : DynamicParameterDto [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { if ( Array . isArray ( _data [ "items" ] ) ) { this . items = [ ] as any ; for ( let item of _data [ "items" ] ) this . items ! . push ( DynamicParameterDto . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new ListResultDtoOfDynamicParameterDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; if ( Array . isArray ( this . items ) ) { data [ "items" ] = [ ] ; for ( let item of this . items ) data [ "items" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IListResultDtoOfDynamicParameterDto { items : DynamicParameterDto [ ] | undefined ; } export class IValueValidator implements IIValueValidator { readonly name ! : string | undefined ; readonly attributes ! : { [ key ] : any ; } | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { ( < any > this ) . name = _data [ "name" ] ; if ( _data [ "attributes" ] ) { ( < any > this ) . attributes = { } as any ; for ( let key in _data [ "attributes" ] ) { if ( _data [ "attributes" ] . hasOwnProperty ( key ) ) ( < any > ( < any > this ) . attributes ) ! [ key ] = _data [ "attributes" ] [ key ] ; } } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new IValueValidator ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "name" ] = this . name ; if ( this . attributes ) { data [ "attributes" ] = { } ; for ( let key in this . attributes ) { if ( this . attributes . hasOwnProperty ( key ) ) ( < any > data [ "attributes" ] ) [ key ] = this . attributes [ key ] ; } } return data ; } } export interface IIValueValidator { name : string | undefined ; attributes : { [ key ] : any ; } | undefined ; } export class IInputType implements IIInputType { readonly name ! : string | undefined ; readonly attributes ! : { [ key ] : any ; } | undefined ; validator ! : IValueValidator ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { ( < any > this ) . name = _data [ "name" ] ; if ( _data [ "attributes" ] ) { ( < any > this ) . attributes = { } as any ; for ( let key in _data [ "attributes" ] ) { if ( _data [ "attributes" ] . hasOwnProperty ( key ) ) ( < any > ( < any > this ) . attributes ) ! [ key ] = _data [ "attributes" ] [ key ] ; } } this . validator = _data [ "validator" ] ? IValueValidator . fromJS ( _data [ "validator" ] ) : < any > undefined ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new IInputType ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "name" ] = this . name ; if ( this . attributes ) { data [ "attributes" ] = { } ; for ( let key in this . attributes ) { if ( this . attributes . hasOwnProperty ( key ) ) ( < any > data [ "attributes" ] ) [ key ] = this . attributes [ key ] ; } } data [ "validator" ] = this . validator ? this . validator . toJSON ( ) : < any > undefined ; return data ; } } export interface IIInputType { name : string | undefined ; attributes : { [ key ] : any ; } | undefined ; validator : IValueValidator ; } export class DynamicParameterValueDto implements IDynamicParameterValueDto { value ! : string | undefined ; tenantId ! : number | undefined ; dynamicParameterId ! : number ; id ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . value = _data [ "value" ] ; this . tenantId = _data [ "tenantId" ] ; this . dynamicParameterId = _data [ "dynamicParameterId" ] ; this . id = _data [ "id" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new DynamicParameterValueDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "value" ] = this . value ; data [ "tenantId" ] = this . tenantId ; data [ "dynamicParameterId" ] = this . dynamicParameterId ; data [ "id" ] = this . id ; return data ; } } export interface IDynamicParameterValueDto { value : string | undefined ; tenantId : number | undefined ; dynamicParameterId : number ; id : number ; } export class ListResultDtoOfDynamicParameterValueDto implements IListResultDtoOfDynamicParameterValueDto { items ! : DynamicParameterValueDto [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { if ( Array . isArray ( _data [ "items" ] ) ) { this . items = [ ] as any ; for ( let item of _data [ "items" ] ) this . items ! . push ( DynamicParameterValueDto . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new ListResultDtoOfDynamicParameterValueDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; if ( Array . isArray ( this . items ) ) { data [ "items" ] = [ ] ; for ( let item of this . items ) data [ "items" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IListResultDtoOfDynamicParameterValueDto { items : DynamicParameterValueDto [ ] | undefined ; } export class EditionListDto implements IEditionListDto { name ! : string | undefined ; displayName ! : string | undefined ; dailyPrice ! : number | undefined ; weeklyPrice ! : number | undefined ; monthlyPrice ! : number | undefined ; annualPrice ! : number | undefined ; waitingDayAfterExpire ! : number | undefined ; trialDayCount ! : number | undefined ; expiringEditionDisplayName ! : string | undefined ; id ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . name = _data [ "name" ] ; this . displayName = _data [ "displayName" ] ; this . dailyPrice = _data [ "dailyPrice" ] ; this . weeklyPrice = _data [ "weeklyPrice" ] ; this . monthlyPrice = _data [ "monthlyPrice" ] ; this . annualPrice = _data [ "annualPrice" ] ; this . waitingDayAfterExpire = _data [ "waitingDayAfterExpire" ] ; this . trialDayCount = _data [ "trialDayCount" ] ; this . expiringEditionDisplayName = _data [ "expiringEditionDisplayName" ] ; this . id = _data [ "id" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new EditionListDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "name" ] = this . name ; data [ "displayName" ] = this . displayName ; data [ "dailyPrice" ] = this . dailyPrice ; data [ "weeklyPrice" ] = this . weeklyPrice ; data [ "monthlyPrice" ] = this . monthlyPrice ; data [ "annualPrice" ] = this . annualPrice ; data [ "waitingDayAfterExpire" ] = this . waitingDayAfterExpire ; data [ "trialDayCount" ] = this . trialDayCount ; data [ "expiringEditionDisplayName" ] = this . expiringEditionDisplayName ; data [ "id" ] = this . id ; return data ; } } export interface IEditionListDto { name : string | undefined ; displayName : string | undefined ; dailyPrice : number | undefined ; weeklyPrice : number | undefined ; monthlyPrice : number | undefined ; annualPrice : number | undefined ; waitingDayAfterExpire : number | undefined ; trialDayCount : number | undefined ; expiringEditionDisplayName : string | undefined ; id : number ; } export class ListResultDtoOfEditionListDto implements IListResultDtoOfEditionListDto { items ! : EditionListDto [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { if ( Array . isArray ( _data [ "items" ] ) ) { this . items = [ ] as any ; for ( let item of _data [ "items" ] ) this . items ! . push ( EditionListDto . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new ListResultDtoOfEditionListDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; if ( Array . isArray ( this . items ) ) { data [ "items" ] = [ ] ; for ( let item of this . items ) data [ "items" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IListResultDtoOfEditionListDto { items : EditionListDto [ ] | undefined ; } export class EditionEditDto implements IEditionEditDto { id ! : number | undefined ; displayName ! : string ; expiringEditionId ! : number | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . id = _data [ "id" ] ; this . displayName = _data [ "displayName" ] ; this . expiringEditionId = _data [ "expiringEditionId" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new EditionEditDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "id" ] = this . id ; data [ "displayName" ] = this . displayName ; data [ "expiringEditionId" ] = this . expiringEditionId ; return data ; } } export interface IEditionEditDto { id : number | undefined ; displayName : string ; expiringEditionId : number | undefined ; } export class LocalizableComboboxItemDto implements ILocalizableComboboxItemDto { value ! : string | undefined ; displayText ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . value = _data [ "value" ] ; this . displayText = _data [ "displayText" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new LocalizableComboboxItemDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "value" ] = this . value ; data [ "displayText" ] = this . displayText ; return data ; } } export interface ILocalizableComboboxItemDto { value : string | undefined ; displayText : string | undefined ; } export class LocalizableComboboxItemSourceDto implements ILocalizableComboboxItemSourceDto { items ! : LocalizableComboboxItemDto [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { if ( Array . isArray ( _data [ "items" ] ) ) { this . items = [ ] as any ; for ( let item of _data [ "items" ] ) this . items ! . push ( LocalizableComboboxItemDto . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new LocalizableComboboxItemSourceDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; if ( Array . isArray ( this . items ) ) { data [ "items" ] = [ ] ; for ( let item of this . items ) data [ "items" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface ILocalizableComboboxItemSourceDto { items : LocalizableComboboxItemDto [ ] | undefined ; } export class FeatureInputTypeDto implements IFeatureInputTypeDto { name ! : string | undefined ; attributes ! : { [ key ] : any ; } | undefined ; validator ! : IValueValidator ; itemSource ! : LocalizableComboboxItemSourceDto ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . name = _data [ "name" ] ; if ( _data [ "attributes" ] ) { this . attributes = { } as any ; for ( let key in _data [ "attributes" ] ) { if ( _data [ "attributes" ] . hasOwnProperty ( key ) ) ( < any > this . attributes ) ! [ key ] = _data [ "attributes" ] [ key ] ; } } this . validator = _data [ "validator" ] ? IValueValidator . fromJS ( _data [ "validator" ] ) : < any > undefined ; this . itemSource = _data [ "itemSource" ] ? LocalizableComboboxItemSourceDto . fromJS ( _data [ "itemSource" ] ) : < any > undefined ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new FeatureInputTypeDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "name" ] = this . name ; if ( this . attributes ) { data [ "attributes" ] = { } ; for ( let key in this . attributes ) { if ( this . attributes . hasOwnProperty ( key ) ) ( < any > data [ "attributes" ] ) [ key ] = this . attributes [ key ] ; } } data [ "validator" ] = this . validator ? this . validator . toJSON ( ) : < any > undefined ; data [ "itemSource" ] = this . itemSource ? this . itemSource . toJSON ( ) : < any > undefined ; return data ; } } export interface IFeatureInputTypeDto { name : string | undefined ; attributes : { [ key ] : any ; } | undefined ; validator : IValueValidator ; itemSource : LocalizableComboboxItemSourceDto ; } export class FlatFeatureDto implements IFlatFeatureDto { parentName ! : string | undefined ; name ! : string | undefined ; displayName ! : string | undefined ; description ! : string | undefined ; defaultValue ! : string | undefined ; inputType ! : FeatureInputTypeDto ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . parentName = _data [ "parentName" ] ; this . name = _data [ "name" ] ; this . displayName = _data [ "displayName" ] ; this . description = _data [ "description" ] ; this . defaultValue = _data [ "defaultValue" ] ; this . inputType = _data [ "inputType" ] ? FeatureInputTypeDto . fromJS ( _data [ "inputType" ] ) : < any > undefined ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new FlatFeatureDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "parentName" ] = this . parentName ; data [ "name" ] = this . name ; data [ "displayName" ] = this . displayName ; data [ "description" ] = this . description ; data [ "defaultValue" ] = this . defaultValue ; data [ "inputType" ] = this . inputType ? this . inputType . toJSON ( ) : < any > undefined ; return data ; } } export interface IFlatFeatureDto { parentName : string | undefined ; name : string | undefined ; displayName : string | undefined ; description : string | undefined ; defaultValue : string | undefined ; inputType : FeatureInputTypeDto ; } export class GetEditionEditOutput implements IGetEditionEditOutput { edition ! : EditionEditDto ; featureValues ! : NameValueDto [ ] | undefined ; features ! : FlatFeatureDto [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . edition = _data [ "edition" ] ? EditionEditDto . fromJS ( _data [ "edition" ] ) : < any > undefined ; if ( Array . isArray ( _data [ "featureValues" ] ) ) { this . featureValues = [ ] as any ; for ( let item of _data [ "featureValues" ] ) this . featureValues ! . push ( NameValueDto . fromJS ( item ) ) ; } if ( Array . isArray ( _data [ "features" ] ) ) { this . features = [ ] as any ; for ( let item of _data [ "features" ] ) this . features ! . push ( FlatFeatureDto . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new GetEditionEditOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "edition" ] = this . edition ? this . edition . toJSON ( ) : < any > undefined ; if ( Array . isArray ( this . featureValues ) ) { data [ "featureValues" ] = [ ] ; for ( let item of this . featureValues ) data [ "featureValues" ] . push ( item . toJSON ( ) ) ; } if ( Array . isArray ( this . features ) ) { data [ "features" ] = [ ] ; for ( let item of this . features ) data [ "features" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IGetEditionEditOutput { edition : EditionEditDto ; featureValues : NameValueDto [ ] | undefined ; features : FlatFeatureDto [ ] | undefined ; } export class EditionCreateDto implements IEditionCreateDto { id ! : number | undefined ; displayName ! : string ; dailyPrice ! : number | undefined ; weeklyPrice ! : number | undefined ; monthlyPrice ! : number | undefined ; annualPrice ! : number | undefined ; trialDayCount ! : number | undefined ; waitingDayAfterExpire ! : number | undefined ; expiringEditionId ! : number | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . id = _data [ "id" ] ; this . displayName = _data [ "displayName" ] ; this . dailyPrice = _data [ "dailyPrice" ] ; this . weeklyPrice = _data [ "weeklyPrice" ] ; this . monthlyPrice = _data [ "monthlyPrice" ] ; this . annualPrice = _data [ "annualPrice" ] ; this . trialDayCount = _data [ "trialDayCount" ] ; this . waitingDayAfterExpire = _data [ "waitingDayAfterExpire" ] ; this . expiringEditionId = _data [ "expiringEditionId" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new EditionCreateDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "id" ] = this . id ; data [ "displayName" ] = this . displayName ; data [ "dailyPrice" ] = this . dailyPrice ; data [ "weeklyPrice" ] = this . weeklyPrice ; data [ "monthlyPrice" ] = this . monthlyPrice ; data [ "annualPrice" ] = this . annualPrice ; data [ "trialDayCount" ] = this . trialDayCount ; data [ "waitingDayAfterExpire" ] = this . waitingDayAfterExpire ; data [ "expiringEditionId" ] = this . expiringEditionId ; return data ; } } export interface IEditionCreateDto { id : number | undefined ; displayName : string ; dailyPrice : number | undefined ; weeklyPrice : number | undefined ; monthlyPrice : number | undefined ; annualPrice : number | undefined ; trialDayCount : number | undefined ; waitingDayAfterExpire : number | undefined ; expiringEditionId : number | undefined ; } export class CreateEditionDto implements ICreateEditionDto { edition ! : EditionCreateDto ; featureValues ! : NameValueDto [ ] ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } if ( ! data ) { this . edition = new EditionCreateDto ( ) ; this . featureValues = [ ] ; } } init ( _data ? ) { if ( _data ) { this . edition = _data [ "edition" ] ? EditionCreateDto . fromJS ( _data [ "edition" ] ) : new EditionCreateDto ( ) ; if ( Array . isArray ( _data [ "featureValues" ] ) ) { this . featureValues = [ ] as any ; for ( let item of _data [ "featureValues" ] ) this . featureValues ! . push ( NameValueDto . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new CreateEditionDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "edition" ] = this . edition ? this . edition . toJSON ( ) : < any > undefined ; if ( Array . isArray ( this . featureValues ) ) { data [ "featureValues" ] = [ ] ; for ( let item of this . featureValues ) data [ "featureValues" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface ICreateEditionDto { edition : EditionCreateDto ; featureValues : NameValueDto [ ] ; } export class UpdateEditionDto implements IUpdateEditionDto { edition ! : EditionEditDto ; featureValues ! : NameValueDto [ ] ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } if ( ! data ) { this . edition = new EditionEditDto ( ) ; this . featureValues = [ ] ; } } init ( _data ? ) { if ( _data ) { this . edition = _data [ "edition" ] ? EditionEditDto . fromJS ( _data [ "edition" ] ) : new EditionEditDto ( ) ; if ( Array . isArray ( _data [ "featureValues" ] ) ) { this . featureValues = [ ] as any ; for ( let item of _data [ "featureValues" ] ) this . featureValues ! . push ( NameValueDto . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new UpdateEditionDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "edition" ] = this . edition ? this . edition . toJSON ( ) : < any > undefined ; if ( Array . isArray ( this . featureValues ) ) { data [ "featureValues" ] = [ ] ; for ( let item of this . featureValues ) data [ "featureValues" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IUpdateEditionDto { edition : EditionEditDto ; featureValues : NameValueDto [ ] ; } export class MoveTenantsToAnotherEditionDto implements IMoveTenantsToAnotherEditionDto { sourceEditionId ! : number ; targetEditionId ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . sourceEditionId = _data [ "sourceEditionId" ] ; this . targetEditionId = _data [ "targetEditionId" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new MoveTenantsToAnotherEditionDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "sourceEditionId" ] = this . sourceEditionId ; data [ "targetEditionId" ] = this . targetEditionId ; return data ; } } export interface IMoveTenantsToAnotherEditionDto { sourceEditionId : number ; targetEditionId : number ; } export class EntityDynamicParameterDto implements IEntityDynamicParameterDto { entityFullName ! : string | undefined ; dynamicParameterName ! : string | undefined ; dynamicParameterId ! : number ; tenantId ! : number | undefined ; id ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . entityFullName = _data [ "entityFullName" ] ; this . dynamicParameterName = _data [ "dynamicParameterName" ] ; this . dynamicParameterId = _data [ "dynamicParameterId" ] ; this . tenantId = _data [ "tenantId" ] ; this . id = _data [ "id" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new EntityDynamicParameterDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "entityFullName" ] = this . entityFullName ; data [ "dynamicParameterName" ] = this . dynamicParameterName ; data [ "dynamicParameterId" ] = this . dynamicParameterId ; data [ "tenantId" ] = this . tenantId ; data [ "id" ] = this . id ; return data ; } } export interface IEntityDynamicParameterDto { entityFullName : string | undefined ; dynamicParameterName : string | undefined ; dynamicParameterId : number ; tenantId : number | undefined ; id : number ; } export class ListResultDtoOfEntityDynamicParameterDto implements IListResultDtoOfEntityDynamicParameterDto { items ! : EntityDynamicParameterDto [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { if ( Array . isArray ( _data [ "items" ] ) ) { this . items = [ ] as any ; for ( let item of _data [ "items" ] ) this . items ! . push ( EntityDynamicParameterDto . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new ListResultDtoOfEntityDynamicParameterDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; if ( Array . isArray ( this . items ) ) { data [ "items" ] = [ ] ; for ( let item of this . items ) data [ "items" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IListResultDtoOfEntityDynamicParameterDto { items : EntityDynamicParameterDto [ ] | undefined ; } export class EntityDynamicParameterValueDto implements IEntityDynamicParameterValueDto { value ! : string | undefined ; entityId ! : string | undefined ; entityDynamicParameterId ! : number ; id ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . value = _data [ "value" ] ; this . entityId = _data [ "entityId" ] ; this . entityDynamicParameterId = _data [ "entityDynamicParameterId" ] ; this . id = _data [ "id" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new EntityDynamicParameterValueDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "value" ] = this . value ; data [ "entityId" ] = this . entityId ; data [ "entityDynamicParameterId" ] = this . entityDynamicParameterId ; data [ "id" ] = this . id ; return data ; } } export interface IEntityDynamicParameterValueDto { value : string | undefined ; entityId : string | undefined ; entityDynamicParameterId : number ; id : number ; } export class ListResultDtoOfEntityDynamicParameterValueDto implements IListResultDtoOfEntityDynamicParameterValueDto { items ! : EntityDynamicParameterValueDto [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { if ( Array . isArray ( _data [ "items" ] ) ) { this . items = [ ] as any ; for ( let item of _data [ "items" ] ) this . items ! . push ( EntityDynamicParameterValueDto . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new ListResultDtoOfEntityDynamicParameterValueDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; if ( Array . isArray ( this . items ) ) { data [ "items" ] = [ ] ; for ( let item of this . items ) data [ "items" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IListResultDtoOfEntityDynamicParameterValueDto { items : EntityDynamicParameterValueDto [ ] | undefined ; } export class GetAllEntityDynamicParameterValuesOutputItem implements IGetAllEntityDynamicParameterValuesOutputItem { entityDynamicParameterId ! : number ; parameterName ! : string | undefined ; inputType ! : IInputType ; selectedValues ! : string [ ] | undefined ; allValuesInputTypeHas ! : string [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . entityDynamicParameterId = _data [ "entityDynamicParameterId" ] ; this . parameterName = _data [ "parameterName" ] ; this . inputType = _data [ "inputType" ] ? IInputType . fromJS ( _data [ "inputType" ] ) : < any > undefined ; if ( Array . isArray ( _data [ "selectedValues" ] ) ) { this . selectedValues = [ ] as any ; for ( let item of _data [ "selectedValues" ] ) this . selectedValues ! . push ( item ) ; } if ( Array . isArray ( _data [ "allValuesInputTypeHas" ] ) ) { this . allValuesInputTypeHas = [ ] as any ; for ( let item of _data [ "allValuesInputTypeHas" ] ) this . allValuesInputTypeHas ! . push ( item ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new GetAllEntityDynamicParameterValuesOutputItem ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "entityDynamicParameterId" ] = this . entityDynamicParameterId ; data [ "parameterName" ] = this . parameterName ; data [ "inputType" ] = this . inputType ? this . inputType . toJSON ( ) : < any > undefined ; if ( Array . isArray ( this . selectedValues ) ) { data [ "selectedValues" ] = [ ] ; for ( let item of this . selectedValues ) data [ "selectedValues" ] . push ( item ) ; } if ( Array . isArray ( this . allValuesInputTypeHas ) ) { data [ "allValuesInputTypeHas" ] = [ ] ; for ( let item of this . allValuesInputTypeHas ) data [ "allValuesInputTypeHas" ] . push ( item ) ; } return data ; } } export interface IGetAllEntityDynamicParameterValuesOutputItem { entityDynamicParameterId : number ; parameterName : string | undefined ; inputType : IInputType ; selectedValues : string [ ] | undefined ; allValuesInputTypeHas : string [ ] | undefined ; } export class GetAllEntityDynamicParameterValuesOutput implements IGetAllEntityDynamicParameterValuesOutput { items ! : GetAllEntityDynamicParameterValuesOutputItem [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { if ( Array . isArray ( _data [ "items" ] ) ) { this . items = [ ] as any ; for ( let item of _data [ "items" ] ) this . items ! . push ( GetAllEntityDynamicParameterValuesOutputItem . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new GetAllEntityDynamicParameterValuesOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; if ( Array . isArray ( this . items ) ) { data [ "items" ] = [ ] ; for ( let item of this . items ) data [ "items" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IGetAllEntityDynamicParameterValuesOutput { items : GetAllEntityDynamicParameterValuesOutputItem [ ] | undefined ; } export class InsertOrUpdateAllValuesInputItem implements IInsertOrUpdateAllValuesInputItem { entityId ! : string | undefined ; entityDynamicParameterId ! : number ; values ! : string [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . entityId = _data [ "entityId" ] ; this . entityDynamicParameterId = _data [ "entityDynamicParameterId" ] ; if ( Array . isArray ( _data [ "values" ] ) ) { this . values = [ ] as any ; for ( let item of _data [ "values" ] ) this . values ! . push ( item ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new InsertOrUpdateAllValuesInputItem ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "entityId" ] = this . entityId ; data [ "entityDynamicParameterId" ] = this . entityDynamicParameterId ; if ( Array . isArray ( this . values ) ) { data [ "values" ] = [ ] ; for ( let item of this . values ) data [ "values" ] . push ( item ) ; } return data ; } } export interface IInsertOrUpdateAllValuesInputItem { entityId : string | undefined ; entityDynamicParameterId : number ; values : string [ ] | undefined ; } export class InsertOrUpdateAllValuesInput implements IInsertOrUpdateAllValuesInput { items ! : InsertOrUpdateAllValuesInputItem [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { if ( Array . isArray ( _data [ "items" ] ) ) { this . items = [ ] as any ; for ( let item of _data [ "items" ] ) this . items ! . push ( InsertOrUpdateAllValuesInputItem . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new InsertOrUpdateAllValuesInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; if ( Array . isArray ( this . items ) ) { data [ "items" ] = [ ] ; for ( let item of this . items ) data [ "items" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IInsertOrUpdateAllValuesInput { items : InsertOrUpdateAllValuesInputItem [ ] | undefined ; } export class CleanValuesInput implements ICleanValuesInput { entityDynamicParameterId ! : number ; entityId ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . entityDynamicParameterId = _data [ "entityDynamicParameterId" ] ; this . entityId = _data [ "entityId" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new CleanValuesInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "entityDynamicParameterId" ] = this . entityDynamicParameterId ; data [ "entityId" ] = this . entityId ; return data ; } } export interface ICleanValuesInput { entityDynamicParameterId : number ; entityId : string | undefined ; } export class CreateFriendshipRequestInput implements ICreateFriendshipRequestInput { userId ! : number ; tenantId ! : number | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . userId = _data [ "userId" ] ; this . tenantId = _data [ "tenantId" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new CreateFriendshipRequestInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "userId" ] = this . userId ; data [ "tenantId" ] = this . tenantId ; return data ; } } export interface ICreateFriendshipRequestInput { userId : number ; tenantId : number | undefined ; } export class CreateFriendshipRequestByUserNameInput implements ICreateFriendshipRequestByUserNameInput { tenancyName ! : string ; userName ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . tenancyName = _data [ "tenancyName" ] ; this . userName = _data [ "userName" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new CreateFriendshipRequestByUserNameInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "tenancyName" ] = this . tenancyName ; data [ "userName" ] = this . userName ; return data ; } } export interface ICreateFriendshipRequestByUserNameInput { tenancyName : string ; userName : string | undefined ; } export class BlockUserInput implements IBlockUserInput { userId ! : number ; tenantId ! : number | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . userId = _data [ "userId" ] ; this . tenantId = _data [ "tenantId" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new BlockUserInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "userId" ] = this . userId ; data [ "tenantId" ] = this . tenantId ; return data ; } } export interface IBlockUserInput { userId : number ; tenantId : number | undefined ; } export class UnblockUserInput implements IUnblockUserInput { userId ! : number ; tenantId ! : number | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . userId = _data [ "userId" ] ; this . tenantId = _data [ "tenantId" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new UnblockUserInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "userId" ] = this . userId ; data [ "tenantId" ] = this . tenantId ; return data ; } } export interface IUnblockUserInput { userId : number ; tenantId : number | undefined ; } export class AcceptFriendshipRequestInput implements IAcceptFriendshipRequestInput { userId ! : number ; tenantId ! : number | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . userId = _data [ "userId" ] ; this . tenantId = _data [ "tenantId" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new AcceptFriendshipRequestInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "userId" ] = this . userId ; data [ "tenantId" ] = this . tenantId ; return data ; } } export interface IAcceptFriendshipRequestInput { userId : number ; tenantId : number | undefined ; } export class TopStatsData implements ITopStatsData { newTenantsCount ! : number ; newSubscriptionAmount ! : number ; dashboardPlaceholder1 ! : number ; dashboardPlaceholder2 ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . newTenantsCount = _data [ "newTenantsCount" ] ; this . newSubscriptionAmount = _data [ "newSubscriptionAmount" ] ; this . dashboardPlaceholder1 = _data [ "dashboardPlaceholder1" ] ; this . dashboardPlaceholder2 = _data [ "dashboardPlaceholder2" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new TopStatsData ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "newTenantsCount" ] = this . newTenantsCount ; data [ "newSubscriptionAmount" ] = this . newSubscriptionAmount ; data [ "dashboardPlaceholder1" ] = this . dashboardPlaceholder1 ; data [ "dashboardPlaceholder2" ] = this . dashboardPlaceholder2 ; return data ; } } export interface ITopStatsData { newTenantsCount : number ; newSubscriptionAmount : number ; dashboardPlaceholder1 : number ; dashboardPlaceholder2 : number ; } export class RecentTenant implements IRecentTenant { id ! : number ; name ! : string | undefined ; creationTime ! : DateTime ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . id = _data [ "id" ] ; this . name = _data [ "name" ] ; this . creationTime = _data [ "creationTime" ] ? DateTime . fromISO ( _data [ "creationTime" ] . toString ( ) ) : < any > undefined ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new RecentTenant ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "id" ] = this . id ; data [ "name" ] = this . name ; data [ "creationTime" ] = this . creationTime ? this . creationTime . toString ( ) : < any > undefined ; return data ; } } export interface IRecentTenant { id : number ; name : string | undefined ; creationTime : DateTime ; } export class GetRecentTenantsOutput implements IGetRecentTenantsOutput { recentTenantsDayCount ! : number ; maxRecentTenantsShownCount ! : number ; tenantCreationStartDate ! : DateTime ; recentTenants ! : RecentTenant [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . recentTenantsDayCount = _data [ "recentTenantsDayCount" ] ; this . maxRecentTenantsShownCount = _data [ "maxRecentTenantsShownCount" ] ; this . tenantCreationStartDate = _data [ "tenantCreationStartDate" ] ? DateTime . fromISO ( _data [ "tenantCreationStartDate" ] . toString ( ) ) : < any > undefined ; if ( Array . isArray ( _data [ "recentTenants" ] ) ) { this . recentTenants = [ ] as any ; for ( let item of _data [ "recentTenants" ] ) this . recentTenants ! . push ( RecentTenant . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new GetRecentTenantsOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "recentTenantsDayCount" ] = this . recentTenantsDayCount ; data [ "maxRecentTenantsShownCount" ] = this . maxRecentTenantsShownCount ; data [ "tenantCreationStartDate" ] = this . tenantCreationStartDate ? this . tenantCreationStartDate . toString ( ) : < any > undefined ; if ( Array . isArray ( this . recentTenants ) ) { data [ "recentTenants" ] = [ ] ; for ( let item of this . recentTenants ) data [ "recentTenants" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IGetRecentTenantsOutput { recentTenantsDayCount : number ; maxRecentTenantsShownCount : number ; tenantCreationStartDate : DateTime ; recentTenants : RecentTenant [ ] | undefined ; } export class ExpiringTenant implements IExpiringTenant { tenantName ! : string | undefined ; remainingDayCount ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . tenantName = _data [ "tenantName" ] ; this . remainingDayCount = _data [ "remainingDayCount" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new ExpiringTenant ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "tenantName" ] = this . tenantName ; data [ "remainingDayCount" ] = this . remainingDayCount ; return data ; } } export interface IExpiringTenant { tenantName : string | undefined ; remainingDayCount : number ; } export class GetExpiringTenantsOutput implements IGetExpiringTenantsOutput { expiringTenants ! : ExpiringTenant [ ] | undefined ; subscriptionEndAlertDayCount ! : number ; maxExpiringTenantsShownCount ! : number ; subscriptionEndDateStart ! : DateTime ; subscriptionEndDateEnd ! : DateTime ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { if ( Array . isArray ( _data [ "expiringTenants" ] ) ) { this . expiringTenants = [ ] as any ; for ( let item of _data [ "expiringTenants" ] ) this . expiringTenants ! . push ( ExpiringTenant . fromJS ( item ) ) ; } this . subscriptionEndAlertDayCount = _data [ "subscriptionEndAlertDayCount" ] ; this . maxExpiringTenantsShownCount = _data [ "maxExpiringTenantsShownCount" ] ; this . subscriptionEndDateStart = _data [ "subscriptionEndDateStart" ] ? DateTime . fromISO ( _data [ "subscriptionEndDateStart" ] . toString ( ) ) : < any > undefined ; this . subscriptionEndDateEnd = _data [ "subscriptionEndDateEnd" ] ? DateTime . fromISO ( _data [ "subscriptionEndDateEnd" ] . toString ( ) ) : < any > undefined ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new GetExpiringTenantsOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; if ( Array . isArray ( this . expiringTenants ) ) { data [ "expiringTenants" ] = [ ] ; for ( let item of this . expiringTenants ) data [ "expiringTenants" ] . push ( item . toJSON ( ) ) ; } data [ "subscriptionEndAlertDayCount" ] = this . subscriptionEndAlertDayCount ; data [ "maxExpiringTenantsShownCount" ] = this . maxExpiringTenantsShownCount ; data [ "subscriptionEndDateStart" ] = this . subscriptionEndDateStart ? this . subscriptionEndDateStart . toString ( ) : < any > undefined ; data [ "subscriptionEndDateEnd" ] = this . subscriptionEndDateEnd ? this . subscriptionEndDateEnd . toString ( ) : < any > undefined ; return data ; } } export interface IGetExpiringTenantsOutput { expiringTenants : ExpiringTenant [ ] | undefined ; subscriptionEndAlertDayCount : number ; maxExpiringTenantsShownCount : number ; subscriptionEndDateStart : DateTime ; subscriptionEndDateEnd : DateTime ; } export enum ChartDateInterval { Daily = 1 , Weekly = 2 , Monthly = 3 } export class IncomeStastistic implements IIncomeStastistic { label ! : string | undefined ; date ! : DateTime ; amount ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . label = _data [ "label" ] ; this . date = _data [ "date" ] ? DateTime . fromISO ( _data [ "date" ] . toString ( ) ) : < any > undefined ; this . amount = _data [ "amount" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new IncomeStastistic ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "label" ] = this . label ; data [ "date" ] = this . date ? this . date . toString ( ) : < any > undefined ; data [ "amount" ] = this . amount ; return data ; } } export interface IIncomeStastistic { label : string | undefined ; date : DateTime ; amount : number ; } export class GetIncomeStatisticsDataOutput implements IGetIncomeStatisticsDataOutput { incomeStatistics ! : IncomeStastistic [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { if ( Array . isArray ( _data [ "incomeStatistics" ] ) ) { this . incomeStatistics = [ ] as any ; for ( let item of _data [ "incomeStatistics" ] ) this . incomeStatistics ! . push ( IncomeStastistic . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new GetIncomeStatisticsDataOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; if ( Array . isArray ( this . incomeStatistics ) ) { data [ "incomeStatistics" ] = [ ] ; for ( let item of this . incomeStatistics ) data [ "incomeStatistics" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IGetIncomeStatisticsDataOutput { incomeStatistics : IncomeStastistic [ ] | undefined ; } export class TenantEdition implements ITenantEdition { label ! : string | undefined ; value ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . label = _data [ "label" ] ; this . value = _data [ "value" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new TenantEdition ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "label" ] = this . label ; data [ "value" ] = this . value ; return data ; } } export interface ITenantEdition { label : string | undefined ; value : number ; } export class GetEditionTenantStatisticsOutput implements IGetEditionTenantStatisticsOutput { editionStatistics ! : TenantEdition [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { if ( Array . isArray ( _data [ "editionStatistics" ] ) ) { this . editionStatistics = [ ] as any ; for ( let item of _data [ "editionStatistics" ] ) this . editionStatistics ! . push ( TenantEdition . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new GetEditionTenantStatisticsOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; if ( Array . isArray ( this . editionStatistics ) ) { data [ "editionStatistics" ] = [ ] ; for ( let item of this . editionStatistics ) data [ "editionStatistics" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IGetEditionTenantStatisticsOutput { editionStatistics : TenantEdition [ ] | undefined ; } export class GeneralSettingsEditDto implements IGeneralSettingsEditDto { timezone ! : string | undefined ; timezoneForComparison ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . timezone = _data [ "timezone" ] ; this . timezoneForComparison = _data [ "timezoneForComparison" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new GeneralSettingsEditDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "timezone" ] = this . timezone ; data [ "timezoneForComparison" ] = this . timezoneForComparison ; return data ; } } export interface IGeneralSettingsEditDto { timezone : string | undefined ; timezoneForComparison : string | undefined ; } export class SessionTimeOutSettingsEditDto implements ISessionTimeOutSettingsEditDto { isEnabled ! : boolean ; timeOutSecond ! : number ; showTimeOutNotificationSecond ! : number ; showLockScreenWhenTimedOut ! : boolean ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . isEnabled = _data [ "isEnabled" ] ; this . timeOutSecond = _data [ "timeOutSecond" ] ; this . showTimeOutNotificationSecond = _data [ "showTimeOutNotificationSecond" ] ; this . showLockScreenWhenTimedOut = _data [ "showLockScreenWhenTimedOut" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new SessionTimeOutSettingsEditDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "isEnabled" ] = this . isEnabled ; data [ "timeOutSecond" ] = this . timeOutSecond ; data [ "showTimeOutNotificationSecond" ] = this . showTimeOutNotificationSecond ; data [ "showLockScreenWhenTimedOut" ] = this . showLockScreenWhenTimedOut ; return data ; } } export interface ISessionTimeOutSettingsEditDto { isEnabled : boolean ; timeOutSecond : number ; showTimeOutNotificationSecond : number ; showLockScreenWhenTimedOut : boolean ; } export class HostUserManagementSettingsEditDto implements IHostUserManagementSettingsEditDto { isEmailConfirmationRequiredForLogin ! : boolean ; smsVerificationEnabled ! : boolean ; isCookieConsentEnabled ! : boolean ; isQuickThemeSelectEnabled ! : boolean ; useCaptchaOnLogin ! : boolean ; allowUsingGravatarProfilePicture ! : boolean ; sessionTimeOutSettings ! : SessionTimeOutSettingsEditDto ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . isEmailConfirmationRequiredForLogin = _data [ "isEmailConfirmationRequiredForLogin" ] ; this . smsVerificationEnabled = _data [ "smsVerificationEnabled" ] ; this . isCookieConsentEnabled = _data [ "isCookieConsentEnabled" ] ; this . isQuickThemeSelectEnabled = _data [ "isQuickThemeSelectEnabled" ] ; this . useCaptchaOnLogin = _data [ "useCaptchaOnLogin" ] ; this . allowUsingGravatarProfilePicture = _data [ "allowUsingGravatarProfilePicture" ] ; this . sessionTimeOutSettings = _data [ "sessionTimeOutSettings" ] ? SessionTimeOutSettingsEditDto . fromJS ( _data [ "sessionTimeOutSettings" ] ) : < any > undefined ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new HostUserManagementSettingsEditDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "isEmailConfirmationRequiredForLogin" ] = this . isEmailConfirmationRequiredForLogin ; data [ "smsVerificationEnabled" ] = this . smsVerificationEnabled ; data [ "isCookieConsentEnabled" ] = this . isCookieConsentEnabled ; data [ "isQuickThemeSelectEnabled" ] = this . isQuickThemeSelectEnabled ; data [ "useCaptchaOnLogin" ] = this . useCaptchaOnLogin ; data [ "allowUsingGravatarProfilePicture" ] = this . allowUsingGravatarProfilePicture ; data [ "sessionTimeOutSettings" ] = this . sessionTimeOutSettings ? this . sessionTimeOutSettings . toJSON ( ) : < any > undefined ; return data ; } } export interface IHostUserManagementSettingsEditDto { isEmailConfirmationRequiredForLogin : boolean ; smsVerificationEnabled : boolean ; isCookieConsentEnabled : boolean ; isQuickThemeSelectEnabled : boolean ; useCaptchaOnLogin : boolean ; allowUsingGravatarProfilePicture : boolean ; sessionTimeOutSettings : SessionTimeOutSettingsEditDto ; } export class EmailSettingsEditDto implements IEmailSettingsEditDto { defaultFromAddress ! : string | undefined ; defaultFromDisplayName ! : string | undefined ; smtpHost ! : string | undefined ; smtpPort ! : number ; smtpUserName ! : string | undefined ; smtpPassword ! : string | undefined ; smtpDomain ! : string | undefined ; smtpEnableSsl ! : boolean ; smtpUseDefaultCredentials ! : boolean ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . defaultFromAddress = _data [ "defaultFromAddress" ] ; this . defaultFromDisplayName = _data [ "defaultFromDisplayName" ] ; this . smtpHost = _data [ "smtpHost" ] ; this . smtpPort = _data [ "smtpPort" ] ; this . smtpUserName = _data [ "smtpUserName" ] ; this . smtpPassword = _data [ "smtpPassword" ] ; this . smtpDomain = _data [ "smtpDomain" ] ; this . smtpEnableSsl = _data [ "smtpEnableSsl" ] ; this . smtpUseDefaultCredentials = _data [ "smtpUseDefaultCredentials" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new EmailSettingsEditDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "defaultFromAddress" ] = this . defaultFromAddress ; data [ "defaultFromDisplayName" ] = this . defaultFromDisplayName ; data [ "smtpHost" ] = this . smtpHost ; data [ "smtpPort" ] = this . smtpPort ; data [ "smtpUserName" ] = this . smtpUserName ; data [ "smtpPassword" ] = this . smtpPassword ; data [ "smtpDomain" ] = this . smtpDomain ; data [ "smtpEnableSsl" ] = this . smtpEnableSsl ; data [ "smtpUseDefaultCredentials" ] = this . smtpUseDefaultCredentials ; return data ; } } export interface IEmailSettingsEditDto { defaultFromAddress : string | undefined ; defaultFromDisplayName : string | undefined ; smtpHost : string | undefined ; smtpPort : number ; smtpUserName : string | undefined ; smtpPassword : string | undefined ; smtpDomain : string | undefined ; smtpEnableSsl : boolean ; smtpUseDefaultCredentials : boolean ; } export class TenantManagementSettingsEditDto implements ITenantManagementSettingsEditDto { allowSelfRegistration ! : boolean ; isNewRegisteredTenantActiveByDefault ! : boolean ; useCaptchaOnRegistration ! : boolean ; defaultEditionId ! : number | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . allowSelfRegistration = _data [ "allowSelfRegistration" ] ; this . isNewRegisteredTenantActiveByDefault = _data [ "isNewRegisteredTenantActiveByDefault" ] ; this . useCaptchaOnRegistration = _data [ "useCaptchaOnRegistration" ] ; this . defaultEditionId = _data [ "defaultEditionId" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new TenantManagementSettingsEditDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "allowSelfRegistration" ] = this . allowSelfRegistration ; data [ "isNewRegisteredTenantActiveByDefault" ] = this . isNewRegisteredTenantActiveByDefault ; data [ "useCaptchaOnRegistration" ] = this . useCaptchaOnRegistration ; data [ "defaultEditionId" ] = this . defaultEditionId ; return data ; } } export interface ITenantManagementSettingsEditDto { allowSelfRegistration : boolean ; isNewRegisteredTenantActiveByDefault : boolean ; useCaptchaOnRegistration : boolean ; defaultEditionId : number | undefined ; } export class PasswordComplexitySetting implements IPasswordComplexitySetting { requireDigit ! : boolean ; requireLowercase ! : boolean ; requireNonAlphanumeric ! : boolean ; requireUppercase ! : boolean ; requiredLength ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . requireDigit = _data [ "requireDigit" ] ; this . requireLowercase = _data [ "requireLowercase" ] ; this . requireNonAlphanumeric = _data [ "requireNonAlphanumeric" ] ; this . requireUppercase = _data [ "requireUppercase" ] ; this . requiredLength = _data [ "requiredLength" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new PasswordComplexitySetting ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "requireDigit" ] = this . requireDigit ; data [ "requireLowercase" ] = this . requireLowercase ; data [ "requireNonAlphanumeric" ] = this . requireNonAlphanumeric ; data [ "requireUppercase" ] = this . requireUppercase ; data [ "requiredLength" ] = this . requiredLength ; return data ; } } export interface IPasswordComplexitySetting { requireDigit : boolean ; requireLowercase : boolean ; requireNonAlphanumeric : boolean ; requireUppercase : boolean ; requiredLength : number ; } export class UserLockOutSettingsEditDto implements IUserLockOutSettingsEditDto { isEnabled ! : boolean ; maxFailedAccessAttemptsBeforeLockout ! : number ; defaultAccountLockoutSeconds ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . isEnabled = _data [ "isEnabled" ] ; this . maxFailedAccessAttemptsBeforeLockout = _data [ "maxFailedAccessAttemptsBeforeLockout" ] ; this . defaultAccountLockoutSeconds = _data [ "defaultAccountLockoutSeconds" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new UserLockOutSettingsEditDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "isEnabled" ] = this . isEnabled ; data [ "maxFailedAccessAttemptsBeforeLockout" ] = this . maxFailedAccessAttemptsBeforeLockout ; data [ "defaultAccountLockoutSeconds" ] = this . defaultAccountLockoutSeconds ; return data ; } } export interface IUserLockOutSettingsEditDto { isEnabled : boolean ; maxFailedAccessAttemptsBeforeLockout : number ; defaultAccountLockoutSeconds : number ; } export class TwoFactorLoginSettingsEditDto implements ITwoFactorLoginSettingsEditDto { isEnabledForApplication ! : boolean ; isEnabled ! : boolean ; isEmailProviderEnabled ! : boolean ; isSmsProviderEnabled ! : boolean ; isRememberBrowserEnabled ! : boolean ; isGoogleAuthenticatorEnabled ! : boolean ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . isEnabledForApplication = _data [ "isEnabledForApplication" ] ; this . isEnabled = _data [ "isEnabled" ] ; this . isEmailProviderEnabled = _data [ "isEmailProviderEnabled" ] ; this . isSmsProviderEnabled = _data [ "isSmsProviderEnabled" ] ; this . isRememberBrowserEnabled = _data [ "isRememberBrowserEnabled" ] ; this . isGoogleAuthenticatorEnabled = _data [ "isGoogleAuthenticatorEnabled" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new TwoFactorLoginSettingsEditDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "isEnabledForApplication" ] = this . isEnabledForApplication ; data [ "isEnabled" ] = this . isEnabled ; data [ "isEmailProviderEnabled" ] = this . isEmailProviderEnabled ; data [ "isSmsProviderEnabled" ] = this . isSmsProviderEnabled ; data [ "isRememberBrowserEnabled" ] = this . isRememberBrowserEnabled ; data [ "isGoogleAuthenticatorEnabled" ] = this . isGoogleAuthenticatorEnabled ; return data ; } } export interface ITwoFactorLoginSettingsEditDto { isEnabledForApplication : boolean ; isEnabled : boolean ; isEmailProviderEnabled : boolean ; isSmsProviderEnabled : boolean ; isRememberBrowserEnabled : boolean ; isGoogleAuthenticatorEnabled : boolean ; } export class SecuritySettingsEditDto implements ISecuritySettingsEditDto { allowOneConcurrentLoginPerUser ! : boolean ; useDefaultPasswordComplexitySettings ! : boolean ; passwordComplexity ! : PasswordComplexitySetting ; defaultPasswordComplexity ! : PasswordComplexitySetting ; userLockOut ! : UserLockOutSettingsEditDto ; twoFactorLogin ! : TwoFactorLoginSettingsEditDto ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . allowOneConcurrentLoginPerUser = _data [ "allowOneConcurrentLoginPerUser" ] ; this . useDefaultPasswordComplexitySettings = _data [ "useDefaultPasswordComplexitySettings" ] ; this . passwordComplexity = _data [ "passwordComplexity" ] ? PasswordComplexitySetting . fromJS ( _data [ "passwordComplexity" ] ) : < any > undefined ; this . defaultPasswordComplexity = _data [ "defaultPasswordComplexity" ] ? PasswordComplexitySetting . fromJS ( _data [ "defaultPasswordComplexity" ] ) : < any > undefined ; this . userLockOut = _data [ "userLockOut" ] ? UserLockOutSettingsEditDto . fromJS ( _data [ "userLockOut" ] ) : < any > undefined ; this . twoFactorLogin = _data [ "twoFactorLogin" ] ? TwoFactorLoginSettingsEditDto . fromJS ( _data [ "twoFactorLogin" ] ) : < any > undefined ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new SecuritySettingsEditDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "allowOneConcurrentLoginPerUser" ] = this . allowOneConcurrentLoginPerUser ; data [ "useDefaultPasswordComplexitySettings" ] = this . useDefaultPasswordComplexitySettings ; data [ "passwordComplexity" ] = this . passwordComplexity ? this . passwordComplexity . toJSON ( ) : < any > undefined ; data [ "defaultPasswordComplexity" ] = this . defaultPasswordComplexity ? this . defaultPasswordComplexity . toJSON ( ) : < any > undefined ; data [ "userLockOut" ] = this . userLockOut ? this . userLockOut . toJSON ( ) : < any > undefined ; data [ "twoFactorLogin" ] = this . twoFactorLogin ? this . twoFactorLogin . toJSON ( ) : < any > undefined ; return data ; } } export interface ISecuritySettingsEditDto { allowOneConcurrentLoginPerUser : boolean ; useDefaultPasswordComplexitySettings : boolean ; passwordComplexity : PasswordComplexitySetting ; defaultPasswordComplexity : PasswordComplexitySetting ; userLockOut : UserLockOutSettingsEditDto ; twoFactorLogin : TwoFactorLoginSettingsEditDto ; } export class HostBillingSettingsEditDto implements IHostBillingSettingsEditDto { legalName ! : string | undefined ; address ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . legalName = _data [ "legalName" ] ; this . address = _data [ "address" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new HostBillingSettingsEditDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "legalName" ] = this . legalName ; data [ "address" ] = this . address ; return data ; } } export interface IHostBillingSettingsEditDto { legalName : string | undefined ; address : string | undefined ; } export class OtherSettingsEditDto implements IOtherSettingsEditDto { isQuickThemeSelectEnabled ! : boolean ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . isQuickThemeSelectEnabled = _data [ "isQuickThemeSelectEnabled" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new OtherSettingsEditDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "isQuickThemeSelectEnabled" ] = this . isQuickThemeSelectEnabled ; return data ; } } export interface IOtherSettingsEditDto { isQuickThemeSelectEnabled : boolean ; } export class FacebookExternalLoginProviderSettings implements IFacebookExternalLoginProviderSettings { appId ! : string | undefined ; appSecret ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . appId = _data [ "appId" ] ; this . appSecret = _data [ "appSecret" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new FacebookExternalLoginProviderSettings ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "appId" ] = this . appId ; data [ "appSecret" ] = this . appSecret ; return data ; } } export interface IFacebookExternalLoginProviderSettings { appId : string | undefined ; appSecret : string | undefined ; } export class GoogleExternalLoginProviderSettings implements IGoogleExternalLoginProviderSettings { clientId ! : string | undefined ; clientSecret ! : string | undefined ; userInfoEndpoint ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . clientId = _data [ "clientId" ] ; this . clientSecret = _data [ "clientSecret" ] ; this . userInfoEndpoint = _data [ "userInfoEndpoint" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new GoogleExternalLoginProviderSettings ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "clientId" ] = this . clientId ; data [ "clientSecret" ] = this . clientSecret ; data [ "userInfoEndpoint" ] = this . userInfoEndpoint ; return data ; } } export interface IGoogleExternalLoginProviderSettings { clientId : string | undefined ; clientSecret : string | undefined ; userInfoEndpoint : string | undefined ; } export class TwitterExternalLoginProviderSettings implements ITwitterExternalLoginProviderSettings { consumerKey ! : string | undefined ; consumerSecret ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . consumerKey = _data [ "consumerKey" ] ; this . consumerSecret = _data [ "consumerSecret" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new TwitterExternalLoginProviderSettings ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "consumerKey" ] = this . consumerKey ; data [ "consumerSecret" ] = this . consumerSecret ; return data ; } } export interface ITwitterExternalLoginProviderSettings { consumerKey : string | undefined ; consumerSecret : string | undefined ; } export class MicrosoftExternalLoginProviderSettings implements IMicrosoftExternalLoginProviderSettings { clientId ! : string | undefined ; clientSecret ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . clientId = _data [ "clientId" ] ; this . clientSecret = _data [ "clientSecret" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new MicrosoftExternalLoginProviderSettings ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "clientId" ] = this . clientId ; data [ "clientSecret" ] = this . clientSecret ; return data ; } } export interface IMicrosoftExternalLoginProviderSettings { clientId : string | undefined ; clientSecret : string | undefined ; } export class OpenIdConnectExternalLoginProviderSettings implements IOpenIdConnectExternalLoginProviderSettings { clientId ! : string | undefined ; clientSecret ! : string | undefined ; authority ! : string | undefined ; loginUrl ! : string | undefined ; validateIssuer ! : boolean ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . clientId = _data [ "clientId" ] ; this . clientSecret = _data [ "clientSecret" ] ; this . authority = _data [ "authority" ] ; this . loginUrl = _data [ "loginUrl" ] ; this . validateIssuer = _data [ "validateIssuer" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new OpenIdConnectExternalLoginProviderSettings ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "clientId" ] = this . clientId ; data [ "clientSecret" ] = this . clientSecret ; data [ "authority" ] = this . authority ; data [ "loginUrl" ] = this . loginUrl ; data [ "validateIssuer" ] = this . validateIssuer ; return data ; } } export interface IOpenIdConnectExternalLoginProviderSettings { clientId : string | undefined ; clientSecret : string | undefined ; authority : string | undefined ; loginUrl : string | undefined ; validateIssuer : boolean ; } export class JsonClaimMapDto implements IJsonClaimMapDto { claim ! : string | undefined ; key ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . claim = _data [ "claim" ] ; this . key = _data [ "key" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new JsonClaimMapDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "claim" ] = this . claim ; data [ "key" ] = this . key ; return data ; } } export interface IJsonClaimMapDto { claim : string | undefined ; key : string | undefined ; } export class WsFederationExternalLoginProviderSettings implements IWsFederationExternalLoginProviderSettings { clientId ! : string | undefined ; tenant ! : string | undefined ; metaDataAddress ! : string | undefined ; wtrealm ! : string | undefined ; authority ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . clientId = _data [ "clientId" ] ; this . tenant = _data [ "tenant" ] ; this . metaDataAddress = _data [ "metaDataAddress" ] ; this . wtrealm = _data [ "wtrealm" ] ; this . authority = _data [ "authority" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new WsFederationExternalLoginProviderSettings ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "clientId" ] = this . clientId ; data [ "tenant" ] = this . tenant ; data [ "metaDataAddress" ] = this . metaDataAddress ; data [ "wtrealm" ] = this . wtrealm ; data [ "authority" ] = this . authority ; return data ; } } export interface IWsFederationExternalLoginProviderSettings { clientId : string | undefined ; tenant : string | undefined ; metaDataAddress : string | undefined ; wtrealm : string | undefined ; authority : string | undefined ; } export class ExternalLoginProviderSettingsEditDto implements IExternalLoginProviderSettingsEditDto { facebook ! : FacebookExternalLoginProviderSettings ; google ! : GoogleExternalLoginProviderSettings ; twitter ! : TwitterExternalLoginProviderSettings ; microsoft ! : MicrosoftExternalLoginProviderSettings ; openIdConnect ! : OpenIdConnectExternalLoginProviderSettings ; openIdConnectClaimsMapping ! : JsonClaimMapDto [ ] | undefined ; wsFederation ! : WsFederationExternalLoginProviderSettings ; wsFederationClaimsMapping ! : JsonClaimMapDto [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . facebook = _data [ "facebook" ] ? FacebookExternalLoginProviderSettings . fromJS ( _data [ "facebook" ] ) : < any > undefined ; this . google = _data [ "google" ] ? GoogleExternalLoginProviderSettings . fromJS ( _data [ "google" ] ) : < any > undefined ; this . twitter = _data [ "twitter" ] ? TwitterExternalLoginProviderSettings . fromJS ( _data [ "twitter" ] ) : < any > undefined ; this . microsoft = _data [ "microsoft" ] ? MicrosoftExternalLoginProviderSettings . fromJS ( _data [ "microsoft" ] ) : < any > undefined ; this . openIdConnect = _data [ "openIdConnect" ] ? OpenIdConnectExternalLoginProviderSettings . fromJS ( _data [ "openIdConnect" ] ) : < any > undefined ; if ( Array . isArray ( _data [ "openIdConnectClaimsMapping" ] ) ) { this . openIdConnectClaimsMapping = [ ] as any ; for ( let item of _data [ "openIdConnectClaimsMapping" ] ) this . openIdConnectClaimsMapping ! . push ( JsonClaimMapDto . fromJS ( item ) ) ; } this . wsFederation = _data [ "wsFederation" ] ? WsFederationExternalLoginProviderSettings . fromJS ( _data [ "wsFederation" ] ) : < any > undefined ; if ( Array . isArray ( _data [ "wsFederationClaimsMapping" ] ) ) { this . wsFederationClaimsMapping = [ ] as any ; for ( let item of _data [ "wsFederationClaimsMapping" ] ) this . wsFederationClaimsMapping ! . push ( JsonClaimMapDto . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new ExternalLoginProviderSettingsEditDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "facebook" ] = this . facebook ? this . facebook . toJSON ( ) : < any > undefined ; data [ "google" ] = this . google ? this . google . toJSON ( ) : < any > undefined ; data [ "twitter" ] = this . twitter ? this . twitter . toJSON ( ) : < any > undefined ; data [ "microsoft" ] = this . microsoft ? this . microsoft . toJSON ( ) : < any > undefined ; data [ "openIdConnect" ] = this . openIdConnect ? this . openIdConnect . toJSON ( ) : < any > undefined ; if ( Array . isArray ( this . openIdConnectClaimsMapping ) ) { data [ "openIdConnectClaimsMapping" ] = [ ] ; for ( let item of this . openIdConnectClaimsMapping ) data [ "openIdConnectClaimsMapping" ] . push ( item . toJSON ( ) ) ; } data [ "wsFederation" ] = this . wsFederation ? this . wsFederation . toJSON ( ) : < any > undefined ; if ( Array . isArray ( this . wsFederationClaimsMapping ) ) { data [ "wsFederationClaimsMapping" ] = [ ] ; for ( let item of this . wsFederationClaimsMapping ) data [ "wsFederationClaimsMapping" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IExternalLoginProviderSettingsEditDto { facebook : FacebookExternalLoginProviderSettings ; google : GoogleExternalLoginProviderSettings ; twitter : TwitterExternalLoginProviderSettings ; microsoft : MicrosoftExternalLoginProviderSettings ; openIdConnect : OpenIdConnectExternalLoginProviderSettings ; openIdConnectClaimsMapping : JsonClaimMapDto [ ] | undefined ; wsFederation : WsFederationExternalLoginProviderSettings ; wsFederationClaimsMapping : JsonClaimMapDto [ ] | undefined ; } export class HostSettingsEditDto implements IHostSettingsEditDto { general ! : GeneralSettingsEditDto ; userManagement ! : HostUserManagementSettingsEditDto ; email ! : EmailSettingsEditDto ; tenantManagement ! : TenantManagementSettingsEditDto ; security ! : SecuritySettingsEditDto ; billing ! : HostBillingSettingsEditDto ; otherSettings ! : OtherSettingsEditDto ; externalLoginProviderSettings ! : ExternalLoginProviderSettingsEditDto ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } if ( ! data ) { this . general = new GeneralSettingsEditDto ( ) ; this . userManagement = new HostUserManagementSettingsEditDto ( ) ; this . email = new EmailSettingsEditDto ( ) ; this . tenantManagement = new TenantManagementSettingsEditDto ( ) ; this . security = new SecuritySettingsEditDto ( ) ; } } init ( _data ? ) { if ( _data ) { this . general = _data [ "general" ] ? GeneralSettingsEditDto . fromJS ( _data [ "general" ] ) : new GeneralSettingsEditDto ( ) ; this . userManagement = _data [ "userManagement" ] ? HostUserManagementSettingsEditDto . fromJS ( _data [ "userManagement" ] ) : new HostUserManagementSettingsEditDto ( ) ; this . email = _data [ "email" ] ? EmailSettingsEditDto . fromJS ( _data [ "email" ] ) : new EmailSettingsEditDto ( ) ; this . tenantManagement = _data [ "tenantManagement" ] ? TenantManagementSettingsEditDto . fromJS ( _data [ "tenantManagement" ] ) : new TenantManagementSettingsEditDto ( ) ; this . security = _data [ "security" ] ? SecuritySettingsEditDto . fromJS ( _data [ "security" ] ) : new SecuritySettingsEditDto ( ) ; this . billing = _data [ "billing" ] ? HostBillingSettingsEditDto . fromJS ( _data [ "billing" ] ) : < any > undefined ; this . otherSettings = _data [ "otherSettings" ] ? OtherSettingsEditDto . fromJS ( _data [ "otherSettings" ] ) : < any > undefined ; this . externalLoginProviderSettings = _data [ "externalLoginProviderSettings" ] ? ExternalLoginProviderSettingsEditDto . fromJS ( _data [ "externalLoginProviderSettings" ] ) : < any > undefined ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new HostSettingsEditDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "general" ] = this . general ? this . general . toJSON ( ) : < any > undefined ; data [ "userManagement" ] = this . userManagement ? this . userManagement . toJSON ( ) : < any > undefined ; data [ "email" ] = this . email ? this . email . toJSON ( ) : < any > undefined ; data [ "tenantManagement" ] = this . tenantManagement ? this . tenantManagement . toJSON ( ) : < any > undefined ; data [ "security" ] = this . security ? this . security . toJSON ( ) : < any > undefined ; data [ "billing" ] = this . billing ? this . billing . toJSON ( ) : < any > undefined ; data [ "otherSettings" ] = this . otherSettings ? this . otherSettings . toJSON ( ) : < any > undefined ; data [ "externalLoginProviderSettings" ] = this . externalLoginProviderSettings ? this . externalLoginProviderSettings . toJSON ( ) : < any > undefined ; return data ; } } export interface IHostSettingsEditDto { general : GeneralSettingsEditDto ; userManagement : HostUserManagementSettingsEditDto ; email : EmailSettingsEditDto ; tenantManagement : TenantManagementSettingsEditDto ; security : SecuritySettingsEditDto ; billing : HostBillingSettingsEditDto ; otherSettings : OtherSettingsEditDto ; externalLoginProviderSettings : ExternalLoginProviderSettingsEditDto ; } export class SendTestEmailInput implements ISendTestEmailInput { emailAddress ! : string ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . emailAddress = _data [ "emailAddress" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new SendTestEmailInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "emailAddress" ] = this . emailAddress ; return data ; } } export interface ISendTestEmailInput { emailAddress : string ; } export class ExternalLoginSettingsDto implements IExternalLoginSettingsDto { enabledSocialLoginSettings ! : string [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { if ( Array . isArray ( _data [ "enabledSocialLoginSettings" ] ) ) { this . enabledSocialLoginSettings = [ ] as any ; for ( let item of _data [ "enabledSocialLoginSettings" ] ) this . enabledSocialLoginSettings ! . push ( item ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new ExternalLoginSettingsDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; if ( Array . isArray ( this . enabledSocialLoginSettings ) ) { data [ "enabledSocialLoginSettings" ] = [ ] ; for ( let item of this . enabledSocialLoginSettings ) data [ "enabledSocialLoginSettings" ] . push ( item ) ; } return data ; } } export interface IExternalLoginSettingsDto { enabledSocialLoginSettings : string [ ] | undefined ; } export class InstallDto implements IInstallDto { connectionString ! : string ; adminPassword ! : string ; webSiteUrl ! : string ; serverUrl ! : string | undefined ; defaultLanguage ! : string ; smtpSettings ! : EmailSettingsEditDto ; billInfo ! : HostBillingSettingsEditDto ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . connectionString = _data [ "connectionString" ] ; this . adminPassword = _data [ "adminPassword" ] ; this . webSiteUrl = _data [ "webSiteUrl" ] ; this . serverUrl = _data [ "serverUrl" ] ; this . defaultLanguage = _data [ "defaultLanguage" ] ; this . smtpSettings = _data [ "smtpSettings" ] ? EmailSettingsEditDto . fromJS ( _data [ "smtpSettings" ] ) : < any > undefined ; this . billInfo = _data [ "billInfo" ] ? HostBillingSettingsEditDto . fromJS ( _data [ "billInfo" ] ) : < any > undefined ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new InstallDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "connectionString" ] = this . connectionString ; data [ "adminPassword" ] = this . adminPassword ; data [ "webSiteUrl" ] = this . webSiteUrl ; data [ "serverUrl" ] = this . serverUrl ; data [ "defaultLanguage" ] = this . defaultLanguage ; data [ "smtpSettings" ] = this . smtpSettings ? this . smtpSettings . toJSON ( ) : < any > undefined ; data [ "billInfo" ] = this . billInfo ? this . billInfo . toJSON ( ) : < any > undefined ; return data ; } } export interface IInstallDto { connectionString : string ; adminPassword : string ; webSiteUrl : string ; serverUrl : string | undefined ; defaultLanguage : string ; smtpSettings : EmailSettingsEditDto ; billInfo : HostBillingSettingsEditDto ; } export class NameValue implements INameValue { name ! : string | undefined ; value ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . name = _data [ "name" ] ; this . value = _data [ "value" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new NameValue ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "name" ] = this . name ; data [ "value" ] = this . value ; return data ; } } export interface INameValue { name : string | undefined ; value : string | undefined ; } export class AppSettingsJsonDto implements IAppSettingsJsonDto { webSiteUrl ! : string | undefined ; serverSiteUrl ! : string | undefined ; languages ! : NameValue [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . webSiteUrl = _data [ "webSiteUrl" ] ; this . serverSiteUrl = _data [ "serverSiteUrl" ] ; if ( Array . isArray ( _data [ "languages" ] ) ) { this . languages = [ ] as any ; for ( let item of _data [ "languages" ] ) this . languages ! . push ( NameValue . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new AppSettingsJsonDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "webSiteUrl" ] = this . webSiteUrl ; data [ "serverSiteUrl" ] = this . serverSiteUrl ; if ( Array . isArray ( this . languages ) ) { data [ "languages" ] = [ ] ; for ( let item of this . languages ) data [ "languages" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IAppSettingsJsonDto { webSiteUrl : string | undefined ; serverSiteUrl : string | undefined ; languages : NameValue [ ] | undefined ; } export class CheckDatabaseOutput implements ICheckDatabaseOutput { isDatabaseExist ! : boolean ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . isDatabaseExist = _data [ "isDatabaseExist" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new CheckDatabaseOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "isDatabaseExist" ] = this . isDatabaseExist ; return data ; } } export interface ICheckDatabaseOutput { isDatabaseExist : boolean ; } export class InvoiceDto implements IInvoiceDto { amount ! : number ; editionDisplayName ! : string | undefined ; invoiceNo ! : string | undefined ; invoiceDate ! : DateTime ; tenantLegalName ! : string | undefined ; tenantAddress ! : string [ ] | undefined ; tenantTaxNo ! : string | undefined ; hostLegalName ! : string | undefined ; hostAddress ! : string [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . amount = _data [ "amount" ] ; this . editionDisplayName = _data [ "editionDisplayName" ] ; this . invoiceNo = _data [ "invoiceNo" ] ; this . invoiceDate = _data [ "invoiceDate" ] ? DateTime . fromISO ( _data [ "invoiceDate" ] . toString ( ) ) : < any > undefined ; this . tenantLegalName = _data [ "tenantLegalName" ] ; if ( Array . isArray ( _data [ "tenantAddress" ] ) ) { this . tenantAddress = [ ] as any ; for ( let item of _data [ "tenantAddress" ] ) this . tenantAddress ! . push ( item ) ; } this . tenantTaxNo = _data [ "tenantTaxNo" ] ; this . hostLegalName = _data [ "hostLegalName" ] ; if ( Array . isArray ( _data [ "hostAddress" ] ) ) { this . hostAddress = [ ] as any ; for ( let item of _data [ "hostAddress" ] ) this . hostAddress ! . push ( item ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new InvoiceDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "amount" ] = this . amount ; data [ "editionDisplayName" ] = this . editionDisplayName ; data [ "invoiceNo" ] = this . invoiceNo ; data [ "invoiceDate" ] = this . invoiceDate ? this . invoiceDate . toString ( ) : < any > undefined ; data [ "tenantLegalName" ] = this . tenantLegalName ; if ( Array . isArray ( this . tenantAddress ) ) { data [ "tenantAddress" ] = [ ] ; for ( let item of this . tenantAddress ) data [ "tenantAddress" ] . push ( item ) ; } data [ "tenantTaxNo" ] = this . tenantTaxNo ; data [ "hostLegalName" ] = this . hostLegalName ; if ( Array . isArray ( this . hostAddress ) ) { data [ "hostAddress" ] = [ ] ; for ( let item of this . hostAddress ) data [ "hostAddress" ] . push ( item ) ; } return data ; } } export interface IInvoiceDto { amount : number ; editionDisplayName : string | undefined ; invoiceNo : string | undefined ; invoiceDate : DateTime ; tenantLegalName : string | undefined ; tenantAddress : string [ ] | undefined ; tenantTaxNo : string | undefined ; hostLegalName : string | undefined ; hostAddress : string [ ] | undefined ; } export class CreateInvoiceDto implements ICreateInvoiceDto { subscriptionPaymentId ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . subscriptionPaymentId = _data [ "subscriptionPaymentId" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new CreateInvoiceDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "subscriptionPaymentId" ] = this . subscriptionPaymentId ; return data ; } } export interface ICreateInvoiceDto { subscriptionPaymentId : number ; } export class ApplicationLanguageListDto implements IApplicationLanguageListDto { tenantId ! : number | undefined ; name ! : string | undefined ; displayName ! : string | undefined ; icon ! : string | undefined ; isDisabled ! : boolean ; isDeleted ! : boolean ; deleterUserId ! : number | undefined ; deletionTime ! : DateTime | undefined ; lastModificationTime ! : DateTime | undefined ; lastModifierUserId ! : number | undefined ; creationTime ! : DateTime ; creatorUserId ! : number | undefined ; id ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . tenantId = _data [ "tenantId" ] ; this . name = _data [ "name" ] ; this . displayName = _data [ "displayName" ] ; this . icon = _data [ "icon" ] ; this . isDisabled = _data [ "isDisabled" ] ; this . isDeleted = _data [ "isDeleted" ] ; this . deleterUserId = _data [ "deleterUserId" ] ; this . deletionTime = _data [ "deletionTime" ] ? DateTime . fromISO ( _data [ "deletionTime" ] . toString ( ) ) : < any > undefined ; this . lastModificationTime = _data [ "lastModificationTime" ] ? DateTime . fromISO ( _data [ "lastModificationTime" ] . toString ( ) ) : < any > undefined ; this . lastModifierUserId = _data [ "lastModifierUserId" ] ; this . creationTime = _data [ "creationTime" ] ? DateTime . fromISO ( _data [ "creationTime" ] . toString ( ) ) : < any > undefined ; this . creatorUserId = _data [ "creatorUserId" ] ; this . id = _data [ "id" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new ApplicationLanguageListDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "tenantId" ] = this . tenantId ; data [ "name" ] = this . name ; data [ "displayName" ] = this . displayName ; data [ "icon" ] = this . icon ; data [ "isDisabled" ] = this . isDisabled ; data [ "isDeleted" ] = this . isDeleted ; data [ "deleterUserId" ] = this . deleterUserId ; data [ "deletionTime" ] = this . deletionTime ? this . deletionTime . toString ( ) : < any > undefined ; data [ "lastModificationTime" ] = this . lastModificationTime ? this . lastModificationTime . toString ( ) : < any > undefined ; data [ "lastModifierUserId" ] = this . lastModifierUserId ; data [ "creationTime" ] = this . creationTime ? this . creationTime . toString ( ) : < any > undefined ; data [ "creatorUserId" ] = this . creatorUserId ; data [ "id" ] = this . id ; return data ; } } export interface IApplicationLanguageListDto { tenantId : number | undefined ; name : string | undefined ; displayName : string | undefined ; icon : string | undefined ; isDisabled : boolean ; isDeleted : boolean ; deleterUserId : number | undefined ; deletionTime : DateTime | undefined ; lastModificationTime : DateTime | undefined ; lastModifierUserId : number | undefined ; creationTime : DateTime ; creatorUserId : number | undefined ; id : number ; } export class GetLanguagesOutput implements IGetLanguagesOutput { defaultLanguageName ! : string | undefined ; items ! : ApplicationLanguageListDto [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . defaultLanguageName = _data [ "defaultLanguageName" ] ; if ( Array . isArray ( _data [ "items" ] ) ) { this . items = [ ] as any ; for ( let item of _data [ "items" ] ) this . items ! . push ( ApplicationLanguageListDto . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new GetLanguagesOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "defaultLanguageName" ] = this . defaultLanguageName ; if ( Array . isArray ( this . items ) ) { data [ "items" ] = [ ] ; for ( let item of this . items ) data [ "items" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IGetLanguagesOutput { defaultLanguageName : string | undefined ; items : ApplicationLanguageListDto [ ] | undefined ; } export class ApplicationLanguageEditDto implements IApplicationLanguageEditDto { id ! : number | undefined ; name ! : string ; icon ! : string | undefined ; isEnabled ! : boolean ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . id = _data [ "id" ] ; this . name = _data [ "name" ] ; this . icon = _data [ "icon" ] ; this . isEnabled = _data [ "isEnabled" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new ApplicationLanguageEditDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "id" ] = this . id ; data [ "name" ] = this . name ; data [ "icon" ] = this . icon ; data [ "isEnabled" ] = this . isEnabled ; return data ; } } export interface IApplicationLanguageEditDto { id : number | undefined ; name : string ; icon : string | undefined ; isEnabled : boolean ; } export class ComboboxItemDto implements IComboboxItemDto { value ! : string | undefined ; displayText ! : string | undefined ; isSelected ! : boolean ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . value = _data [ "value" ] ; this . displayText = _data [ "displayText" ] ; this . isSelected = _data [ "isSelected" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new ComboboxItemDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "value" ] = this . value ; data [ "displayText" ] = this . displayText ; data [ "isSelected" ] = this . isSelected ; return data ; } } export interface IComboboxItemDto { value : string | undefined ; displayText : string | undefined ; isSelected : boolean ; } export class GetLanguageForEditOutput implements IGetLanguageForEditOutput { language ! : ApplicationLanguageEditDto ; languageNames ! : ComboboxItemDto [ ] | undefined ; flags ! : ComboboxItemDto [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . language = _data [ "language" ] ? ApplicationLanguageEditDto . fromJS ( _data [ "language" ] ) : < any > undefined ; if ( Array . isArray ( _data [ "languageNames" ] ) ) { this . languageNames = [ ] as any ; for ( let item of _data [ "languageNames" ] ) this . languageNames ! . push ( ComboboxItemDto . fromJS ( item ) ) ; } if ( Array . isArray ( _data [ "flags" ] ) ) { this . flags = [ ] as any ; for ( let item of _data [ "flags" ] ) this . flags ! . push ( ComboboxItemDto . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new GetLanguageForEditOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "language" ] = this . language ? this . language . toJSON ( ) : < any > undefined ; if ( Array . isArray ( this . languageNames ) ) { data [ "languageNames" ] = [ ] ; for ( let item of this . languageNames ) data [ "languageNames" ] . push ( item . toJSON ( ) ) ; } if ( Array . isArray ( this . flags ) ) { data [ "flags" ] = [ ] ; for ( let item of this . flags ) data [ "flags" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IGetLanguageForEditOutput { language : ApplicationLanguageEditDto ; languageNames : ComboboxItemDto [ ] | undefined ; flags : ComboboxItemDto [ ] | undefined ; } export class CreateOrUpdateLanguageInput implements ICreateOrUpdateLanguageInput { language ! : ApplicationLanguageEditDto ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } if ( ! data ) { this . language = new ApplicationLanguageEditDto ( ) ; } } init ( _data ? ) { if ( _data ) { this . language = _data [ "language" ] ? ApplicationLanguageEditDto . fromJS ( _data [ "language" ] ) : new ApplicationLanguageEditDto ( ) ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new CreateOrUpdateLanguageInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "language" ] = this . language ? this . language . toJSON ( ) : < any > undefined ; return data ; } } export interface ICreateOrUpdateLanguageInput { language : ApplicationLanguageEditDto ; } export class SetDefaultLanguageInput implements ISetDefaultLanguageInput { name ! : string ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . name = _data [ "name" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new SetDefaultLanguageInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "name" ] = this . name ; return data ; } } export interface ISetDefaultLanguageInput { name : string ; } export class LanguageTextListDto implements ILanguageTextListDto { key ! : string | undefined ; baseValue ! : string | undefined ; targetValue ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . key = _data [ "key" ] ; this . baseValue = _data [ "baseValue" ] ; this . targetValue = _data [ "targetValue" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new LanguageTextListDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "key" ] = this . key ; data [ "baseValue" ] = this . baseValue ; data [ "targetValue" ] = this . targetValue ; return data ; } } export interface ILanguageTextListDto { key : string | undefined ; baseValue : string | undefined ; targetValue : string | undefined ; } export class PagedResultDtoOfLanguageTextListDto implements IPagedResultDtoOfLanguageTextListDto { totalCount ! : number ; items ! : LanguageTextListDto [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . totalCount = _data [ "totalCount" ] ; if ( Array . isArray ( _data [ "items" ] ) ) { this . items = [ ] as any ; for ( let item of _data [ "items" ] ) this . items ! . push ( LanguageTextListDto . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new PagedResultDtoOfLanguageTextListDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "totalCount" ] = this . totalCount ; if ( Array . isArray ( this . items ) ) { data [ "items" ] = [ ] ; for ( let item of this . items ) data [ "items" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IPagedResultDtoOfLanguageTextListDto { totalCount : number ; items : LanguageTextListDto [ ] | undefined ; } export class UpdateLanguageTextInput implements IUpdateLanguageTextInput { languageName ! : string ; sourceName ! : string ; key ! : string ; value ! : string ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . languageName = _data [ "languageName" ] ; this . sourceName = _data [ "sourceName" ] ; this . key = _data [ "key" ] ; this . value = _data [ "value" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new UpdateLanguageTextInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "languageName" ] = this . languageName ; data [ "sourceName" ] = this . sourceName ; data [ "key" ] = this . key ; data [ "value" ] = this . value ; return data ; } } export interface IUpdateLanguageTextInput { languageName : string ; sourceName : string ; key : string ; value : string ; } export enum UserNotificationState { Unread = 0 , Read = 1 } export class NotificationData implements INotificationData { readonly type ! : string | undefined ; properties ! : { [ key ] : any ; } | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { ( < any > this ) . type = _data [ "type" ] ; if ( _data [ "properties" ] ) { this . properties = { } as any ; for ( let key in _data [ "properties" ] ) { if ( _data [ "properties" ] . hasOwnProperty ( key ) ) ( < any > this . properties ) ! [ key ] = _data [ "properties" ] [ key ] ; } } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new NotificationData ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "type" ] = this . type ; if ( this . properties ) { data [ "properties" ] = { } ; for ( let key in this . properties ) { if ( this . properties . hasOwnProperty ( key ) ) ( < any > data [ "properties" ] ) [ key ] = this . properties [ key ] ; } } return data ; } } export interface INotificationData { type : string | undefined ; properties : { [ key ] : any ; } | undefined ; } export enum NotificationSeverity { Info = 0 , Success = 1 , Warn = 2 , Error = 3 , Fatal = 4 } export class TenantNotification implements ITenantNotification { tenantId ! : number | undefined ; notificationName ! : string | undefined ; data ! : NotificationData ; entityType ! : string | undefined ; entityTypeName ! : string | undefined ; entityId ! : any | undefined ; severity ! : NotificationSeverity ; creationTime ! : DateTime ; id ! : string ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . tenantId = _data [ "tenantId" ] ; this . notificationName = _data [ "notificationName" ] ; this . data = _data [ "data" ] ? NotificationData . fromJS ( _data [ "data" ] ) : < any > undefined ; this . entityType = _data [ "entityType" ] ; this . entityTypeName = _data [ "entityTypeName" ] ; this . entityId = _data [ "entityId" ] ; this . severity = _data [ "severity" ] ; this . creationTime = _data [ "creationTime" ] ? DateTime . fromISO ( _data [ "creationTime" ] . toString ( ) ) : < any > undefined ; this . id = _data [ "id" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new TenantNotification ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "tenantId" ] = this . tenantId ; data [ "notificationName" ] = this . notificationName ; data [ "data" ] = this . data ? this . data . toJSON ( ) : < any > undefined ; data [ "entityType" ] = this . entityType ; data [ "entityTypeName" ] = this . entityTypeName ; data [ "entityId" ] = this . entityId ; data [ "severity" ] = this . severity ; data [ "creationTime" ] = this . creationTime ? this . creationTime . toString ( ) : < any > undefined ; data [ "id" ] = this . id ; return data ; } } export interface ITenantNotification { tenantId : number | undefined ; notificationName : string | undefined ; data : NotificationData ; entityType : string | undefined ; entityTypeName : string | undefined ; entityId : any | undefined ; severity : NotificationSeverity ; creationTime : DateTime ; id : string ; } export class UserNotification implements IUserNotification { tenantId ! : number | undefined ; userId ! : number ; state ! : UserNotificationState ; notification ! : TenantNotification ; id ! : string ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . tenantId = _data [ "tenantId" ] ; this . userId = _data [ "userId" ] ; this . state = _data [ "state" ] ; this . notification = _data [ "notification" ] ? TenantNotification . fromJS ( _data [ "notification" ] ) : < any > undefined ; this . id = _data [ "id" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new UserNotification ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "tenantId" ] = this . tenantId ; data [ "userId" ] = this . userId ; data [ "state" ] = this . state ; data [ "notification" ] = this . notification ? this . notification . toJSON ( ) : < any > undefined ; data [ "id" ] = this . id ; return data ; } } export interface IUserNotification { tenantId : number | undefined ; userId : number ; state : UserNotificationState ; notification : TenantNotification ; id : string ; } export class GetNotificationsOutput implements IGetNotificationsOutput { unreadCount ! : number ; totalCount ! : number ; items ! : UserNotification [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . unreadCount = _data [ "unreadCount" ] ; this . totalCount = _data [ "totalCount" ] ; if ( Array . isArray ( _data [ "items" ] ) ) { this . items = [ ] as any ; for ( let item of _data [ "items" ] ) this . items ! . push ( UserNotification . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new GetNotificationsOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "unreadCount" ] = this . unreadCount ; data [ "totalCount" ] = this . totalCount ; if ( Array . isArray ( this . items ) ) { data [ "items" ] = [ ] ; for ( let item of this . items ) data [ "items" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IGetNotificationsOutput { unreadCount : number ; totalCount : number ; items : UserNotification [ ] | undefined ; } export class EntityDtoOfGuid implements IEntityDtoOfGuid { id ! : string ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . id = _data [ "id" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new EntityDtoOfGuid ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "id" ] = this . id ; return data ; } } export interface IEntityDtoOfGuid { id : string ; } export class NotificationSubscriptionWithDisplayNameDto implements INotificationSubscriptionWithDisplayNameDto { displayName ! : string | undefined ; description ! : string | undefined ; name ! : string ; isSubscribed ! : boolean ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . displayName = _data [ "displayName" ] ; this . description = _data [ "description" ] ; this . name = _data [ "name" ] ; this . isSubscribed = _data [ "isSubscribed" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new NotificationSubscriptionWithDisplayNameDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "displayName" ] = this . displayName ; data [ "description" ] = this . description ; data [ "name" ] = this . name ; data [ "isSubscribed" ] = this . isSubscribed ; return data ; } } export interface INotificationSubscriptionWithDisplayNameDto { displayName : string | undefined ; description : string | undefined ; name : string ; isSubscribed : boolean ; } export class GetNotificationSettingsOutput implements IGetNotificationSettingsOutput { receiveNotifications ! : boolean ; notifications ! : NotificationSubscriptionWithDisplayNameDto [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . receiveNotifications = _data [ "receiveNotifications" ] ; if ( Array . isArray ( _data [ "notifications" ] ) ) { this . notifications = [ ] as any ; for ( let item of _data [ "notifications" ] ) this . notifications ! . push ( NotificationSubscriptionWithDisplayNameDto . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new GetNotificationSettingsOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "receiveNotifications" ] = this . receiveNotifications ; if ( Array . isArray ( this . notifications ) ) { data [ "notifications" ] = [ ] ; for ( let item of this . notifications ) data [ "notifications" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IGetNotificationSettingsOutput { receiveNotifications : boolean ; notifications : NotificationSubscriptionWithDisplayNameDto [ ] | undefined ; } export class NotificationSubscriptionDto implements INotificationSubscriptionDto { name ! : string ; isSubscribed ! : boolean ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . name = _data [ "name" ] ; this . isSubscribed = _data [ "isSubscribed" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new NotificationSubscriptionDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "name" ] = this . name ; data [ "isSubscribed" ] = this . isSubscribed ; return data ; } } export interface INotificationSubscriptionDto { name : string ; isSubscribed : boolean ; } export class UpdateNotificationSettingsInput implements IUpdateNotificationSettingsInput { receiveNotifications ! : boolean ; notifications ! : NotificationSubscriptionDto [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . receiveNotifications = _data [ "receiveNotifications" ] ; if ( Array . isArray ( _data [ "notifications" ] ) ) { this . notifications = [ ] as any ; for ( let item of _data [ "notifications" ] ) this . notifications ! . push ( NotificationSubscriptionDto . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new UpdateNotificationSettingsInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "receiveNotifications" ] = this . receiveNotifications ; if ( Array . isArray ( this . notifications ) ) { data [ "notifications" ] = [ ] ; for ( let item of this . notifications ) data [ "notifications" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IUpdateNotificationSettingsInput { receiveNotifications : boolean ; notifications : NotificationSubscriptionDto [ ] | undefined ; } export class OrganizationUnitDto implements IOrganizationUnitDto { parentId ! : number | undefined ; code ! : string | undefined ; displayName ! : string | undefined ; memberCount ! : number ; roleCount ! : number ; lastModificationTime ! : DateTime | undefined ; lastModifierUserId ! : number | undefined ; creationTime ! : DateTime ; creatorUserId ! : number | undefined ; id ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . parentId = _data [ "parentId" ] ; this . code = _data [ "code" ] ; this . displayName = _data [ "displayName" ] ; this . memberCount = _data [ "memberCount" ] ; this . roleCount = _data [ "roleCount" ] ; this . lastModificationTime = _data [ "lastModificationTime" ] ? DateTime . fromISO ( _data [ "lastModificationTime" ] . toString ( ) ) : < any > undefined ; this . lastModifierUserId = _data [ "lastModifierUserId" ] ; this . creationTime = _data [ "creationTime" ] ? DateTime . fromISO ( _data [ "creationTime" ] . toString ( ) ) : < any > undefined ; this . creatorUserId = _data [ "creatorUserId" ] ; this . id = _data [ "id" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new OrganizationUnitDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "parentId" ] = this . parentId ; data [ "code" ] = this . code ; data [ "displayName" ] = this . displayName ; data [ "memberCount" ] = this . memberCount ; data [ "roleCount" ] = this . roleCount ; data [ "lastModificationTime" ] = this . lastModificationTime ? this . lastModificationTime . toString ( ) : < any > undefined ; data [ "lastModifierUserId" ] = this . lastModifierUserId ; data [ "creationTime" ] = this . creationTime ? this . creationTime . toString ( ) : < any > undefined ; data [ "creatorUserId" ] = this . creatorUserId ; data [ "id" ] = this . id ; return data ; } } export interface IOrganizationUnitDto { parentId : number | undefined ; code : string | undefined ; displayName : string | undefined ; memberCount : number ; roleCount : number ; lastModificationTime : DateTime | undefined ; lastModifierUserId : number | undefined ; creationTime : DateTime ; creatorUserId : number | undefined ; id : number ; } export class ListResultDtoOfOrganizationUnitDto implements IListResultDtoOfOrganizationUnitDto { items ! : OrganizationUnitDto [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { if ( Array . isArray ( _data [ "items" ] ) ) { this . items = [ ] as any ; for ( let item of _data [ "items" ] ) this . items ! . push ( OrganizationUnitDto . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new ListResultDtoOfOrganizationUnitDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; if ( Array . isArray ( this . items ) ) { data [ "items" ] = [ ] ; for ( let item of this . items ) data [ "items" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IListResultDtoOfOrganizationUnitDto { items : OrganizationUnitDto [ ] | undefined ; } export class OrganizationUnitUserListDto implements IOrganizationUnitUserListDto { name ! : string | undefined ; surname ! : string | undefined ; userName ! : string | undefined ; emailAddress ! : string | undefined ; profilePictureId ! : string | undefined ; addedTime ! : DateTime ; id ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . name = _data [ "name" ] ; this . surname = _data [ "surname" ] ; this . userName = _data [ "userName" ] ; this . emailAddress = _data [ "emailAddress" ] ; this . profilePictureId = _data [ "profilePictureId" ] ; this . addedTime = _data [ "addedTime" ] ? DateTime . fromISO ( _data [ "addedTime" ] . toString ( ) ) : < any > undefined ; this . id = _data [ "id" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new OrganizationUnitUserListDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "name" ] = this . name ; data [ "surname" ] = this . surname ; data [ "userName" ] = this . userName ; data [ "emailAddress" ] = this . emailAddress ; data [ "profilePictureId" ] = this . profilePictureId ; data [ "addedTime" ] = this . addedTime ? this . addedTime . toString ( ) : < any > undefined ; data [ "id" ] = this . id ; return data ; } } export interface IOrganizationUnitUserListDto { name : string | undefined ; surname : string | undefined ; userName : string | undefined ; emailAddress : string | undefined ; profilePictureId : string | undefined ; addedTime : DateTime ; id : number ; } export class PagedResultDtoOfOrganizationUnitUserListDto implements IPagedResultDtoOfOrganizationUnitUserListDto { totalCount ! : number ; items ! : OrganizationUnitUserListDto [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . totalCount = _data [ "totalCount" ] ; if ( Array . isArray ( _data [ "items" ] ) ) { this . items = [ ] as any ; for ( let item of _data [ "items" ] ) this . items ! . push ( OrganizationUnitUserListDto . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new PagedResultDtoOfOrganizationUnitUserListDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "totalCount" ] = this . totalCount ; if ( Array . isArray ( this . items ) ) { data [ "items" ] = [ ] ; for ( let item of this . items ) data [ "items" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IPagedResultDtoOfOrganizationUnitUserListDto { totalCount : number ; items : OrganizationUnitUserListDto [ ] | undefined ; } export class OrganizationUnitRoleListDto implements IOrganizationUnitRoleListDto { displayName ! : string | undefined ; name ! : string | undefined ; addedTime ! : DateTime ; id ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . displayName = _data [ "displayName" ] ; this . name = _data [ "name" ] ; this . addedTime = _data [ "addedTime" ] ? DateTime . fromISO ( _data [ "addedTime" ] . toString ( ) ) : < any > undefined ; this . id = _data [ "id" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new OrganizationUnitRoleListDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "displayName" ] = this . displayName ; data [ "name" ] = this . name ; data [ "addedTime" ] = this . addedTime ? this . addedTime . toString ( ) : < any > undefined ; data [ "id" ] = this . id ; return data ; } } export interface IOrganizationUnitRoleListDto { displayName : string | undefined ; name : string | undefined ; addedTime : DateTime ; id : number ; } export class PagedResultDtoOfOrganizationUnitRoleListDto implements IPagedResultDtoOfOrganizationUnitRoleListDto { totalCount ! : number ; items ! : OrganizationUnitRoleListDto [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . totalCount = _data [ "totalCount" ] ; if ( Array . isArray ( _data [ "items" ] ) ) { this . items = [ ] as any ; for ( let item of _data [ "items" ] ) this . items ! . push ( OrganizationUnitRoleListDto . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new PagedResultDtoOfOrganizationUnitRoleListDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "totalCount" ] = this . totalCount ; if ( Array . isArray ( this . items ) ) { data [ "items" ] = [ ] ; for ( let item of this . items ) data [ "items" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IPagedResultDtoOfOrganizationUnitRoleListDto { totalCount : number ; items : OrganizationUnitRoleListDto [ ] | undefined ; } export class CreateOrganizationUnitInput implements ICreateOrganizationUnitInput { parentId ! : number | undefined ; displayName ! : string ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . parentId = _data [ "parentId" ] ; this . displayName = _data [ "displayName" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new CreateOrganizationUnitInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "parentId" ] = this . parentId ; data [ "displayName" ] = this . displayName ; return data ; } } export interface ICreateOrganizationUnitInput { parentId : number | undefined ; displayName : string ; } export class UpdateOrganizationUnitInput implements IUpdateOrganizationUnitInput { id ! : number ; displayName ! : string ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . id = _data [ "id" ] ; this . displayName = _data [ "displayName" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new UpdateOrganizationUnitInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "id" ] = this . id ; data [ "displayName" ] = this . displayName ; return data ; } } export interface IUpdateOrganizationUnitInput { id : number ; displayName : string ; } export class MoveOrganizationUnitInput implements IMoveOrganizationUnitInput { id ! : number ; newParentId ! : number | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . id = _data [ "id" ] ; this . newParentId = _data [ "newParentId" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new MoveOrganizationUnitInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "id" ] = this . id ; data [ "newParentId" ] = this . newParentId ; return data ; } } export interface IMoveOrganizationUnitInput { id : number ; newParentId : number | undefined ; } export class UsersToOrganizationUnitInput implements IUsersToOrganizationUnitInput { userIds ! : number [ ] | undefined ; organizationUnitId ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { if ( Array . isArray ( _data [ "userIds" ] ) ) { this . userIds = [ ] as any ; for ( let item of _data [ "userIds" ] ) this . userIds ! . push ( item ) ; } this . organizationUnitId = _data [ "organizationUnitId" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new UsersToOrganizationUnitInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; if ( Array . isArray ( this . userIds ) ) { data [ "userIds" ] = [ ] ; for ( let item of this . userIds ) data [ "userIds" ] . push ( item ) ; } data [ "organizationUnitId" ] = this . organizationUnitId ; return data ; } } export interface IUsersToOrganizationUnitInput { userIds : number [ ] | undefined ; organizationUnitId : number ; } export class RolesToOrganizationUnitInput implements IRolesToOrganizationUnitInput { roleIds ! : number [ ] | undefined ; organizationUnitId ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { if ( Array . isArray ( _data [ "roleIds" ] ) ) { this . roleIds = [ ] as any ; for ( let item of _data [ "roleIds" ] ) this . roleIds ! . push ( item ) ; } this . organizationUnitId = _data [ "organizationUnitId" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new RolesToOrganizationUnitInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; if ( Array . isArray ( this . roleIds ) ) { data [ "roleIds" ] = [ ] ; for ( let item of this . roleIds ) data [ "roleIds" ] . push ( item ) ; } data [ "organizationUnitId" ] = this . organizationUnitId ; return data ; } } export interface IRolesToOrganizationUnitInput { roleIds : number [ ] | undefined ; organizationUnitId : number ; } export class FindOrganizationUnitUsersInput implements IFindOrganizationUnitUsersInput { organizationUnitId ! : number ; maxResultCount ! : number ; skipCount ! : number ; filter ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . organizationUnitId = _data [ "organizationUnitId" ] ; this . maxResultCount = _data [ "maxResultCount" ] ; this . skipCount = _data [ "skipCount" ] ; this . filter = _data [ "filter" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new FindOrganizationUnitUsersInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "organizationUnitId" ] = this . organizationUnitId ; data [ "maxResultCount" ] = this . maxResultCount ; data [ "skipCount" ] = this . skipCount ; data [ "filter" ] = this . filter ; return data ; } } export interface IFindOrganizationUnitUsersInput { organizationUnitId : number ; maxResultCount : number ; skipCount : number ; filter : string | undefined ; } export class FindOrganizationUnitRolesInput implements IFindOrganizationUnitRolesInput { organizationUnitId ! : number ; maxResultCount ! : number ; skipCount ! : number ; filter ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . organizationUnitId = _data [ "organizationUnitId" ] ; this . maxResultCount = _data [ "maxResultCount" ] ; this . skipCount = _data [ "skipCount" ] ; this . filter = _data [ "filter" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new FindOrganizationUnitRolesInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "organizationUnitId" ] = this . organizationUnitId ; data [ "maxResultCount" ] = this . maxResultCount ; data [ "skipCount" ] = this . skipCount ; data [ "filter" ] = this . filter ; return data ; } } export interface IFindOrganizationUnitRolesInput { organizationUnitId : number ; maxResultCount : number ; skipCount : number ; filter : string | undefined ; } export class EditionSelectDto implements IEditionSelectDto { id ! : number ; name ! : string | undefined ; displayName ! : string | undefined ; expiringEditionId ! : number | undefined ; dailyPrice ! : number | undefined ; weeklyPrice ! : number | undefined ; monthlyPrice ! : number | undefined ; annualPrice ! : number | undefined ; trialDayCount ! : number | undefined ; waitingDayAfterExpire ! : number | undefined ; isFree ! : boolean ; additionalData ! : AdditionalData | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . id = _data [ "id" ] ; this . name = _data [ "name" ] ; this . displayName = _data [ "displayName" ] ; this . expiringEditionId = _data [ "expiringEditionId" ] ; this . dailyPrice = _data [ "dailyPrice" ] ; this . weeklyPrice = _data [ "weeklyPrice" ] ; this . monthlyPrice = _data [ "monthlyPrice" ] ; this . annualPrice = _data [ "annualPrice" ] ; this . trialDayCount = _data [ "trialDayCount" ] ; this . waitingDayAfterExpire = _data [ "waitingDayAfterExpire" ] ; this . isFree = _data [ "isFree" ] ; this . additionalData = _data [ "additionalData" ] ? AdditionalData . fromJS ( _data [ "additionalData" ] ) : < any > undefined ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new EditionSelectDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "id" ] = this . id ; data [ "name" ] = this . name ; data [ "displayName" ] = this . displayName ; data [ "expiringEditionId" ] = this . expiringEditionId ; data [ "dailyPrice" ] = this . dailyPrice ; data [ "weeklyPrice" ] = this . weeklyPrice ; data [ "monthlyPrice" ] = this . monthlyPrice ; data [ "annualPrice" ] = this . annualPrice ; data [ "trialDayCount" ] = this . trialDayCount ; data [ "waitingDayAfterExpire" ] = this . waitingDayAfterExpire ; data [ "isFree" ] = this . isFree ; data [ "additionalData" ] = this . additionalData ? this . additionalData . toJSON ( ) : < any > undefined ; return data ; } } export interface IEditionSelectDto { id : number ; name : string | undefined ; displayName : string | undefined ; expiringEditionId : number | undefined ; dailyPrice : number | undefined ; weeklyPrice : number | undefined ; monthlyPrice : number | undefined ; annualPrice : number | undefined ; trialDayCount : number | undefined ; waitingDayAfterExpire : number | undefined ; isFree : boolean ; additionalData : AdditionalData | undefined ; } export class PaymentInfoDto implements IPaymentInfoDto { edition ! : EditionSelectDto ; additionalPrice ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . edition = _data [ "edition" ] ? EditionSelectDto . fromJS ( _data [ "edition" ] ) : < any > undefined ; this . additionalPrice = _data [ "additionalPrice" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new PaymentInfoDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "edition" ] = this . edition ? this . edition . toJSON ( ) : < any > undefined ; data [ "additionalPrice" ] = this . additionalPrice ; return data ; } } export interface IPaymentInfoDto { edition : EditionSelectDto ; additionalPrice : number ; } export enum EditionPaymentType { NewRegistration = 0 , BuyNow = 1 , Upgrade = 2 , Extend = 3 } export enum PaymentPeriodType { Daily = 1 , Weekly = 7 , Monthly = 30 , Annual = 365 } export enum SubscriptionPaymentGatewayType { Paypal = 1 , Stripe = 2 } export class CreatePaymentDto implements ICreatePaymentDto { editionId ! : number ; editionPaymentType ! : EditionPaymentType ; paymentPeriodType ! : PaymentPeriodType ; subscriptionPaymentGatewayType ! : SubscriptionPaymentGatewayType ; recurringPaymentEnabled ! : boolean ; successUrl ! : string | undefined ; errorUrl ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . editionId = _data [ "editionId" ] ; this . editionPaymentType = _data [ "editionPaymentType" ] ; this . paymentPeriodType = _data [ "paymentPeriodType" ] ; this . subscriptionPaymentGatewayType = _data [ "subscriptionPaymentGatewayType" ] ; this . recurringPaymentEnabled = _data [ "recurringPaymentEnabled" ] ; this . successUrl = _data [ "successUrl" ] ; this . errorUrl = _data [ "errorUrl" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new CreatePaymentDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "editionId" ] = this . editionId ; data [ "editionPaymentType" ] = this . editionPaymentType ; data [ "paymentPeriodType" ] = this . paymentPeriodType ; data [ "subscriptionPaymentGatewayType" ] = this . subscriptionPaymentGatewayType ; data [ "recurringPaymentEnabled" ] = this . recurringPaymentEnabled ; data [ "successUrl" ] = this . successUrl ; data [ "errorUrl" ] = this . errorUrl ; return data ; } } export interface ICreatePaymentDto { editionId : number ; editionPaymentType : EditionPaymentType ; paymentPeriodType : PaymentPeriodType ; subscriptionPaymentGatewayType : SubscriptionPaymentGatewayType ; recurringPaymentEnabled : boolean ; successUrl : string | undefined ; errorUrl : string | undefined ; } export class CancelPaymentDto implements ICancelPaymentDto { paymentId ! : string | undefined ; gateway ! : SubscriptionPaymentGatewayType ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . paymentId = _data [ "paymentId" ] ; this . gateway = _data [ "gateway" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new CancelPaymentDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "paymentId" ] = this . paymentId ; data [ "gateway" ] = this . gateway ; return data ; } } export interface ICancelPaymentDto { paymentId : string | undefined ; gateway : SubscriptionPaymentGatewayType ; } export class SubscriptionPaymentListDto implements ISubscriptionPaymentListDto { gateway ! : string | undefined ; amount ! : number ; editionId ! : number ; dayCount ! : number ; paymentPeriodType ! : string | undefined ; externalPaymentId ! : string | undefined ; payerId ! : string | undefined ; status ! : string | undefined ; editionDisplayName ! : string | undefined ; tenantId ! : number ; invoiceNo ! : string | undefined ; lastModificationTime ! : DateTime | undefined ; lastModifierUserId ! : number | undefined ; creationTime ! : DateTime ; creatorUserId ! : number | undefined ; id ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . gateway = _data [ "gateway" ] ; this . amount = _data [ "amount" ] ; this . editionId = _data [ "editionId" ] ; this . dayCount = _data [ "dayCount" ] ; this . paymentPeriodType = _data [ "paymentPeriodType" ] ; this . externalPaymentId = _data [ "externalPaymentId" ] ; this . payerId = _data [ "payerId" ] ; this . status = _data [ "status" ] ; this . editionDisplayName = _data [ "editionDisplayName" ] ; this . tenantId = _data [ "tenantId" ] ; this . invoiceNo = _data [ "invoiceNo" ] ; this . lastModificationTime = _data [ "lastModificationTime" ] ? DateTime . fromISO ( _data [ "lastModificationTime" ] . toString ( ) ) : < any > undefined ; this . lastModifierUserId = _data [ "lastModifierUserId" ] ; this . creationTime = _data [ "creationTime" ] ? DateTime . fromISO ( _data [ "creationTime" ] . toString ( ) ) : < any > undefined ; this . creatorUserId = _data [ "creatorUserId" ] ; this . id = _data [ "id" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new SubscriptionPaymentListDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "gateway" ] = this . gateway ; data [ "amount" ] = this . amount ; data [ "editionId" ] = this . editionId ; data [ "dayCount" ] = this . dayCount ; data [ "paymentPeriodType" ] = this . paymentPeriodType ; data [ "externalPaymentId" ] = this . externalPaymentId ; data [ "payerId" ] = this . payerId ; data [ "status" ] = this . status ; data [ "editionDisplayName" ] = this . editionDisplayName ; data [ "tenantId" ] = this . tenantId ; data [ "invoiceNo" ] = this . invoiceNo ; data [ "lastModificationTime" ] = this . lastModificationTime ? this . lastModificationTime . toString ( ) : < any > undefined ; data [ "lastModifierUserId" ] = this . lastModifierUserId ; data [ "creationTime" ] = this . creationTime ? this . creationTime . toString ( ) : < any > undefined ; data [ "creatorUserId" ] = this . creatorUserId ; data [ "id" ] = this . id ; return data ; } } export interface ISubscriptionPaymentListDto { gateway : string | undefined ; amount : number ; editionId : number ; dayCount : number ; paymentPeriodType : string | undefined ; externalPaymentId : string | undefined ; payerId : string | undefined ; status : string | undefined ; editionDisplayName : string | undefined ; tenantId : number ; invoiceNo : string | undefined ; lastModificationTime : DateTime | undefined ; lastModifierUserId : number | undefined ; creationTime : DateTime ; creatorUserId : number | undefined ; id : number ; } export class PagedResultDtoOfSubscriptionPaymentListDto implements IPagedResultDtoOfSubscriptionPaymentListDto { totalCount ! : number ; items ! : SubscriptionPaymentListDto [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . totalCount = _data [ "totalCount" ] ; if ( Array . isArray ( _data [ "items" ] ) ) { this . items = [ ] as any ; for ( let item of _data [ "items" ] ) this . items ! . push ( SubscriptionPaymentListDto . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new PagedResultDtoOfSubscriptionPaymentListDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "totalCount" ] = this . totalCount ; if ( Array . isArray ( this . items ) ) { data [ "items" ] = [ ] ; for ( let item of this . items ) data [ "items" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IPagedResultDtoOfSubscriptionPaymentListDto { totalCount : number ; items : SubscriptionPaymentListDto [ ] | undefined ; } export class PaymentGatewayModel implements IPaymentGatewayModel { gatewayType ! : SubscriptionPaymentGatewayType ; supportsRecurringPayments ! : boolean ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . gatewayType = _data [ "gatewayType" ] ; this . supportsRecurringPayments = _data [ "supportsRecurringPayments" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new PaymentGatewayModel ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "gatewayType" ] = this . gatewayType ; data [ "supportsRecurringPayments" ] = this . supportsRecurringPayments ; return data ; } } export interface IPaymentGatewayModel { gatewayType : SubscriptionPaymentGatewayType ; supportsRecurringPayments : boolean ; } export enum SubscriptionPaymentStatus { NotPaid = 1 , Paid = 2 , Failed = 3 , Cancelled = 4 , Completed = 5 } export class SubscriptionPaymentDto implements ISubscriptionPaymentDto { description ! : string | undefined ; gateway ! : SubscriptionPaymentGatewayType ; amount ! : number ; editionId ! : number ; tenantId ! : number ; dayCount ! : number ; paymentPeriodType ! : PaymentPeriodType ; paymentId ! : string | undefined ; payerId ! : string | undefined ; editionDisplayName ! : string | undefined ; invoiceNo ! : number ; status ! : SubscriptionPaymentStatus ; isRecurring ! : boolean ; externalPaymentId ! : string | undefined ; successUrl ! : string | undefined ; errorUrl ! : string | undefined ; editionPaymentType ! : EditionPaymentType ; id ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . description = _data [ "description" ] ; this . gateway = _data [ "gateway" ] ; this . amount = _data [ "amount" ] ; this . editionId = _data [ "editionId" ] ; this . tenantId = _data [ "tenantId" ] ; this . dayCount = _data [ "dayCount" ] ; this . paymentPeriodType = _data [ "paymentPeriodType" ] ; this . paymentId = _data [ "paymentId" ] ; this . payerId = _data [ "payerId" ] ; this . editionDisplayName = _data [ "editionDisplayName" ] ; this . invoiceNo = _data [ "invoiceNo" ] ; this . status = _data [ "status" ] ; this . isRecurring = _data [ "isRecurring" ] ; this . externalPaymentId = _data [ "externalPaymentId" ] ; this . successUrl = _data [ "successUrl" ] ; this . errorUrl = _data [ "errorUrl" ] ; this . editionPaymentType = _data [ "editionPaymentType" ] ; this . id = _data [ "id" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new SubscriptionPaymentDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "description" ] = this . description ; data [ "gateway" ] = this . gateway ; data [ "amount" ] = this . amount ; data [ "editionId" ] = this . editionId ; data [ "tenantId" ] = this . tenantId ; data [ "dayCount" ] = this . dayCount ; data [ "paymentPeriodType" ] = this . paymentPeriodType ; data [ "paymentId" ] = this . paymentId ; data [ "payerId" ] = this . payerId ; data [ "editionDisplayName" ] = this . editionDisplayName ; data [ "invoiceNo" ] = this . invoiceNo ; data [ "status" ] = this . status ; data [ "isRecurring" ] = this . isRecurring ; data [ "externalPaymentId" ] = this . externalPaymentId ; data [ "successUrl" ] = this . successUrl ; data [ "errorUrl" ] = this . errorUrl ; data [ "editionPaymentType" ] = this . editionPaymentType ; data [ "id" ] = this . id ; return data ; } } export interface ISubscriptionPaymentDto { description : string | undefined ; gateway : SubscriptionPaymentGatewayType ; amount : number ; editionId : number ; tenantId : number ; dayCount : number ; paymentPeriodType : PaymentPeriodType ; paymentId : string | undefined ; payerId : string | undefined ; editionDisplayName : string | undefined ; invoiceNo : number ; status : SubscriptionPaymentStatus ; isRecurring : boolean ; externalPaymentId : string | undefined ; successUrl : string | undefined ; errorUrl : string | undefined ; editionPaymentType : EditionPaymentType ; id : number ; } export class PayPalConfigurationDto implements IPayPalConfigurationDto { clientId ! : string | undefined ; demoUsername ! : string | undefined ; demoPassword ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . clientId = _data [ "clientId" ] ; this . demoUsername = _data [ "demoUsername" ] ; this . demoPassword = _data [ "demoPassword" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new PayPalConfigurationDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "clientId" ] = this . clientId ; data [ "demoUsername" ] = this . demoUsername ; data [ "demoPassword" ] = this . demoPassword ; return data ; } } export interface IPayPalConfigurationDto { clientId : string | undefined ; demoUsername : string | undefined ; demoPassword : string | undefined ; } export class FlatPermissionWithLevelDto implements IFlatPermissionWithLevelDto { level ! : number ; parentName ! : string | undefined ; name ! : string | undefined ; displayName ! : string | undefined ; description ! : string | undefined ; isGrantedByDefault ! : boolean ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . level = _data [ "level" ] ; this . parentName = _data [ "parentName" ] ; this . name = _data [ "name" ] ; this . displayName = _data [ "displayName" ] ; this . description = _data [ "description" ] ; this . isGrantedByDefault = _data [ "isGrantedByDefault" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new FlatPermissionWithLevelDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "level" ] = this . level ; data [ "parentName" ] = this . parentName ; data [ "name" ] = this . name ; data [ "displayName" ] = this . displayName ; data [ "description" ] = this . description ; data [ "isGrantedByDefault" ] = this . isGrantedByDefault ; return data ; } } export interface IFlatPermissionWithLevelDto { level : number ; parentName : string | undefined ; name : string | undefined ; displayName : string | undefined ; description : string | undefined ; isGrantedByDefault : boolean ; } export class ListResultDtoOfFlatPermissionWithLevelDto implements IListResultDtoOfFlatPermissionWithLevelDto { items ! : FlatPermissionWithLevelDto [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { if ( Array . isArray ( _data [ "items" ] ) ) { this . items = [ ] as any ; for ( let item of _data [ "items" ] ) this . items ! . push ( FlatPermissionWithLevelDto . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new ListResultDtoOfFlatPermissionWithLevelDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; if ( Array . isArray ( this . items ) ) { data [ "items" ] = [ ] ; for ( let item of this . items ) data [ "items" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IListResultDtoOfFlatPermissionWithLevelDto { items : FlatPermissionWithLevelDto [ ] | undefined ; } export class CurrentUserProfileEditDto implements ICurrentUserProfileEditDto { name ! : string ; surname ! : string ; userName ! : string ; emailAddress ! : string ; phoneNumber ! : string | undefined ; isPhoneNumberConfirmed ! : boolean ; timezone ! : string | undefined ; qrCodeSetupImageUrl ! : string | undefined ; isGoogleAuthenticatorEnabled ! : boolean ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . name = _data [ "name" ] ; this . surname = _data [ "surname" ] ; this . userName = _data [ "userName" ] ; this . emailAddress = _data [ "emailAddress" ] ; this . phoneNumber = _data [ "phoneNumber" ] ; this . isPhoneNumberConfirmed = _data [ "isPhoneNumberConfirmed" ] ; this . timezone = _data [ "timezone" ] ; this . qrCodeSetupImageUrl = _data [ "qrCodeSetupImageUrl" ] ; this . isGoogleAuthenticatorEnabled = _data [ "isGoogleAuthenticatorEnabled" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new CurrentUserProfileEditDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "name" ] = this . name ; data [ "surname" ] = this . surname ; data [ "userName" ] = this . userName ; data [ "emailAddress" ] = this . emailAddress ; data [ "phoneNumber" ] = this . phoneNumber ; data [ "isPhoneNumberConfirmed" ] = this . isPhoneNumberConfirmed ; data [ "timezone" ] = this . timezone ; data [ "qrCodeSetupImageUrl" ] = this . qrCodeSetupImageUrl ; data [ "isGoogleAuthenticatorEnabled" ] = this . isGoogleAuthenticatorEnabled ; return data ; } } export interface ICurrentUserProfileEditDto { name : string ; surname : string ; userName : string ; emailAddress : string ; phoneNumber : string | undefined ; isPhoneNumberConfirmed : boolean ; timezone : string | undefined ; qrCodeSetupImageUrl : string | undefined ; isGoogleAuthenticatorEnabled : boolean ; } export class UpdateGoogleAuthenticatorKeyOutput implements IUpdateGoogleAuthenticatorKeyOutput { qrCodeSetupImageUrl ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . qrCodeSetupImageUrl = _data [ "qrCodeSetupImageUrl" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new UpdateGoogleAuthenticatorKeyOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "qrCodeSetupImageUrl" ] = this . qrCodeSetupImageUrl ; return data ; } } export interface IUpdateGoogleAuthenticatorKeyOutput { qrCodeSetupImageUrl : string | undefined ; } export class SendVerificationSmsInputDto implements ISendVerificationSmsInputDto { phoneNumber ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . phoneNumber = _data [ "phoneNumber" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new SendVerificationSmsInputDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "phoneNumber" ] = this . phoneNumber ; return data ; } } export interface ISendVerificationSmsInputDto { phoneNumber : string | undefined ; } export class VerifySmsCodeInputDto implements IVerifySmsCodeInputDto { code ! : string | undefined ; phoneNumber ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . code = _data [ "code" ] ; this . phoneNumber = _data [ "phoneNumber" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new VerifySmsCodeInputDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "code" ] = this . code ; data [ "phoneNumber" ] = this . phoneNumber ; return data ; } } export interface IVerifySmsCodeInputDto { code : string | undefined ; phoneNumber : string | undefined ; } export class ChangePasswordInput implements IChangePasswordInput { currentPassword ! : string ; newPassword ! : string ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . currentPassword = _data [ "currentPassword" ] ; this . newPassword = _data [ "newPassword" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new ChangePasswordInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "currentPassword" ] = this . currentPassword ; data [ "newPassword" ] = this . newPassword ; return data ; } } export interface IChangePasswordInput { currentPassword : string ; newPassword : string ; } export class UpdateProfilePictureInput implements IUpdateProfilePictureInput { fileToken ! : string | undefined ; x ! : number ; y ! : number ; width ! : number ; height ! : number ; useGravatarProfilePicture ! : boolean ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . fileToken = _data [ "fileToken" ] ; this . x = _data [ "x" ] ; this . y = _data [ "y" ] ; this . width = _data [ "width" ] ; this . height = _data [ "height" ] ; this . useGravatarProfilePicture = _data [ "useGravatarProfilePicture" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new UpdateProfilePictureInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "fileToken" ] = this . fileToken ; data [ "x" ] = this . x ; data [ "y" ] = this . y ; data [ "width" ] = this . width ; data [ "height" ] = this . height ; data [ "useGravatarProfilePicture" ] = this . useGravatarProfilePicture ; return data ; } } export interface IUpdateProfilePictureInput { fileToken : string | undefined ; x : number ; y : number ; width : number ; height : number ; useGravatarProfilePicture : boolean ; } export class GetPasswordComplexitySettingOutput implements IGetPasswordComplexitySettingOutput { setting ! : PasswordComplexitySetting ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . setting = _data [ "setting" ] ? PasswordComplexitySetting . fromJS ( _data [ "setting" ] ) : < any > undefined ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new GetPasswordComplexitySettingOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "setting" ] = this . setting ? this . setting . toJSON ( ) : < any > undefined ; return data ; } } export interface IGetPasswordComplexitySettingOutput { setting : PasswordComplexitySetting ; } export class GetProfilePictureOutput implements IGetProfilePictureOutput { profilePicture ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . profilePicture = _data [ "profilePicture" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new GetProfilePictureOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "profilePicture" ] = this . profilePicture ; return data ; } } export interface IGetProfilePictureOutput { profilePicture : string | undefined ; } export class ChangeUserLanguageDto implements IChangeUserLanguageDto { languageName ! : string ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . languageName = _data [ "languageName" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new ChangeUserLanguageDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "languageName" ] = this . languageName ; return data ; } } export interface IChangeUserLanguageDto { languageName : string ; } export class RoleListDto implements IRoleListDto { name ! : string | undefined ; displayName ! : string | undefined ; isStatic ! : boolean ; isDefault ! : boolean ; creationTime ! : DateTime ; id ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . name = _data [ "name" ] ; this . displayName = _data [ "displayName" ] ; this . isStatic = _data [ "isStatic" ] ; this . isDefault = _data [ "isDefault" ] ; this . creationTime = _data [ "creationTime" ] ? DateTime . fromISO ( _data [ "creationTime" ] . toString ( ) ) : < any > undefined ; this . id = _data [ "id" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new RoleListDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "name" ] = this . name ; data [ "displayName" ] = this . displayName ; data [ "isStatic" ] = this . isStatic ; data [ "isDefault" ] = this . isDefault ; data [ "creationTime" ] = this . creationTime ? this . creationTime . toString ( ) : < any > undefined ; data [ "id" ] = this . id ; return data ; } } export interface IRoleListDto { name : string | undefined ; displayName : string | undefined ; isStatic : boolean ; isDefault : boolean ; creationTime : DateTime ; id : number ; } export class ListResultDtoOfRoleListDto implements IListResultDtoOfRoleListDto { items ! : RoleListDto [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { if ( Array . isArray ( _data [ "items" ] ) ) { this . items = [ ] as any ; for ( let item of _data [ "items" ] ) this . items ! . push ( RoleListDto . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new ListResultDtoOfRoleListDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; if ( Array . isArray ( this . items ) ) { data [ "items" ] = [ ] ; for ( let item of this . items ) data [ "items" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IListResultDtoOfRoleListDto { items : RoleListDto [ ] | undefined ; } export class RoleEditDto implements IRoleEditDto { id ! : number | undefined ; displayName ! : string ; isDefault ! : boolean ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . id = _data [ "id" ] ; this . displayName = _data [ "displayName" ] ; this . isDefault = _data [ "isDefault" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new RoleEditDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "id" ] = this . id ; data [ "displayName" ] = this . displayName ; data [ "isDefault" ] = this . isDefault ; return data ; } } export interface IRoleEditDto { id : number | undefined ; displayName : string ; isDefault : boolean ; } export class FlatPermissionDto implements IFlatPermissionDto { parentName ! : string | undefined ; name ! : string | undefined ; displayName ! : string | undefined ; description ! : string | undefined ; isGrantedByDefault ! : boolean ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . parentName = _data [ "parentName" ] ; this . name = _data [ "name" ] ; this . displayName = _data [ "displayName" ] ; this . description = _data [ "description" ] ; this . isGrantedByDefault = _data [ "isGrantedByDefault" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new FlatPermissionDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "parentName" ] = this . parentName ; data [ "name" ] = this . name ; data [ "displayName" ] = this . displayName ; data [ "description" ] = this . description ; data [ "isGrantedByDefault" ] = this . isGrantedByDefault ; return data ; } } export interface IFlatPermissionDto { parentName : string | undefined ; name : string | undefined ; displayName : string | undefined ; description : string | undefined ; isGrantedByDefault : boolean ; } export class GetRoleForEditOutput implements IGetRoleForEditOutput { role ! : RoleEditDto ; permissions ! : FlatPermissionDto [ ] | undefined ; grantedPermissionNames ! : string [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . role = _data [ "role" ] ? RoleEditDto . fromJS ( _data [ "role" ] ) : < any > undefined ; if ( Array . isArray ( _data [ "permissions" ] ) ) { this . permissions = [ ] as any ; for ( let item of _data [ "permissions" ] ) this . permissions ! . push ( FlatPermissionDto . fromJS ( item ) ) ; } if ( Array . isArray ( _data [ "grantedPermissionNames" ] ) ) { this . grantedPermissionNames = [ ] as any ; for ( let item of _data [ "grantedPermissionNames" ] ) this . grantedPermissionNames ! . push ( item ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new GetRoleForEditOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "role" ] = this . role ? this . role . toJSON ( ) : < any > undefined ; if ( Array . isArray ( this . permissions ) ) { data [ "permissions" ] = [ ] ; for ( let item of this . permissions ) data [ "permissions" ] . push ( item . toJSON ( ) ) ; } if ( Array . isArray ( this . grantedPermissionNames ) ) { data [ "grantedPermissionNames" ] = [ ] ; for ( let item of this . grantedPermissionNames ) data [ "grantedPermissionNames" ] . push ( item ) ; } return data ; } } export interface IGetRoleForEditOutput { role : RoleEditDto ; permissions : FlatPermissionDto [ ] | undefined ; grantedPermissionNames : string [ ] | undefined ; } export class CreateOrUpdateRoleInput implements ICreateOrUpdateRoleInput { role ! : RoleEditDto ; grantedPermissionNames ! : string [ ] ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } if ( ! data ) { this . role = new RoleEditDto ( ) ; this . grantedPermissionNames = [ ] ; } } init ( _data ? ) { if ( _data ) { this . role = _data [ "role" ] ? RoleEditDto . fromJS ( _data [ "role" ] ) : new RoleEditDto ( ) ; if ( Array . isArray ( _data [ "grantedPermissionNames" ] ) ) { this . grantedPermissionNames = [ ] as any ; for ( let item of _data [ "grantedPermissionNames" ] ) this . grantedPermissionNames ! . push ( item ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new CreateOrUpdateRoleInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "role" ] = this . role ? this . role . toJSON ( ) : < any > undefined ; if ( Array . isArray ( this . grantedPermissionNames ) ) { data [ "grantedPermissionNames" ] = [ ] ; for ( let item of this . grantedPermissionNames ) data [ "grantedPermissionNames" ] . push ( item ) ; } return data ; } } export interface ICreateOrUpdateRoleInput { role : RoleEditDto ; grantedPermissionNames : string [ ] ; } export class UserLoginInfoDto implements IUserLoginInfoDto { name ! : string | undefined ; surname ! : string | undefined ; userName ! : string | undefined ; emailAddress ! : string | undefined ; profilePictureId ! : string | undefined ; id ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . name = _data [ "name" ] ; this . surname = _data [ "surname" ] ; this . userName = _data [ "userName" ] ; this . emailAddress = _data [ "emailAddress" ] ; this . profilePictureId = _data [ "profilePictureId" ] ; this . id = _data [ "id" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new UserLoginInfoDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "name" ] = this . name ; data [ "surname" ] = this . surname ; data [ "userName" ] = this . userName ; data [ "emailAddress" ] = this . emailAddress ; data [ "profilePictureId" ] = this . profilePictureId ; data [ "id" ] = this . id ; return data ; } } export interface IUserLoginInfoDto { name : string | undefined ; surname : string | undefined ; userName : string | undefined ; emailAddress : string | undefined ; profilePictureId : string | undefined ; id : number ; } export enum SubscriptionPaymentType { Manual = 0 , RecurringAutomatic = 1 , RecurringManual = 2 } export class EditionInfoDto implements IEditionInfoDto { displayName ! : string | undefined ; trialDayCount ! : number | undefined ; monthlyPrice ! : number | undefined ; annualPrice ! : number | undefined ; isHighestEdition ! : boolean ; isFree ! : boolean ; id ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . displayName = _data [ "displayName" ] ; this . trialDayCount = _data [ "trialDayCount" ] ; this . monthlyPrice = _data [ "monthlyPrice" ] ; this . annualPrice = _data [ "annualPrice" ] ; this . isHighestEdition = _data [ "isHighestEdition" ] ; this . isFree = _data [ "isFree" ] ; this . id = _data [ "id" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new EditionInfoDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "displayName" ] = this . displayName ; data [ "trialDayCount" ] = this . trialDayCount ; data [ "monthlyPrice" ] = this . monthlyPrice ; data [ "annualPrice" ] = this . annualPrice ; data [ "isHighestEdition" ] = this . isHighestEdition ; data [ "isFree" ] = this . isFree ; data [ "id" ] = this . id ; return data ; } } export interface IEditionInfoDto { displayName : string | undefined ; trialDayCount : number | undefined ; monthlyPrice : number | undefined ; annualPrice : number | undefined ; isHighestEdition : boolean ; isFree : boolean ; id : number ; } export class TenantLoginInfoDto implements ITenantLoginInfoDto { tenancyName ! : string | undefined ; name ! : string | undefined ; logoId ! : string | undefined ; logoFileType ! : string | undefined ; customCssId ! : string | undefined ; subscriptionEndDateUtc ! : DateTime | undefined ; isInTrialPeriod ! : boolean ; subscriptionPaymentType ! : SubscriptionPaymentType ; edition ! : EditionInfoDto ; creationTime ! : DateTime ; paymentPeriodType ! : PaymentPeriodType ; subscriptionDateString ! : string | undefined ; creationTimeString ! : string | undefined ; id ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . tenancyName = _data [ "tenancyName" ] ; this . name = _data [ "name" ] ; this . logoId = _data [ "logoId" ] ; this . logoFileType = _data [ "logoFileType" ] ; this . customCssId = _data [ "customCssId" ] ; this . subscriptionEndDateUtc = _data [ "subscriptionEndDateUtc" ] ? DateTime . fromISO ( _data [ "subscriptionEndDateUtc" ] . toString ( ) ) : < any > undefined ; this . isInTrialPeriod = _data [ "isInTrialPeriod" ] ; this . subscriptionPaymentType = _data [ "subscriptionPaymentType" ] ; this . edition = _data [ "edition" ] ? EditionInfoDto . fromJS ( _data [ "edition" ] ) : < any > undefined ; this . creationTime = _data [ "creationTime" ] ? DateTime . fromISO ( _data [ "creationTime" ] . toString ( ) ) : < any > undefined ; this . paymentPeriodType = _data [ "paymentPeriodType" ] ; this . subscriptionDateString = _data [ "subscriptionDateString" ] ; this . creationTimeString = _data [ "creationTimeString" ] ; this . id = _data [ "id" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new TenantLoginInfoDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "tenancyName" ] = this . tenancyName ; data [ "name" ] = this . name ; data [ "logoId" ] = this . logoId ; data [ "logoFileType" ] = this . logoFileType ; data [ "customCssId" ] = this . customCssId ; data [ "subscriptionEndDateUtc" ] = this . subscriptionEndDateUtc ? this . subscriptionEndDateUtc . toString ( ) : < any > undefined ; data [ "isInTrialPeriod" ] = this . isInTrialPeriod ; data [ "subscriptionPaymentType" ] = this . subscriptionPaymentType ; data [ "edition" ] = this . edition ? this . edition . toJSON ( ) : < any > undefined ; data [ "creationTime" ] = this . creationTime ? this . creationTime . toString ( ) : < any > undefined ; data [ "paymentPeriodType" ] = this . paymentPeriodType ; data [ "subscriptionDateString" ] = this . subscriptionDateString ; data [ "creationTimeString" ] = this . creationTimeString ; data [ "id" ] = this . id ; return data ; } } export interface ITenantLoginInfoDto { tenancyName : string | undefined ; name : string | undefined ; logoId : string | undefined ; logoFileType : string | undefined ; customCssId : string | undefined ; subscriptionEndDateUtc : DateTime | undefined ; isInTrialPeriod : boolean ; subscriptionPaymentType : SubscriptionPaymentType ; edition : EditionInfoDto ; creationTime : DateTime ; paymentPeriodType : PaymentPeriodType ; subscriptionDateString : string | undefined ; creationTimeString : string | undefined ; id : number ; } export class ApplicationInfoDto implements IApplicationInfoDto { version ! : string | undefined ; releaseDate ! : DateTime ; currency ! : string | undefined ; currencySign ! : string | undefined ; allowTenantsToChangeEmailSettings ! : boolean ; userDelegationIsEnabled ! : boolean ; features ! : { [ key ] : boolean ; } | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . version = _data [ "version" ] ; this . releaseDate = _data [ "releaseDate" ] ? DateTime . fromISO ( _data [ "releaseDate" ] . toString ( ) ) : < any > undefined ; this . currency = _data [ "currency" ] ; this . currencySign = _data [ "currencySign" ] ; this . allowTenantsToChangeEmailSettings = _data [ "allowTenantsToChangeEmailSettings" ] ; this . userDelegationIsEnabled = _data [ "userDelegationIsEnabled" ] ; if ( _data [ "features" ] ) { this . features = { } as any ; for ( let key in _data [ "features" ] ) { if ( _data [ "features" ] . hasOwnProperty ( key ) ) ( < any > this . features ) ! [ key ] = _data [ "features" ] [ key ] ; } } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new ApplicationInfoDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "version" ] = this . version ; data [ "releaseDate" ] = this . releaseDate ? this . releaseDate . toString ( ) : < any > undefined ; data [ "currency" ] = this . currency ; data [ "currencySign" ] = this . currencySign ; data [ "allowTenantsToChangeEmailSettings" ] = this . allowTenantsToChangeEmailSettings ; data [ "userDelegationIsEnabled" ] = this . userDelegationIsEnabled ; if ( this . features ) { data [ "features" ] = { } ; for ( let key in this . features ) { if ( this . features . hasOwnProperty ( key ) ) ( < any > data [ "features" ] ) [ key ] = this . features [ key ] ; } } return data ; } } export interface IApplicationInfoDto { version : string | undefined ; releaseDate : DateTime ; currency : string | undefined ; currencySign : string | undefined ; allowTenantsToChangeEmailSettings : boolean ; userDelegationIsEnabled : boolean ; features : { [ key ] : boolean ; } | undefined ; } export class ThemeLayoutSettingsDto implements IThemeLayoutSettingsDto { layoutType ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . layoutType = _data [ "layoutType" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new ThemeLayoutSettingsDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "layoutType" ] = this . layoutType ; return data ; } } export interface IThemeLayoutSettingsDto { layoutType : string | undefined ; } export class ThemeHeaderSettingsDto implements IThemeHeaderSettingsDto { desktopFixedHeader ! : boolean ; mobileFixedHeader ! : boolean ; headerSkin ! : string | undefined ; minimizeDesktopHeaderType ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . desktopFixedHeader = _data [ "desktopFixedHeader" ] ; this . mobileFixedHeader = _data [ "mobileFixedHeader" ] ; this . headerSkin = _data [ "headerSkin" ] ; this . minimizeDesktopHeaderType = _data [ "minimizeDesktopHeaderType" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new ThemeHeaderSettingsDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "desktopFixedHeader" ] = this . desktopFixedHeader ; data [ "mobileFixedHeader" ] = this . mobileFixedHeader ; data [ "headerSkin" ] = this . headerSkin ; data [ "minimizeDesktopHeaderType" ] = this . minimizeDesktopHeaderType ; return data ; } } export interface IThemeHeaderSettingsDto { desktopFixedHeader : boolean ; mobileFixedHeader : boolean ; headerSkin : string | undefined ; minimizeDesktopHeaderType : string | undefined ; } export class ThemeSubHeaderSettingsDto implements IThemeSubHeaderSettingsDto { fixedSubHeader ! : boolean ; subheaderStyle ! : string | undefined ; subheaderSize ! : number ; titleStlye ! : string | undefined ; containerStyle ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . fixedSubHeader = _data [ "fixedSubHeader" ] ; this . subheaderStyle = _data [ "subheaderStyle" ] ; this . subheaderSize = _data [ "subheaderSize" ] ; this . titleStlye = _data [ "titleStlye" ] ; this . containerStyle = _data [ "containerStyle" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new ThemeSubHeaderSettingsDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "fixedSubHeader" ] = this . fixedSubHeader ; data [ "subheaderStyle" ] = this . subheaderStyle ; data [ "subheaderSize" ] = this . subheaderSize ; data [ "titleStlye" ] = this . titleStlye ; data [ "containerStyle" ] = this . containerStyle ; return data ; } } export interface IThemeSubHeaderSettingsDto { fixedSubHeader : boolean ; subheaderStyle : string | undefined ; subheaderSize : number ; titleStlye : string | undefined ; containerStyle : string | undefined ; } export class ThemeMenuSettingsDto implements IThemeMenuSettingsDto { position ! : string | undefined ; asideSkin ! : string | undefined ; fixedAside ! : boolean ; allowAsideMinimizing ! : boolean ; defaultMinimizedAside ! : boolean ; submenuToggle ! : string | undefined ; searchActive ! : boolean ; enableSecondary ! : boolean ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . position = _data [ "position" ] ; this . asideSkin = _data [ "asideSkin" ] ; this . fixedAside = _data [ "fixedAside" ] ; this . allowAsideMinimizing = _data [ "allowAsideMinimizing" ] ; this . defaultMinimizedAside = _data [ "defaultMinimizedAside" ] ; this . submenuToggle = _data [ "submenuToggle" ] ; this . searchActive = _data [ "searchActive" ] ; this . enableSecondary = _data [ "enableSecondary" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new ThemeMenuSettingsDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "position" ] = this . position ; data [ "asideSkin" ] = this . asideSkin ; data [ "fixedAside" ] = this . fixedAside ; data [ "allowAsideMinimizing" ] = this . allowAsideMinimizing ; data [ "defaultMinimizedAside" ] = this . defaultMinimizedAside ; data [ "submenuToggle" ] = this . submenuToggle ; data [ "searchActive" ] = this . searchActive ; data [ "enableSecondary" ] = this . enableSecondary ; return data ; } } export interface IThemeMenuSettingsDto { position : string | undefined ; asideSkin : string | undefined ; fixedAside : boolean ; allowAsideMinimizing : boolean ; defaultMinimizedAside : boolean ; submenuToggle : string | undefined ; searchActive : boolean ; enableSecondary : boolean ; } export class ThemeFooterSettingsDto implements IThemeFooterSettingsDto { fixedFooter ! : boolean ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . fixedFooter = _data [ "fixedFooter" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new ThemeFooterSettingsDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "fixedFooter" ] = this . fixedFooter ; return data ; } } export interface IThemeFooterSettingsDto { fixedFooter : boolean ; } export class ThemeSettingsDto implements IThemeSettingsDto { theme ! : string | undefined ; layout ! : ThemeLayoutSettingsDto ; header ! : ThemeHeaderSettingsDto ; subHeader ! : ThemeSubHeaderSettingsDto ; menu ! : ThemeMenuSettingsDto ; footer ! : ThemeFooterSettingsDto ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . theme = _data [ "theme" ] ; this . layout = _data [ "layout" ] ? ThemeLayoutSettingsDto . fromJS ( _data [ "layout" ] ) : < any > undefined ; this . header = _data [ "header" ] ? ThemeHeaderSettingsDto . fromJS ( _data [ "header" ] ) : < any > undefined ; this . subHeader = _data [ "subHeader" ] ? ThemeSubHeaderSettingsDto . fromJS ( _data [ "subHeader" ] ) : < any > undefined ; this . menu = _data [ "menu" ] ? ThemeMenuSettingsDto . fromJS ( _data [ "menu" ] ) : < any > undefined ; this . footer = _data [ "footer" ] ? ThemeFooterSettingsDto . fromJS ( _data [ "footer" ] ) : < any > undefined ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new ThemeSettingsDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "theme" ] = this . theme ; data [ "layout" ] = this . layout ? this . layout . toJSON ( ) : < any > undefined ; data [ "header" ] = this . header ? this . header . toJSON ( ) : < any > undefined ; data [ "subHeader" ] = this . subHeader ? this . subHeader . toJSON ( ) : < any > undefined ; data [ "menu" ] = this . menu ? this . menu . toJSON ( ) : < any > undefined ; data [ "footer" ] = this . footer ? this . footer . toJSON ( ) : < any > undefined ; return data ; } } export interface IThemeSettingsDto { theme : string | undefined ; layout : ThemeLayoutSettingsDto ; header : ThemeHeaderSettingsDto ; subHeader : ThemeSubHeaderSettingsDto ; menu : ThemeMenuSettingsDto ; footer : ThemeFooterSettingsDto ; } export class UiCustomizationSettingsDto implements IUiCustomizationSettingsDto { baseSettings ! : ThemeSettingsDto ; isLeftMenuUsed ! : boolean ; isTopMenuUsed ! : boolean ; isTabMenuUsed ! : boolean ; allowMenuScroll ! : boolean ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . baseSettings = _data [ "baseSettings" ] ? ThemeSettingsDto . fromJS ( _data [ "baseSettings" ] ) : < any > undefined ; this . isLeftMenuUsed = _data [ "isLeftMenuUsed" ] ; this . isTopMenuUsed = _data [ "isTopMenuUsed" ] ; this . isTabMenuUsed = _data [ "isTabMenuUsed" ] ; this . allowMenuScroll = _data [ "allowMenuScroll" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new UiCustomizationSettingsDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "baseSettings" ] = this . baseSettings ? this . baseSettings . toJSON ( ) : < any > undefined ; data [ "isLeftMenuUsed" ] = this . isLeftMenuUsed ; data [ "isTopMenuUsed" ] = this . isTopMenuUsed ; data [ "isTabMenuUsed" ] = this . isTabMenuUsed ; data [ "allowMenuScroll" ] = this . allowMenuScroll ; return data ; } } export interface IUiCustomizationSettingsDto { baseSettings : ThemeSettingsDto ; isLeftMenuUsed : boolean ; isTopMenuUsed : boolean ; isTabMenuUsed : boolean ; allowMenuScroll : boolean ; } export class GetCurrentLoginInformationsOutput implements IGetCurrentLoginInformationsOutput { user ! : UserLoginInfoDto ; impersonatorUser ! : UserLoginInfoDto ; tenant ! : TenantLoginInfoDto ; impersonatorTenant ! : TenantLoginInfoDto ; application ! : ApplicationInfoDto ; theme ! : UiCustomizationSettingsDto ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . user = _data [ "user" ] ? UserLoginInfoDto . fromJS ( _data [ "user" ] ) : < any > undefined ; this . impersonatorUser = _data [ "impersonatorUser" ] ? UserLoginInfoDto . fromJS ( _data [ "impersonatorUser" ] ) : < any > undefined ; this . tenant = _data [ "tenant" ] ? TenantLoginInfoDto . fromJS ( _data [ "tenant" ] ) : < any > undefined ; this . impersonatorTenant = _data [ "impersonatorTenant" ] ? TenantLoginInfoDto . fromJS ( _data [ "impersonatorTenant" ] ) : < any > undefined ; this . application = _data [ "application" ] ? ApplicationInfoDto . fromJS ( _data [ "application" ] ) : < any > undefined ; this . theme = _data [ "theme" ] ? UiCustomizationSettingsDto . fromJS ( _data [ "theme" ] ) : < any > undefined ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new GetCurrentLoginInformationsOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "user" ] = this . user ? this . user . toJSON ( ) : < any > undefined ; data [ "impersonatorUser" ] = this . impersonatorUser ? this . impersonatorUser . toJSON ( ) : < any > undefined ; data [ "tenant" ] = this . tenant ? this . tenant . toJSON ( ) : < any > undefined ; data [ "impersonatorTenant" ] = this . impersonatorTenant ? this . impersonatorTenant . toJSON ( ) : < any > undefined ; data [ "application" ] = this . application ? this . application . toJSON ( ) : < any > undefined ; data [ "theme" ] = this . theme ? this . theme . toJSON ( ) : < any > undefined ; return data ; } } export interface IGetCurrentLoginInformationsOutput { user : UserLoginInfoDto ; impersonatorUser : UserLoginInfoDto ; tenant : TenantLoginInfoDto ; impersonatorTenant : TenantLoginInfoDto ; application : ApplicationInfoDto ; theme : UiCustomizationSettingsDto ; } export class UpdateUserSignInTokenOutput implements IUpdateUserSignInTokenOutput { signInToken ! : string | undefined ; encodedUserId ! : string | undefined ; encodedTenantId ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . signInToken = _data [ "signInToken" ] ; this . encodedUserId = _data [ "encodedUserId" ] ; this . encodedTenantId = _data [ "encodedTenantId" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new UpdateUserSignInTokenOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "signInToken" ] = this . signInToken ; data [ "encodedUserId" ] = this . encodedUserId ; data [ "encodedTenantId" ] = this . encodedTenantId ; return data ; } } export interface IUpdateUserSignInTokenOutput { signInToken : string | undefined ; encodedUserId : string | undefined ; encodedTenantId : string | undefined ; } export class StripeConfigurationDto implements IStripeConfigurationDto { publishableKey ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . publishableKey = _data [ "publishableKey" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new StripeConfigurationDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "publishableKey" ] = this . publishableKey ; return data ; } } export interface IStripeConfigurationDto { publishableKey : string | undefined ; } export class StripeCreatePaymentSessionInput implements IStripeCreatePaymentSessionInput { paymentId ! : number ; successUrl ! : string | undefined ; cancelUrl ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . paymentId = _data [ "paymentId" ] ; this . successUrl = _data [ "successUrl" ] ; this . cancelUrl = _data [ "cancelUrl" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new StripeCreatePaymentSessionInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "paymentId" ] = this . paymentId ; data [ "successUrl" ] = this . successUrl ; data [ "cancelUrl" ] = this . cancelUrl ; return data ; } } export interface IStripeCreatePaymentSessionInput { paymentId : number ; successUrl : string | undefined ; cancelUrl : string | undefined ; } export class StripePaymentResultOutput implements IStripePaymentResultOutput { paymentDone ! : boolean ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . paymentDone = _data [ "paymentDone" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new StripePaymentResultOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "paymentDone" ] = this . paymentDone ; return data ; } } export interface IStripePaymentResultOutput { paymentDone : boolean ; } export class TenantListDto implements ITenantListDto { tenancyName ! : string | undefined ; name ! : string | undefined ; editionDisplayName ! : string | undefined ; connectionString ! : string | undefined ; isActive ! : boolean ; creationTime ! : DateTime ; subscriptionEndDateUtc ! : DateTime | undefined ; editionId ! : number | undefined ; isInTrialPeriod ! : boolean ; id ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . tenancyName = _data [ "tenancyName" ] ; this . name = _data [ "name" ] ; this . editionDisplayName = _data [ "editionDisplayName" ] ; this . connectionString = _data [ "connectionString" ] ; this . isActive = _data [ "isActive" ] ; this . creationTime = _data [ "creationTime" ] ? DateTime . fromISO ( _data [ "creationTime" ] . toString ( ) ) : < any > undefined ; this . subscriptionEndDateUtc = _data [ "subscriptionEndDateUtc" ] ? DateTime . fromISO ( _data [ "subscriptionEndDateUtc" ] . toString ( ) ) : < any > undefined ; this . editionId = _data [ "editionId" ] ; this . isInTrialPeriod = _data [ "isInTrialPeriod" ] ; this . id = _data [ "id" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new TenantListDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "tenancyName" ] = this . tenancyName ; data [ "name" ] = this . name ; data [ "editionDisplayName" ] = this . editionDisplayName ; data [ "connectionString" ] = this . connectionString ; data [ "isActive" ] = this . isActive ; data [ "creationTime" ] = this . creationTime ? this . creationTime . toString ( ) : < any > undefined ; data [ "subscriptionEndDateUtc" ] = this . subscriptionEndDateUtc ? this . subscriptionEndDateUtc . toString ( ) : < any > undefined ; data [ "editionId" ] = this . editionId ; data [ "isInTrialPeriod" ] = this . isInTrialPeriod ; data [ "id" ] = this . id ; return data ; } } export interface ITenantListDto { tenancyName : string | undefined ; name : string | undefined ; editionDisplayName : string | undefined ; connectionString : string | undefined ; isActive : boolean ; creationTime : DateTime ; subscriptionEndDateUtc : DateTime | undefined ; editionId : number | undefined ; isInTrialPeriod : boolean ; id : number ; } export class PagedResultDtoOfTenantListDto implements IPagedResultDtoOfTenantListDto { totalCount ! : number ; items ! : TenantListDto [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . totalCount = _data [ "totalCount" ] ; if ( Array . isArray ( _data [ "items" ] ) ) { this . items = [ ] as any ; for ( let item of _data [ "items" ] ) this . items ! . push ( TenantListDto . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new PagedResultDtoOfTenantListDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "totalCount" ] = this . totalCount ; if ( Array . isArray ( this . items ) ) { data [ "items" ] = [ ] ; for ( let item of this . items ) data [ "items" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IPagedResultDtoOfTenantListDto { totalCount : number ; items : TenantListDto [ ] | undefined ; } export class CreateTenantInput implements ICreateTenantInput { tenancyName ! : string ; name ! : string ; adminEmailAddress ! : string ; adminPassword ! : string | undefined ; connectionString ! : string | undefined ; shouldChangePasswordOnNextLogin ! : boolean ; sendActivationEmail ! : boolean ; editionId ! : number | undefined ; isActive ! : boolean ; subscriptionEndDateUtc ! : DateTime | undefined ; isInTrialPeriod ! : boolean ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . tenancyName = _data [ "tenancyName" ] ; this . name = _data [ "name" ] ; this . adminEmailAddress = _data [ "adminEmailAddress" ] ; this . adminPassword = _data [ "adminPassword" ] ; this . connectionString = _data [ "connectionString" ] ; this . shouldChangePasswordOnNextLogin = _data [ "shouldChangePasswordOnNextLogin" ] ; this . sendActivationEmail = _data [ "sendActivationEmail" ] ; this . editionId = _data [ "editionId" ] ; this . isActive = _data [ "isActive" ] ; this . subscriptionEndDateUtc = _data [ "subscriptionEndDateUtc" ] ? DateTime . fromISO ( _data [ "subscriptionEndDateUtc" ] . toString ( ) ) : < any > undefined ; this . isInTrialPeriod = _data [ "isInTrialPeriod" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new CreateTenantInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "tenancyName" ] = this . tenancyName ; data [ "name" ] = this . name ; data [ "adminEmailAddress" ] = this . adminEmailAddress ; data [ "adminPassword" ] = this . adminPassword ; data [ "connectionString" ] = this . connectionString ; data [ "shouldChangePasswordOnNextLogin" ] = this . shouldChangePasswordOnNextLogin ; data [ "sendActivationEmail" ] = this . sendActivationEmail ; data [ "editionId" ] = this . editionId ; data [ "isActive" ] = this . isActive ; data [ "subscriptionEndDateUtc" ] = this . subscriptionEndDateUtc ? this . subscriptionEndDateUtc . toString ( ) : < any > undefined ; data [ "isInTrialPeriod" ] = this . isInTrialPeriod ; return data ; } } export interface ICreateTenantInput { tenancyName : string ; name : string ; adminEmailAddress : string ; adminPassword : string | undefined ; connectionString : string | undefined ; shouldChangePasswordOnNextLogin : boolean ; sendActivationEmail : boolean ; editionId : number | undefined ; isActive : boolean ; subscriptionEndDateUtc : DateTime | undefined ; isInTrialPeriod : boolean ; } export class TenantEditDto implements ITenantEditDto { tenancyName ! : string ; name ! : string ; connectionString ! : string | undefined ; editionId ! : number | undefined ; isActive ! : boolean ; subscriptionEndDateUtc ! : DateTime | undefined ; isInTrialPeriod ! : boolean ; id ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . tenancyName = _data [ "tenancyName" ] ; this . name = _data [ "name" ] ; this . connectionString = _data [ "connectionString" ] ; this . editionId = _data [ "editionId" ] ; this . isActive = _data [ "isActive" ] ; this . subscriptionEndDateUtc = _data [ "subscriptionEndDateUtc" ] ? DateTime . fromISO ( _data [ "subscriptionEndDateUtc" ] . toString ( ) ) : < any > undefined ; this . isInTrialPeriod = _data [ "isInTrialPeriod" ] ; this . id = _data [ "id" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new TenantEditDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "tenancyName" ] = this . tenancyName ; data [ "name" ] = this . name ; data [ "connectionString" ] = this . connectionString ; data [ "editionId" ] = this . editionId ; data [ "isActive" ] = this . isActive ; data [ "subscriptionEndDateUtc" ] = this . subscriptionEndDateUtc ? this . subscriptionEndDateUtc . toString ( ) : < any > undefined ; data [ "isInTrialPeriod" ] = this . isInTrialPeriod ; data [ "id" ] = this . id ; return data ; } } export interface ITenantEditDto { tenancyName : string ; name : string ; connectionString : string | undefined ; editionId : number | undefined ; isActive : boolean ; subscriptionEndDateUtc : DateTime | undefined ; isInTrialPeriod : boolean ; id : number ; } export class GetTenantFeaturesEditOutput implements IGetTenantFeaturesEditOutput { featureValues ! : NameValueDto [ ] | undefined ; features ! : FlatFeatureDto [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { if ( Array . isArray ( _data [ "featureValues" ] ) ) { this . featureValues = [ ] as any ; for ( let item of _data [ "featureValues" ] ) this . featureValues ! . push ( NameValueDto . fromJS ( item ) ) ; } if ( Array . isArray ( _data [ "features" ] ) ) { this . features = [ ] as any ; for ( let item of _data [ "features" ] ) this . features ! . push ( FlatFeatureDto . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new GetTenantFeaturesEditOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; if ( Array . isArray ( this . featureValues ) ) { data [ "featureValues" ] = [ ] ; for ( let item of this . featureValues ) data [ "featureValues" ] . push ( item . toJSON ( ) ) ; } if ( Array . isArray ( this . features ) ) { data [ "features" ] = [ ] ; for ( let item of this . features ) data [ "features" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IGetTenantFeaturesEditOutput { featureValues : NameValueDto [ ] | undefined ; features : FlatFeatureDto [ ] | undefined ; } export class UpdateTenantFeaturesInput implements IUpdateTenantFeaturesInput { id ! : number ; featureValues ! : NameValueDto [ ] ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } if ( ! data ) { this . featureValues = [ ] ; } } init ( _data ? ) { if ( _data ) { this . id = _data [ "id" ] ; if ( Array . isArray ( _data [ "featureValues" ] ) ) { this . featureValues = [ ] as any ; for ( let item of _data [ "featureValues" ] ) this . featureValues ! . push ( NameValueDto . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new UpdateTenantFeaturesInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "id" ] = this . id ; if ( Array . isArray ( this . featureValues ) ) { data [ "featureValues" ] = [ ] ; for ( let item of this . featureValues ) data [ "featureValues" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IUpdateTenantFeaturesInput { id : number ; featureValues : NameValueDto [ ] ; } export class EntityDto implements IEntityDto { id ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . id = _data [ "id" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new EntityDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "id" ] = this . id ; return data ; } } export interface IEntityDto { id : number ; } export class MemberActivity implements IMemberActivity { name ! : string | undefined ; earnings ! : string | undefined ; cases ! : number ; closed ! : number ; rate ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . name = _data [ "name" ] ; this . earnings = _data [ "earnings" ] ; this . cases = _data [ "cases" ] ; this . closed = _data [ "closed" ] ; this . rate = _data [ "rate" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new MemberActivity ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "name" ] = this . name ; data [ "earnings" ] = this . earnings ; data [ "cases" ] = this . cases ; data [ "closed" ] = this . closed ; data [ "rate" ] = this . rate ; return data ; } } export interface IMemberActivity { name : string | undefined ; earnings : string | undefined ; cases : number ; closed : number ; rate : string | undefined ; } export class GetMemberActivityOutput implements IGetMemberActivityOutput { memberActivities ! : MemberActivity [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { if ( Array . isArray ( _data [ "memberActivities" ] ) ) { this . memberActivities = [ ] as any ; for ( let item of _data [ "memberActivities" ] ) this . memberActivities ! . push ( MemberActivity . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new GetMemberActivityOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; if ( Array . isArray ( this . memberActivities ) ) { data [ "memberActivities" ] = [ ] ; for ( let item of this . memberActivities ) data [ "memberActivities" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IGetMemberActivityOutput { memberActivities : MemberActivity [ ] | undefined ; } export enum SalesSummaryDatePeriod { Daily = 1 , Weekly = 2 , Monthly = 3 } export class SalesSummaryData implements ISalesSummaryData { period ! : string | undefined ; sales ! : number ; profit ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . period = _data [ "period" ] ; this . sales = _data [ "sales" ] ; this . profit = _data [ "profit" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new SalesSummaryData ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "period" ] = this . period ; data [ "sales" ] = this . sales ; data [ "profit" ] = this . profit ; return data ; } } export interface ISalesSummaryData { period : string | undefined ; sales : number ; profit : number ; } export class GetDashboardDataOutput implements IGetDashboardDataOutput { totalProfit ! : number ; newFeedbacks ! : number ; newOrders ! : number ; newUsers ! : number ; salesSummary ! : SalesSummaryData [ ] | undefined ; totalSales ! : number ; revenue ! : number ; expenses ! : number ; growth ! : number ; transactionPercent ! : number ; newVisitPercent ! : number ; bouncePercent ! : number ; dailySales ! : number [ ] | undefined ; profitShares ! : number [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . totalProfit = _data [ "totalProfit" ] ; this . newFeedbacks = _data [ "newFeedbacks" ] ; this . newOrders = _data [ "newOrders" ] ; this . newUsers = _data [ "newUsers" ] ; if ( Array . isArray ( _data [ "salesSummary" ] ) ) { this . salesSummary = [ ] as any ; for ( let item of _data [ "salesSummary" ] ) this . salesSummary ! . push ( SalesSummaryData . fromJS ( item ) ) ; } this . totalSales = _data [ "totalSales" ] ; this . revenue = _data [ "revenue" ] ; this . expenses = _data [ "expenses" ] ; this . growth = _data [ "growth" ] ; this . transactionPercent = _data [ "transactionPercent" ] ; this . newVisitPercent = _data [ "newVisitPercent" ] ; this . bouncePercent = _data [ "bouncePercent" ] ; if ( Array . isArray ( _data [ "dailySales" ] ) ) { this . dailySales = [ ] as any ; for ( let item of _data [ "dailySales" ] ) this . dailySales ! . push ( item ) ; } if ( Array . isArray ( _data [ "profitShares" ] ) ) { this . profitShares = [ ] as any ; for ( let item of _data [ "profitShares" ] ) this . profitShares ! . push ( item ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new GetDashboardDataOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "totalProfit" ] = this . totalProfit ; data [ "newFeedbacks" ] = this . newFeedbacks ; data [ "newOrders" ] = this . newOrders ; data [ "newUsers" ] = this . newUsers ; if ( Array . isArray ( this . salesSummary ) ) { data [ "salesSummary" ] = [ ] ; for ( let item of this . salesSummary ) data [ "salesSummary" ] . push ( item . toJSON ( ) ) ; } data [ "totalSales" ] = this . totalSales ; data [ "revenue" ] = this . revenue ; data [ "expenses" ] = this . expenses ; data [ "growth" ] = this . growth ; data [ "transactionPercent" ] = this . transactionPercent ; data [ "newVisitPercent" ] = this . newVisitPercent ; data [ "bouncePercent" ] = this . bouncePercent ; if ( Array . isArray ( this . dailySales ) ) { data [ "dailySales" ] = [ ] ; for ( let item of this . dailySales ) data [ "dailySales" ] . push ( item ) ; } if ( Array . isArray ( this . profitShares ) ) { data [ "profitShares" ] = [ ] ; for ( let item of this . profitShares ) data [ "profitShares" ] . push ( item ) ; } return data ; } } export interface IGetDashboardDataOutput { totalProfit : number ; newFeedbacks : number ; newOrders : number ; newUsers : number ; salesSummary : SalesSummaryData [ ] | undefined ; totalSales : number ; revenue : number ; expenses : number ; growth : number ; transactionPercent : number ; newVisitPercent : number ; bouncePercent : number ; dailySales : number [ ] | undefined ; profitShares : number [ ] | undefined ; } export class GetTopStatsOutput implements IGetTopStatsOutput { totalProfit ! : number ; newFeedbacks ! : number ; newOrders ! : number ; newUsers ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . totalProfit = _data [ "totalProfit" ] ; this . newFeedbacks = _data [ "newFeedbacks" ] ; this . newOrders = _data [ "newOrders" ] ; this . newUsers = _data [ "newUsers" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new GetTopStatsOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "totalProfit" ] = this . totalProfit ; data [ "newFeedbacks" ] = this . newFeedbacks ; data [ "newOrders" ] = this . newOrders ; data [ "newUsers" ] = this . newUsers ; return data ; } } export interface IGetTopStatsOutput { totalProfit : number ; newFeedbacks : number ; newOrders : number ; newUsers : number ; } export class GetProfitShareOutput implements IGetProfitShareOutput { profitShares ! : number [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { if ( Array . isArray ( _data [ "profitShares" ] ) ) { this . profitShares = [ ] as any ; for ( let item of _data [ "profitShares" ] ) this . profitShares ! . push ( item ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new GetProfitShareOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; if ( Array . isArray ( this . profitShares ) ) { data [ "profitShares" ] = [ ] ; for ( let item of this . profitShares ) data [ "profitShares" ] . push ( item ) ; } return data ; } } export interface IGetProfitShareOutput { profitShares : number [ ] | undefined ; } export class GetDailySalesOutput implements IGetDailySalesOutput { dailySales ! : number [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { if ( Array . isArray ( _data [ "dailySales" ] ) ) { this . dailySales = [ ] as any ; for ( let item of _data [ "dailySales" ] ) this . dailySales ! . push ( item ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new GetDailySalesOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; if ( Array . isArray ( this . dailySales ) ) { data [ "dailySales" ] = [ ] ; for ( let item of this . dailySales ) data [ "dailySales" ] . push ( item ) ; } return data ; } } export interface IGetDailySalesOutput { dailySales : number [ ] | undefined ; } export class GetSalesSummaryOutput implements IGetSalesSummaryOutput { totalSales ! : number ; revenue ! : number ; expenses ! : number ; growth ! : number ; salesSummary ! : SalesSummaryData [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . totalSales = _data [ "totalSales" ] ; this . revenue = _data [ "revenue" ] ; this . expenses = _data [ "expenses" ] ; this . growth = _data [ "growth" ] ; if ( Array . isArray ( _data [ "salesSummary" ] ) ) { this . salesSummary = [ ] as any ; for ( let item of _data [ "salesSummary" ] ) this . salesSummary ! . push ( SalesSummaryData . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new GetSalesSummaryOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "totalSales" ] = this . totalSales ; data [ "revenue" ] = this . revenue ; data [ "expenses" ] = this . expenses ; data [ "growth" ] = this . growth ; if ( Array . isArray ( this . salesSummary ) ) { data [ "salesSummary" ] = [ ] ; for ( let item of this . salesSummary ) data [ "salesSummary" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IGetSalesSummaryOutput { totalSales : number ; revenue : number ; expenses : number ; growth : number ; salesSummary : SalesSummaryData [ ] | undefined ; } export class RegionalStatCountry implements IRegionalStatCountry { countryName ! : string | undefined ; sales ! : number ; change ! : number [ ] | undefined ; averagePrice ! : number ; totalPrice ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . countryName = _data [ "countryName" ] ; this . sales = _data [ "sales" ] ; if ( Array . isArray ( _data [ "change" ] ) ) { this . change = [ ] as any ; for ( let item of _data [ "change" ] ) this . change ! . push ( item ) ; } this . averagePrice = _data [ "averagePrice" ] ; this . totalPrice = _data [ "totalPrice" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new RegionalStatCountry ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "countryName" ] = this . countryName ; data [ "sales" ] = this . sales ; if ( Array . isArray ( this . change ) ) { data [ "change" ] = [ ] ; for ( let item of this . change ) data [ "change" ] . push ( item ) ; } data [ "averagePrice" ] = this . averagePrice ; data [ "totalPrice" ] = this . totalPrice ; return data ; } } export interface IRegionalStatCountry { countryName : string | undefined ; sales : number ; change : number [ ] | undefined ; averagePrice : number ; totalPrice : number ; } export class GetRegionalStatsOutput implements IGetRegionalStatsOutput { stats ! : RegionalStatCountry [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { if ( Array . isArray ( _data [ "stats" ] ) ) { this . stats = [ ] as any ; for ( let item of _data [ "stats" ] ) this . stats ! . push ( RegionalStatCountry . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new GetRegionalStatsOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; if ( Array . isArray ( this . stats ) ) { data [ "stats" ] = [ ] ; for ( let item of this . stats ) data [ "stats" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IGetRegionalStatsOutput { stats : RegionalStatCountry [ ] | undefined ; } export class GetGeneralStatsOutput implements IGetGeneralStatsOutput { transactionPercent ! : number ; newVisitPercent ! : number ; bouncePercent ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . transactionPercent = _data [ "transactionPercent" ] ; this . newVisitPercent = _data [ "newVisitPercent" ] ; this . bouncePercent = _data [ "bouncePercent" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new GetGeneralStatsOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "transactionPercent" ] = this . transactionPercent ; data [ "newVisitPercent" ] = this . newVisitPercent ; data [ "bouncePercent" ] = this . bouncePercent ; return data ; } } export interface IGetGeneralStatsOutput { transactionPercent : number ; newVisitPercent : number ; bouncePercent : number ; } export enum SubscriptionStartType { Free = 1 , Trial = 2 , Paid = 3 } export class RegisterTenantInput implements IRegisterTenantInput { tenancyName ! : string ; name ! : string ; adminEmailAddress ! : string ; adminPassword ! : string | undefined ; captchaResponse ! : string | undefined ; subscriptionStartType ! : SubscriptionStartType ; editionId ! : number | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . tenancyName = _data [ "tenancyName" ] ; this . name = _data [ "name" ] ; this . adminEmailAddress = _data [ "adminEmailAddress" ] ; this . adminPassword = _data [ "adminPassword" ] ; this . captchaResponse = _data [ "captchaResponse" ] ; this . subscriptionStartType = _data [ "subscriptionStartType" ] ; this . editionId = _data [ "editionId" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new RegisterTenantInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "tenancyName" ] = this . tenancyName ; data [ "name" ] = this . name ; data [ "adminEmailAddress" ] = this . adminEmailAddress ; data [ "adminPassword" ] = this . adminPassword ; data [ "captchaResponse" ] = this . captchaResponse ; data [ "subscriptionStartType" ] = this . subscriptionStartType ; data [ "editionId" ] = this . editionId ; return data ; } } export interface IRegisterTenantInput { tenancyName : string ; name : string ; adminEmailAddress : string ; adminPassword : string | undefined ; captchaResponse : string | undefined ; subscriptionStartType : SubscriptionStartType ; editionId : number | undefined ; } export class RegisterTenantOutput implements IRegisterTenantOutput { tenantId ! : number ; tenancyName ! : string | undefined ; name ! : string | undefined ; userName ! : string | undefined ; emailAddress ! : string | undefined ; isTenantActive ! : boolean ; isActive ! : boolean ; isEmailConfirmationRequired ! : boolean ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . tenantId = _data [ "tenantId" ] ; this . tenancyName = _data [ "tenancyName" ] ; this . name = _data [ "name" ] ; this . userName = _data [ "userName" ] ; this . emailAddress = _data [ "emailAddress" ] ; this . isTenantActive = _data [ "isTenantActive" ] ; this . isActive = _data [ "isActive" ] ; this . isEmailConfirmationRequired = _data [ "isEmailConfirmationRequired" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new RegisterTenantOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "tenantId" ] = this . tenantId ; data [ "tenancyName" ] = this . tenancyName ; data [ "name" ] = this . name ; data [ "userName" ] = this . userName ; data [ "emailAddress" ] = this . emailAddress ; data [ "isTenantActive" ] = this . isTenantActive ; data [ "isActive" ] = this . isActive ; data [ "isEmailConfirmationRequired" ] = this . isEmailConfirmationRequired ; return data ; } } export interface IRegisterTenantOutput { tenantId : number ; tenancyName : string | undefined ; name : string | undefined ; userName : string | undefined ; emailAddress : string | undefined ; isTenantActive : boolean ; isActive : boolean ; isEmailConfirmationRequired : boolean ; } export class FlatFeatureSelectDto implements IFlatFeatureSelectDto { parentName ! : string | undefined ; name ! : string | undefined ; displayName ! : string | undefined ; description ! : string | undefined ; defaultValue ! : string | undefined ; inputType ! : IInputType ; textHtmlColor ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . parentName = _data [ "parentName" ] ; this . name = _data [ "name" ] ; this . displayName = _data [ "displayName" ] ; this . description = _data [ "description" ] ; this . defaultValue = _data [ "defaultValue" ] ; this . inputType = _data [ "inputType" ] ? IInputType . fromJS ( _data [ "inputType" ] ) : < any > undefined ; this . textHtmlColor = _data [ "textHtmlColor" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new FlatFeatureSelectDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "parentName" ] = this . parentName ; data [ "name" ] = this . name ; data [ "displayName" ] = this . displayName ; data [ "description" ] = this . description ; data [ "defaultValue" ] = this . defaultValue ; data [ "inputType" ] = this . inputType ? this . inputType . toJSON ( ) : < any > undefined ; data [ "textHtmlColor" ] = this . textHtmlColor ; return data ; } } export interface IFlatFeatureSelectDto { parentName : string | undefined ; name : string | undefined ; displayName : string | undefined ; description : string | undefined ; defaultValue : string | undefined ; inputType : IInputType ; textHtmlColor : string | undefined ; } export class EditionWithFeaturesDto implements IEditionWithFeaturesDto { edition ! : EditionSelectDto ; featureValues ! : NameValueDto [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . edition = _data [ "edition" ] ? EditionSelectDto . fromJS ( _data [ "edition" ] ) : < any > undefined ; if ( Array . isArray ( _data [ "featureValues" ] ) ) { this . featureValues = [ ] as any ; for ( let item of _data [ "featureValues" ] ) this . featureValues ! . push ( NameValueDto . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new EditionWithFeaturesDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "edition" ] = this . edition ? this . edition . toJSON ( ) : < any > undefined ; if ( Array . isArray ( this . featureValues ) ) { data [ "featureValues" ] = [ ] ; for ( let item of this . featureValues ) data [ "featureValues" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IEditionWithFeaturesDto { edition : EditionSelectDto ; featureValues : NameValueDto [ ] | undefined ; } export class EditionsSelectOutput implements IEditionsSelectOutput { allFeatures ! : FlatFeatureSelectDto [ ] | undefined ; editionsWithFeatures ! : EditionWithFeaturesDto [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { if ( Array . isArray ( _data [ "allFeatures" ] ) ) { this . allFeatures = [ ] as any ; for ( let item of _data [ "allFeatures" ] ) this . allFeatures ! . push ( FlatFeatureSelectDto . fromJS ( item ) ) ; } if ( Array . isArray ( _data [ "editionsWithFeatures" ] ) ) { this . editionsWithFeatures = [ ] as any ; for ( let item of _data [ "editionsWithFeatures" ] ) this . editionsWithFeatures ! . push ( EditionWithFeaturesDto . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new EditionsSelectOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; if ( Array . isArray ( this . allFeatures ) ) { data [ "allFeatures" ] = [ ] ; for ( let item of this . allFeatures ) data [ "allFeatures" ] . push ( item . toJSON ( ) ) ; } if ( Array . isArray ( this . editionsWithFeatures ) ) { data [ "editionsWithFeatures" ] = [ ] ; for ( let item of this . editionsWithFeatures ) data [ "editionsWithFeatures" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IEditionsSelectOutput { allFeatures : FlatFeatureSelectDto [ ] | undefined ; editionsWithFeatures : EditionWithFeaturesDto [ ] | undefined ; } export class TenantUserManagementSettingsEditDto implements ITenantUserManagementSettingsEditDto { allowSelfRegistration ! : boolean ; isNewRegisteredUserActiveByDefault ! : boolean ; isEmailConfirmationRequiredForLogin ! : boolean ; useCaptchaOnRegistration ! : boolean ; useCaptchaOnLogin ! : boolean ; isCookieConsentEnabled ! : boolean ; isQuickThemeSelectEnabled ! : boolean ; allowUsingGravatarProfilePicture ! : boolean ; sessionTimeOutSettings ! : SessionTimeOutSettingsEditDto ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . allowSelfRegistration = _data [ "allowSelfRegistration" ] ; this . isNewRegisteredUserActiveByDefault = _data [ "isNewRegisteredUserActiveByDefault" ] ; this . isEmailConfirmationRequiredForLogin = _data [ "isEmailConfirmationRequiredForLogin" ] ; this . useCaptchaOnRegistration = _data [ "useCaptchaOnRegistration" ] ; this . useCaptchaOnLogin = _data [ "useCaptchaOnLogin" ] ; this . isCookieConsentEnabled = _data [ "isCookieConsentEnabled" ] ; this . isQuickThemeSelectEnabled = _data [ "isQuickThemeSelectEnabled" ] ; this . allowUsingGravatarProfilePicture = _data [ "allowUsingGravatarProfilePicture" ] ; this . sessionTimeOutSettings = _data [ "sessionTimeOutSettings" ] ? SessionTimeOutSettingsEditDto . fromJS ( _data [ "sessionTimeOutSettings" ] ) : < any > undefined ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new TenantUserManagementSettingsEditDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "allowSelfRegistration" ] = this . allowSelfRegistration ; data [ "isNewRegisteredUserActiveByDefault" ] = this . isNewRegisteredUserActiveByDefault ; data [ "isEmailConfirmationRequiredForLogin" ] = this . isEmailConfirmationRequiredForLogin ; data [ "useCaptchaOnRegistration" ] = this . useCaptchaOnRegistration ; data [ "useCaptchaOnLogin" ] = this . useCaptchaOnLogin ; data [ "isCookieConsentEnabled" ] = this . isCookieConsentEnabled ; data [ "isQuickThemeSelectEnabled" ] = this . isQuickThemeSelectEnabled ; data [ "allowUsingGravatarProfilePicture" ] = this . allowUsingGravatarProfilePicture ; data [ "sessionTimeOutSettings" ] = this . sessionTimeOutSettings ? this . sessionTimeOutSettings . toJSON ( ) : < any > undefined ; return data ; } } export interface ITenantUserManagementSettingsEditDto { allowSelfRegistration : boolean ; isNewRegisteredUserActiveByDefault : boolean ; isEmailConfirmationRequiredForLogin : boolean ; useCaptchaOnRegistration : boolean ; useCaptchaOnLogin : boolean ; isCookieConsentEnabled : boolean ; isQuickThemeSelectEnabled : boolean ; allowUsingGravatarProfilePicture : boolean ; sessionTimeOutSettings : SessionTimeOutSettingsEditDto ; } export class TenantEmailSettingsEditDto implements ITenantEmailSettingsEditDto { useHostDefaultEmailSettings ! : boolean ; defaultFromAddress ! : string | undefined ; defaultFromDisplayName ! : string | undefined ; smtpHost ! : string | undefined ; smtpPort ! : number ; smtpUserName ! : string | undefined ; smtpPassword ! : string | undefined ; smtpDomain ! : string | undefined ; smtpEnableSsl ! : boolean ; smtpUseDefaultCredentials ! : boolean ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . useHostDefaultEmailSettings = _data [ "useHostDefaultEmailSettings" ] ; this . defaultFromAddress = _data [ "defaultFromAddress" ] ; this . defaultFromDisplayName = _data [ "defaultFromDisplayName" ] ; this . smtpHost = _data [ "smtpHost" ] ; this . smtpPort = _data [ "smtpPort" ] ; this . smtpUserName = _data [ "smtpUserName" ] ; this . smtpPassword = _data [ "smtpPassword" ] ; this . smtpDomain = _data [ "smtpDomain" ] ; this . smtpEnableSsl = _data [ "smtpEnableSsl" ] ; this . smtpUseDefaultCredentials = _data [ "smtpUseDefaultCredentials" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new TenantEmailSettingsEditDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "useHostDefaultEmailSettings" ] = this . useHostDefaultEmailSettings ; data [ "defaultFromAddress" ] = this . defaultFromAddress ; data [ "defaultFromDisplayName" ] = this . defaultFromDisplayName ; data [ "smtpHost" ] = this . smtpHost ; data [ "smtpPort" ] = this . smtpPort ; data [ "smtpUserName" ] = this . smtpUserName ; data [ "smtpPassword" ] = this . smtpPassword ; data [ "smtpDomain" ] = this . smtpDomain ; data [ "smtpEnableSsl" ] = this . smtpEnableSsl ; data [ "smtpUseDefaultCredentials" ] = this . smtpUseDefaultCredentials ; return data ; } } export interface ITenantEmailSettingsEditDto { useHostDefaultEmailSettings : boolean ; defaultFromAddress : string | undefined ; defaultFromDisplayName : string | undefined ; smtpHost : string | undefined ; smtpPort : number ; smtpUserName : string | undefined ; smtpPassword : string | undefined ; smtpDomain : string | undefined ; smtpEnableSsl : boolean ; smtpUseDefaultCredentials : boolean ; } export class LdapSettingsEditDto implements ILdapSettingsEditDto { isModuleEnabled ! : boolean ; isEnabled ! : boolean ; domain ! : string | undefined ; userName ! : string | undefined ; password ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . isModuleEnabled = _data [ "isModuleEnabled" ] ; this . isEnabled = _data [ "isEnabled" ] ; this . domain = _data [ "domain" ] ; this . userName = _data [ "userName" ] ; this . password = _data [ "password" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new LdapSettingsEditDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "isModuleEnabled" ] = this . isModuleEnabled ; data [ "isEnabled" ] = this . isEnabled ; data [ "domain" ] = this . domain ; data [ "userName" ] = this . userName ; data [ "password" ] = this . password ; return data ; } } export interface ILdapSettingsEditDto { isModuleEnabled : boolean ; isEnabled : boolean ; domain : string | undefined ; userName : string | undefined ; password : string | undefined ; } export class TenantBillingSettingsEditDto implements ITenantBillingSettingsEditDto { legalName ! : string | undefined ; address ! : string | undefined ; taxVatNo ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . legalName = _data [ "legalName" ] ; this . address = _data [ "address" ] ; this . taxVatNo = _data [ "taxVatNo" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new TenantBillingSettingsEditDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "legalName" ] = this . legalName ; data [ "address" ] = this . address ; data [ "taxVatNo" ] = this . taxVatNo ; return data ; } } export interface ITenantBillingSettingsEditDto { legalName : string | undefined ; address : string | undefined ; taxVatNo : string | undefined ; } export class TenantOtherSettingsEditDto implements ITenantOtherSettingsEditDto { isQuickThemeSelectEnabled ! : boolean ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . isQuickThemeSelectEnabled = _data [ "isQuickThemeSelectEnabled" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new TenantOtherSettingsEditDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "isQuickThemeSelectEnabled" ] = this . isQuickThemeSelectEnabled ; return data ; } } export interface ITenantOtherSettingsEditDto { isQuickThemeSelectEnabled : boolean ; } export class TenantSettingsEditDto implements ITenantSettingsEditDto { general ! : GeneralSettingsEditDto ; userManagement ! : TenantUserManagementSettingsEditDto ; email ! : TenantEmailSettingsEditDto ; ldap ! : LdapSettingsEditDto ; security ! : SecuritySettingsEditDto ; billing ! : TenantBillingSettingsEditDto ; otherSettings ! : TenantOtherSettingsEditDto ; externalLoginProviderSettings ! : ExternalLoginProviderSettingsEditDto ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } if ( ! data ) { this . userManagement = new TenantUserManagementSettingsEditDto ( ) ; this . security = new SecuritySettingsEditDto ( ) ; } } init ( _data ? ) { if ( _data ) { this . general = _data [ "general" ] ? GeneralSettingsEditDto . fromJS ( _data [ "general" ] ) : < any > undefined ; this . userManagement = _data [ "userManagement" ] ? TenantUserManagementSettingsEditDto . fromJS ( _data [ "userManagement" ] ) : new TenantUserManagementSettingsEditDto ( ) ; this . email = _data [ "email" ] ? TenantEmailSettingsEditDto . fromJS ( _data [ "email" ] ) : < any > undefined ; this . ldap = _data [ "ldap" ] ? LdapSettingsEditDto . fromJS ( _data [ "ldap" ] ) : < any > undefined ; this . security = _data [ "security" ] ? SecuritySettingsEditDto . fromJS ( _data [ "security" ] ) : new SecuritySettingsEditDto ( ) ; this . billing = _data [ "billing" ] ? TenantBillingSettingsEditDto . fromJS ( _data [ "billing" ] ) : < any > undefined ; this . otherSettings = _data [ "otherSettings" ] ? TenantOtherSettingsEditDto . fromJS ( _data [ "otherSettings" ] ) : < any > undefined ; this . externalLoginProviderSettings = _data [ "externalLoginProviderSettings" ] ? ExternalLoginProviderSettingsEditDto . fromJS ( _data [ "externalLoginProviderSettings" ] ) : < any > undefined ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new TenantSettingsEditDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "general" ] = this . general ? this . general . toJSON ( ) : < any > undefined ; data [ "userManagement" ] = this . userManagement ? this . userManagement . toJSON ( ) : < any > undefined ; data [ "email" ] = this . email ? this . email . toJSON ( ) : < any > undefined ; data [ "ldap" ] = this . ldap ? this . ldap . toJSON ( ) : < any > undefined ; data [ "security" ] = this . security ? this . security . toJSON ( ) : < any > undefined ; data [ "billing" ] = this . billing ? this . billing . toJSON ( ) : < any > undefined ; data [ "otherSettings" ] = this . otherSettings ? this . otherSettings . toJSON ( ) : < any > undefined ; data [ "externalLoginProviderSettings" ] = this . externalLoginProviderSettings ? this . externalLoginProviderSettings . toJSON ( ) : < any > undefined ; return data ; } } export interface ITenantSettingsEditDto { general : GeneralSettingsEditDto ; userManagement : TenantUserManagementSettingsEditDto ; email : TenantEmailSettingsEditDto ; ldap : LdapSettingsEditDto ; security : SecuritySettingsEditDto ; billing : TenantBillingSettingsEditDto ; otherSettings : TenantOtherSettingsEditDto ; externalLoginProviderSettings : ExternalLoginProviderSettingsEditDto ; } export enum SettingScopes { Application = 1 , Tenant = 2 , User = 4 , All = 7 } export class ListResultDtoOfNameValueDto implements IListResultDtoOfNameValueDto { items ! : NameValueDto [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { if ( Array . isArray ( _data [ "items" ] ) ) { this . items = [ ] as any ; for ( let item of _data [ "items" ] ) this . items ! . push ( NameValueDto . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new ListResultDtoOfNameValueDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; if ( Array . isArray ( this . items ) ) { data [ "items" ] = [ ] ; for ( let item of this . items ) data [ "items" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IListResultDtoOfNameValueDto { items : NameValueDto [ ] | undefined ; } export class AuthenticateModel implements IAuthenticateModel { userNameOrEmailAddress ! : string ; password ! : string ; twoFactorVerificationCode ! : string | undefined ; rememberClient ! : boolean ; twoFactorRememberClientToken ! : string | undefined ; singleSignIn ! : boolean | undefined ; returnUrl ! : string | undefined ; captchaResponse ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . userNameOrEmailAddress = _data [ "userNameOrEmailAddress" ] ; this . password = _data [ "password" ] ; this . twoFactorVerificationCode = _data [ "twoFactorVerificationCode" ] ; this . rememberClient = _data [ "rememberClient" ] ; this . twoFactorRememberClientToken = _data [ "twoFactorRememberClientToken" ] ; this . singleSignIn = _data [ "singleSignIn" ] ; this . returnUrl = _data [ "returnUrl" ] ; this . captchaResponse = _data [ "captchaResponse" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new AuthenticateModel ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "userNameOrEmailAddress" ] = this . userNameOrEmailAddress ; data [ "password" ] = this . password ; data [ "twoFactorVerificationCode" ] = this . twoFactorVerificationCode ; data [ "rememberClient" ] = this . rememberClient ; data [ "twoFactorRememberClientToken" ] = this . twoFactorRememberClientToken ; data [ "singleSignIn" ] = this . singleSignIn ; data [ "returnUrl" ] = this . returnUrl ; data [ "captchaResponse" ] = this . captchaResponse ; return data ; } } export interface IAuthenticateModel { userNameOrEmailAddress : string ; password : string ; twoFactorVerificationCode : string | undefined ; rememberClient : boolean ; twoFactorRememberClientToken : string | undefined ; singleSignIn : boolean | undefined ; returnUrl : string | undefined ; captchaResponse : string | undefined ; } export class AuthenticateResultModel implements IAuthenticateResultModel { accessToken ! : string | undefined ; encryptedAccessToken ! : string | undefined ; expireInSeconds ! : number ; shouldResetPassword ! : boolean ; passwordResetCode ! : string | undefined ; userId ! : number ; requiresTwoFactorVerification ! : boolean ; twoFactorAuthProviders ! : string [ ] | undefined ; twoFactorRememberClientToken ! : string | undefined ; returnUrl ! : string | undefined ; refreshToken ! : string | undefined ; refreshTokenExpireInSeconds ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . accessToken = _data [ "accessToken" ] ; this . encryptedAccessToken = _data [ "encryptedAccessToken" ] ; this . expireInSeconds = _data [ "expireInSeconds" ] ; this . shouldResetPassword = _data [ "shouldResetPassword" ] ; this . passwordResetCode = _data [ "passwordResetCode" ] ; this . userId = _data [ "userId" ] ; this . requiresTwoFactorVerification = _data [ "requiresTwoFactorVerification" ] ; if ( Array . isArray ( _data [ "twoFactorAuthProviders" ] ) ) { this . twoFactorAuthProviders = [ ] as any ; for ( let item of _data [ "twoFactorAuthProviders" ] ) this . twoFactorAuthProviders ! . push ( item ) ; } this . twoFactorRememberClientToken = _data [ "twoFactorRememberClientToken" ] ; this . returnUrl = _data [ "returnUrl" ] ; this . refreshToken = _data [ "refreshToken" ] ; this . refreshTokenExpireInSeconds = _data [ "refreshTokenExpireInSeconds" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new AuthenticateResultModel ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "accessToken" ] = this . accessToken ; data [ "encryptedAccessToken" ] = this . encryptedAccessToken ; data [ "expireInSeconds" ] = this . expireInSeconds ; data [ "shouldResetPassword" ] = this . shouldResetPassword ; data [ "passwordResetCode" ] = this . passwordResetCode ; data [ "userId" ] = this . userId ; data [ "requiresTwoFactorVerification" ] = this . requiresTwoFactorVerification ; if ( Array . isArray ( this . twoFactorAuthProviders ) ) { data [ "twoFactorAuthProviders" ] = [ ] ; for ( let item of this . twoFactorAuthProviders ) data [ "twoFactorAuthProviders" ] . push ( item ) ; } data [ "twoFactorRememberClientToken" ] = this . twoFactorRememberClientToken ; data [ "returnUrl" ] = this . returnUrl ; data [ "refreshToken" ] = this . refreshToken ; data [ "refreshTokenExpireInSeconds" ] = this . refreshTokenExpireInSeconds ; return data ; } } export interface IAuthenticateResultModel { accessToken : string | undefined ; encryptedAccessToken : string | undefined ; expireInSeconds : number ; shouldResetPassword : boolean ; passwordResetCode : string | undefined ; userId : number ; requiresTwoFactorVerification : boolean ; twoFactorAuthProviders : string [ ] | undefined ; twoFactorRememberClientToken : string | undefined ; returnUrl : string | undefined ; refreshToken : string | undefined ; refreshTokenExpireInSeconds : number ; } export class RefreshTokenResult implements IRefreshTokenResult { accessToken ! : string | undefined ; encryptedAccessToken ! : string | undefined ; expireInSeconds ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . accessToken = _data [ "accessToken" ] ; this . encryptedAccessToken = _data [ "encryptedAccessToken" ] ; this . expireInSeconds = _data [ "expireInSeconds" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new RefreshTokenResult ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "accessToken" ] = this . accessToken ; data [ "encryptedAccessToken" ] = this . encryptedAccessToken ; data [ "expireInSeconds" ] = this . expireInSeconds ; return data ; } } export interface IRefreshTokenResult { accessToken : string | undefined ; encryptedAccessToken : string | undefined ; expireInSeconds : number ; } export class SendTwoFactorAuthCodeModel implements ISendTwoFactorAuthCodeModel { userId ! : number ; provider ! : string ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . userId = _data [ "userId" ] ; this . provider = _data [ "provider" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new SendTwoFactorAuthCodeModel ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "userId" ] = this . userId ; data [ "provider" ] = this . provider ; return data ; } } export interface ISendTwoFactorAuthCodeModel { userId : number ; provider : string ; } export class ImpersonatedAuthenticateResultModel implements IImpersonatedAuthenticateResultModel { accessToken ! : string | undefined ; encryptedAccessToken ! : string | undefined ; expireInSeconds ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . accessToken = _data [ "accessToken" ] ; this . encryptedAccessToken = _data [ "encryptedAccessToken" ] ; this . expireInSeconds = _data [ "expireInSeconds" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new ImpersonatedAuthenticateResultModel ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "accessToken" ] = this . accessToken ; data [ "encryptedAccessToken" ] = this . encryptedAccessToken ; data [ "expireInSeconds" ] = this . expireInSeconds ; return data ; } } export interface IImpersonatedAuthenticateResultModel { accessToken : string | undefined ; encryptedAccessToken : string | undefined ; expireInSeconds : number ; } export class SwitchedAccountAuthenticateResultModel implements ISwitchedAccountAuthenticateResultModel { accessToken ! : string | undefined ; encryptedAccessToken ! : string | undefined ; expireInSeconds ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . accessToken = _data [ "accessToken" ] ; this . encryptedAccessToken = _data [ "encryptedAccessToken" ] ; this . expireInSeconds = _data [ "expireInSeconds" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new SwitchedAccountAuthenticateResultModel ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "accessToken" ] = this . accessToken ; data [ "encryptedAccessToken" ] = this . encryptedAccessToken ; data [ "expireInSeconds" ] = this . expireInSeconds ; return data ; } } export interface ISwitchedAccountAuthenticateResultModel { accessToken : string | undefined ; encryptedAccessToken : string | undefined ; expireInSeconds : number ; } export class ExternalLoginProviderInfoModel implements IExternalLoginProviderInfoModel { name ! : string | undefined ; clientId ! : string | undefined ; additionalParams ! : { [ key ] : string ; } | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . name = _data [ "name" ] ; this . clientId = _data [ "clientId" ] ; if ( _data [ "additionalParams" ] ) { this . additionalParams = { } as any ; for ( let key in _data [ "additionalParams" ] ) { if ( _data [ "additionalParams" ] . hasOwnProperty ( key ) ) ( < any > this . additionalParams ) ! [ key ] = _data [ "additionalParams" ] [ key ] ; } } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new ExternalLoginProviderInfoModel ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "name" ] = this . name ; data [ "clientId" ] = this . clientId ; if ( this . additionalParams ) { data [ "additionalParams" ] = { } ; for ( let key in this . additionalParams ) { if ( this . additionalParams . hasOwnProperty ( key ) ) ( < any > data [ "additionalParams" ] ) [ key ] = this . additionalParams [ key ] ; } } return data ; } } export interface IExternalLoginProviderInfoModel { name : string | undefined ; clientId : string | undefined ; additionalParams : { [ key ] : string ; } | undefined ; } export class ExternalAuthenticateModel implements IExternalAuthenticateModel { authProvider ! : string ; providerKey ! : string ; providerAccessCode ! : string ; returnUrl ! : string | undefined ; singleSignIn ! : boolean | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . authProvider = _data [ "authProvider" ] ; this . providerKey = _data [ "providerKey" ] ; this . providerAccessCode = _data [ "providerAccessCode" ] ; this . returnUrl = _data [ "returnUrl" ] ; this . singleSignIn = _data [ "singleSignIn" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new ExternalAuthenticateModel ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "authProvider" ] = this . authProvider ; data [ "providerKey" ] = this . providerKey ; data [ "providerAccessCode" ] = this . providerAccessCode ; data [ "returnUrl" ] = this . returnUrl ; data [ "singleSignIn" ] = this . singleSignIn ; return data ; } } export interface IExternalAuthenticateModel { authProvider : string ; providerKey : string ; providerAccessCode : string ; returnUrl : string | undefined ; singleSignIn : boolean | undefined ; } export class ExternalAuthenticateResultModel implements IExternalAuthenticateResultModel { accessToken ! : string | undefined ; encryptedAccessToken ! : string | undefined ; expireInSeconds ! : number ; waitingForActivation ! : boolean ; returnUrl ! : string | undefined ; refreshToken ! : string | undefined ; refreshTokenExpireInSeconds ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . accessToken = _data [ "accessToken" ] ; this . encryptedAccessToken = _data [ "encryptedAccessToken" ] ; this . expireInSeconds = _data [ "expireInSeconds" ] ; this . waitingForActivation = _data [ "waitingForActivation" ] ; this . returnUrl = _data [ "returnUrl" ] ; this . refreshToken = _data [ "refreshToken" ] ; this . refreshTokenExpireInSeconds = _data [ "refreshTokenExpireInSeconds" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new ExternalAuthenticateResultModel ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "accessToken" ] = this . accessToken ; data [ "encryptedAccessToken" ] = this . encryptedAccessToken ; data [ "expireInSeconds" ] = this . expireInSeconds ; data [ "waitingForActivation" ] = this . waitingForActivation ; data [ "returnUrl" ] = this . returnUrl ; data [ "refreshToken" ] = this . refreshToken ; data [ "refreshTokenExpireInSeconds" ] = this . refreshTokenExpireInSeconds ; return data ; } } export interface IExternalAuthenticateResultModel { accessToken : string | undefined ; encryptedAccessToken : string | undefined ; expireInSeconds : number ; waitingForActivation : boolean ; returnUrl : string | undefined ; refreshToken : string | undefined ; refreshTokenExpireInSeconds : number ; } export class UserListRoleDto implements IUserListRoleDto { roleId ! : number ; roleName ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . roleId = _data [ "roleId" ] ; this . roleName = _data [ "roleName" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new UserListRoleDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "roleId" ] = this . roleId ; data [ "roleName" ] = this . roleName ; return data ; } } export interface IUserListRoleDto { roleId : number ; roleName : string | undefined ; } export class UserListDto implements IUserListDto { name ! : string | undefined ; surname ! : string | undefined ; userName ! : string | undefined ; emailAddress ! : string | undefined ; phoneNumber ! : string | undefined ; profilePictureId ! : string | undefined ; isEmailConfirmed ! : boolean ; roles ! : UserListRoleDto [ ] | undefined ; isActive ! : boolean ; creationTime ! : DateTime ; id ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . name = _data [ "name" ] ; this . surname = _data [ "surname" ] ; this . userName = _data [ "userName" ] ; this . emailAddress = _data [ "emailAddress" ] ; this . phoneNumber = _data [ "phoneNumber" ] ; this . profilePictureId = _data [ "profilePictureId" ] ; this . isEmailConfirmed = _data [ "isEmailConfirmed" ] ; if ( Array . isArray ( _data [ "roles" ] ) ) { this . roles = [ ] as any ; for ( let item of _data [ "roles" ] ) this . roles ! . push ( UserListRoleDto . fromJS ( item ) ) ; } this . isActive = _data [ "isActive" ] ; this . creationTime = _data [ "creationTime" ] ? DateTime . fromISO ( _data [ "creationTime" ] . toString ( ) ) : < any > undefined ; this . id = _data [ "id" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new UserListDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "name" ] = this . name ; data [ "surname" ] = this . surname ; data [ "userName" ] = this . userName ; data [ "emailAddress" ] = this . emailAddress ; data [ "phoneNumber" ] = this . phoneNumber ; data [ "profilePictureId" ] = this . profilePictureId ; data [ "isEmailConfirmed" ] = this . isEmailConfirmed ; if ( Array . isArray ( this . roles ) ) { data [ "roles" ] = [ ] ; for ( let item of this . roles ) data [ "roles" ] . push ( item . toJSON ( ) ) ; } data [ "isActive" ] = this . isActive ; data [ "creationTime" ] = this . creationTime ? this . creationTime . toString ( ) : < any > undefined ; data [ "id" ] = this . id ; return data ; } } export interface IUserListDto { name : string | undefined ; surname : string | undefined ; userName : string | undefined ; emailAddress : string | undefined ; phoneNumber : string | undefined ; profilePictureId : string | undefined ; isEmailConfirmed : boolean ; roles : UserListRoleDto [ ] | undefined ; isActive : boolean ; creationTime : DateTime ; id : number ; } export class PagedResultDtoOfUserListDto implements IPagedResultDtoOfUserListDto { totalCount ! : number ; items ! : UserListDto [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . totalCount = _data [ "totalCount" ] ; if ( Array . isArray ( _data [ "items" ] ) ) { this . items = [ ] as any ; for ( let item of _data [ "items" ] ) this . items ! . push ( UserListDto . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new PagedResultDtoOfUserListDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "totalCount" ] = this . totalCount ; if ( Array . isArray ( this . items ) ) { data [ "items" ] = [ ] ; for ( let item of this . items ) data [ "items" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IPagedResultDtoOfUserListDto { totalCount : number ; items : UserListDto [ ] | undefined ; } export class UserEditDto implements IUserEditDto { id ! : number | undefined ; name ! : string ; surname ! : string ; userName ! : string ; emailAddress ! : string ; phoneNumber ! : string | undefined ; password ! : string | undefined ; isActive ! : boolean ; shouldChangePasswordOnNextLogin ! : boolean ; isTwoFactorEnabled ! : boolean ; isLockoutEnabled ! : boolean ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . id = _data [ "id" ] ; this . name = _data [ "name" ] ; this . surname = _data [ "surname" ] ; this . userName = _data [ "userName" ] ; this . emailAddress = _data [ "emailAddress" ] ; this . phoneNumber = _data [ "phoneNumber" ] ; this . password = _data [ "password" ] ; this . isActive = _data [ "isActive" ] ; this . shouldChangePasswordOnNextLogin = _data [ "shouldChangePasswordOnNextLogin" ] ; this . isTwoFactorEnabled = _data [ "isTwoFactorEnabled" ] ; this . isLockoutEnabled = _data [ "isLockoutEnabled" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new UserEditDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "id" ] = this . id ; data [ "name" ] = this . name ; data [ "surname" ] = this . surname ; data [ "userName" ] = this . userName ; data [ "emailAddress" ] = this . emailAddress ; data [ "phoneNumber" ] = this . phoneNumber ; data [ "password" ] = this . password ; data [ "isActive" ] = this . isActive ; data [ "shouldChangePasswordOnNextLogin" ] = this . shouldChangePasswordOnNextLogin ; data [ "isTwoFactorEnabled" ] = this . isTwoFactorEnabled ; data [ "isLockoutEnabled" ] = this . isLockoutEnabled ; return data ; } } export interface IUserEditDto { id : number | undefined ; name : string ; surname : string ; userName : string ; emailAddress : string ; phoneNumber : string | undefined ; password : string | undefined ; isActive : boolean ; shouldChangePasswordOnNextLogin : boolean ; isTwoFactorEnabled : boolean ; isLockoutEnabled : boolean ; } export class UserRoleDto implements IUserRoleDto { roleId ! : number ; roleName ! : string | undefined ; roleDisplayName ! : string | undefined ; isAssigned ! : boolean ; inheritedFromOrganizationUnit ! : boolean ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . roleId = _data [ "roleId" ] ; this . roleName = _data [ "roleName" ] ; this . roleDisplayName = _data [ "roleDisplayName" ] ; this . isAssigned = _data [ "isAssigned" ] ; this . inheritedFromOrganizationUnit = _data [ "inheritedFromOrganizationUnit" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new UserRoleDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "roleId" ] = this . roleId ; data [ "roleName" ] = this . roleName ; data [ "roleDisplayName" ] = this . roleDisplayName ; data [ "isAssigned" ] = this . isAssigned ; data [ "inheritedFromOrganizationUnit" ] = this . inheritedFromOrganizationUnit ; return data ; } } export interface IUserRoleDto { roleId : number ; roleName : string | undefined ; roleDisplayName : string | undefined ; isAssigned : boolean ; inheritedFromOrganizationUnit : boolean ; } export class GetUserForEditOutput implements IGetUserForEditOutput { profilePictureId ! : string | undefined ; user ! : UserEditDto ; roles ! : UserRoleDto [ ] | undefined ; allOrganizationUnits ! : OrganizationUnitDto [ ] | undefined ; memberedOrganizationUnits ! : string [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . profilePictureId = _data [ "profilePictureId" ] ; this . user = _data [ "user" ] ? UserEditDto . fromJS ( _data [ "user" ] ) : < any > undefined ; if ( Array . isArray ( _data [ "roles" ] ) ) { this . roles = [ ] as any ; for ( let item of _data [ "roles" ] ) this . roles ! . push ( UserRoleDto . fromJS ( item ) ) ; } if ( Array . isArray ( _data [ "allOrganizationUnits" ] ) ) { this . allOrganizationUnits = [ ] as any ; for ( let item of _data [ "allOrganizationUnits" ] ) this . allOrganizationUnits ! . push ( OrganizationUnitDto . fromJS ( item ) ) ; } if ( Array . isArray ( _data [ "memberedOrganizationUnits" ] ) ) { this . memberedOrganizationUnits = [ ] as any ; for ( let item of _data [ "memberedOrganizationUnits" ] ) this . memberedOrganizationUnits ! . push ( item ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new GetUserForEditOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "profilePictureId" ] = this . profilePictureId ; data [ "user" ] = this . user ? this . user . toJSON ( ) : < any > undefined ; if ( Array . isArray ( this . roles ) ) { data [ "roles" ] = [ ] ; for ( let item of this . roles ) data [ "roles" ] . push ( item . toJSON ( ) ) ; } if ( Array . isArray ( this . allOrganizationUnits ) ) { data [ "allOrganizationUnits" ] = [ ] ; for ( let item of this . allOrganizationUnits ) data [ "allOrganizationUnits" ] . push ( item . toJSON ( ) ) ; } if ( Array . isArray ( this . memberedOrganizationUnits ) ) { data [ "memberedOrganizationUnits" ] = [ ] ; for ( let item of this . memberedOrganizationUnits ) data [ "memberedOrganizationUnits" ] . push ( item ) ; } return data ; } } export interface IGetUserForEditOutput { profilePictureId : string | undefined ; user : UserEditDto ; roles : UserRoleDto [ ] | undefined ; allOrganizationUnits : OrganizationUnitDto [ ] | undefined ; memberedOrganizationUnits : string [ ] | undefined ; } export class GetUserPermissionsForEditOutput implements IGetUserPermissionsForEditOutput { permissions ! : FlatPermissionDto [ ] | undefined ; grantedPermissionNames ! : string [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { if ( Array . isArray ( _data [ "permissions" ] ) ) { this . permissions = [ ] as any ; for ( let item of _data [ "permissions" ] ) this . permissions ! . push ( FlatPermissionDto . fromJS ( item ) ) ; } if ( Array . isArray ( _data [ "grantedPermissionNames" ] ) ) { this . grantedPermissionNames = [ ] as any ; for ( let item of _data [ "grantedPermissionNames" ] ) this . grantedPermissionNames ! . push ( item ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new GetUserPermissionsForEditOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; if ( Array . isArray ( this . permissions ) ) { data [ "permissions" ] = [ ] ; for ( let item of this . permissions ) data [ "permissions" ] . push ( item . toJSON ( ) ) ; } if ( Array . isArray ( this . grantedPermissionNames ) ) { data [ "grantedPermissionNames" ] = [ ] ; for ( let item of this . grantedPermissionNames ) data [ "grantedPermissionNames" ] . push ( item ) ; } return data ; } } export interface IGetUserPermissionsForEditOutput { permissions : FlatPermissionDto [ ] | undefined ; grantedPermissionNames : string [ ] | undefined ; } export class EntityDtoOfInt64 implements IEntityDtoOfInt64 { id ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . id = _data [ "id" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new EntityDtoOfInt64 ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "id" ] = this . id ; return data ; } } export interface IEntityDtoOfInt64 { id : number ; } export class UpdateUserPermissionsInput implements IUpdateUserPermissionsInput { id ! : number ; grantedPermissionNames ! : string [ ] ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } if ( ! data ) { this . grantedPermissionNames = [ ] ; } } init ( _data ? ) { if ( _data ) { this . id = _data [ "id" ] ; if ( Array . isArray ( _data [ "grantedPermissionNames" ] ) ) { this . grantedPermissionNames = [ ] as any ; for ( let item of _data [ "grantedPermissionNames" ] ) this . grantedPermissionNames ! . push ( item ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new UpdateUserPermissionsInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "id" ] = this . id ; if ( Array . isArray ( this . grantedPermissionNames ) ) { data [ "grantedPermissionNames" ] = [ ] ; for ( let item of this . grantedPermissionNames ) data [ "grantedPermissionNames" ] . push ( item ) ; } return data ; } } export interface IUpdateUserPermissionsInput { id : number ; grantedPermissionNames : string [ ] ; } export class CreateOrUpdateUserInput implements ICreateOrUpdateUserInput { user ! : UserEditDto ; assignedRoleNames ! : string [ ] ; sendActivationEmail ! : boolean ; setRandomPassword ! : boolean ; organizationUnits ! : number [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } if ( ! data ) { this . user = new UserEditDto ( ) ; this . assignedRoleNames = [ ] ; } } init ( _data ? ) { if ( _data ) { this . user = _data [ "user" ] ? UserEditDto . fromJS ( _data [ "user" ] ) : new UserEditDto ( ) ; if ( Array . isArray ( _data [ "assignedRoleNames" ] ) ) { this . assignedRoleNames = [ ] as any ; for ( let item of _data [ "assignedRoleNames" ] ) this . assignedRoleNames ! . push ( item ) ; } this . sendActivationEmail = _data [ "sendActivationEmail" ] ; this . setRandomPassword = _data [ "setRandomPassword" ] ; if ( Array . isArray ( _data [ "organizationUnits" ] ) ) { this . organizationUnits = [ ] as any ; for ( let item of _data [ "organizationUnits" ] ) this . organizationUnits ! . push ( item ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new CreateOrUpdateUserInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "user" ] = this . user ? this . user . toJSON ( ) : < any > undefined ; if ( Array . isArray ( this . assignedRoleNames ) ) { data [ "assignedRoleNames" ] = [ ] ; for ( let item of this . assignedRoleNames ) data [ "assignedRoleNames" ] . push ( item ) ; } data [ "sendActivationEmail" ] = this . sendActivationEmail ; data [ "setRandomPassword" ] = this . setRandomPassword ; if ( Array . isArray ( this . organizationUnits ) ) { data [ "organizationUnits" ] = [ ] ; for ( let item of this . organizationUnits ) data [ "organizationUnits" ] . push ( item ) ; } return data ; } } export interface ICreateOrUpdateUserInput { user : UserEditDto ; assignedRoleNames : string [ ] ; sendActivationEmail : boolean ; setRandomPassword : boolean ; organizationUnits : number [ ] | undefined ; } export class UserDelegationDto implements IUserDelegationDto { username ! : string | undefined ; startTime ! : DateTime ; endTime ! : DateTime ; id ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . username = _data [ "username" ] ; this . startTime = _data [ "startTime" ] ? DateTime . fromISO ( _data [ "startTime" ] . toString ( ) ) : < any > undefined ; this . endTime = _data [ "endTime" ] ? DateTime . fromISO ( _data [ "endTime" ] . toString ( ) ) : < any > undefined ; this . id = _data [ "id" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new UserDelegationDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "username" ] = this . username ; data [ "startTime" ] = this . startTime ? this . startTime . toString ( ) : < any > undefined ; data [ "endTime" ] = this . endTime ? this . endTime . toString ( ) : < any > undefined ; data [ "id" ] = this . id ; return data ; } } export interface IUserDelegationDto { username : string | undefined ; startTime : DateTime ; endTime : DateTime ; id : number ; } export class PagedResultDtoOfUserDelegationDto implements IPagedResultDtoOfUserDelegationDto { totalCount ! : number ; items ! : UserDelegationDto [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . totalCount = _data [ "totalCount" ] ; if ( Array . isArray ( _data [ "items" ] ) ) { this . items = [ ] as any ; for ( let item of _data [ "items" ] ) this . items ! . push ( UserDelegationDto . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new PagedResultDtoOfUserDelegationDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "totalCount" ] = this . totalCount ; if ( Array . isArray ( this . items ) ) { data [ "items" ] = [ ] ; for ( let item of this . items ) data [ "items" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IPagedResultDtoOfUserDelegationDto { totalCount : number ; items : UserDelegationDto [ ] | undefined ; } export class CreateUserDelegationDto implements ICreateUserDelegationDto { targetUserId ! : number ; startTime ! : DateTime ; endTime ! : DateTime ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . targetUserId = _data [ "targetUserId" ] ; this . startTime = _data [ "startTime" ] ? DateTime . fromISO ( _data [ "startTime" ] . toString ( ) ) : < any > undefined ; this . endTime = _data [ "endTime" ] ? DateTime . fromISO ( _data [ "endTime" ] . toString ( ) ) : < any > undefined ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new CreateUserDelegationDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "targetUserId" ] = this . targetUserId ; data [ "startTime" ] = this . startTime ? this . startTime . toString ( ) : < any > undefined ; data [ "endTime" ] = this . endTime ? this . endTime . toString ( ) : < any > undefined ; return data ; } } export interface ICreateUserDelegationDto { targetUserId : number ; startTime : DateTime ; endTime : DateTime ; } export class LinkToUserInput implements ILinkToUserInput { tenancyName ! : string | undefined ; usernameOrEmailAddress ! : string ; password ! : string ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . tenancyName = _data [ "tenancyName" ] ; this . usernameOrEmailAddress = _data [ "usernameOrEmailAddress" ] ; this . password = _data [ "password" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new LinkToUserInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "tenancyName" ] = this . tenancyName ; data [ "usernameOrEmailAddress" ] = this . usernameOrEmailAddress ; data [ "password" ] = this . password ; return data ; } } export interface ILinkToUserInput { tenancyName : string | undefined ; usernameOrEmailAddress : string ; password : string ; } export class LinkedUserDto implements ILinkedUserDto { tenantId ! : number | undefined ; tenancyName ! : string | undefined ; username ! : string | undefined ; id ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . tenantId = _data [ "tenantId" ] ; this . tenancyName = _data [ "tenancyName" ] ; this . username = _data [ "username" ] ; this . id = _data [ "id" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new LinkedUserDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "tenantId" ] = this . tenantId ; data [ "tenancyName" ] = this . tenancyName ; data [ "username" ] = this . username ; data [ "id" ] = this . id ; return data ; } } export interface ILinkedUserDto { tenantId : number | undefined ; tenancyName : string | undefined ; username : string | undefined ; id : number ; } export class PagedResultDtoOfLinkedUserDto implements IPagedResultDtoOfLinkedUserDto { totalCount ! : number ; items ! : LinkedUserDto [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . totalCount = _data [ "totalCount" ] ; if ( Array . isArray ( _data [ "items" ] ) ) { this . items = [ ] as any ; for ( let item of _data [ "items" ] ) this . items ! . push ( LinkedUserDto . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new PagedResultDtoOfLinkedUserDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "totalCount" ] = this . totalCount ; if ( Array . isArray ( this . items ) ) { data [ "items" ] = [ ] ; for ( let item of this . items ) data [ "items" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IPagedResultDtoOfLinkedUserDto { totalCount : number ; items : LinkedUserDto [ ] | undefined ; } export class ListResultDtoOfLinkedUserDto implements IListResultDtoOfLinkedUserDto { items ! : LinkedUserDto [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { if ( Array . isArray ( _data [ "items" ] ) ) { this . items = [ ] as any ; for ( let item of _data [ "items" ] ) this . items ! . push ( LinkedUserDto . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new ListResultDtoOfLinkedUserDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; if ( Array . isArray ( this . items ) ) { data [ "items" ] = [ ] ; for ( let item of this . items ) data [ "items" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IListResultDtoOfLinkedUserDto { items : LinkedUserDto [ ] | undefined ; } export class UnlinkUserInput implements IUnlinkUserInput { tenantId ! : number | undefined ; userId ! : number ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . tenantId = _data [ "tenantId" ] ; this . userId = _data [ "userId" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new UnlinkUserInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "tenantId" ] = this . tenantId ; data [ "userId" ] = this . userId ; return data ; } } export interface IUnlinkUserInput { tenantId : number | undefined ; userId : number ; } export class UserLoginAttemptDto implements IUserLoginAttemptDto { tenancyName ! : string | undefined ; userNameOrEmail ! : string | undefined ; clientIpAddress ! : string | undefined ; clientName ! : string | undefined ; browserInfo ! : string | undefined ; result ! : string | undefined ; creationTime ! : DateTime ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . tenancyName = _data [ "tenancyName" ] ; this . userNameOrEmail = _data [ "userNameOrEmail" ] ; this . clientIpAddress = _data [ "clientIpAddress" ] ; this . clientName = _data [ "clientName" ] ; this . browserInfo = _data [ "browserInfo" ] ; this . result = _data [ "result" ] ; this . creationTime = _data [ "creationTime" ] ? DateTime . fromISO ( _data [ "creationTime" ] . toString ( ) ) : < any > undefined ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new UserLoginAttemptDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "tenancyName" ] = this . tenancyName ; data [ "userNameOrEmail" ] = this . userNameOrEmail ; data [ "clientIpAddress" ] = this . clientIpAddress ; data [ "clientName" ] = this . clientName ; data [ "browserInfo" ] = this . browserInfo ; data [ "result" ] = this . result ; data [ "creationTime" ] = this . creationTime ? this . creationTime . toString ( ) : < any > undefined ; return data ; } } export interface IUserLoginAttemptDto { tenancyName : string | undefined ; userNameOrEmail : string | undefined ; clientIpAddress : string | undefined ; clientName : string | undefined ; browserInfo : string | undefined ; result : string | undefined ; creationTime : DateTime ; } export class ListResultDtoOfUserLoginAttemptDto implements IListResultDtoOfUserLoginAttemptDto { items ! : UserLoginAttemptDto [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { if ( Array . isArray ( _data [ "items" ] ) ) { this . items = [ ] as any ; for ( let item of _data [ "items" ] ) this . items ! . push ( UserLoginAttemptDto . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new ListResultDtoOfUserLoginAttemptDto ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; if ( Array . isArray ( this . items ) ) { data [ "items" ] = [ ] ; for ( let item of this . items ) data [ "items" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IListResultDtoOfUserLoginAttemptDto { items : UserLoginAttemptDto [ ] | undefined ; } export class WebhookEvent implements IWebhookEvent { webhookName ! : string ; data ! : string | undefined ; creationTime ! : DateTime ; tenantId ! : number | undefined ; isDeleted ! : boolean ; deletionTime ! : DateTime | undefined ; id ! : string ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . webhookName = _data [ "webhookName" ] ; this . data = _data [ "data" ] ; this . creationTime = _data [ "creationTime" ] ? DateTime . fromISO ( _data [ "creationTime" ] . toString ( ) ) : < any > undefined ; this . tenantId = _data [ "tenantId" ] ; this . isDeleted = _data [ "isDeleted" ] ; this . deletionTime = _data [ "deletionTime" ] ? DateTime . fromISO ( _data [ "deletionTime" ] . toString ( ) ) : < any > undefined ; this . id = _data [ "id" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new WebhookEvent ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "webhookName" ] = this . webhookName ; data [ "data" ] = this . data ; data [ "creationTime" ] = this . creationTime ? this . creationTime . toString ( ) : < any > undefined ; data [ "tenantId" ] = this . tenantId ; data [ "isDeleted" ] = this . isDeleted ; data [ "deletionTime" ] = this . deletionTime ? this . deletionTime . toString ( ) : < any > undefined ; data [ "id" ] = this . id ; return data ; } } export interface IWebhookEvent { webhookName : string ; data : string | undefined ; creationTime : DateTime ; tenantId : number | undefined ; isDeleted : boolean ; deletionTime : DateTime | undefined ; id : string ; } export enum HttpStatusCode { Continue = 100 , SwitchingProtocols = 101 , Processing = 102 , EarlyHints = 103 , OK = 200 , Created = 201 , Accepted = 202 , NonAuthoritativeInformation = 203 , NoContent = 204 , ResetContent = 205 , PartialContent = 206 , MultiStatus = 207 , AlreadyReported = 208 , IMUsed = 226 , MultipleChoices = 300 , Ambiguous = 301 , MovedPermanently = 302 , Moved = 303 , Found = 304 , Redirect = 305 , SeeOther = 306 , RedirectMethod = 307 , NotModified = 308 , UseProxy = 400 , Unused = 401 , TemporaryRedirect = 402 , RedirectKeepVerb = 403 , PermanentRedirect = 404 , BadRequest = 405 , Unauthorized = 406 , PaymentRequired = 407 , Forbidden = 408 , NotFound = 409 , MethodNotAllowed = 410 , NotAcceptable = 411 , ProxyAuthenticationRequired = 412 , RequestTimeout = 413 , Conflict = 414 , Gone = 415 , LengthRequired = 416 , PreconditionFailed = 417 , RequestEntityTooLarge = 421 , RequestUriTooLong = 422 , UnsupportedMediaType = 423 , RequestedRangeNotSatisfiable = 424 , ExpectationFailed = 426 , MisdirectedRequest = 428 , UnprocessableEntity = 429 , Locked = 431 , FailedDependency = 451 , UpgradeRequired = 500 , PreconditionRequired = 501 , TooManyRequests = 502 , RequestHeaderFieldsTooLarge = 503 , UnavailableForLegalReasons = 504 , InternalServerError = 505 , NotImplemented = 506 , BadGateway = 507 , ServiceUnavailable = 508 , GatewayTimeout = 510 , HttpVersionNotSupported = 511 } export class GetAllSendAttemptsOutput implements IGetAllSendAttemptsOutput { id ! : string ; webhookEventId ! : string ; webhookName ! : string | undefined ; data ! : string | undefined ; response ! : string | undefined ; responseStatusCode ! : HttpStatusCode ; creationTime ! : DateTime ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . id = _data [ "id" ] ; this . webhookEventId = _data [ "webhookEventId" ] ; this . webhookName = _data [ "webhookName" ] ; this . data = _data [ "data" ] ; this . response = _data [ "response" ] ; this . responseStatusCode = _data [ "responseStatusCode" ] ; this . creationTime = _data [ "creationTime" ] ? DateTime . fromISO ( _data [ "creationTime" ] . toString ( ) ) : < any > undefined ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new GetAllSendAttemptsOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "id" ] = this . id ; data [ "webhookEventId" ] = this . webhookEventId ; data [ "webhookName" ] = this . webhookName ; data [ "data" ] = this . data ; data [ "response" ] = this . response ; data [ "responseStatusCode" ] = this . responseStatusCode ; data [ "creationTime" ] = this . creationTime ? this . creationTime . toString ( ) : < any > undefined ; return data ; } } export interface IGetAllSendAttemptsOutput { id : string ; webhookEventId : string ; webhookName : string | undefined ; data : string | undefined ; response : string | undefined ; responseStatusCode : HttpStatusCode ; creationTime : DateTime ; } export class PagedResultDtoOfGetAllSendAttemptsOutput implements IPagedResultDtoOfGetAllSendAttemptsOutput { totalCount ! : number ; items ! : GetAllSendAttemptsOutput [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . totalCount = _data [ "totalCount" ] ; if ( Array . isArray ( _data [ "items" ] ) ) { this . items = [ ] as any ; for ( let item of _data [ "items" ] ) this . items ! . push ( GetAllSendAttemptsOutput . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new PagedResultDtoOfGetAllSendAttemptsOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "totalCount" ] = this . totalCount ; if ( Array . isArray ( this . items ) ) { data [ "items" ] = [ ] ; for ( let item of this . items ) data [ "items" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IPagedResultDtoOfGetAllSendAttemptsOutput { totalCount : number ; items : GetAllSendAttemptsOutput [ ] | undefined ; } export class GetAllSendAttemptsOfWebhookEventOutput implements IGetAllSendAttemptsOfWebhookEventOutput { id ! : string ; webhookUri ! : string | undefined ; webhookSubscriptionId ! : string ; response ! : string | undefined ; responseStatusCode ! : HttpStatusCode ; creationTime ! : DateTime ; lastModificationTime ! : DateTime | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . id = _data [ "id" ] ; this . webhookUri = _data [ "webhookUri" ] ; this . webhookSubscriptionId = _data [ "webhookSubscriptionId" ] ; this . response = _data [ "response" ] ; this . responseStatusCode = _data [ "responseStatusCode" ] ; this . creationTime = _data [ "creationTime" ] ? DateTime . fromISO ( _data [ "creationTime" ] . toString ( ) ) : < any > undefined ; this . lastModificationTime = _data [ "lastModificationTime" ] ? DateTime . fromISO ( _data [ "lastModificationTime" ] . toString ( ) ) : < any > undefined ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new GetAllSendAttemptsOfWebhookEventOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "id" ] = this . id ; data [ "webhookUri" ] = this . webhookUri ; data [ "webhookSubscriptionId" ] = this . webhookSubscriptionId ; data [ "response" ] = this . response ; data [ "responseStatusCode" ] = this . responseStatusCode ; data [ "creationTime" ] = this . creationTime ? this . creationTime . toString ( ) : < any > undefined ; data [ "lastModificationTime" ] = this . lastModificationTime ? this . lastModificationTime . toString ( ) : < any > undefined ; return data ; } } export interface IGetAllSendAttemptsOfWebhookEventOutput { id : string ; webhookUri : string | undefined ; webhookSubscriptionId : string ; response : string | undefined ; responseStatusCode : HttpStatusCode ; creationTime : DateTime ; lastModificationTime : DateTime | undefined ; } export class ListResultDtoOfGetAllSendAttemptsOfWebhookEventOutput implements IListResultDtoOfGetAllSendAttemptsOfWebhookEventOutput { items ! : GetAllSendAttemptsOfWebhookEventOutput [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { if ( Array . isArray ( _data [ "items" ] ) ) { this . items = [ ] as any ; for ( let item of _data [ "items" ] ) this . items ! . push ( GetAllSendAttemptsOfWebhookEventOutput . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new ListResultDtoOfGetAllSendAttemptsOfWebhookEventOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; if ( Array . isArray ( this . items ) ) { data [ "items" ] = [ ] ; for ( let item of this . items ) data [ "items" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IListResultDtoOfGetAllSendAttemptsOfWebhookEventOutput { items : GetAllSendAttemptsOfWebhookEventOutput [ ] | undefined ; } export class GetAllSubscriptionsOutput implements IGetAllSubscriptionsOutput { webhookUri ! : string | undefined ; isActive ! : boolean ; webhooks ! : string [ ] | undefined ; id ! : string ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . webhookUri = _data [ "webhookUri" ] ; this . isActive = _data [ "isActive" ] ; if ( Array . isArray ( _data [ "webhooks" ] ) ) { this . webhooks = [ ] as any ; for ( let item of _data [ "webhooks" ] ) this . webhooks ! . push ( item ) ; } this . id = _data [ "id" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new GetAllSubscriptionsOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "webhookUri" ] = this . webhookUri ; data [ "isActive" ] = this . isActive ; if ( Array . isArray ( this . webhooks ) ) { data [ "webhooks" ] = [ ] ; for ( let item of this . webhooks ) data [ "webhooks" ] . push ( item ) ; } data [ "id" ] = this . id ; return data ; } } export interface IGetAllSubscriptionsOutput { webhookUri : string | undefined ; isActive : boolean ; webhooks : string [ ] | undefined ; id : string ; } export class ListResultDtoOfGetAllSubscriptionsOutput implements IListResultDtoOfGetAllSubscriptionsOutput { items ! : GetAllSubscriptionsOutput [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { if ( Array . isArray ( _data [ "items" ] ) ) { this . items = [ ] as any ; for ( let item of _data [ "items" ] ) this . items ! . push ( GetAllSubscriptionsOutput . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new ListResultDtoOfGetAllSubscriptionsOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; if ( Array . isArray ( this . items ) ) { data [ "items" ] = [ ] ; for ( let item of this . items ) data [ "items" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IListResultDtoOfGetAllSubscriptionsOutput { items : GetAllSubscriptionsOutput [ ] | undefined ; } export class WebhookSubscription implements IWebhookSubscription { tenantId ! : number | undefined ; webhookUri ! : string | undefined ; secret ! : string | undefined ; isActive ! : boolean ; webhooks ! : string [ ] | undefined ; headers ! : { [ key ] : string ; } | undefined ; id ! : string ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . tenantId = _data [ "tenantId" ] ; this . webhookUri = _data [ "webhookUri" ] ; this . secret = _data [ "secret" ] ; this . isActive = _data [ "isActive" ] ; if ( Array . isArray ( _data [ "webhooks" ] ) ) { this . webhooks = [ ] as any ; for ( let item of _data [ "webhooks" ] ) this . webhooks ! . push ( item ) ; } if ( _data [ "headers" ] ) { this . headers = { } as any ; for ( let key in _data [ "headers" ] ) { if ( _data [ "headers" ] . hasOwnProperty ( key ) ) ( < any > this . headers ) ! [ key ] = _data [ "headers" ] [ key ] ; } } this . id = _data [ "id" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new WebhookSubscription ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "tenantId" ] = this . tenantId ; data [ "webhookUri" ] = this . webhookUri ; data [ "secret" ] = this . secret ; data [ "isActive" ] = this . isActive ; if ( Array . isArray ( this . webhooks ) ) { data [ "webhooks" ] = [ ] ; for ( let item of this . webhooks ) data [ "webhooks" ] . push ( item ) ; } if ( this . headers ) { data [ "headers" ] = { } ; for ( let key in this . headers ) { if ( this . headers . hasOwnProperty ( key ) ) ( < any > data [ "headers" ] ) [ key ] = this . headers [ key ] ; } } data [ "id" ] = this . id ; return data ; } } export interface IWebhookSubscription { tenantId : number | undefined ; webhookUri : string | undefined ; secret : string | undefined ; isActive : boolean ; webhooks : string [ ] | undefined ; headers : { [ key ] : string ; } | undefined ; id : string ; } export class ActivateWebhookSubscriptionInput implements IActivateWebhookSubscriptionInput { subscriptionId ! : string ; isActive ! : boolean ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . subscriptionId = _data [ "subscriptionId" ] ; this . isActive = _data [ "isActive" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new ActivateWebhookSubscriptionInput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "subscriptionId" ] = this . subscriptionId ; data [ "isActive" ] = this . isActive ; return data ; } } export interface IActivateWebhookSubscriptionInput { subscriptionId : string ; isActive : boolean ; } export class GetAllAvailableWebhooksOutput implements IGetAllAvailableWebhooksOutput { name ! : string | undefined ; displayName ! : string | undefined ; description ! : string | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { this . name = _data [ "name" ] ; this . displayName = _data [ "displayName" ] ; this . description = _data [ "description" ] ; } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new GetAllAvailableWebhooksOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; data [ "name" ] = this . name ; data [ "displayName" ] = this . displayName ; data [ "description" ] = this . description ; return data ; } } export interface IGetAllAvailableWebhooksOutput { name : string | undefined ; displayName : string | undefined ; description : string | undefined ; } export class ListResultDtoOfGetAllAvailableWebhooksOutput implements IListResultDtoOfGetAllAvailableWebhooksOutput { items ! : GetAllAvailableWebhooksOutput [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { if ( Array . isArray ( _data [ "items" ] ) ) { this . items = [ ] as any ; for ( let item of _data [ "items" ] ) this . items ! . push ( GetAllAvailableWebhooksOutput . fromJS ( item ) ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new ListResultDtoOfGetAllAvailableWebhooksOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; if ( Array . isArray ( this . items ) ) { data [ "items" ] = [ ] ; for ( let item of this . items ) data [ "items" ] . push ( item . toJSON ( ) ) ; } return data ; } } export interface IListResultDtoOfGetAllAvailableWebhooksOutput { items : GetAllAvailableWebhooksOutput [ ] | undefined ; } export class GetLatestWebLogsOutput implements IGetLatestWebLogsOutput { latestWebLogLines ! : string [ ] | undefined ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { if ( Array . isArray ( _data [ "latestWebLogLines" ] ) ) { this . latestWebLogLines = [ ] as any ; for ( let item of _data [ "latestWebLogLines" ] ) this . latestWebLogLines ! . push ( item ) ; } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new GetLatestWebLogsOutput ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; if ( Array . isArray ( this . latestWebLogLines ) ) { data [ "latestWebLogLines" ] = [ ] ; for ( let item of this . latestWebLogLines ) data [ "latestWebLogLines" ] . push ( item ) ; } return data ; } } export interface IGetLatestWebLogsOutput { latestWebLogLines : string [ ] | undefined ; } export class AdditionalData implements IAdditionalData { paypal ! : { [ key ] : string ; } ; stripe ! : { [ key ] : string ; } ; constructor ( data ? ) { if ( data ) { for ( var property in data ) { if ( data . hasOwnProperty ( property ) ) ( < any > this ) [ property ] = ( < any > data ) [ property ] ; } } } init ( _data ? ) { if ( _data ) { if ( _data [ "Paypal" ] ) { this . paypal = { } as any ; for ( let key in _data [ "Paypal" ] ) { if ( _data [ "Paypal" ] . hasOwnProperty ( key ) ) ( < any > this . paypal ) ! [ key ] = _data [ "Paypal" ] [ key ] ; } } if ( _data [ "Stripe" ] ) { this . stripe = { } as any ; for ( let key in _data [ "Stripe" ] ) { if ( _data [ "Stripe" ] . hasOwnProperty ( key ) ) ( < any > this . stripe ) ! [ key ] = _data [ "Stripe" ] [ key ] ; } } } } static fromJS ( data ) { data = typeof data === 'object' ? data : { } ; let result = new AdditionalData ( ) ; result . init ( data ) ; return result ; } toJSON ( data ? ) { data = typeof data === 'object' ? data : { } ; if ( this . paypal ) { data [ "Paypal" ] = { } ; for ( let key in this . paypal ) { if ( this . paypal . hasOwnProperty ( key ) ) ( < any > data [ "Paypal" ] ) [ key ] = this . paypal [ key ] ; } } if ( this . stripe ) { data [ "Stripe" ] = { } ; for ( let key in this . stripe ) { if ( this . stripe . hasOwnProperty ( key ) ) ( < any > data [ "Stripe" ] ) [ key ] = this . stripe [ key ] ; } } return data ; } } export interface IAdditionalData { paypal : { [ key ] : string ; } ; stripe : { [ key ] : string ; } ; } export class ApiException extends Error { message : string ; status : number ; response : string ; headers : { [ key ] : any ; } ; result : any ; constructor ( message , status , response , headers , result ) { super ( ) ; this . message = message ; this . status = status ; this . response = response ; this . headers = headers ; this . result = result ; } protected isApiException = true ; static isApiException ( obj ) { return obj . isApiException === true ; } } function throwException ( message , status , response , headers , result ? ) { if ( result !== null && result !== undefined ) return _observableThrow ( result ) ; else return _observableThrow ( new ApiException ( message , status , response , headers , null ) ) ; } function blobToText ( blob ) { return new Observable < string > ( ( observer ) => { if ( ! blob ) { observer . next ( "" ) ; observer . complete ( ) ; } else { let reader = new FileReader ( ) ; reader . onload = event => { observer . next ( ( < any > event . target ) . result ) ; observer . complete ( ) ; } ; reader . readAsText ( blob ) ; } } ) ; }