feat: add multi-copy paste support

This commit is contained in:
Carlos Valente
2026-03-21 09:37:15 +01:00
parent 6a40c66a7b
commit e40a0eebec
19 changed files with 243 additions and 122 deletions
+14
View File
@@ -153,6 +153,20 @@ export async function postCloneEntry(
return axios.post(`${rundownPath}/${rundownId}/clone/${entryId}`, options);
}
export type PastePayload = {
entryIds: EntryId[];
sourceRundownId: string;
afterId?: EntryId;
beforeId?: EntryId;
};
/**
* HTTP request for pasting entries into the active rundown
*/
export async function postPasteEntries(rundownId: RundownId, data: PastePayload): Promise<AxiosResponse<Rundown>> {
return axios.post(`${rundownPath}/${rundownId}/paste`, data);
}
/**
* HTTP request for grouping a list of entries into a group
*/