@hmcts/media-viewer
Version:
90 lines • 3.68 kB
TypeScript
import { Action } from '@ngrx/store';
import { PageEvent } from '../../viewers/pdf-viewer/pdf-js/pdf-js-wrapper';
import { Rotation } from '../../viewers/rotation-persist/rotation.model';
import { PdfPosition } from '../reducers/document.reducer';
export declare const SET_DOCUMENT_ID = "[Document] Set Document Id";
export declare const POSITION_UPDATED = "[Document] Position Updated";
export declare const ADD_PAGES = "[Document] Add Pages";
export declare const CONVERT = "[Document] Convert";
export declare const CONVERT_SUCCESS = "[Document] Convert Success";
export declare const CONVERT_FAIL = "[Document] Convert Fail";
export declare const CLEAR_CONVERT_DOC_URL = "[Document] Clear Convert Doc Url";
export declare const LOAD_ROTATION = "[Document] Load Rotation";
export declare const LOAD_ROTATION_SUCCESS = "[Document] Load Rotation Success";
export declare const LOAD_ROTATION_FAIL = "[Document] Load Rotation Fail";
export declare const SAVE_ROTATION = "[Document] Save Rotation";
export declare const SAVE_ROTATION_SUCCESS = "[Document] Save Rotation Success";
export declare const SAVE_ROTATION_FAIL = "[Document] Save Rotation Fail";
export declare class SetDocumentId implements Action {
payload: string;
readonly type = "[Document] Set Document Id";
constructor(payload: string);
}
export declare class AddPages implements Action {
payload: PageEvent[];
readonly type = "[Document] Add Pages";
constructor(payload: PageEvent[]);
}
export declare class PdfPositionUpdate implements Action {
payload: PdfPosition;
readonly type = "[Document] Position Updated";
constructor(payload: PdfPosition);
}
export declare class Convert implements Action {
payload: string;
readonly type = "[Document] Convert";
constructor(payload: string);
}
export declare class ConvertSuccess implements Action {
payload: string;
readonly type = "[Document] Convert Success";
constructor(payload: string);
}
export declare class ConvertFailure implements Action {
payload: string;
readonly type = "[Document] Convert Fail";
constructor(payload: string);
}
export declare class ClearConvertDocUrl implements Action {
readonly type = "[Document] Clear Convert Doc Url";
}
export declare class LoadRotation implements Action {
payload: string;
readonly type = "[Document] Load Rotation";
constructor(payload: string);
}
export declare class LoadRotationSuccess implements Action {
payload: {
rotationAngle: number;
};
readonly type = "[Document] Load Rotation Success";
constructor(payload: {
rotationAngle: number;
});
}
export declare class LoadRotationFailure implements Action {
payload: Error;
readonly type = "[Document] Load Rotation Fail";
constructor(payload: Error);
}
export declare class SaveRotation implements Action {
payload: Rotation;
readonly type = "[Document] Save Rotation";
constructor(payload: Rotation);
}
export declare class SaveRotationSuccess implements Action {
payload: {
rotationAngle: number;
};
readonly type = "[Document] Save Rotation Success";
constructor(payload: {
rotationAngle: number;
});
}
export declare class SaveRotationFailure implements Action {
payload: Error;
readonly type = "[Document] Save Rotation Fail";
constructor(payload: Error);
}
export type DocumentActions = AddPages | SetDocumentId | Convert | ConvertSuccess | ConvertFailure | ClearConvertDocUrl | PdfPositionUpdate | LoadRotation | LoadRotationSuccess | LoadRotationFailure | SaveRotation | SaveRotationSuccess | SaveRotationFailure;
//# sourceMappingURL=document.actions.d.ts.map