@appium/types 0.21.3 → 0.22.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/build/lib/appium-config.d.ts +15 -10
- package/build/lib/appium-config.d.ts.map +1 -1
- package/lib/appium-config.ts +15 -10
- package/package.json +4 -4
|
@@ -105,10 +105,22 @@ export type PortConfig = number;
|
|
|
105
105
|
* Disable additional security checks, so it is possible to use some advanced features, provided by drivers supporting this option. Only enable it if all the clients are in the trusted network and it's not the case if a client could potentially break out of the session sandbox. Specific features can be overridden by using "deny-insecure"
|
|
106
106
|
*/
|
|
107
107
|
export type RelaxedSecurityConfig = boolean;
|
|
108
|
+
/**
|
|
109
|
+
* For how long the server should delay its shutdown before force-closing all open connections to it. Setting its value to zero should close the server without waiting for active connections.
|
|
110
|
+
*/
|
|
111
|
+
export type GracefulServerShutdownTimeoutInMilliseconds = number;
|
|
108
112
|
/**
|
|
109
113
|
* Enables session override (clobbering)
|
|
110
114
|
*/
|
|
111
115
|
export type SessionOverrideConfig = boolean;
|
|
116
|
+
/**
|
|
117
|
+
* Full path to the .cert file if TLS is used. Must be provided together with "ssl-key-path"
|
|
118
|
+
*/
|
|
119
|
+
export type CertFilePath = string;
|
|
120
|
+
/**
|
|
121
|
+
* Full path to the .key file if TLS is used. Must be provided together with "ssl-cert-path"
|
|
122
|
+
*/
|
|
123
|
+
export type KeyFilePath = string;
|
|
112
124
|
/**
|
|
113
125
|
* Cause sessions to fail if desired caps are sent in that Appium does not recognize as valid for the selected device
|
|
114
126
|
*/
|
|
@@ -133,14 +145,6 @@ export type UsePluginsConfig = string[];
|
|
|
133
145
|
* Also send log output to this http listener
|
|
134
146
|
*/
|
|
135
147
|
export type WebhookConfig = string;
|
|
136
|
-
/**
|
|
137
|
-
* Full path to the .cert file if TLS is used. Must be provided together with "ssl-key-path"
|
|
138
|
-
*/
|
|
139
|
-
export type CertFilePath = string;
|
|
140
|
-
/**
|
|
141
|
-
* Full path to the .key file if TLS is used. Must be provided together with "ssl-cert-path"
|
|
142
|
-
*/
|
|
143
|
-
export type KeyFilePath = string;
|
|
144
148
|
/**
|
|
145
149
|
* A schema for Appium configuration files
|
|
146
150
|
*/
|
|
@@ -181,15 +185,16 @@ export interface ServerConfig {
|
|
|
181
185
|
plugin?: PluginConfig;
|
|
182
186
|
port?: PortConfig;
|
|
183
187
|
"relaxed-security"?: RelaxedSecurityConfig;
|
|
188
|
+
"shutdown-timeout"?: GracefulServerShutdownTimeoutInMilliseconds;
|
|
184
189
|
"session-override"?: SessionOverrideConfig;
|
|
190
|
+
"ssl-cert-path"?: CertFilePath;
|
|
191
|
+
"ssl-key-path"?: KeyFilePath;
|
|
185
192
|
"strict-caps"?: StrictCapsConfig;
|
|
186
193
|
tmp?: TmpConfig;
|
|
187
194
|
"trace-dir"?: TraceDirConfig;
|
|
188
195
|
"use-drivers"?: UseDriversConfig;
|
|
189
196
|
"use-plugins"?: UsePluginsConfig;
|
|
190
197
|
webhook?: WebhookConfig;
|
|
191
|
-
"ssl-cert-path"?: CertFilePath;
|
|
192
|
-
"ssl-key-path"?: KeyFilePath;
|
|
193
198
|
}
|
|
194
199
|
/**
|
|
195
200
|
* Set the default desired capabilities, which will be set on each session unless overridden by received capabilities. If a string, a path to a JSON file containing the capabilities, or raw JSON.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appium-config.d.ts","sourceRoot":"","sources":["../../lib/appium-config.ts"],"names":[],"mappings":"AACA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC;AACnC;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC;AACtC;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,MAAM,EAAE,CAAC;AAC3C;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC;AACpC;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC;AAC3C;;GAEG;AACH,M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AC9B,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,kBAAkB,CAAC,EAAE,qBAAqB,CAAC;IAC3C,kBAAkB,CAAC,EAAE,2CAA2C,CAAC;IACjE,kBAAkB,CAAC,EAAE,qBAAqB,CAAC;IAC3C,eAAe,CAAC,EAAE,YAAY,CAAC;IAC/B,cAAc,CAAC,EAAE,WAAW,CAAC;IAC7B,aAAa,CAAC,EAAE,gBAAgB,CAAC;IACjC,GAAG,CAAC,EAAE,SAAS,CAAC;IAChB,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,aAAa,CAAC,EAAE,gBAAgB,CAAC;IACjC,aAAa,CAAC,EAAE,gBAAgB,CAAC;IACjC,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AACD;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB;AACD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB;AACD;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB;AACD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB;AACD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB;AACD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB"}
|
package/lib/appium-config.ts
CHANGED
|
@@ -127,10 +127,22 @@ export type PortConfig = number;
|
|
|
127
127
|
* Disable additional security checks, so it is possible to use some advanced features, provided by drivers supporting this option. Only enable it if all the clients are in the trusted network and it's not the case if a client could potentially break out of the session sandbox. Specific features can be overridden by using "deny-insecure"
|
|
128
128
|
*/
|
|
129
129
|
export type RelaxedSecurityConfig = boolean;
|
|
130
|
+
/**
|
|
131
|
+
* For how long the server should delay its shutdown before force-closing all open connections to it. Setting its value to zero should close the server without waiting for active connections.
|
|
132
|
+
*/
|
|
133
|
+
export type GracefulServerShutdownTimeoutInMilliseconds = number;
|
|
130
134
|
/**
|
|
131
135
|
* Enables session override (clobbering)
|
|
132
136
|
*/
|
|
133
137
|
export type SessionOverrideConfig = boolean;
|
|
138
|
+
/**
|
|
139
|
+
* Full path to the .cert file if TLS is used. Must be provided together with "ssl-key-path"
|
|
140
|
+
*/
|
|
141
|
+
export type CertFilePath = string;
|
|
142
|
+
/**
|
|
143
|
+
* Full path to the .key file if TLS is used. Must be provided together with "ssl-cert-path"
|
|
144
|
+
*/
|
|
145
|
+
export type KeyFilePath = string;
|
|
134
146
|
/**
|
|
135
147
|
* Cause sessions to fail if desired caps are sent in that Appium does not recognize as valid for the selected device
|
|
136
148
|
*/
|
|
@@ -155,14 +167,6 @@ export type UsePluginsConfig = string[];
|
|
|
155
167
|
* Also send log output to this http listener
|
|
156
168
|
*/
|
|
157
169
|
export type WebhookConfig = string;
|
|
158
|
-
/**
|
|
159
|
-
* Full path to the .cert file if TLS is used. Must be provided together with "ssl-key-path"
|
|
160
|
-
*/
|
|
161
|
-
export type CertFilePath = string;
|
|
162
|
-
/**
|
|
163
|
-
* Full path to the .key file if TLS is used. Must be provided together with "ssl-cert-path"
|
|
164
|
-
*/
|
|
165
|
-
export type KeyFilePath = string;
|
|
166
170
|
|
|
167
171
|
/**
|
|
168
172
|
* A schema for Appium configuration files
|
|
@@ -204,15 +208,16 @@ export interface ServerConfig {
|
|
|
204
208
|
plugin?: PluginConfig;
|
|
205
209
|
port?: PortConfig;
|
|
206
210
|
"relaxed-security"?: RelaxedSecurityConfig;
|
|
211
|
+
"shutdown-timeout"?: GracefulServerShutdownTimeoutInMilliseconds;
|
|
207
212
|
"session-override"?: SessionOverrideConfig;
|
|
213
|
+
"ssl-cert-path"?: CertFilePath;
|
|
214
|
+
"ssl-key-path"?: KeyFilePath;
|
|
208
215
|
"strict-caps"?: StrictCapsConfig;
|
|
209
216
|
tmp?: TmpConfig;
|
|
210
217
|
"trace-dir"?: TraceDirConfig;
|
|
211
218
|
"use-drivers"?: UseDriversConfig;
|
|
212
219
|
"use-plugins"?: UsePluginsConfig;
|
|
213
220
|
webhook?: WebhookConfig;
|
|
214
|
-
"ssl-cert-path"?: CertFilePath;
|
|
215
|
-
"ssl-key-path"?: KeyFilePath;
|
|
216
221
|
}
|
|
217
222
|
/**
|
|
218
223
|
* Set the default desired capabilities, which will be set on each session unless overridden by received capabilities. If a string, a path to a JSON file containing the capabilities, or raw JSON.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appium/types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"description": "Various type declarations used across Appium",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"automation",
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@appium/logger": "^1.6.1",
|
|
42
|
-
"@appium/schema": "^0.
|
|
42
|
+
"@appium/schema": "^0.7.0",
|
|
43
43
|
"@appium/tsconfig": "^0.3.3",
|
|
44
|
-
"@types/express": "
|
|
44
|
+
"@types/express": "5.0.0",
|
|
45
45
|
"@types/ws": "8.5.12",
|
|
46
46
|
"type-fest": "4.26.1"
|
|
47
47
|
},
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"publishConfig": {
|
|
53
53
|
"access": "public"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "e3f7bd07f773c42d06b43a69f15e0c8fed0e10aa"
|
|
56
56
|
}
|