@ -14638,10 +14638,11 @@ export const SearchApiAxiosParamCreator = function (configuration?: Configuratio
* @param { 'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER' } [ type ]
* @param { 'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER' } [ type ]
* @param { boolean } [ recent ]
* @param { boolean } [ recent ]
* @param { boolean } [ motion ]
* @param { boolean } [ motion ]
* @param { boolean } [ withArchived ]
* @param { * } [ options ] Override http request option .
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* @throws { RequiredError }
* /
* /
search : async ( q? : string , query? : string , clip? : boolean , type ? : 'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER' , recent? : boolean , motion? : boolean , options: AxiosRequestConfig = { } ) : Promise < RequestArgs > = > {
search : async ( q? : string , query? : string , clip? : boolean , type ? : 'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER' , recent? : boolean , motion? : boolean , withArchived?: boolean , options: AxiosRequestConfig = { } ) : Promise < RequestArgs > = > {
const localVarPath = ` /search ` ;
const localVarPath = ` /search ` ;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL ( localVarPath , DUMMY_BASE_URL ) ;
const localVarUrlObj = new URL ( localVarPath , DUMMY_BASE_URL ) ;
@ -14687,6 +14688,10 @@ export const SearchApiAxiosParamCreator = function (configuration?: Configuratio
localVarQueryParameter [ 'motion' ] = motion ;
localVarQueryParameter [ 'motion' ] = motion ;
}
}
if ( withArchived !== undefined ) {
localVarQueryParameter [ 'withArchived' ] = withArchived ;
}
setSearchParams ( localVarUrlObj , localVarQueryParameter ) ;
setSearchParams ( localVarUrlObj , localVarQueryParameter ) ;
@ -14775,11 +14780,12 @@ export const SearchApiFp = function(configuration?: Configuration) {
* @param { 'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER' } [ type ]
* @param { 'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER' } [ type ]
* @param { boolean } [ recent ]
* @param { boolean } [ recent ]
* @param { boolean } [ motion ]
* @param { boolean } [ motion ]
* @param { boolean } [ withArchived ]
* @param { * } [ options ] Override http request option .
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* @throws { RequiredError }
* /
* /
async search ( q? : string , query? : string , clip? : boolean , type ? : 'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER' , recent? : boolean , motion? : boolean , options?: AxiosRequestConfig ) : Promise < ( axios? : AxiosInstance , basePath? : string ) = > AxiosPromise < SearchResponseDto > > {
async search ( q? : string , query? : string , clip? : boolean , type ? : 'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER' , recent? : boolean , motion? : boolean , withArchived?: boolean , options?: AxiosRequestConfig ) : Promise < ( axios? : AxiosInstance , basePath? : string ) = > AxiosPromise < SearchResponseDto > > {
const localVarAxiosArgs = await localVarAxiosParamCreator . search ( q , query , clip , type , recent , motion , options) ;
const localVarAxiosArgs = await localVarAxiosParamCreator . search ( q , query , clip , type , recent , motion , withArchived, options) ;
return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ;
return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ;
} ,
} ,
/ * *
/ * *
@ -14818,7 +14824,7 @@ export const SearchApiFactory = function (configuration?: Configuration, basePat
* @throws { RequiredError }
* @throws { RequiredError }
* /
* /
search ( requestParameters : SearchApiSearchRequest = { } , options? : AxiosRequestConfig ) : AxiosPromise < SearchResponseDto > {
search ( requestParameters : SearchApiSearchRequest = { } , options? : AxiosRequestConfig ) : AxiosPromise < SearchResponseDto > {
return localVarFp . search ( requestParameters . q , requestParameters . query , requestParameters . clip , requestParameters . type , requestParameters . recent , requestParameters . motion , options) . then ( ( request ) = > request ( axios , basePath ) ) ;
return localVarFp . search ( requestParameters . q , requestParameters . query , requestParameters . clip , requestParameters . type , requestParameters . recent , requestParameters . motion , requestParameters. withArchived , options) . then ( ( request ) = > request ( axios , basePath ) ) ;
} ,
} ,
/ * *
/ * *
*
*
@ -14879,6 +14885,13 @@ export interface SearchApiSearchRequest {
* @memberof SearchApiSearch
* @memberof SearchApiSearch
* /
* /
readonly motion? : boolean
readonly motion? : boolean
/ * *
*
* @type { boolean }
* @memberof SearchApiSearch
* /
readonly withArchived? : boolean
}
}
/ * *
/ * *
@ -14927,7 +14940,7 @@ export class SearchApi extends BaseAPI {
* @memberof SearchApi
* @memberof SearchApi
* /
* /
public search ( requestParameters : SearchApiSearchRequest = { } , options? : AxiosRequestConfig ) {
public search ( requestParameters : SearchApiSearchRequest = { } , options? : AxiosRequestConfig ) {
return SearchApiFp ( this . configuration ) . search ( requestParameters . q , requestParameters . query , requestParameters . clip , requestParameters . type , requestParameters . recent , requestParameters . motion , options) . then ( ( request ) = > request ( this . axios , this . basePath ) ) ;
return SearchApiFp ( this . configuration ) . search ( requestParameters . q , requestParameters . query , requestParameters . clip , requestParameters . type , requestParameters . recent , requestParameters . motion , requestParameters. withArchived , options) . then ( ( request ) = > request ( this . axios , this . basePath ) ) ;
}
}
/ * *
/ * *