feat: collection move
JS Unit Tests / test (pull_request) Failing after 26s
Build Test / test (pull_request) Successful in 32s
PHP Unit Tests / test (pull_request) Successful in 53s

Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
2026-05-06 12:03:05 -04:00
parent 9b6823c481
commit fbc8ac2d7e
5 changed files with 117 additions and 11 deletions
+11 -2
View File
@@ -1,7 +1,7 @@
/**
* Collection type definitions
*/
import type { ListFilter, ListSort, SourceSelector } from './common';
import type { CollectionIdentifier, ListFilter, ListSort, SourceSelector } from './common';
/**
* Collection information
@@ -119,7 +119,6 @@ export interface CollectionDeleteRequest {
identifier: string | number;
options?: {
force?: boolean; // Whether to force delete even if collection is not empty
recursive?: boolean; // Whether to delete child collections/items as well
};
}
@@ -127,3 +126,13 @@ export interface CollectionDeleteResponse {
outcome: 'deleted' | 'moved';
data?: CollectionInterface | null; // If moved, the new location of the collection
}
/**
* Collection move
*/
export interface CollectionMoveRequest {
target: CollectionIdentifier;
source: CollectionIdentifier;
}
export interface CollectionMoveResponse extends CollectionInterface {};