/**
 * rest api interface
 * 项目标准接口
 *
 * The version of the OpenAPI document: 0.0.1
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */ import { Inject , Injectable , Optional } from '@angular/core' ; import { HttpClient , HttpHeaders , HttpParams , HttpResponse , HttpEvent , HttpParameterCodec } from '@angular/common/http' ; import { CustomHttpParameterCodec } from '../encoder' ; import { Observable } from 'rxjs' ; import { ArticleRes } from '../model/articleRes' ; import { Category } from '../model/category' ; import { CategoryRes } from '../model/categoryRes' ; import { CreateArticleDto } from '../model/createArticleDto' ; import { CreateCategoryDto } from '../model/createCategoryDto' ; import { CreateMediaDto } from '../model/createMediaDto' ; import { CreatePageReq } from '../model/createPageReq' ; import { CreatePhotoDto } from '../model/createPhotoDto' ; import { CreateWidgetDto } from '../model/createWidgetDto' ; import { EditArticleDto } from '../model/editArticleDto' ; import { EditCategoryDto } from '../model/editCategoryDto' ; import { EditMediaDto } from '../model/editMediaDto' ; import { EditPageReq } from '../model/editPageReq' ; import { EditPhotoDto } from '../model/editPhotoDto' ; import { EditWidgetDto } from '../model/editWidgetDto' ; import { KeyValue } from '../model/keyValue' ; import { Media } from '../model/media' ; import { MediaFile } from '../model/mediaFile' ; import { MediaRes } from '../model/mediaRes' ; import { PageRes } from '../model/pageRes' ; import { Photo } from '../model/photo' ; import { PhotoRes } from '../model/photoRes' ; import { ResultListArticleRes } from '../model/resultListArticleRes' ; import { ResultListCategoryRes } from '../model/resultListCategoryRes' ; import { ResultListMediaRes } from '../model/resultListMediaRes' ; import { ResultListPageRes } from '../model/resultListPageRes' ; import { ResultListPhotoRes } from '../model/resultListPhotoRes' ; import { ResultListWidgetRes } from '../model/resultListWidgetRes' ; import { TreeNode } from '../model/treeNode' ; import { UploadMultipleRes } from '../model/uploadMultipleRes' ; import { UploadRes } from '../model/uploadRes' ; import { Widget } from '../model/widget' ; import { WidgetRes } from '../model/widgetRes' ; import { BASE_PATH , COLLECTION_FORMATS } from '../variables' ; import { Configuration } from '../configuration' ; @ Injectable ( { providedIn : 'root' } ) export class CmsService { protected basePath = 'http://localhost' ; public defaultHeaders = new HttpHeaders ( ) ; public configuration = new Configuration ( ) ; public encoder : HttpParameterCodec ; constructor ( protected httpClient , @ Optional ( ) @ Inject ( BASE_PATH ) basePath , @ Optional ( ) configuration ) { if ( configuration ) { this . configuration = configuration ; } if ( typeof this . configuration . basePath !== 'string' ) { if ( typeof basePath !== 'string' ) { basePath = this . basePath ; } this . configuration . basePath = basePath ; } this . encoder = this . configuration . encoder || new CustomHttpParameterCodec ( ) ; } param entry param observe param reportProgress public articleCreate ( entry , observe ? , reportProgress ? ) ; public articleCreate ( entry , observe ? , reportProgress ? ) ; public articleCreate ( entry , observe ? , reportProgress ? ) ; public articleCreate ( entry , observe = 'body' , reportProgress = false ) { if ( entry === null || entry === undefined ) { throw new Error ( 'Required parameter entry was null or undefined when calling articleCreate.' ) ; } let headers = this . defaultHeaders ; const httpHeaderAccepts = [ 'application/json' ] ; const httpHeaderAcceptSelected = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ; if ( httpHeaderAcceptSelected !== undefined ) { headers = headers . set ( 'Accept' , httpHeaderAcceptSelected ) ; } const consumes = [ 'application/json' ] ; const httpContentTypeSelected = this . configuration . selectHeaderContentType ( consumes ) ; if ( httpContentTypeSelected !== undefined ) { headers = headers . set ( 'Content-Type' , httpContentTypeSelected ) ; } return this . httpClient . post < ArticleRes > ( `${ this . configuration . basePath }/article/` , entry , { withCredentials : this . configuration . withCredentials , headers : headers , observe : observe , reportProgress : reportProgress } ) ; } param id param observe param reportProgress public articleFindOne ( id , observe ? , reportProgress ? ) ; public articleFindOne ( id , observe ? , reportProgress ? ) ; public articleFindOne ( id , observe ? , reportProgress ? ) ; public articleFindOne ( id , observe = 'body' , reportProgress = false ) { if ( id === null || id === undefined ) { throw new Error ( 'Required parameter id was null or undefined when calling articleFindOne.' ) ; } let headers = this . defaultHeaders ; const httpHeaderAccepts = [ 'application/json' ] ; const httpHeaderAcceptSelected = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ; if ( httpHeaderAcceptSelected !== undefined ) { headers = headers . set ( 'Accept' , httpHeaderAcceptSelected ) ; } return this . httpClient . get < ArticleRes > ( `${ this . configuration . basePath }/article/${ encodeURIComponent ( String ( id ) ) }` , { withCredentials : this . configuration . withCredentials , headers : headers , observe : observe , reportProgress : reportProgress } ) ; } param keyword param page param size param sort param observe param reportProgress public articleQuery ( keyword ? , page ? , size ? , sort ? , observe ? , reportProgress ? ) ; public articleQuery ( keyword ? , page ? , size ? , sort ? , observe ? , reportProgress ? ) ; public articleQuery ( keyword ? , page ? , size ? , sort ? , observe ? , reportProgress ? ) ; public articleQuery ( keyword ? , page ? , size ? , sort ? , observe = 'body' , reportProgress = false ) { let queryParameters = new HttpParams ( { encoder : this . encoder } ) ; if ( keyword !== undefined && keyword !== null ) { queryParameters = queryParameters . set ( 'keyword' , < any > keyword ) ; } if ( page !== undefined && page !== null ) { queryParameters = queryParameters . set ( 'page' , < any > page ) ; } if ( size !== undefined && size !== null ) { queryParameters = queryParameters . set ( 'size' , < any > size ) ; } if ( sort !== undefined && sort !== null ) { queryParameters = queryParameters . set ( 'sort' , < any > sort ) ; } let headers = this . defaultHeaders ; const httpHeaderAccepts = [ 'application/json' ] ; const httpHeaderAcceptSelected = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ; if ( httpHeaderAcceptSelected !== undefined ) { headers = headers . set ( 'Accept' , httpHeaderAcceptSelected ) ; } return this . httpClient . get < ResultListArticleRes > ( `${ this . configuration . basePath }/article/query` , { params : queryParameters , withCredentials : this . configuration . withCredentials , headers : headers , observe : observe , reportProgress : reportProgress } ) ; } param id param observe param reportProgress public articleRemove ( id , observe ? , reportProgress ? ) ; public articleRemove ( id , observe ? , reportProgress ? ) ; public articleRemove ( id , observe ? , reportProgress ? ) ; public articleRemove ( id , observe = 'body' , reportProgress = false ) { if ( id === null || id === undefined ) { throw new Error ( 'Required parameter id was null or undefined when calling articleRemove.' ) ; } let headers = this . defaultHeaders ; const httpHeaderAccepts = [ 'text/html' ] ; const httpHeaderAcceptSelected = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ; if ( httpHeaderAcceptSelected !== undefined ) { headers = headers . set ( 'Accept' , httpHeaderAcceptSelected ) ; } return this . httpClient . delete < boolean > ( `${ this . configuration . basePath }/article/${ encodeURIComponent ( String ( id ) ) }` , { withCredentials : this . configuration . withCredentials , headers : headers , observe : observe , reportProgress : reportProgress } ) ; } param keyword param value param observe param reportProgress public articleSearch ( keyword ? , value ? , observe ? , reportProgress ? ) ; public articleSearch ( keyword ? , value ? , observe ? , reportProgress ? ) ; public articleSearch ( keyword ? , value ? , observe ? , reportProgress ? ) ; public articleSearch ( keyword ? , value ? , observe = 'body' , reportProgress = false ) { let queryParameters = new HttpParams ( { encoder : this . encoder } ) ; if ( keyword !== undefined && keyword !== null ) { queryParameters = queryParameters . set ( 'keyword' , < any > keyword ) ; } if ( value !== undefined && value !== null ) { queryParameters = queryParameters . set ( 'value' , < any > value ) ; } let headers = this . defaultHeaders ; const httpHeaderAccepts = [ 'application/json' ] ; const httpHeaderAcceptSelected = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ; if ( httpHeaderAcceptSelected !== undefined ) { headers = headers . set ( 'Accept' , httpHeaderAcceptSelected ) ; } return this . httpClient . get < Array < KeyValue > > ( `${ this . configuration . basePath }/article/search` , { params : queryParameters , withCredentials : this . configuration . withCredentials , headers : headers , observe : observe , reportProgress : reportProgress } ) ; } param entry param observe param reportProgress public articleUpdate ( entry , observe ? , reportProgress ? ) ; public articleUpdate ( entry , observe ? , reportProgress ? ) ; public articleUpdate ( entry , observe ? , reportProgress ? ) ; public articleUpdate ( entry , observe = 'body' , reportProgress = false ) { if ( entry === null || entry === undefined ) { throw new Error ( 'Required parameter entry was null or undefined when calling articleUpdate.' ) ; } let headers = this . defaultHeaders ; const httpHeaderAccepts = [ 'application/json' ] ; const httpHeaderAcceptSelected = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ; if ( httpHeaderAcceptSelected !== undefined ) { headers = headers . set ( 'Accept' , httpHeaderAcceptSelected ) ; } const consumes = [ 'application/json' ] ; const httpContentTypeSelected = this . configuration . selectHeaderContentType ( consumes ) ; if ( httpContentTypeSelected !== undefined ) { headers = headers . set ( 'Content-Type' , httpContentTypeSelected ) ; } return this . httpClient . put < ArticleRes > ( `${ this . configuration . basePath }/article/` , entry , { withCredentials : this . configuration . withCredentials , headers : headers , observe : observe , reportProgress : reportProgress } ) ; } param entry param observe param reportProgress public categoryCreate ( entry , observe ? , reportProgress ? ) ; public categoryCreate ( entry , observe ? , reportProgress ? ) ; public categoryCreate ( entry , observe ? , reportProgress ? ) ; public categoryCreate ( entry , observe = 'body' , reportProgress = false ) { if ( entry === null || entry === undefined ) { throw new Error ( 'Required parameter entry was null or undefined when calling categoryCreate.' ) ; } let headers = this . defaultHeaders ; const httpHeaderAccepts = [ 'application/json' ] ; const httpHeaderAcceptSelected = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ; if ( httpHeaderAcceptSelected !== undefined ) { headers = headers . set ( 'Accept' , httpHeaderAcceptSelected ) ; } const consumes = [ 'application/json' ] ; const httpContentTypeSelected = this . configuration . selectHeaderContentType ( consumes ) ; if ( httpContentTypeSelected !== undefined ) { headers = headers . set ( 'Content-Type' , httpContentTypeSelected ) ; } return this . httpClient . post < CategoryRes > ( `${ this . configuration . basePath }/category/` , entry , { withCredentials : this . configuration . withCredentials , headers : headers , observe : observe , reportProgress : reportProgress } ) ; } param id param observe param reportProgress public categoryFindOne ( id , observe ? , reportProgress ? ) ; public categoryFindOne ( id , observe ? , reportProgress ? ) ; public categoryFindOne ( id , observe ? , reportProgress ? ) ; public categoryFindOne ( id , observe = 'body' , reportProgress = false ) { if ( id === null || id === undefined ) { throw new Error ( 'Required parameter id was null or undefined when calling categoryFindOne.' ) ; } let headers = this . defaultHeaders ; const httpHeaderAccepts = [ 'application/json' ] ; const httpHeaderAcceptSelected = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ; if ( httpHeaderAcceptSelected !== undefined ) { headers = headers . set ( 'Accept' , httpHeaderAcceptSelected ) ; } return this . httpClient . get < Category > ( `${ this . configuration . basePath }/category/${ encodeURIComponent ( String ( id ) ) }` , { withCredentials : this . configuration . withCredentials , headers : headers , observe : observe , reportProgress : reportProgress } ) ; } param keyword param page param size param sort param observe param reportProgress public categoryQuery ( keyword ? , page ? , size ? , sort ? , observe ? , reportProgress ? ) ; public categoryQuery ( keyword ? , page ? , size ? , sort ? , observe ? , reportProgress ? ) ; public categoryQuery ( keyword ? , page ? , size ? , sort ? , observe ? , reportProgress ? ) ; public categoryQuery ( keyword ? , page ? , size ? , sort ? , observe = 'body' , reportProgress = false ) { let queryParameters = new HttpParams ( { encoder : this . encoder } ) ; if ( keyword !== undefined && keyword !== null ) { queryParameters = queryParameters . set ( 'keyword' , < any > keyword ) ; } if ( page !== undefined && page !== null ) { queryParameters = queryParameters . set ( 'page' , < any > page ) ; } if ( size !== undefined && size !== null ) { queryParameters = queryParameters . set ( 'size' , < any > size ) ; } if ( sort !== undefined && sort !== null ) { queryParameters = queryParameters . set ( 'sort' , < any > sort ) ; } let headers = this . defaultHeaders ; const httpHeaderAccepts = [ 'application/json' ] ; const httpHeaderAcceptSelected = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ; if ( httpHeaderAcceptSelected !== undefined ) { headers = headers . set ( 'Accept' , httpHeaderAcceptSelected ) ; } return this . httpClient . get < ResultListCategoryRes > ( `${ this . configuration . basePath }/category/query` , { params : queryParameters , withCredentials : this . configuration . withCredentials , headers : headers , observe : observe , reportProgress : reportProgress } ) ; } param id param observe param reportProgress public categoryRemove ( id , observe ? , reportProgress ? ) ; public categoryRemove ( id , observe ? , reportProgress ? ) ; public categoryRemove ( id , observe ? , reportProgress ? ) ; public categoryRemove ( id , observe = 'body' , reportProgress = false ) { if ( id === null || id === undefined ) { throw new Error ( 'Required parameter id was null or undefined when calling categoryRemove.' ) ; } let headers = this . defaultHeaders ; const httpHeaderAccepts = [ 'text/html' ] ; const httpHeaderAcceptSelected = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ; if ( httpHeaderAcceptSelected !== undefined ) { headers = headers . set ( 'Accept' , httpHeaderAcceptSelected ) ; } return this . httpClient . delete < boolean > ( `${ this . configuration . basePath }/category/${ encodeURIComponent ( String ( id ) ) }` , { withCredentials : this . configuration . withCredentials , headers : headers , observe : observe , reportProgress : reportProgress } ) ; } param keyword param value param observe param reportProgress public categorySearch ( keyword ? , value ? , observe ? , reportProgress ? ) ; public categorySearch ( keyword ? , value ? , observe ? , reportProgress ? ) ; public categorySearch ( keyword ? , value ? , observe ? , reportProgress ? ) ; public categorySearch ( keyword ? , value ? , observe = 'body' , reportProgress = false ) { let queryParameters = new HttpParams ( { encoder : this . encoder } ) ; if ( keyword !== undefined && keyword !== null ) { queryParameters = queryParameters . set ( 'keyword' , < any > keyword ) ; } if ( value !== undefined && value !== null ) { queryParameters = queryParameters . set ( 'value' , < any > value ) ; } let headers = this . defaultHeaders ; const httpHeaderAccepts = [ 'application/json' ] ; const httpHeaderAcceptSelected = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ; if ( httpHeaderAcceptSelected !== undefined ) { headers = headers . set ( 'Accept' , httpHeaderAcceptSelected ) ; } return this . httpClient . get < Array < KeyValue > > ( `${ this . configuration . basePath }/category/search` , { params : queryParameters , withCredentials : this . configuration . withCredentials , headers : headers , observe : observe , reportProgress : reportProgress } ) ; } param keyword param value param observe param reportProgress public categorySearchTree ( keyword ? , value ? , observe ? , reportProgress ? ) ; public categorySearchTree ( keyword ? , value ? , observe ? , reportProgress ? ) ; public categorySearchTree ( keyword ? , value ? , observe ? , reportProgress ? ) ; public categorySearchTree ( keyword ? , value ? , observe = 'body' , reportProgress = false ) { let queryParameters = new HttpParams ( { encoder : this . encoder } ) ; if ( keyword !== undefined && keyword !== null ) { queryParameters = queryParameters . set ( 'keyword' , < any > keyword ) ; } if ( value !== undefined && value !== null ) { queryParameters = queryParameters . set ( 'value' , < any > value ) ; } let headers = this . defaultHeaders ; const httpHeaderAccepts = [ 'application/json' ] ; const httpHeaderAcceptSelected = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ; if ( httpHeaderAcceptSelected !== undefined ) { headers = headers . set ( 'Accept' , httpHeaderAcceptSelected ) ; } return this . httpClient . get < Array < TreeNode > > ( `${ this . configuration . basePath }/category/tree` , { params : queryParameters , withCredentials : this . configuration . withCredentials , headers : headers , observe : observe , reportProgress : reportProgress } ) ; } param entry param observe param reportProgress public categoryUpdate ( entry , observe ? , reportProgress ? ) ; public categoryUpdate ( entry , observe ? , reportProgress ? ) ; public categoryUpdate ( entry , observe ? , reportProgress ? ) ; public categoryUpdate ( entry , observe = 'body' , reportProgress = false ) { if ( entry === null || entry === undefined ) { throw new Error ( 'Required parameter entry was null or undefined when calling categoryUpdate.' ) ; } let headers = this . defaultHeaders ; const httpHeaderAccepts = [ 'application/json' ] ; const httpHeaderAcceptSelected = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ; if ( httpHeaderAcceptSelected !== undefined ) { headers = headers . set ( 'Accept' , httpHeaderAcceptSelected ) ; } const consumes = [ 'application/json' ] ; const httpContentTypeSelected = this . configuration . selectHeaderContentType ( consumes ) ; if ( httpContentTypeSelected !== undefined ) { headers = headers . set ( 'Content-Type' , httpContentTypeSelected ) ; } return this . httpClient . put < CategoryRes > ( `${ this . configuration . basePath }/category/` , entry , { withCredentials : this . configuration . withCredentials , headers : headers , observe : observe , reportProgress : reportProgress } ) ; } param entry param observe param reportProgress public mediaCreate ( entry , observe ? , reportProgress ? ) ; public mediaCreate ( entry , observe ? , reportProgress ? ) ; public mediaCreate ( entry , observe ? , reportProgress ? ) ; public mediaCreate ( entry , observe = 'body' , reportProgress = false ) { if ( entry === null || entry === undefined ) { throw new Error ( 'Required parameter entry was null or undefined when calling mediaCreate.' ) ; } let headers = this . defaultHeaders ; const httpHeaderAccepts = [ 'application/json' ] ; const httpHeaderAcceptSelected = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ; if ( httpHeaderAcceptSelected !== undefined ) { headers = headers . set ( 'Accept' , httpHeaderAcceptSelected ) ; } const consumes = [ 'application/json' ] ; const httpContentTypeSelected = this . configuration . selectHeaderContentType ( consumes ) ; if ( httpContentTypeSelected !== undefined ) { headers = headers . set ( 'Content-Type' , httpContentTypeSelected ) ; } return this . httpClient . post < MediaRes > ( `${ this . configuration . basePath }/media/` , entry , { withCredentials : this . configuration . withCredentials , headers : headers , observe : observe , reportProgress : reportProgress } ) ; } param id param observe param reportProgress public mediaFindOne ( id , observe ? , reportProgress ? ) ; public mediaFindOne ( id , observe ? , reportProgress ? ) ; public mediaFindOne ( id , observe ? , reportProgress ? ) ; public mediaFindOne ( id , observe = 'body' , reportProgress = false ) { if ( id === null || id === undefined ) { throw new Error ( 'Required parameter id was null or undefined when calling mediaFindOne.' ) ; } let headers = this . defaultHeaders ; const httpHeaderAccepts = [ 'application/json' ] ; const httpHeaderAcceptSelected = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ; if ( httpHeaderAcceptSelected !== undefined ) { headers = headers . set ( 'Accept' , httpHeaderAcceptSelected ) ; } return this . httpClient . get < Media > ( `${ this . configuration . basePath }/media/${ encodeURIComponent ( String ( id ) ) }` , { withCredentials : this . configuration . withCredentials , headers : headers , observe : observe , reportProgress : reportProgress } ) ; } param keyword param page param size param sort param observe param reportProgress public mediaQuery ( keyword ? , page ? , size ? , sort ? , observe ? , reportProgress ? ) ; public mediaQuery ( keyword ? , page ? , size ? , sort ? , observe ? , reportProgress ? ) ; public mediaQuery ( keyword ? , page ? , size ? , sort ? , observe ? , reportProgress ? ) ; public mediaQuery ( keyword ? , page ? , size ? , sort ? , observe = 'body' , reportProgress = false ) { let queryParameters = new HttpParams ( { encoder : this . encoder } ) ; if ( keyword !== undefined && keyword !== null ) { queryParameters = queryParameters . set ( 'keyword' , < any > keyword ) ; } if ( page !== undefined && page !== null ) { queryParameters = queryParameters . set ( 'page' , < any > page ) ; } if ( size !== undefined && size !== null ) { queryParameters = queryParameters . set ( 'size' , < any > size ) ; } if ( sort !== undefined && sort !== null ) { queryParameters = queryParameters . set ( 'sort' , < any > sort ) ; } let headers = this . defaultHeaders ; const httpHeaderAccepts = [ 'application/json' ] ; const httpHeaderAcceptSelected = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ; if ( httpHeaderAcceptSelected !== undefined ) { headers = headers . set ( 'Accept' , httpHeaderAcceptSelected ) ; } return this . httpClient . get < ResultListMediaRes > ( `${ this . configuration . basePath }/media/query` , { params : queryParameters , withCredentials : this . configuration . withCredentials , headers : headers , observe : observe , reportProgress : reportProgress } ) ; } param id param observe param reportProgress public mediaRemove ( id , observe ? , reportProgress ? ) ; public mediaRemove ( id , observe ? , reportProgress ? ) ; public mediaRemove ( id , observe ? , reportProgress ? ) ; public mediaRemove ( id , observe = 'body' , reportProgress = false ) { if ( id === null || id === undefined ) { throw new Error ( 'Required parameter id was null or undefined when calling mediaRemove.' ) ; } let headers = this . defaultHeaders ; const httpHeaderAccepts = [ 'text/html' ] ; const httpHeaderAcceptSelected = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ; if ( httpHeaderAcceptSelected !== undefined ) { headers = headers . set ( 'Accept' , httpHeaderAcceptSelected ) ; } return this . httpClient . delete < boolean > ( `${ this . configuration . basePath }/media/${ encodeURIComponent ( String ( id ) ) }` , { withCredentials : this . configuration . withCredentials , headers : headers , observe : observe , reportProgress : reportProgress } ) ; } param keyword param value param observe param reportProgress public mediaSearch ( keyword ? , value ? , observe ? , reportProgress ? ) ; public mediaSearch ( keyword ? , value ? , observe ? , reportProgress ? ) ; public mediaSearch ( keyword ? , value ? , observe ? , reportProgress ? ) ; public mediaSearch ( keyword ? , value ? , observe = 'body' , reportProgress = false ) { let queryParameters = new HttpParams ( { encoder : this . encoder } ) ; if ( keyword !== undefined && keyword !== null ) { queryParameters = queryParameters . set ( 'keyword' , < any > keyword ) ; } if ( value !== undefined && value !== null ) { queryParameters = queryParameters . set ( 'value' , < any > value ) ; } let headers = this . defaultHeaders ; const httpHeaderAccepts = [ 'application/json' ] ; const httpHeaderAcceptSelected = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ; if ( httpHeaderAcceptSelected !== undefined ) { headers = headers . set ( 'Accept' , httpHeaderAcceptSelected ) ; } return this . httpClient . get < Array < KeyValue > > ( `${ this . configuration . basePath }/media/search` , { params : queryParameters , withCredentials : this . configuration . withCredentials , headers : headers , observe : observe , reportProgress : reportProgress } ) ; } param entry param observe param reportProgress public mediaUpdate ( entry , observe ? , reportProgress ? ) ; public mediaUpdate ( entry , observe ? , reportProgress ? ) ; public mediaUpdate ( entry , observe ? , reportProgress ? ) ; public mediaUpdate ( entry , observe = 'body' , reportProgress = false ) { if ( entry === null || entry === undefined ) { throw new Error ( 'Required parameter entry was null or undefined when calling mediaUpdate.' ) ; } let headers = this . defaultHeaders ; const httpHeaderAccepts = [ 'application/json' ] ; const httpHeaderAcceptSelected = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ; if ( httpHeaderAcceptSelected !== undefined ) { headers = headers . set ( 'Accept' , httpHeaderAcceptSelected ) ; } const consumes = [ 'application/json' ] ; const httpContentTypeSelected = this . configuration . selectHeaderContentType ( consumes ) ; if ( httpContentTypeSelected !== undefined ) { headers = headers . set ( 'Content-Type' , httpContentTypeSelected ) ; } return this . httpClient . put < MediaRes > ( `${ this . configuration . basePath }/media/` , entry , { withCredentials : this . configuration . withCredentials , headers : headers , observe : observe , reportProgress : reportProgress } ) ; } param file param observe param reportProgress public mediaUploadFile ( file , observe ? , reportProgress ? ) ; public mediaUploadFile ( file , observe ? , reportProgress ? ) ; public mediaUploadFile ( file , observe ? , reportProgress ? ) ; public mediaUploadFile ( file , observe = 'body' , reportProgress = false ) { if ( file === null || file === undefined ) { throw new Error ( 'Required parameter file was null or undefined when calling mediaUploadFile.' ) ; } let headers = this . defaultHeaders ; const httpHeaderAccepts = [ 'application/json' ] ; const httpHeaderAcceptSelected = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ; if ( httpHeaderAcceptSelected !== undefined ) { headers = headers . set ( 'Accept' , httpHeaderAcceptSelected ) ; } const consumes = [ 'application/json' ] ; const httpContentTypeSelected = this . configuration . selectHeaderContentType ( consumes ) ; if ( httpContentTypeSelected !== undefined ) { headers = headers . set ( 'Content-Type' , httpContentTypeSelected ) ; } return this . httpClient . post < UploadRes > ( `${ this . configuration . basePath }/media/upload` , file , { withCredentials : this . configuration . withCredentials , headers : headers , observe : observe , reportProgress : reportProgress } ) ; } param files param observe param reportProgress public mediaUploadFiles ( files ? , observe ? , reportProgress ? ) ; public mediaUploadFiles ( files ? , observe ? , reportProgress ? ) ; public mediaUploadFiles ( files ? , observe ? , reportProgress ? ) ; public mediaUploadFiles ( files ? , observe = 'body' , reportProgress = false ) { let headers = this . defaultHeaders ; const httpHeaderAccepts = [ 'application/json' ] ; const httpHeaderAcceptSelected = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ; if ( httpHeaderAcceptSelected !== undefined ) { headers = headers . set ( 'Accept' , httpHeaderAcceptSelected ) ; } const consumes = [ 'application/json' ] ; const httpContentTypeSelected = this . configuration . selectHeaderContentType ( consumes ) ; if ( httpContentTypeSelected !== undefined ) { headers = headers . set ( 'Content-Type' , httpContentTypeSelected ) ; } return this . httpClient . post < UploadMultipleRes > ( `${ this . configuration . basePath }/media/uploads` , files , { withCredentials : this . configuration . withCredentials , headers : headers , observe : observe , reportProgress : reportProgress } ) ; } param entry param observe param reportProgress public pageCreate ( entry , observe ? , reportProgress ? ) ; public pageCreate ( entry , observe ? , reportProgress ? ) ; public pageCreate ( entry , observe ? , reportProgress ? ) ; public pageCreate ( entry , observe = 'body' , reportProgress = false ) { if ( entry === null || entry === undefined ) { throw new Error ( 'Required parameter entry was null or undefined when calling pageCreate.' ) ; } let headers = this . defaultHeaders ; const httpHeaderAccepts = [ 'application/json' ] ; const httpHeaderAcceptSelected = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ; if ( httpHeaderAcceptSelected !== undefined ) { headers = headers . set ( 'Accept' , httpHeaderAcceptSelected ) ; } const consumes = [ 'application/json' ] ; const httpContentTypeSelected = this . configuration . selectHeaderContentType ( consumes ) ; if ( httpContentTypeSelected !== undefined ) { headers = headers . set ( 'Content-Type' , httpContentTypeSelected ) ; } return this . httpClient . post < PageRes > ( `${ this . configuration . basePath }/page/` , entry , { withCredentials : this . configuration . withCredentials , headers : headers , observe : observe , reportProgress : reportProgress } ) ; } param id param observe param reportProgress public pageFindOne ( id , observe ? , reportProgress ? ) ; public pageFindOne ( id , observe ? , reportProgress ? ) ; public pageFindOne ( id , observe ? , reportProgress ? ) ; public pageFindOne ( id , observe = 'body' , reportProgress = false ) { if ( id === null || id === undefined ) { throw new Error ( 'Required parameter id was null or undefined when calling pageFindOne.' ) ; } let headers = this . defaultHeaders ; const httpHeaderAccepts = [ 'application/json' ] ; const httpHeaderAcceptSelected = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ; if ( httpHeaderAcceptSelected !== undefined ) { headers = headers . set ( 'Accept' , httpHeaderAcceptSelected ) ; } return this . httpClient . get < PageRes > ( `${ this . configuration . basePath }/page/${ encodeURIComponent ( String ( id ) ) }` , { withCredentials : this . configuration . withCredentials , headers : headers , observe : observe , reportProgress : reportProgress } ) ; } param keyword param page param size param sort param observe param reportProgress public pageQuery ( keyword ? , page ? , size ? , sort ? , observe ? , reportProgress ? ) ; public pageQuery ( keyword ? , page ? , size ? , sort ? , observe ? , reportProgress ? ) ; public pageQuery ( keyword ? , page ? , size ? , sort ? , observe ? , reportProgress ? ) ; public pageQuery ( keyword ? , page ? , size ? , sort ? , observe = 'body' , reportProgress = false ) { let queryParameters = new HttpParams ( { encoder : this . encoder } ) ; if ( keyword !== undefined && keyword !== null ) { queryParameters = queryParameters . set ( 'keyword' , < any > keyword ) ; } if ( page !== undefined && page !== null ) { queryParameters = queryParameters . set ( 'page' , < any > page ) ; } if ( size !== undefined && size !== null ) { queryParameters = queryParameters . set ( 'size' , < any > size ) ; } if ( sort !== undefined && sort !== null ) { queryParameters = queryParameters . set ( 'sort' , < any > sort ) ; } let headers = this . defaultHeaders ; const httpHeaderAccepts = [ 'application/json' ] ; const httpHeaderAcceptSelected = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ; if ( httpHeaderAcceptSelected !== undefined ) { headers = headers . set ( 'Accept' , httpHeaderAcceptSelected ) ; } return this . httpClient . get < ResultListPageRes > ( `${ this . configuration . basePath }/page/query` , { params : queryParameters , withCredentials : this . configuration . withCredentials , headers : headers , observe : observe , reportProgress : reportProgress } ) ; } param id param observe param reportProgress public pageRemove ( id , observe ? , reportProgress ? ) ; public pageRemove ( id , observe ? , reportProgress ? ) ; public pageRemove ( id , observe ? , reportProgress ? ) ; public pageRemove ( id , observe = 'body' , reportProgress = false ) { if ( id === null || id === undefined ) { throw new Error ( 'Required parameter id was null or undefined when calling pageRemove.' ) ; } let headers = this . defaultHeaders ; const httpHeaderAccepts = [ 'text/html' ] ; const httpHeaderAcceptSelected = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ; if ( httpHeaderAcceptSelected !== undefined ) { headers = headers . set ( 'Accept' , httpHeaderAcceptSelected ) ; } return this . httpClient . delete < boolean > ( `${ this . configuration . basePath }/page/${ encodeURIComponent ( String ( id ) ) }` , { withCredentials : this . configuration . withCredentials , headers : headers , observe : observe , reportProgress : reportProgress } ) ; } param keyword param value param observe param reportProgress public pageSearch ( keyword ? , value ? , observe ? , reportProgress ? ) ; public pageSearch ( keyword ? , value ? , observe ? , reportProgress ? ) ; public pageSearch ( keyword ? , value ? , observe ? , reportProgress ? ) ; public pageSearch ( keyword ? , value ? , observe = 'body' , reportProgress = false ) { let queryParameters = new HttpParams ( { encoder : this . encoder } ) ; if ( keyword !== undefined && keyword !== null ) { queryParameters = queryParameters . set ( 'keyword' , < any > keyword ) ; } if ( value !== undefined && value !== null ) { queryParameters = queryParameters . set ( 'value' , < any > value ) ; } let headers = this . defaultHeaders ; const httpHeaderAccepts = [ 'application/json' ] ; const httpHeaderAcceptSelected = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ; if ( httpHeaderAcceptSelected !== undefined ) { headers = headers . set ( 'Accept' , httpHeaderAcceptSelected ) ; } return this . httpClient . get < Array < KeyValue > > ( `${ this . configuration . basePath }/page/search` , { params : queryParameters , withCredentials : this . configuration . withCredentials , headers : headers , observe : observe , reportProgress : reportProgress } ) ; } param entry param observe param reportProgress public pageUpdate ( entry , observe ? , reportProgress ? ) ; public pageUpdate ( entry , observe ? , reportProgress ? ) ; public pageUpdate ( entry , observe ? , reportProgress ? ) ; public pageUpdate ( entry , observe = 'body' , reportProgress = false ) { if ( entry === null || entry === undefined ) { throw new Error ( 'Required parameter entry was null or undefined when calling pageUpdate.' ) ; } let headers = this . defaultHeaders ; const httpHeaderAccepts = [ 'application/json' ] ; const httpHeaderAcceptSelected = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ; if ( httpHeaderAcceptSelected !== undefined ) { headers = headers . set ( 'Accept' , httpHeaderAcceptSelected ) ; } const consumes = [ 'application/json' ] ; const httpContentTypeSelected = this . configuration . selectHeaderContentType ( consumes ) ; if ( httpContentTypeSelected !== undefined ) { headers = headers . set ( 'Content-Type' , httpContentTypeSelected ) ; } return this . httpClient . put < PageRes > ( `${ this . configuration . basePath }/page/` , entry , { withCredentials : this . configuration . withCredentials , headers : headers , observe : observe , reportProgress : reportProgress } ) ; } param entry param observe param reportProgress public photoCreate ( entry , observe ? , reportProgress ? ) ; public photoCreate ( entry , observe ? , reportProgress ? ) ; public photoCreate ( entry , observe ? , reportProgress ? ) ; public photoCreate ( entry , observe = 'body' , reportProgress = false ) { if ( entry === null || entry === undefined ) { throw new Error ( 'Required parameter entry was null or undefined when calling photoCreate.' ) ; } let headers = this . defaultHeaders ; const httpHeaderAccepts = [ 'application/json' ] ; const httpHeaderAcceptSelected = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ; if ( httpHeaderAcceptSelected !== undefined ) { headers = headers . set ( 'Accept' , httpHeaderAcceptSelected ) ; } const consumes = [ 'application/json' ] ; const httpContentTypeSelected = this . configuration . selectHeaderContentType ( consumes ) ; if ( httpContentTypeSelected !== undefined ) { headers = headers . set ( 'Content-Type' , httpContentTypeSelected ) ; } return this . httpClient . post < PhotoRes > ( `${ this . configuration . basePath }/photo/` , entry , { withCredentials : this . configuration . withCredentials , headers : headers , observe : observe , reportProgress : reportProgress } ) ; } param id param observe param reportProgress public photoFindOne ( id , observe ? , reportProgress ? ) ; public photoFindOne ( id , observe ? , reportProgress ? ) ; public photoFindOne ( id , observe ? , reportProgress ? ) ; public photoFindOne ( id , observe = 'body' , reportProgress = false ) { if ( id === null || id === undefined ) { throw new Error ( 'Required parameter id was null or undefined when calling photoFindOne.' ) ; } let headers = this . defaultHeaders ; const httpHeaderAccepts = [ 'application/json' ] ; const httpHeaderAcceptSelected = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ; if ( httpHeaderAcceptSelected !== undefined ) { headers = headers . set ( 'Accept' , httpHeaderAcceptSelected ) ; } return this . httpClient . get < Photo > ( `${ this . configuration . basePath }/photo/${ encodeURIComponent ( String ( id ) ) }` , { withCredentials : this . configuration . withCredentials , headers : headers , observe : observe , reportProgress : reportProgress } ) ; } param keyword param page param size param sort param observe param reportProgress public photoQuery ( keyword ? , page ? , size ? , sort ? , observe ? , reportProgress ? ) ; public photoQuery ( keyword ? , page ? , size ? , sort ? , observe ? , reportProgress ? ) ; public photoQuery ( keyword ? , page ? , size ? , sort ? , observe ? , reportProgress ? ) ; public photoQuery ( keyword ? , page ? , size ? , sort ? , observe = 'body' , reportProgress = false ) { let queryParameters = new HttpParams ( { encoder : this . encoder } ) ; if ( keyword !== undefined && keyword !== null ) { queryParameters = queryParameters . set ( 'keyword' , < any > keyword ) ; } if ( page !== undefined && page !== null ) { queryParameters = queryParameters . set ( 'page' , < any > page ) ; } if ( size !== undefined && size !== null ) { queryParameters = queryParameters . set ( 'size' , < any > size ) ; } if ( sort !== undefined && sort !== null ) { queryParameters = queryParameters . set ( 'sort' , < any > sort ) ; } let headers = this . defaultHeaders ; const httpHeaderAccepts = [ 'application/json' ] ; const httpHeaderAcceptSelected = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ; if ( httpHeaderAcceptSelected !== undefined ) { headers = headers . set ( 'Accept' , httpHeaderAcceptSelected ) ; } return this . httpClient . get < ResultListPhotoRes > ( `${ this . configuration . basePath }/photo/query` , { params : queryParameters , withCredentials : this . configuration . withCredentials , headers : headers , observe : observe , reportProgress : reportProgress } ) ; } param id param observe param reportProgress public photoRemove ( id , observe ? , reportProgress ? ) ; public photoRemove ( id , observe ? , reportProgress ? ) ; public photoRemove ( id , observe ? , reportProgress ? ) ; public photoRemove ( id , observe = 'body' , reportProgress = false ) { if ( id === null || id === undefined ) { throw new Error ( 'Required parameter id was null or undefined when calling photoRemove.' ) ; } let headers = this . defaultHeaders ; const httpHeaderAccepts = [ 'text/html' ] ; const httpHeaderAcceptSelected = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ; if ( httpHeaderAcceptSelected !== undefined ) { headers = headers . set ( 'Accept' , httpHeaderAcceptSelected ) ; } return this . httpClient . delete < boolean > ( `${ this . configuration . basePath }/photo/${ encodeURIComponent ( String ( id ) ) }` , { withCredentials : this . configuration . withCredentials , headers : headers , observe : observe , reportProgress : reportProgress } ) ; } param keyword param value param observe param reportProgress public photoSearch ( keyword ? , value ? , observe ? , reportProgress ? ) ; public photoSearch ( keyword ? , value ? , observe ? , reportProgress ? ) ; public photoSearch ( keyword ? , value ? , observe ? , reportProgress ? ) ; public photoSearch ( keyword ? , value ? , observe = 'body' , reportProgress = false ) { let queryParameters = new HttpParams ( { encoder : this . encoder } ) ; if ( keyword !== undefined && keyword !== null ) { queryParameters = queryParameters . set ( 'keyword' , < any > keyword ) ; } if ( value !== undefined && value !== null ) { queryParameters = queryParameters . set ( 'value' , < any > value ) ; } let headers = this . defaultHeaders ; const httpHeaderAccepts = [ 'application/json' ] ; const httpHeaderAcceptSelected = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ; if ( httpHeaderAcceptSelected !== undefined ) { headers = headers . set ( 'Accept' , httpHeaderAcceptSelected ) ; } return this . httpClient . get < Array < KeyValue > > ( `${ this . configuration . basePath }/photo/search` , { params : queryParameters , withCredentials : this . configuration . withCredentials , headers : headers , observe : observe , reportProgress : reportProgress } ) ; } param entry param observe param reportProgress public photoUpdate ( entry , observe ? , reportProgress ? ) ; public photoUpdate ( entry , observe ? , reportProgress ? ) ; public photoUpdate ( entry , observe ? , reportProgress ? ) ; public photoUpdate ( entry , observe = 'body' , reportProgress = false ) { if ( entry === null || entry === undefined ) { throw new Error ( 'Required parameter entry was null or undefined when calling photoUpdate.' ) ; } let headers = this . defaultHeaders ; const httpHeaderAccepts = [ 'application/json' ] ; const httpHeaderAcceptSelected = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ; if ( httpHeaderAcceptSelected !== undefined ) { headers = headers . set ( 'Accept' , httpHeaderAcceptSelected ) ; } const consumes = [ 'application/json' ] ; const httpContentTypeSelected = this . configuration . selectHeaderContentType ( consumes ) ; if ( httpContentTypeSelected !== undefined ) { headers = headers . set ( 'Content-Type' , httpContentTypeSelected ) ; } return this . httpClient . put < PhotoRes > ( `${ this . configuration . basePath }/photo/` , entry , { withCredentials : this . configuration . withCredentials , headers : headers , observe : observe , reportProgress : reportProgress } ) ; } param entry param observe param reportProgress public widgetCreate ( entry , observe ? , reportProgress ? ) ; public widgetCreate ( entry , observe ? , reportProgress ? ) ; public widgetCreate ( entry , observe ? , reportProgress ? ) ; public widgetCreate ( entry , observe = 'body' , reportProgress = false ) { if ( entry === null || entry === undefined ) { throw new Error ( 'Required parameter entry was null or undefined when calling widgetCreate.' ) ; } let headers = this . defaultHeaders ; const httpHeaderAccepts = [ 'application/json' ] ; const httpHeaderAcceptSelected = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ; if ( httpHeaderAcceptSelected !== undefined ) { headers = headers . set ( 'Accept' , httpHeaderAcceptSelected ) ; } const consumes = [ 'application/json' ] ; const httpContentTypeSelected = this . configuration . selectHeaderContentType ( consumes ) ; if ( httpContentTypeSelected !== undefined ) { headers = headers . set ( 'Content-Type' , httpContentTypeSelected ) ; } return this . httpClient . post < WidgetRes > ( `${ this . configuration . basePath }/widget/` , entry , { withCredentials : this . configuration . withCredentials , headers : headers , observe : observe , reportProgress : reportProgress } ) ; } param id param observe param reportProgress public widgetFindOne ( id , observe ? , reportProgress ? ) ; public widgetFindOne ( id , observe ? , reportProgress ? ) ; public widgetFindOne ( id , observe ? , reportProgress ? ) ; public widgetFindOne ( id , observe = 'body' , reportProgress = false ) { if ( id === null || id === undefined ) { throw new Error ( 'Required parameter id was null or undefined when calling widgetFindOne.' ) ; } let headers = this . defaultHeaders ; const httpHeaderAccepts = [ 'application/json' ] ; const httpHeaderAcceptSelected = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ; if ( httpHeaderAcceptSelected !== undefined ) { headers = headers . set ( 'Accept' , httpHeaderAcceptSelected ) ; } return this . httpClient . get < Widget > ( `${ this . configuration . basePath }/widget/${ encodeURIComponent ( String ( id ) ) }` , { withCredentials : this . configuration . withCredentials , headers : headers , observe : observe , reportProgress : reportProgress } ) ; } param keyword param page param size param sort param observe param reportProgress public widgetQuery ( keyword ? , page ? , size ? , sort ? , observe ? , reportProgress ? ) ; public widgetQuery ( keyword ? , page ? , size ? , sort ? , observe ? , reportProgress ? ) ; public widgetQuery ( keyword ? , page ? , size ? , sort ? , observe ? , reportProgress ? ) ; public widgetQuery ( keyword ? , page ? , size ? , sort ? , observe = 'body' , reportProgress = false ) { let queryParameters = new HttpParams ( { encoder : this . encoder } ) ; if ( keyword !== undefined && keyword !== null ) { queryParameters = queryParameters . set ( 'keyword' , < any > keyword ) ; } if ( page !== undefined && page !== null ) { queryParameters = queryParameters . set ( 'page' , < any > page ) ; } if ( size !== undefined && size !== null ) { queryParameters = queryParameters . set ( 'size' , < any > size ) ; } if ( sort !== undefined && sort !== null ) { queryParameters = queryParameters . set ( 'sort' , < any > sort ) ; } let headers = this . defaultHeaders ; const httpHeaderAccepts = [ 'application/json' ] ; const httpHeaderAcceptSelected = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ; if ( httpHeaderAcceptSelected !== undefined ) { headers = headers . set ( 'Accept' , httpHeaderAcceptSelected ) ; } return this . httpClient . get < ResultListWidgetRes > ( `${ this . configuration . basePath }/widget/query` , { params : queryParameters , withCredentials : this . configuration . withCredentials , headers : headers , observe : observe , reportProgress : reportProgress } ) ; } param id param observe param reportProgress public widgetRemove ( id , observe ? , reportProgress ? ) ; public widgetRemove ( id , observe ? , reportProgress ? ) ; public widgetRemove ( id , observe ? , reportProgress ? ) ; public widgetRemove ( id , observe = 'body' , reportProgress = false ) { if ( id === null || id === undefined ) { throw new Error ( 'Required parameter id was null or undefined when calling widgetRemove.' ) ; } let headers = this . defaultHeaders ; const httpHeaderAccepts = [ 'text/html' ] ; const httpHeaderAcceptSelected = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ; if ( httpHeaderAcceptSelected !== undefined ) { headers = headers . set ( 'Accept' , httpHeaderAcceptSelected ) ; } return this . httpClient . delete < boolean > ( `${ this . configuration . basePath }/widget/${ encodeURIComponent ( String ( id ) ) }` , { withCredentials : this . configuration . withCredentials , headers : headers , observe : observe , reportProgress : reportProgress } ) ; } param keyword param value param observe param reportProgress public widgetSearch ( keyword ? , value ? , observe ? , reportProgress ? ) ; public widgetSearch ( keyword ? , value ? , observe ? , reportProgress ? ) ; public widgetSearch ( keyword ? , value ? , observe ? , reportProgress ? ) ; public widgetSearch ( keyword ? , value ? , observe = 'body' , reportProgress = false ) { let queryParameters = new HttpParams ( { encoder : this . encoder } ) ; if ( keyword !== undefined && keyword !== null ) { queryParameters = queryParameters . set ( 'keyword' , < any > keyword ) ; } if ( value !== undefined && value !== null ) { queryParameters = queryParameters . set ( 'value' , < any > value ) ; } let headers = this . defaultHeaders ; const httpHeaderAccepts = [ 'application/json' ] ; const httpHeaderAcceptSelected = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ; if ( httpHeaderAcceptSelected !== undefined ) { headers = headers . set ( 'Accept' , httpHeaderAcceptSelected ) ; } return this . httpClient . get < Array < KeyValue > > ( `${ this . configuration . basePath }/widget/search` , { params : queryParameters , withCredentials : this . configuration . withCredentials , headers : headers , observe : observe , reportProgress : reportProgress } ) ; } param entry param observe param reportProgress public widgetUpdate ( entry , observe ? , reportProgress ? ) ; public widgetUpdate ( entry , observe ? , reportProgress ? ) ; public widgetUpdate ( entry , observe ? , reportProgress ? ) ; public widgetUpdate ( entry , observe = 'body' , reportProgress = false ) { if ( entry === null || entry === undefined ) { throw new Error ( 'Required parameter entry was null or undefined when calling widgetUpdate.' ) ; } let headers = this . defaultHeaders ; const httpHeaderAccepts = [ 'application/json' ] ; const httpHeaderAcceptSelected = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ; if ( httpHeaderAcceptSelected !== undefined ) { headers = headers . set ( 'Accept' , httpHeaderAcceptSelected ) ; } const consumes = [ 'application/json' ] ; const httpContentTypeSelected = this . configuration . selectHeaderContentType ( consumes ) ; if ( httpContentTypeSelected !== undefined ) { headers = headers . set ( 'Content-Type' , httpContentTypeSelected ) ; } return this . httpClient . put < WidgetRes > ( `${ this . configuration . basePath }/widget/` , entry , { withCredentials : this . configuration . withCredentials , headers : headers , observe : observe , reportProgress : reportProgress } ) ; } }