@wdio/protocols 6.3.6 → 6.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +85 -0
- package/package.json +3 -7
package/index.d.ts
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
declare namespace WDIOProtocols {
|
|
2
|
+
type CommandPath = 'string'
|
|
3
|
+
type CommandMethod = 'POST' | 'GET' | 'DELETE'
|
|
4
|
+
type Protocol = Record<CommandPath, Record<CommandMethod, CommandEndpoint>>
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* describes a command endpoint
|
|
8
|
+
*/
|
|
9
|
+
interface CommandEndpoint {
|
|
10
|
+
/**
|
|
11
|
+
* command name
|
|
12
|
+
*/
|
|
13
|
+
command: string
|
|
14
|
+
/**
|
|
15
|
+
* command description
|
|
16
|
+
*/
|
|
17
|
+
description: string
|
|
18
|
+
/**
|
|
19
|
+
* link to specification reference
|
|
20
|
+
*/
|
|
21
|
+
ref: URL
|
|
22
|
+
/**
|
|
23
|
+
* supported command parameters
|
|
24
|
+
*/
|
|
25
|
+
parameters: CommandParameters[]
|
|
26
|
+
/**
|
|
27
|
+
* variables within the command path (e.g. /:sessionId/element)
|
|
28
|
+
*/
|
|
29
|
+
variables?: CommandPathVariables[]
|
|
30
|
+
/**
|
|
31
|
+
* supported environments
|
|
32
|
+
*/
|
|
33
|
+
support?: SupportedEnvironments
|
|
34
|
+
/**
|
|
35
|
+
* set to true if command is only supported in Selenium Hub Node
|
|
36
|
+
*/
|
|
37
|
+
isHubCommand?: boolean,
|
|
38
|
+
/**
|
|
39
|
+
* information on return data
|
|
40
|
+
*/
|
|
41
|
+
returns?: CommandReturnObject
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
interface CommandReturnObject {
|
|
45
|
+
type: string
|
|
46
|
+
name: string
|
|
47
|
+
description: string
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
interface CommandPathVariables {
|
|
51
|
+
name: string
|
|
52
|
+
description: string
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
interface CommandParameters {
|
|
56
|
+
name: string,
|
|
57
|
+
type: string,
|
|
58
|
+
description: string,
|
|
59
|
+
required: boolean
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
type Platform = 'ios' | 'android'
|
|
63
|
+
type Environments = 'XCUITest' | 'UIAutomation' | 'UiAutomator'
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* supported mobile environments, e.g.
|
|
67
|
+
* ```
|
|
68
|
+
* "ios": {
|
|
69
|
+
* "UIAutomation": "8.0 to 9.3"
|
|
70
|
+
* }
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
type SupportedEnvironments = Record<Platform, Record<Environments, string>>
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
declare module "@wdio/protocols" {
|
|
77
|
+
export default WDIOProtocols
|
|
78
|
+
export const WebDriverProtocol: WDIOProtocols.Protocol
|
|
79
|
+
export const MJsonWProtocol: WDIOProtocols.Protocol
|
|
80
|
+
export const JsonWProtocol: WDIOProtocols.Protocol
|
|
81
|
+
export const AppiumProtocol: WDIOProtocols.Protocol
|
|
82
|
+
export const ChromiumProtocol: WDIOProtocols.Protocol
|
|
83
|
+
export const SauceLabsProtocol: WDIOProtocols.Protocol
|
|
84
|
+
export const SeleniumProtocol: WDIOProtocols.Protocol
|
|
85
|
+
}
|
package/package.json
CHANGED
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/protocols",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.6.0",
|
|
4
4
|
"description": "Utility package providing information about automation protocols",
|
|
5
5
|
"author": "Christian Bromann <christian@saucelabs.com>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/master/packages/wdio-protocols",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"main": "./index",
|
|
9
|
+
"types": "./index.d.ts",
|
|
9
10
|
"engines": {
|
|
10
11
|
"node": ">=10.0.0"
|
|
11
12
|
},
|
|
12
|
-
"scripts": {
|
|
13
|
-
"compile": "echo \"nothing to compile\"",
|
|
14
|
-
"build": "echo \"nothing to build\"",
|
|
15
|
-
"test": "echo \"run json linting tests\""
|
|
16
|
-
},
|
|
17
13
|
"repository": {
|
|
18
14
|
"type": "git",
|
|
19
15
|
"url": "git://github.com/webdriverio/webdriverio.git"
|
|
@@ -28,5 +24,5 @@
|
|
|
28
24
|
"publishConfig": {
|
|
29
25
|
"access": "public"
|
|
30
26
|
},
|
|
31
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "643b1f237c0c7e4eb0e28fca31d963d3b19a073c"
|
|
32
28
|
}
|