mirror of
https://github.com/immich-app/immich.git
synced 2026-05-22 15:02:32 -04:00
chore!: remove old timeline sync endpoints (#27804)
This commit is contained in:
@@ -2321,29 +2321,6 @@ export type SyncAckSetDto = {
|
||||
/** Acknowledgment IDs (max 1000) */
|
||||
acks: string[];
|
||||
};
|
||||
export type AssetDeltaSyncDto = {
|
||||
/** Sync assets updated after this date */
|
||||
updatedAfter: string;
|
||||
/** User IDs to sync */
|
||||
userIds: string[];
|
||||
};
|
||||
export type AssetDeltaSyncResponseDto = {
|
||||
/** Deleted asset IDs */
|
||||
deleted: string[];
|
||||
/** Whether full sync is needed */
|
||||
needsFullSync: boolean;
|
||||
upserted: AssetResponseDto[];
|
||||
};
|
||||
export type AssetFullSyncDto = {
|
||||
/** Last asset ID (pagination) */
|
||||
lastId?: string;
|
||||
/** Maximum number of assets to return */
|
||||
limit: number;
|
||||
/** Sync assets updated until this date */
|
||||
updatedUntil: string;
|
||||
/** Filter by user ID */
|
||||
userId?: string;
|
||||
};
|
||||
export type SyncStreamDto = {
|
||||
/** Reset sync state */
|
||||
reset?: boolean;
|
||||
@@ -6094,36 +6071,6 @@ export function sendSyncAck({ syncAckSetDto }: {
|
||||
body: syncAckSetDto
|
||||
})));
|
||||
}
|
||||
/**
|
||||
* Get delta sync for user
|
||||
*/
|
||||
export function getDeltaSync({ assetDeltaSyncDto }: {
|
||||
assetDeltaSyncDto: AssetDeltaSyncDto;
|
||||
}, opts?: Oazapfts.RequestOpts) {
|
||||
return oazapfts.ok(oazapfts.fetchJson<{
|
||||
status: 200;
|
||||
data: AssetDeltaSyncResponseDto;
|
||||
}>("/sync/delta-sync", oazapfts.json({
|
||||
...opts,
|
||||
method: "POST",
|
||||
body: assetDeltaSyncDto
|
||||
})));
|
||||
}
|
||||
/**
|
||||
* Get full sync for user
|
||||
*/
|
||||
export function getFullSyncForUser({ assetFullSyncDto }: {
|
||||
assetFullSyncDto: AssetFullSyncDto;
|
||||
}, opts?: Oazapfts.RequestOpts) {
|
||||
return oazapfts.ok(oazapfts.fetchJson<{
|
||||
status: 200;
|
||||
data: AssetResponseDto[];
|
||||
}>("/sync/full-sync", oazapfts.json({
|
||||
...opts,
|
||||
method: "POST",
|
||||
body: assetFullSyncDto
|
||||
})));
|
||||
}
|
||||
/**
|
||||
* Stream sync changes
|
||||
*/
|
||||
@@ -7120,7 +7067,6 @@ export enum JobName {
|
||||
AssetFileMigration = "AssetFileMigration",
|
||||
AssetGenerateThumbnailsQueueAll = "AssetGenerateThumbnailsQueueAll",
|
||||
AssetGenerateThumbnails = "AssetGenerateThumbnails",
|
||||
AuditLogCleanup = "AuditLogCleanup",
|
||||
AuditTableCleanup = "AuditTableCleanup",
|
||||
DatabaseBackup = "DatabaseBackup",
|
||||
FacialRecognitionQueueAll = "FacialRecognitionQueueAll",
|
||||
|
||||
Reference in New Issue
Block a user