@ -6695,16 +6695,18 @@ export const AssetApiAxiosParamCreator = function (configuration?: Configuration
} ,
/ * *
* Get all AssetEntity belong to the user
* @param { number } [ skip ]
* @param { number } [ take ]
* @param { string } [ userId ]
* @param { boolean } [ isFavorite ]
* @param { boolean } [ isArchived ]
* @param { number } [ skip ]
* @param { string } [ updatedAfter ]
* @param { string } [ updatedBefore ]
* @param { string } [ ifNoneMatch ] ETag of data already cached on the client
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
getAllAssets : async ( userId?: string , isFavorite? : boolean , isArchived? : boolean , skip?: number , updatedAfter ?: string , ifNoneMatch? : string , options : AxiosRequestConfig = { } ) : Promise < RequestArgs > = > {
getAllAssets : async ( skip?: number , take? : number , userId?: string , isFavorite? : boolean , isArchived? : boolean , updatedAfter?: string , updatedBefore ?: string , ifNoneMatch? : string , options : AxiosRequestConfig = { } ) : Promise < RequestArgs > = > {
const localVarPath = ` /asset ` ;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL ( localVarPath , DUMMY_BASE_URL ) ;
@ -6726,6 +6728,14 @@ export const AssetApiAxiosParamCreator = function (configuration?: Configuration
// http bearer authentication required
await setBearerAuthToObject ( localVarHeaderParameter , configuration )
if ( skip !== undefined ) {
localVarQueryParameter [ 'skip' ] = skip ;
}
if ( take !== undefined ) {
localVarQueryParameter [ 'take' ] = take ;
}
if ( userId !== undefined ) {
localVarQueryParameter [ 'userId' ] = userId ;
}
@ -6738,16 +6748,18 @@ export const AssetApiAxiosParamCreator = function (configuration?: Configuration
localVarQueryParameter [ 'isArchived' ] = isArchived ;
}
if ( skip !== undefined ) {
localVarQueryParameter [ 'skip' ] = skip ;
}
if ( updatedAfter !== undefined ) {
localVarQueryParameter [ 'updatedAfter' ] = ( updatedAfter as any instanceof Date ) ?
( updatedAfter as any ) . toISOString ( ) :
updatedAfter ;
}
if ( updatedBefore !== undefined ) {
localVarQueryParameter [ 'updatedBefore' ] = ( updatedBefore as any instanceof Date ) ?
( updatedBefore as any ) . toISOString ( ) :
updatedBefore ;
}
if ( ifNoneMatch != null ) {
localVarHeaderParameter [ 'if-none-match' ] = String ( ifNoneMatch ) ;
}
@ -8066,17 +8078,19 @@ export const AssetApiFp = function(configuration?: Configuration) {
} ,
/ * *
* Get all AssetEntity belong to the user
* @param { number } [ skip ]
* @param { number } [ take ]
* @param { string } [ userId ]
* @param { boolean } [ isFavorite ]
* @param { boolean } [ isArchived ]
* @param { number } [ skip ]
* @param { string } [ updatedAfter ]
* @param { string } [ updatedBefore ]
* @param { string } [ ifNoneMatch ] ETag of data already cached on the client
* @param { * } [ options ] Override http request option .
* @throws { RequiredError }
* /
async getAllAssets ( userId?: string , isFavorite? : boolean , isArchived? : boolean , skip?: number , updatedAfter ?: string , ifNoneMatch? : string , options? : AxiosRequestConfig ) : Promise < ( axios? : AxiosInstance , basePath? : string ) = > AxiosPromise < Array < AssetResponseDto > >> {
const localVarAxiosArgs = await localVarAxiosParamCreator . getAllAssets ( userId, isFavorite , isArchived , skip, updatedAfter , ifNoneMatch , options ) ;
async getAllAssets ( skip?: number , take? : number , userId?: string , isFavorite? : boolean , isArchived? : boolean , updatedAfter?: string , updatedBefore ?: string , ifNoneMatch? : string , options? : AxiosRequestConfig ) : Promise < ( axios? : AxiosInstance , basePath? : string ) = > AxiosPromise < Array < AssetResponseDto > >> {
const localVarAxiosArgs = await localVarAxiosParamCreator . getAllAssets ( skip, take , userId, isFavorite , isArchived , updatedAfter, updatedBefore , ifNoneMatch , options ) ;
return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ;
} ,
/ * *
@ -8421,7 +8435,7 @@ export const AssetApiFactory = function (configuration?: Configuration, basePath
* @throws { RequiredError }
* /
getAllAssets ( requestParameters : AssetApiGetAllAssetsRequest = { } , options? : AxiosRequestConfig ) : AxiosPromise < Array < AssetResponseDto > > {
return localVarFp . getAllAssets ( requestParameters . userId, requestParameters . isFavorite , requestParameters . isArchived , requestParameters . skip, requestParameters . updatedAfter , requestParameters . ifNoneMatch , options ) . then ( ( request ) = > request ( axios , basePath ) ) ;
return localVarFp . getAllAssets ( requestParameters . skip, requestParameters . take , requestParameters . userId, requestParameters . isFavorite , requestParameters . isArchived , requestParameters . updatedAfter, requestParameters . updatedBefore , requestParameters . ifNoneMatch , options ) . then ( ( request ) = > request ( axios , basePath ) ) ;
} ,
/ * *
* Get a single asset \ ' s information
@ -8719,6 +8733,20 @@ export interface AssetApiDownloadFileRequest {
* @interface AssetApiGetAllAssetsRequest
* /
export interface AssetApiGetAllAssetsRequest {
/ * *
*
* @type { number }
* @memberof AssetApiGetAllAssets
* /
readonly skip? : number
/ * *
*
* @type { number }
* @memberof AssetApiGetAllAssets
* /
readonly take? : number
/ * *
*
* @type { string }
@ -8742,17 +8770,17 @@ export interface AssetApiGetAllAssetsRequest {
/ * *
*
* @type { number }
* @type { string }
* @memberof AssetApiGetAllAssets
* /
readonly skip?: number
readonly updatedAfter?: string
/ * *
*
* @type { string }
* @memberof AssetApiGetAllAssets
* /
readonly updated After ?: string
readonly updated Before ?: string
/ * *
* ETag of data already cached on the client
@ -9430,7 +9458,7 @@ export class AssetApi extends BaseAPI {
* @memberof AssetApi
* /
public getAllAssets ( requestParameters : AssetApiGetAllAssetsRequest = { } , options? : AxiosRequestConfig ) {
return AssetApiFp ( this . configuration ) . getAllAssets ( requestParameters . userId, requestParameters . isFavorite , requestParameters . isArchived , requestParameters . skip, requestParameters . updatedAfter , requestParameters . ifNoneMatch , options ) . then ( ( request ) = > request ( this . axios , this . basePath ) ) ;
return AssetApiFp ( this . configuration ) . getAllAssets ( requestParameters . skip, requestParameters . take , requestParameters . userId, requestParameters . isFavorite , requestParameters . isArchived , requestParameters . updatedAfter, requestParameters . updatedBefore , requestParameters . ifNoneMatch , options ) . then ( ( request ) = > request ( this . axios , this . basePath ) ) ;
}
/ * *