feat: global workflow action types
This commit is contained in:
26
src/shared/types.ts
Normal file
26
src/shared/types.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
import { WorkflowFile } from "@wbr-project/wbr-interpret";
|
||||
import { Locator } from "playwright";
|
||||
|
||||
export type Workflow = WorkflowFile["workflow"];
|
||||
|
||||
export interface ScreenshotSettings {
|
||||
animations?: "disabled" | "allow";
|
||||
caret?: "hide" | "initial";
|
||||
clip?: {
|
||||
x: number;
|
||||
y: number;
|
||||
width: number;
|
||||
height: number;
|
||||
};
|
||||
fullPage?: boolean;
|
||||
mask?: Locator[];
|
||||
omitBackground?: boolean;
|
||||
// is this still needed? - @wbr-project/wbr-interpret outputs to a binary output
|
||||
path?: string;
|
||||
quality?: number;
|
||||
scale?: "css" | "device";
|
||||
timeout?: number;
|
||||
type?: "jpeg" | "png";
|
||||
};
|
||||
|
||||
export declare type CustomActions = 'scrape' | 'scrapeSchema' | 'scroll' | 'screenshot' | 'script' | 'enqueueLinks' | 'flag';
|
||||
Reference in New Issue
Block a user