feat: collection move
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
+11
-2
@@ -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 {};
|
||||
|
||||
Reference in New Issue
Block a user