mirror of
https://github.com/immich-app/immich.git
synced 2025-06-01 04:36:58 -04:00
chore: remove without thumbs (#3529)
* refactor(server): remove withoutThumbs * chore: open api * fix: bad merge
This commit is contained in:
parent
cf9e04c8ec
commit
10c2bda3a9
23
cli/src/api/open-api/api.ts
generated
23
cli/src/api/open-api/api.ts
generated
@ -5151,14 +5151,13 @@ export const AssetApiAxiosParamCreator = function (configuration?: Configuration
|
|||||||
* @param {string} [userId]
|
* @param {string} [userId]
|
||||||
* @param {boolean} [isFavorite]
|
* @param {boolean} [isFavorite]
|
||||||
* @param {boolean} [isArchived]
|
* @param {boolean} [isArchived]
|
||||||
* @param {boolean} [withoutThumbs] Include assets without thumbnails
|
|
||||||
* @param {number} [skip]
|
* @param {number} [skip]
|
||||||
* @param {string} [updatedAfter]
|
* @param {string} [updatedAfter]
|
||||||
* @param {string} [ifNoneMatch] ETag of data already cached on the client
|
* @param {string} [ifNoneMatch] ETag of data already cached on the client
|
||||||
* @param {*} [options] Override http request option.
|
* @param {*} [options] Override http request option.
|
||||||
* @throws {RequiredError}
|
* @throws {RequiredError}
|
||||||
*/
|
*/
|
||||||
getAllAssets: async (userId?: string, isFavorite?: boolean, isArchived?: boolean, withoutThumbs?: boolean, skip?: number, updatedAfter?: string, ifNoneMatch?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
getAllAssets: async (userId?: string, isFavorite?: boolean, isArchived?: boolean, skip?: number, updatedAfter?: string, ifNoneMatch?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||||
const localVarPath = `/asset`;
|
const localVarPath = `/asset`;
|
||||||
// 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);
|
||||||
@ -5192,10 +5191,6 @@ export const AssetApiAxiosParamCreator = function (configuration?: Configuration
|
|||||||
localVarQueryParameter['isArchived'] = isArchived;
|
localVarQueryParameter['isArchived'] = isArchived;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (withoutThumbs !== undefined) {
|
|
||||||
localVarQueryParameter['withoutThumbs'] = withoutThumbs;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (skip !== undefined) {
|
if (skip !== undefined) {
|
||||||
localVarQueryParameter['skip'] = skip;
|
localVarQueryParameter['skip'] = skip;
|
||||||
}
|
}
|
||||||
@ -6312,15 +6307,14 @@ export const AssetApiFp = function(configuration?: Configuration) {
|
|||||||
* @param {string} [userId]
|
* @param {string} [userId]
|
||||||
* @param {boolean} [isFavorite]
|
* @param {boolean} [isFavorite]
|
||||||
* @param {boolean} [isArchived]
|
* @param {boolean} [isArchived]
|
||||||
* @param {boolean} [withoutThumbs] Include assets without thumbnails
|
|
||||||
* @param {number} [skip]
|
* @param {number} [skip]
|
||||||
* @param {string} [updatedAfter]
|
* @param {string} [updatedAfter]
|
||||||
* @param {string} [ifNoneMatch] ETag of data already cached on the client
|
* @param {string} [ifNoneMatch] ETag of data already cached on the client
|
||||||
* @param {*} [options] Override http request option.
|
* @param {*} [options] Override http request option.
|
||||||
* @throws {RequiredError}
|
* @throws {RequiredError}
|
||||||
*/
|
*/
|
||||||
async getAllAssets(userId?: string, isFavorite?: boolean, isArchived?: boolean, withoutThumbs?: boolean, skip?: number, updatedAfter?: string, ifNoneMatch?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
|
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, withoutThumbs, skip, updatedAfter, ifNoneMatch, options);
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAssets(userId, isFavorite, isArchived, skip, updatedAfter, ifNoneMatch, options);
|
||||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
@ -6617,7 +6611,7 @@ export const AssetApiFactory = function (configuration?: Configuration, basePath
|
|||||||
* @throws {RequiredError}
|
* @throws {RequiredError}
|
||||||
*/
|
*/
|
||||||
getAllAssets(requestParameters: AssetApiGetAllAssetsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
|
getAllAssets(requestParameters: AssetApiGetAllAssetsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
|
||||||
return localVarFp.getAllAssets(requestParameters.userId, requestParameters.isFavorite, requestParameters.isArchived, requestParameters.withoutThumbs, requestParameters.skip, requestParameters.updatedAfter, requestParameters.ifNoneMatch, options).then((request) => request(axios, basePath));
|
return localVarFp.getAllAssets(requestParameters.userId, requestParameters.isFavorite, requestParameters.isArchived, requestParameters.skip, requestParameters.updatedAfter, requestParameters.ifNoneMatch, options).then((request) => request(axios, basePath));
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Get a single asset\'s information
|
* Get a single asset\'s information
|
||||||
@ -6922,13 +6916,6 @@ export interface AssetApiGetAllAssetsRequest {
|
|||||||
*/
|
*/
|
||||||
readonly isArchived?: boolean
|
readonly isArchived?: boolean
|
||||||
|
|
||||||
/**
|
|
||||||
* Include assets without thumbnails
|
|
||||||
* @type {boolean}
|
|
||||||
* @memberof AssetApiGetAllAssets
|
|
||||||
*/
|
|
||||||
readonly withoutThumbs?: boolean
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
@ -7508,7 +7495,7 @@ export class AssetApi extends BaseAPI {
|
|||||||
* @memberof AssetApi
|
* @memberof AssetApi
|
||||||
*/
|
*/
|
||||||
public getAllAssets(requestParameters: AssetApiGetAllAssetsRequest = {}, options?: AxiosRequestConfig) {
|
public getAllAssets(requestParameters: AssetApiGetAllAssetsRequest = {}, options?: AxiosRequestConfig) {
|
||||||
return AssetApiFp(this.configuration).getAllAssets(requestParameters.userId, requestParameters.isFavorite, requestParameters.isArchived, requestParameters.withoutThumbs, requestParameters.skip, requestParameters.updatedAfter, requestParameters.ifNoneMatch, options).then((request) => request(this.axios, this.basePath));
|
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));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -69,7 +69,6 @@ class AssetService {
|
|||||||
await _apiService.assetApi.getAllAssetsWithETag(
|
await _apiService.assetApi.getAllAssetsWithETag(
|
||||||
eTag: etag,
|
eTag: etag,
|
||||||
userId: user.id,
|
userId: user.id,
|
||||||
withoutThumbs: true,
|
|
||||||
);
|
);
|
||||||
if (assets == null) {
|
if (assets == null) {
|
||||||
return null;
|
return null;
|
||||||
|
@ -17,14 +17,12 @@ extension WithETag on AssetApi {
|
|||||||
String? userId,
|
String? userId,
|
||||||
bool? isFavorite,
|
bool? isFavorite,
|
||||||
bool? isArchived,
|
bool? isArchived,
|
||||||
bool? withoutThumbs,
|
|
||||||
}) async {
|
}) async {
|
||||||
final response = await getAllAssetsWithHttpInfo(
|
final response = await getAllAssetsWithHttpInfo(
|
||||||
ifNoneMatch: eTag,
|
ifNoneMatch: eTag,
|
||||||
userId: userId,
|
userId: userId,
|
||||||
isFavorite: isFavorite,
|
isFavorite: isFavorite,
|
||||||
isArchived: isArchived,
|
isArchived: isArchived,
|
||||||
withoutThumbs: withoutThumbs,
|
|
||||||
);
|
);
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
if (response.statusCode >= HttpStatus.badRequest) {
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
||||||
|
6
mobile/openapi/doc/AssetApi.md
generated
6
mobile/openapi/doc/AssetApi.md
generated
@ -380,7 +380,7 @@ Name | Type | Description | Notes
|
|||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **getAllAssets**
|
# **getAllAssets**
|
||||||
> List<AssetResponseDto> getAllAssets(userId, isFavorite, isArchived, withoutThumbs, skip, updatedAfter, ifNoneMatch)
|
> List<AssetResponseDto> getAllAssets(userId, isFavorite, isArchived, skip, updatedAfter, ifNoneMatch)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -408,13 +408,12 @@ final api_instance = AssetApi();
|
|||||||
final userId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
|
final userId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
|
||||||
final isFavorite = true; // bool |
|
final isFavorite = true; // bool |
|
||||||
final isArchived = true; // bool |
|
final isArchived = true; // bool |
|
||||||
final withoutThumbs = true; // bool | Include assets without thumbnails
|
|
||||||
final skip = 8.14; // num |
|
final skip = 8.14; // num |
|
||||||
final updatedAfter = 2013-10-20T19:20:30+01:00; // DateTime |
|
final updatedAfter = 2013-10-20T19:20:30+01:00; // DateTime |
|
||||||
final ifNoneMatch = ifNoneMatch_example; // String | ETag of data already cached on the client
|
final ifNoneMatch = ifNoneMatch_example; // String | ETag of data already cached on the client
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final result = api_instance.getAllAssets(userId, isFavorite, isArchived, withoutThumbs, skip, updatedAfter, ifNoneMatch);
|
final result = api_instance.getAllAssets(userId, isFavorite, isArchived, skip, updatedAfter, ifNoneMatch);
|
||||||
print(result);
|
print(result);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
print('Exception when calling AssetApi->getAllAssets: $e\n');
|
print('Exception when calling AssetApi->getAllAssets: $e\n');
|
||||||
@ -428,7 +427,6 @@ Name | Type | Description | Notes
|
|||||||
**userId** | **String**| | [optional]
|
**userId** | **String**| | [optional]
|
||||||
**isFavorite** | **bool**| | [optional]
|
**isFavorite** | **bool**| | [optional]
|
||||||
**isArchived** | **bool**| | [optional]
|
**isArchived** | **bool**| | [optional]
|
||||||
**withoutThumbs** | **bool**| Include assets without thumbnails | [optional]
|
|
||||||
**skip** | **num**| | [optional]
|
**skip** | **num**| | [optional]
|
||||||
**updatedAfter** | **DateTime**| | [optional]
|
**updatedAfter** | **DateTime**| | [optional]
|
||||||
**ifNoneMatch** | **String**| ETag of data already cached on the client | [optional]
|
**ifNoneMatch** | **String**| ETag of data already cached on the client | [optional]
|
||||||
|
15
mobile/openapi/lib/api/asset_api.dart
generated
15
mobile/openapi/lib/api/asset_api.dart
generated
@ -353,16 +353,13 @@ class AssetApi {
|
|||||||
///
|
///
|
||||||
/// * [bool] isArchived:
|
/// * [bool] isArchived:
|
||||||
///
|
///
|
||||||
/// * [bool] withoutThumbs:
|
|
||||||
/// Include assets without thumbnails
|
|
||||||
///
|
|
||||||
/// * [num] skip:
|
/// * [num] skip:
|
||||||
///
|
///
|
||||||
/// * [DateTime] updatedAfter:
|
/// * [DateTime] updatedAfter:
|
||||||
///
|
///
|
||||||
/// * [String] ifNoneMatch:
|
/// * [String] ifNoneMatch:
|
||||||
/// ETag of data already cached on the client
|
/// ETag of data already cached on the client
|
||||||
Future<Response> getAllAssetsWithHttpInfo({ String? userId, bool? isFavorite, bool? isArchived, bool? withoutThumbs, num? skip, DateTime? updatedAfter, String? ifNoneMatch, }) async {
|
Future<Response> getAllAssetsWithHttpInfo({ String? userId, bool? isFavorite, bool? isArchived, num? skip, DateTime? updatedAfter, String? ifNoneMatch, }) async {
|
||||||
// ignore: prefer_const_declarations
|
// ignore: prefer_const_declarations
|
||||||
final path = r'/asset';
|
final path = r'/asset';
|
||||||
|
|
||||||
@ -382,9 +379,6 @@ class AssetApi {
|
|||||||
if (isArchived != null) {
|
if (isArchived != null) {
|
||||||
queryParams.addAll(_queryParams('', 'isArchived', isArchived));
|
queryParams.addAll(_queryParams('', 'isArchived', isArchived));
|
||||||
}
|
}
|
||||||
if (withoutThumbs != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'withoutThumbs', withoutThumbs));
|
|
||||||
}
|
|
||||||
if (skip != null) {
|
if (skip != null) {
|
||||||
queryParams.addAll(_queryParams('', 'skip', skip));
|
queryParams.addAll(_queryParams('', 'skip', skip));
|
||||||
}
|
}
|
||||||
@ -420,17 +414,14 @@ class AssetApi {
|
|||||||
///
|
///
|
||||||
/// * [bool] isArchived:
|
/// * [bool] isArchived:
|
||||||
///
|
///
|
||||||
/// * [bool] withoutThumbs:
|
|
||||||
/// Include assets without thumbnails
|
|
||||||
///
|
|
||||||
/// * [num] skip:
|
/// * [num] skip:
|
||||||
///
|
///
|
||||||
/// * [DateTime] updatedAfter:
|
/// * [DateTime] updatedAfter:
|
||||||
///
|
///
|
||||||
/// * [String] ifNoneMatch:
|
/// * [String] ifNoneMatch:
|
||||||
/// ETag of data already cached on the client
|
/// ETag of data already cached on the client
|
||||||
Future<List<AssetResponseDto>?> getAllAssets({ String? userId, bool? isFavorite, bool? isArchived, bool? withoutThumbs, num? skip, DateTime? updatedAfter, String? ifNoneMatch, }) async {
|
Future<List<AssetResponseDto>?> getAllAssets({ String? userId, bool? isFavorite, bool? isArchived, num? skip, DateTime? updatedAfter, String? ifNoneMatch, }) async {
|
||||||
final response = await getAllAssetsWithHttpInfo( userId: userId, isFavorite: isFavorite, isArchived: isArchived, withoutThumbs: withoutThumbs, skip: skip, updatedAfter: updatedAfter, ifNoneMatch: ifNoneMatch, );
|
final response = await getAllAssetsWithHttpInfo( userId: userId, isFavorite: isFavorite, isArchived: isArchived, skip: skip, updatedAfter: updatedAfter, ifNoneMatch: ifNoneMatch, );
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
if (response.statusCode >= HttpStatus.badRequest) {
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
||||||
}
|
}
|
||||||
|
2
mobile/openapi/test/asset_api_test.dart
generated
2
mobile/openapi/test/asset_api_test.dart
generated
@ -55,7 +55,7 @@ void main() {
|
|||||||
|
|
||||||
// Get all AssetEntity belong to the user
|
// Get all AssetEntity belong to the user
|
||||||
//
|
//
|
||||||
//Future<List<AssetResponseDto>> getAllAssets({ String userId, bool isFavorite, bool isArchived, bool withoutThumbs, num skip, DateTime updatedAfter, String ifNoneMatch }) async
|
//Future<List<AssetResponseDto>> getAllAssets({ String userId, bool isFavorite, bool isArchived, num skip, DateTime updatedAfter, String ifNoneMatch }) async
|
||||||
test('test getAllAssets', () async {
|
test('test getAllAssets', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -752,15 +752,6 @@
|
|||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "withoutThumbs",
|
|
||||||
"required": false,
|
|
||||||
"in": "query",
|
|
||||||
"description": "Include assets without thumbnails",
|
|
||||||
"schema": {
|
|
||||||
"type": "boolean"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "skip",
|
"name": "skip",
|
||||||
"required": false,
|
"required": false,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { AssetEntity, ExifEntity } from '@app/infra/entities';
|
import { AssetEntity, ExifEntity } from '@app/infra/entities';
|
||||||
import { Injectable } from '@nestjs/common';
|
import { Injectable } from '@nestjs/common';
|
||||||
import { InjectRepository } from '@nestjs/typeorm';
|
import { InjectRepository } from '@nestjs/typeorm';
|
||||||
import { IsNull, MoreThan, Not } from 'typeorm';
|
import { MoreThan } from 'typeorm';
|
||||||
import { In } from 'typeorm/find-options/operator/In';
|
import { In } from 'typeorm/find-options/operator/In';
|
||||||
import { Repository } from 'typeorm/repository/Repository';
|
import { Repository } from 'typeorm/repository/Repository';
|
||||||
import { AssetSearchDto } from './dto/asset-search.dto';
|
import { AssetSearchDto } from './dto/asset-search.dto';
|
||||||
@ -127,7 +127,6 @@ export class AssetRepository implements IAssetRepository {
|
|||||||
return this.assetRepository.find({
|
return this.assetRepository.find({
|
||||||
where: {
|
where: {
|
||||||
ownerId,
|
ownerId,
|
||||||
resizePath: dto.withoutThumbs ? undefined : Not(IsNull()),
|
|
||||||
isVisible: true,
|
isVisible: true,
|
||||||
isFavorite: dto.isFavorite,
|
isFavorite: dto.isFavorite,
|
||||||
isArchived: dto.isArchived,
|
isArchived: dto.isArchived,
|
||||||
|
@ -16,14 +16,6 @@ export class AssetSearchDto {
|
|||||||
@Transform(toBoolean)
|
@Transform(toBoolean)
|
||||||
isArchived?: boolean;
|
isArchived?: boolean;
|
||||||
|
|
||||||
/**
|
|
||||||
* Include assets without thumbnails
|
|
||||||
*/
|
|
||||||
@IsOptional()
|
|
||||||
@IsBoolean()
|
|
||||||
@Transform(toBoolean)
|
|
||||||
withoutThumbs?: boolean;
|
|
||||||
|
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
@IsNumber()
|
@IsNumber()
|
||||||
skip?: number;
|
skip?: number;
|
||||||
|
23
web/src/api/open-api/api.ts
generated
23
web/src/api/open-api/api.ts
generated
@ -5151,14 +5151,13 @@ export const AssetApiAxiosParamCreator = function (configuration?: Configuration
|
|||||||
* @param {string} [userId]
|
* @param {string} [userId]
|
||||||
* @param {boolean} [isFavorite]
|
* @param {boolean} [isFavorite]
|
||||||
* @param {boolean} [isArchived]
|
* @param {boolean} [isArchived]
|
||||||
* @param {boolean} [withoutThumbs] Include assets without thumbnails
|
|
||||||
* @param {number} [skip]
|
* @param {number} [skip]
|
||||||
* @param {string} [updatedAfter]
|
* @param {string} [updatedAfter]
|
||||||
* @param {string} [ifNoneMatch] ETag of data already cached on the client
|
* @param {string} [ifNoneMatch] ETag of data already cached on the client
|
||||||
* @param {*} [options] Override http request option.
|
* @param {*} [options] Override http request option.
|
||||||
* @throws {RequiredError}
|
* @throws {RequiredError}
|
||||||
*/
|
*/
|
||||||
getAllAssets: async (userId?: string, isFavorite?: boolean, isArchived?: boolean, withoutThumbs?: boolean, skip?: number, updatedAfter?: string, ifNoneMatch?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
getAllAssets: async (userId?: string, isFavorite?: boolean, isArchived?: boolean, skip?: number, updatedAfter?: string, ifNoneMatch?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||||
const localVarPath = `/asset`;
|
const localVarPath = `/asset`;
|
||||||
// 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);
|
||||||
@ -5192,10 +5191,6 @@ export const AssetApiAxiosParamCreator = function (configuration?: Configuration
|
|||||||
localVarQueryParameter['isArchived'] = isArchived;
|
localVarQueryParameter['isArchived'] = isArchived;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (withoutThumbs !== undefined) {
|
|
||||||
localVarQueryParameter['withoutThumbs'] = withoutThumbs;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (skip !== undefined) {
|
if (skip !== undefined) {
|
||||||
localVarQueryParameter['skip'] = skip;
|
localVarQueryParameter['skip'] = skip;
|
||||||
}
|
}
|
||||||
@ -6312,15 +6307,14 @@ export const AssetApiFp = function(configuration?: Configuration) {
|
|||||||
* @param {string} [userId]
|
* @param {string} [userId]
|
||||||
* @param {boolean} [isFavorite]
|
* @param {boolean} [isFavorite]
|
||||||
* @param {boolean} [isArchived]
|
* @param {boolean} [isArchived]
|
||||||
* @param {boolean} [withoutThumbs] Include assets without thumbnails
|
|
||||||
* @param {number} [skip]
|
* @param {number} [skip]
|
||||||
* @param {string} [updatedAfter]
|
* @param {string} [updatedAfter]
|
||||||
* @param {string} [ifNoneMatch] ETag of data already cached on the client
|
* @param {string} [ifNoneMatch] ETag of data already cached on the client
|
||||||
* @param {*} [options] Override http request option.
|
* @param {*} [options] Override http request option.
|
||||||
* @throws {RequiredError}
|
* @throws {RequiredError}
|
||||||
*/
|
*/
|
||||||
async getAllAssets(userId?: string, isFavorite?: boolean, isArchived?: boolean, withoutThumbs?: boolean, skip?: number, updatedAfter?: string, ifNoneMatch?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
|
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, withoutThumbs, skip, updatedAfter, ifNoneMatch, options);
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAssets(userId, isFavorite, isArchived, skip, updatedAfter, ifNoneMatch, options);
|
||||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
@ -6617,7 +6611,7 @@ export const AssetApiFactory = function (configuration?: Configuration, basePath
|
|||||||
* @throws {RequiredError}
|
* @throws {RequiredError}
|
||||||
*/
|
*/
|
||||||
getAllAssets(requestParameters: AssetApiGetAllAssetsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
|
getAllAssets(requestParameters: AssetApiGetAllAssetsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
|
||||||
return localVarFp.getAllAssets(requestParameters.userId, requestParameters.isFavorite, requestParameters.isArchived, requestParameters.withoutThumbs, requestParameters.skip, requestParameters.updatedAfter, requestParameters.ifNoneMatch, options).then((request) => request(axios, basePath));
|
return localVarFp.getAllAssets(requestParameters.userId, requestParameters.isFavorite, requestParameters.isArchived, requestParameters.skip, requestParameters.updatedAfter, requestParameters.ifNoneMatch, options).then((request) => request(axios, basePath));
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Get a single asset\'s information
|
* Get a single asset\'s information
|
||||||
@ -6922,13 +6916,6 @@ export interface AssetApiGetAllAssetsRequest {
|
|||||||
*/
|
*/
|
||||||
readonly isArchived?: boolean
|
readonly isArchived?: boolean
|
||||||
|
|
||||||
/**
|
|
||||||
* Include assets without thumbnails
|
|
||||||
* @type {boolean}
|
|
||||||
* @memberof AssetApiGetAllAssets
|
|
||||||
*/
|
|
||||||
readonly withoutThumbs?: boolean
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {number}
|
* @type {number}
|
||||||
@ -7508,7 +7495,7 @@ export class AssetApi extends BaseAPI {
|
|||||||
* @memberof AssetApi
|
* @memberof AssetApi
|
||||||
*/
|
*/
|
||||||
public getAllAssets(requestParameters: AssetApiGetAllAssetsRequest = {}, options?: AxiosRequestConfig) {
|
public getAllAssets(requestParameters: AssetApiGetAllAssetsRequest = {}, options?: AxiosRequestConfig) {
|
||||||
return AssetApiFp(this.configuration).getAllAssets(requestParameters.userId, requestParameters.isFavorite, requestParameters.isArchived, requestParameters.withoutThumbs, requestParameters.skip, requestParameters.updatedAfter, requestParameters.ifNoneMatch, options).then((request) => request(this.axios, this.basePath));
|
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));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user