From 15a4a4aaaa2a2a5a89f68848622df7d630286ad8 Mon Sep 17 00:00:00 2001 From: Jason Rasmussen Date: Thu, 29 Feb 2024 16:02:08 -0500 Subject: [PATCH] chore: remove unused upload property (#7535) * chore: remove isExternal * chore: open-api --- mobile/openapi/doc/AssetApi.md | Bin 57901 -> 57798 bytes mobile/openapi/lib/api/asset_api.dart | Bin 59931 -> 59681 bytes mobile/openapi/test/asset_api_test.dart | Bin 5772 -> 5755 bytes open-api/immich-openapi-specs.json | 3 --- open-api/typescript-sdk/src/fetch-client.ts | 1 - .../src/immich/api-v1/asset/asset.service.ts | 9 ------- .../api-v1/asset/dto/create-asset.dto.ts | 23 +++++++----------- 7 files changed, 9 insertions(+), 27 deletions(-) diff --git a/mobile/openapi/doc/AssetApi.md b/mobile/openapi/doc/AssetApi.md index 93b758a5959f2fff4014e76f2091ec58b91ad5e9..c65e6a605f7bd3ce2e2c71a41e6dafc6ed48967e 100644 GIT binary patch delta 49 zcmZ2`g!$NE<_%F-Ca-VgncQ*5ZS#&R2U#coOHb2 F2>_RG8RGx| delta 61 zcmV-D0K)&q!vn3v1F%}ulMSdClT6%3v#iv?1(U>~NRw2eX|wv;Mgfxzs2HWc=B$2`kgY4Te&0v}!{Z*C diff --git a/mobile/openapi/lib/api/asset_api.dart b/mobile/openapi/lib/api/asset_api.dart index bdcb874092378527d0ccb73ea9673e4c99e60141..786129b457ba1aa0e37d5f8db362f0b71ba1d961 100644 GIT binary patch delta 77 zcmbPzg?Zs6<_&UJCp(lXZcey5i*fRVGNH|K*O}NR`xi(}o_}9u^R2rFSV7X06Rw_} gyze Date) fileModifiedAt!: Date; + @Optional() + @IsString() + duration?: string; + @Optional() @IsBoolean() @Transform(toBoolean) @@ -37,28 +44,16 @@ export class CreateAssetBase { @Transform(toBoolean) isVisible?: boolean; - @Optional() - @IsString() - duration?: string; - - @Optional() - @IsBoolean() - isExternal?: boolean; - @Optional() @IsBoolean() + @Transform(toBoolean) isOffline?: boolean; -} -export class CreateAssetDto extends CreateAssetBase { @Optional() @IsBoolean() @Transform(toBoolean) isReadOnly?: boolean; - @ValidateUUID({ optional: true }) - libraryId?: string; - // The properties below are added to correctly generate the API docs // and client SDKs. Validation should be handled in the controller. @ApiProperty({ type: 'string', format: 'binary' })