@appium/types
Advanced tools
Comparing version 0.3.1 to 0.4.0
@@ -30,2 +30,13 @@ /// <reference types="node" /> | ||
} | ||
export interface ExecuteCommands { | ||
executeMethod(script: string, args: [Record<string, any>] | []): Promise<any>; | ||
} | ||
export interface ExecuteMethodDef { | ||
command: string; | ||
params?: { | ||
required?: string[]; | ||
optional?: string[]; | ||
}; | ||
} | ||
export declare type ExecuteMethodMap = Record<string, ExecuteMethodDef>; | ||
export interface MultiSessionData { | ||
@@ -426,2 +437,3 @@ id: string; | ||
newMethodMap?: MethodMap<ExternalDriver>; | ||
executeMethodMap: ExecuteMethodMap; | ||
} | ||
@@ -428,0 +440,0 @@ /** |
@@ -139,4 +139,5 @@ /// <reference types="node" /> | ||
* @param httpServer - the node HTTP server that hosts the app | ||
* @param cliArgs - Arguments from config files, CLI, etc. | ||
*/ | ||
export declare type UpdateServerCallback = (expressApp: Express, httpServer: AppiumServer) => Promise<void>; | ||
export declare type UpdateServerCallback = (expressApp: Express, httpServer: AppiumServer, cliArgs: ServerArgs) => Promise<void>; | ||
/** | ||
@@ -143,0 +144,0 @@ * Possible HTTP methods, as stolen from `axios`. |
@@ -47,2 +47,15 @@ import type {EventEmitter} from 'events'; | ||
export interface ExecuteCommands { | ||
executeMethod(script: string, args: [Record<string, any>]|[]): Promise<any>; | ||
} | ||
export interface ExecuteMethodDef { | ||
command: string, | ||
params?: { | ||
required?: string[], | ||
optional?: string[], | ||
} | ||
}; | ||
export type ExecuteMethodMap = Record<string, ExecuteMethodDef>; | ||
export interface MultiSessionData { | ||
@@ -578,2 +591,3 @@ id: string; | ||
newMethodMap?: MethodMap<ExternalDriver>; | ||
executeMethodMap: ExecuteMethodMap; | ||
} | ||
@@ -580,0 +594,0 @@ |
@@ -164,5 +164,7 @@ import type {Server as WSServer} from 'ws'; | ||
* @param httpServer - the node HTTP server that hosts the app | ||
* @param cliArgs - Arguments from config files, CLI, etc. | ||
*/ | ||
export type UpdateServerCallback = (expressApp: Express, httpServer: AppiumServer) => Promise<void>; | ||
export type UpdateServerCallback = (expressApp: Express, httpServer: AppiumServer, cliArgs: ServerArgs) => Promise<void>; | ||
/** | ||
@@ -169,0 +171,0 @@ * Possible HTTP methods, as stolen from `axios`. |
@@ -1,2 +0,2 @@ | ||
import {MethodMap, UpdateServerCallback, Class, AppiumLogger} from '.'; | ||
import {MethodMap, UpdateServerCallback, Class, AppiumLogger, PluginType} from '.'; | ||
import {Driver, ExternalDriver} from './driver'; | ||
@@ -3,0 +3,0 @@ |
{ | ||
"name": "@appium/types", | ||
"version": "0.3.1", | ||
"version": "0.4.0", | ||
"description": "Various type declarations used across Appium", | ||
@@ -48,3 +48,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "500c08f3929b1dd531d119872d11cea59d417eb7" | ||
"gitHead": "c58f32441daba3aae9768a57d0a412fe92f4b587" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
127411
2149