@qawolf/types
Advanced tools
Comparing version 0.3.0 to 0.4.0
@@ -0,1 +1,2 @@ | ||
export declare type Callback<S = void, T = void> = (data?: S) => T; | ||
export declare type Action = "click" | "input" | "scroll"; | ||
@@ -6,6 +7,4 @@ export declare type BrowserStep = { | ||
pageId?: number; | ||
scrollDirection?: "down" | "up"; | ||
scrollTo?: number; | ||
target: ElementDescriptor; | ||
value?: string; | ||
value?: string | ScrollValue | null; | ||
}; | ||
@@ -29,8 +28,21 @@ export declare type ElementDescriptor = { | ||
}; | ||
export declare type Job = { | ||
name: string; | ||
size: Size; | ||
steps: BrowserStep[]; | ||
url: string; | ||
export interface Event { | ||
action: Action; | ||
isTrusted: boolean; | ||
pageId?: number; | ||
target: ElementDescriptor; | ||
time: number; | ||
} | ||
export interface InputEvent extends Event { | ||
action: "input"; | ||
value?: string | null; | ||
} | ||
export declare type ScrollValue = { | ||
x: number; | ||
y: number; | ||
}; | ||
export interface ScrollEvent extends Event { | ||
action: "scroll"; | ||
value: ScrollValue; | ||
} | ||
export declare type Locator = { | ||
@@ -44,1 +56,7 @@ action: Action; | ||
export declare type Size = "desktop" | "tablet" | "mobile"; | ||
export declare type Workflow = { | ||
name: string; | ||
size: Size; | ||
steps: BrowserStep[]; | ||
url: string; | ||
}; |
{ | ||
"name": "@qawolf/types", | ||
"description": "qawolf types", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"license": "BSD-3.0", | ||
@@ -22,3 +22,3 @@ "main": "./lib/index.js", | ||
}, | ||
"gitHead": "60a5f4a290786f87cbb7594ae242a5dac02b3819" | ||
"gitHead": "a0a2411b4e62470aea6d556082385f7df832cc80" | ||
} |
@@ -0,1 +1,3 @@ | ||
export type Callback<S = void, T = void> = (data?: S) => T; | ||
export type Action = "click" | "input" | "scroll"; | ||
@@ -7,6 +9,4 @@ | ||
pageId?: number; | ||
scrollDirection?: "down" | "up"; | ||
scrollTo?: number; | ||
target: ElementDescriptor; | ||
value?: string; | ||
value?: string | ScrollValue | null; | ||
}; | ||
@@ -32,9 +32,25 @@ | ||
export type Job = { | ||
name: string; | ||
size: Size; | ||
steps: BrowserStep[]; | ||
url: string; | ||
export interface Event { | ||
action: Action; | ||
isTrusted: boolean; | ||
pageId?: number; | ||
target: ElementDescriptor; | ||
time: number; | ||
} | ||
export interface InputEvent extends Event { | ||
action: "input"; | ||
value?: string | null; | ||
} | ||
export type ScrollValue = { | ||
x: number; | ||
y: number; | ||
}; | ||
export interface ScrollEvent extends Event { | ||
action: "scroll"; | ||
value: ScrollValue; | ||
} | ||
export type Locator = { | ||
@@ -49,1 +65,8 @@ action: Action; | ||
export type Size = "desktop" | "tablet" | "mobile"; | ||
export type Workflow = { | ||
name: string; | ||
size: Size; | ||
steps: BrowserStep[]; | ||
url: string; | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5362
9
123