mirror of
https://github.com/immich-app/immich.git
synced 2026-05-24 00:22:29 -04:00
chore!: remove deviceId and deviceAssetId (#27818)
chore: remove deviceId and deviceAssetId
This commit is contained in:
@@ -557,10 +557,6 @@ export type AssetResponseDto = {
|
||||
checksum: string;
|
||||
/** The UTC timestamp when the asset was originally uploaded to Immich. */
|
||||
createdAt: string;
|
||||
/** Device asset ID */
|
||||
deviceAssetId: string;
|
||||
/** Device ID */
|
||||
deviceId: string;
|
||||
/** Duplicate group ID */
|
||||
duplicateId?: string | null;
|
||||
/** Video duration (for videos) */
|
||||
@@ -773,10 +769,6 @@ export type AssetMetadataUpsertItemDto = {
|
||||
export type AssetMediaCreateDto = {
|
||||
/** Asset file data */
|
||||
assetData: Blob;
|
||||
/** Device asset ID */
|
||||
deviceAssetId: string;
|
||||
/** Device ID */
|
||||
deviceId: string;
|
||||
/** Duration (for videos) */
|
||||
duration?: string;
|
||||
/** File creation date */
|
||||
@@ -863,16 +855,6 @@ export type AssetCopyDto = {
|
||||
/** Target asset ID */
|
||||
targetId: string;
|
||||
};
|
||||
export type CheckExistingAssetsDto = {
|
||||
/** Device asset IDs to check */
|
||||
deviceAssetIds: string[];
|
||||
/** Device ID */
|
||||
deviceId: string;
|
||||
};
|
||||
export type CheckExistingAssetsResponseDto = {
|
||||
/** Existing asset IDs */
|
||||
existingIds: string[];
|
||||
};
|
||||
export type AssetJobsDto = {
|
||||
/** Asset IDs */
|
||||
assetIds: string[];
|
||||
@@ -1661,10 +1643,6 @@ export type MetadataSearchDto = {
|
||||
createdBefore?: string;
|
||||
/** Filter by description text */
|
||||
description?: string;
|
||||
/** Filter by device asset ID */
|
||||
deviceAssetId?: string;
|
||||
/** Device ID to filter by */
|
||||
deviceId?: string;
|
||||
/** Filter by encoded video file path */
|
||||
encodedVideoPath?: string;
|
||||
/** Filter by asset ID */
|
||||
@@ -1790,8 +1768,6 @@ export type RandomSearchDto = {
|
||||
createdAfter?: string;
|
||||
/** Filter by creation date (before) */
|
||||
createdBefore?: string;
|
||||
/** Device ID to filter by */
|
||||
deviceId?: string;
|
||||
/** Filter by encoded status */
|
||||
isEncoded?: boolean;
|
||||
/** Filter by favorite status */
|
||||
@@ -1856,8 +1832,6 @@ export type SmartSearchDto = {
|
||||
createdAfter?: string;
|
||||
/** Filter by creation date (before) */
|
||||
createdBefore?: string;
|
||||
/** Device ID to filter by */
|
||||
deviceId?: string;
|
||||
/** Filter by encoded status */
|
||||
isEncoded?: boolean;
|
||||
/** Filter by favorite status */
|
||||
@@ -1928,8 +1902,6 @@ export type StatisticsSearchDto = {
|
||||
createdBefore?: string;
|
||||
/** Filter by description text */
|
||||
description?: string;
|
||||
/** Device ID to filter by */
|
||||
deviceId?: string;
|
||||
/** Filter by encoded status */
|
||||
isEncoded?: boolean;
|
||||
/** Filter by favorite status */
|
||||
@@ -3958,34 +3930,6 @@ export function copyAsset({ assetCopyDto }: {
|
||||
body: assetCopyDto
|
||||
})));
|
||||
}
|
||||
/**
|
||||
* Retrieve assets by device ID
|
||||
*/
|
||||
export function getAllUserAssetsByDeviceId({ deviceId }: {
|
||||
deviceId: string;
|
||||
}, opts?: Oazapfts.RequestOpts) {
|
||||
return oazapfts.ok(oazapfts.fetchJson<{
|
||||
status: 200;
|
||||
data: string[];
|
||||
}>(`/assets/device/${encodeURIComponent(deviceId)}`, {
|
||||
...opts
|
||||
}));
|
||||
}
|
||||
/**
|
||||
* Check existing assets
|
||||
*/
|
||||
export function checkExistingAssets({ checkExistingAssetsDto }: {
|
||||
checkExistingAssetsDto: CheckExistingAssetsDto;
|
||||
}, opts?: Oazapfts.RequestOpts) {
|
||||
return oazapfts.ok(oazapfts.fetchJson<{
|
||||
status: 200;
|
||||
data: CheckExistingAssetsResponseDto;
|
||||
}>("/assets/exist", oazapfts.json({
|
||||
...opts,
|
||||
method: "POST",
|
||||
body: checkExistingAssetsDto
|
||||
})));
|
||||
}
|
||||
/**
|
||||
* Run an asset job
|
||||
*/
|
||||
@@ -5365,13 +5309,12 @@ export function getExploreData(opts?: Oazapfts.RequestOpts) {
|
||||
/**
|
||||
* Search large assets
|
||||
*/
|
||||
export function searchLargeAssets({ albumIds, city, country, createdAfter, createdBefore, deviceId, isEncoded, isFavorite, isMotion, isNotInAlbum, isOffline, lensModel, libraryId, make, minFileSize, model, ocr, personIds, rating, size, state, tagIds, takenAfter, takenBefore, trashedAfter, trashedBefore, $type, updatedAfter, updatedBefore, visibility, withDeleted, withExif }: {
|
||||
export function searchLargeAssets({ albumIds, city, country, createdAfter, createdBefore, isEncoded, isFavorite, isMotion, isNotInAlbum, isOffline, lensModel, libraryId, make, minFileSize, model, ocr, personIds, rating, size, state, tagIds, takenAfter, takenBefore, trashedAfter, trashedBefore, $type, updatedAfter, updatedBefore, visibility, withDeleted, withExif }: {
|
||||
albumIds?: string[];
|
||||
city?: string | null;
|
||||
country?: string | null;
|
||||
createdAfter?: string;
|
||||
createdBefore?: string;
|
||||
deviceId?: string;
|
||||
isEncoded?: boolean;
|
||||
isFavorite?: boolean;
|
||||
isMotion?: boolean;
|
||||
@@ -5408,7 +5351,6 @@ export function searchLargeAssets({ albumIds, city, country, createdAfter, creat
|
||||
country,
|
||||
createdAfter,
|
||||
createdBefore,
|
||||
deviceId,
|
||||
isEncoded,
|
||||
isFavorite,
|
||||
isMotion,
|
||||
|
||||
Reference in New Issue
Block a user