import type { ISlideDrawing, SlidePageSourceType } from '../services/slide-drawing.service'; import type { ISlideBackgroundData, ISlideChartElement, ISlideChartResource, ISlideMasterPage, ISlidePage, ISlidePageElement, ISlidePageSize, ISlidePresentationBackgroundGraphic, ISlideTransition } from '../slide.type'; import type { SlidePresentationBackgroundGraphicsTarget } from '../utils/presentation-background-graphics'; export interface IUpdateSlideDrawingPatch { unitId: string; subUnitId: string; drawingId: string; element?: ISlideDrawing['element']; transform?: ISlideDrawing['transform']; } export interface IUpdateSlideDrawingCommandParams { patches: IUpdateSlideDrawingPatch[]; } export interface IAddSlideElementCommandParams { unitId: string; subUnitId: string; element: ISlidePageElement; sourcePageType?: SlidePageSourceType; insertIndex?: number; focus?: boolean; } export interface IRemoveSlideElementCommandParams { unitId: string; subUnitId: string; drawingIds: string[]; } export interface IAddSlidePageCommandParams { unitId: string; slide: ISlidePage; insertIndex?: number; setActive?: boolean; } export interface IRemoveSlidePageCommandParams { unitId: string; slideId: string; } export interface IMoveSlidePageCommandParams { unitId: string; slideId: string; toIndex: number; } export interface IUpdateSlidePageBackgroundPatch { unitId: string; pageId: string; background?: ISlideBackgroundData; showMasterSp?: boolean; showMasterBg?: boolean; } export interface IUpdateSlidePageBackgroundCommandParams { patches: IUpdateSlidePageBackgroundPatch[]; ensureMasterPage?: ISlideMasterPage; } export interface ISetSlidePageSizeCommandParams { unitId: string; pageId?: string; pageSize: ISlidePageSize; } export interface ISetPresentationBackgroundGraphicsCommandParams { unitId: string; target?: SlidePresentationBackgroundGraphicsTarget; masterPageIds?: string[]; graphics: ISlidePresentationBackgroundGraphic[]; } export interface IReorderSlideElementsCommandParams { unitId: string; subUnitId: string; drawingIds: string[]; } export interface ISetSlideChartResourceMutationParams { unitId: string; chartId: string; resource?: ISlideChartResource; } export interface IAddSlideChartCommandParams { unitId: string; subUnitId: string; element: ISlideChartElement; resource: ISlideChartResource; insertIndex?: number; } export interface IUpdateSlideChartCommandParams { unitId: string; subUnitId: string; element: ISlideChartElement; resource: ISlideChartResource; } export interface IUpdateSlideChartResourceCommandParams { unitId: string; chartId: string; resource: ISlideChartResource; } export interface ISetSlideNameCommandParams { unitId: string; name: string; } export interface ISetSlideSpeakerNotesCommandParams { unitId: string; slideId: string; speakerNotes?: string; } export interface ISetActiveSlideCommandParams { unitId: string; slideId: string; } export interface ISetSlideTransitionCommandParams { unitId: string; slideIds?: string[]; applyToAll?: boolean; transition?: ISlideTransition; }