@appium/schema 0.5.0 → 0.7.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.
@@ -140,6 +140,14 @@ export namespace AppiumConfigJsonSchema {
140
140
  readonly title: "log-level config";
141
141
  readonly type: "string";
142
142
  };
143
+ readonly 'log-format': {
144
+ readonly appiumCliDest: "logFormat";
145
+ readonly default: "text";
146
+ readonly description: "Log format (text|json|pretty_json)";
147
+ readonly enum: readonly ["text", "json", "pretty_json"];
148
+ readonly title: "log-format config";
149
+ readonly type: "string";
150
+ };
143
151
  readonly 'log-no-colors': {
144
152
  readonly default: false;
145
153
  readonly description: "Do not use color in console output";
@@ -204,12 +212,31 @@ export namespace AppiumConfigJsonSchema {
204
212
  readonly type: "boolean";
205
213
  readonly appiumCliDest: "relaxedSecurityEnabled";
206
214
  };
215
+ readonly 'shutdown-timeout': {
216
+ readonly default: 5000;
217
+ readonly description: string;
218
+ readonly title: "Graceful server shutdown timeout in milliseconds";
219
+ readonly type: "integer";
220
+ readonly minimum: 0;
221
+ };
207
222
  readonly 'session-override': {
208
223
  readonly default: false;
209
224
  readonly description: "Enables session override (clobbering)";
210
225
  readonly title: "session-override config";
211
226
  readonly type: "boolean";
212
227
  };
228
+ readonly 'ssl-cert-path': {
229
+ readonly description: "Full path to the .cert file if TLS is used. Must be provided together with \"ssl-key-path\"";
230
+ readonly title: ".cert file path";
231
+ readonly appiumCliDest: "sslCertificatePath";
232
+ readonly type: "string";
233
+ };
234
+ readonly 'ssl-key-path': {
235
+ readonly description: "Full path to the .key file if TLS is used. Must be provided together with \"ssl-cert-path\"";
236
+ readonly title: ".key file path";
237
+ readonly appiumCliDest: "sslKeyPath";
238
+ readonly type: "string";
239
+ };
213
240
  readonly 'strict-caps': {
214
241
  readonly default: false;
215
242
  readonly description: "Cause sessions to fail if desired caps are sent in that Appium does not recognize as valid for the selected device";
@@ -257,18 +284,6 @@ export namespace AppiumConfigJsonSchema {
257
284
  readonly title: "webhook config";
258
285
  readonly type: "string";
259
286
  };
260
- readonly 'ssl-cert-path': {
261
- readonly description: "Full path to the .cert file if TLS is used. Must be provided together with \"ssl-key-path\"";
262
- readonly title: ".cert file path";
263
- readonly appiumCliDest: "sslCertificatePath";
264
- readonly type: "string";
265
- };
266
- readonly 'ssl-key-path': {
267
- readonly description: "Full path to the .key file if TLS is used. Must be provided together with \"ssl-cert-path\"";
268
- readonly title: ".key file path";
269
- readonly appiumCliDest: "sslKeyPath";
270
- readonly type: "string";
271
- };
272
287
  };
273
288
  export { properties_1 as properties };
274
289
  export let title: "server config";
@@ -1 +1 @@
1
- {"version":3,"file":"appium-config-schema.d.ts","sourceRoot":"","sources":["../../lib/appium-config-schema.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"appium-config-schema.d.ts","sourceRoot":"","sources":["../../lib/appium-config-schema.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yCA+GiC,MAAM,CAAC,MAAM,EAAC,OAAO,aAAa,EAAE,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yCAuHhD,MAAM,CAAC,MAAM,EAAC,OAAO,aAAa,EAAE,WAAW,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * The single-source-of-truth of the Appium server configuration
3
+ * The single-source-of-truth of the Appium server configuration.
4
4
  *
5
5
  * This defines _both_ what the CLI supports and what the config files support.
6
6
  */
@@ -165,6 +165,14 @@ exports.AppiumConfigJsonSchema = ({
165
165
  title: 'log-level config',
166
166
  type: 'string',
167
167
  },
168
+ 'log-format': {
169
+ appiumCliDest: 'logFormat',
170
+ default: 'text',
171
+ description: 'Log format (text|json|pretty_json)',
172
+ enum: ['text', 'json', 'pretty_json'],
173
+ title: 'log-format config',
174
+ type: 'string',
175
+ },
168
176
  'log-no-colors': {
169
177
  default: false,
170
178
  description: 'Do not use color in console output',
@@ -229,12 +237,32 @@ exports.AppiumConfigJsonSchema = ({
229
237
  type: 'boolean',
230
238
  appiumCliDest: 'relaxedSecurityEnabled',
231
239
  },
240
+ 'shutdown-timeout': {
241
+ default: 5000,
242
+ description: 'For how long the server should delay its shutdown before force-closing all open connections to it. ' +
243
+ 'Setting its value to zero should close the server without waiting for active connections.',
244
+ title: 'Graceful server shutdown timeout in milliseconds',
245
+ type: 'integer',
246
+ minimum: 0,
247
+ },
232
248
  'session-override': {
233
249
  default: false,
234
250
  description: 'Enables session override (clobbering)',
235
251
  title: 'session-override config',
236
252
  type: 'boolean',
237
253
  },
254
+ 'ssl-cert-path': {
255
+ description: 'Full path to the .cert file if TLS is used. Must be provided together with "ssl-key-path"',
256
+ title: '.cert file path',
257
+ appiumCliDest: 'sslCertificatePath',
258
+ type: 'string',
259
+ },
260
+ 'ssl-key-path': {
261
+ description: 'Full path to the .key file if TLS is used. Must be provided together with "ssl-cert-path"',
262
+ title: '.key file path',
263
+ appiumCliDest: 'sslKeyPath',
264
+ type: 'string',
265
+ },
238
266
  'strict-caps': {
239
267
  default: false,
240
268
  description: 'Cause sessions to fail if desired caps are sent in that Appium does not recognize as valid for the selected device',
@@ -282,18 +310,6 @@ exports.AppiumConfigJsonSchema = ({
282
310
  title: 'webhook config',
283
311
  type: 'string',
284
312
  },
285
- 'ssl-cert-path': {
286
- description: 'Full path to the .cert file if TLS is used. Must be provided together with "ssl-key-path"',
287
- title: '.cert file path',
288
- appiumCliDest: 'sslCertificatePath',
289
- type: 'string',
290
- },
291
- 'ssl-key-path': {
292
- description: 'Full path to the .key file if TLS is used. Must be provided together with "ssl-cert-path"',
293
- title: '.key file path',
294
- appiumCliDest: 'sslKeyPath',
295
- type: 'string',
296
- },
297
313
  },
298
314
  title: 'server config',
299
315
  type: 'object',
@@ -1 +1 @@
1
- {"version":3,"file":"appium-config-schema.js","sourceRoot":"","sources":["../../lib/appium-config-schema.js"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEU,QAAA,sBAAsB,GAAwB,CAAC;IAC1D,OAAO,EAAE,wCAAwC;IACjD,oBAAoB,EAAE,KAAK;IAC3B,WAAW,EAAE,yCAAyC;IACtD,UAAU,EAAE;QACV,OAAO,EAAE;YACP,WAAW,EAAE,+BAA+B;YAC5C,OAAO,EACL,sGAAsG;YACxG,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,KAAK;SACd;QACD,MAAM,EAAE;YACN,oBAAoB,EAAE,KAAK;YAC3B,WAAW,EAAE,+CAA+C;YAC5D,UAAU,EAAE;gBACV,OAAO,EAAE;oBACP,gBAAgB,EAAE,CAAC,GAAG,CAAC;oBACvB,OAAO,EAAE,SAAS;oBAClB,WAAW,EAAE,8CAA8C;oBAC3D,KAAK,EAAE,gBAAgB;oBACvB,IAAI,EAAE,QAAQ;oBACd,KAAK,EAAE;wBACL;4BACE,IAAI,EAAE,QAAQ;4BACd,MAAM,EAAE,UAAU;yBACnB;wBACD;4BACE,IAAI,EAAE,QAAQ;4BACd,MAAM,EAAE,MAAM;yBACf;qBACF;iBACF;gBACD,YAAY,EAAE;oBACZ,WAAW,EACT,8EAA8E;oBAChF,KAAK,EAAE,mBAAmB;oBAC1B,IAAI,EAAE,SAAS;oBACf,OAAO,EAAE,KAAK;iBACf;gBACD,gBAAgB,EAAE;oBAChB,oBAAoB,EAAE,KAAK;oBAC3B,OAAO,EAAE,EAAE;oBACX,WAAW,EACT,iUAAiU;oBACnU,KAAK,EAAE;wBACL,IAAI,EAAE,QAAQ;qBACf;oBACD,KAAK,EAAE,uBAAuB;oBAC9B,IAAI,EAAE,OAAO;oBACb,WAAW,EAAE,IAAI;iBAClB;gBACD,WAAW,EAAE;oBACX,gBAAgB,EAAE,CAAC,IAAI,CAAC;oBACxB,OAAO,EAAE,EAAE;oBACX,WAAW,EACT,+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0B;yBACpC;qBACF;iBACF;gBACD;oBACE,KAAK,EAAE,CAAC,EAAC,IAAI,EAAE,uBAAuB,EAAC,EAAE,EAAC,IAAI,EAAE,wBAAwB,EAAC,CAAC;iBAC3E;aACF;SACF;KACF;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"appium-config-schema.js","sourceRoot":"","sources":["../../lib/appium-config-schema.js"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEU,QAAA,sBAAsB,GAAwB,CAAC;IAC1D,OAAO,EAAE,wCAAwC;IACjD,oBAAoB,EAAE,KAAK;IAC3B,WAAW,EAAE,yCAAyC;IACtD,UAAU,EAAE;QACV,OAAO,EAAE;YACP,WAAW,EAAE,+BAA+B;YAC5C,OAAO,EACL,sGAAsG;YACxG,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,KAAK;SACd;QACD,MAAM,EAAE;YACN,oBAAoB,EAAE,KAAK;YAC3B,WAAW,EAAE,+CAA+C;YAC5D,UAAU,EAAE;gBACV,OAAO,EAAE;oBACP,gBAAgB,EAAE,CAAC,GAAG,CAAC;oBACvB,OAAO,EAAE,SAAS;oBAClB,WAAW,EAAE,8CAA8C;oBAC3D,KAAK,EAAE,gBAAgB;oBACvB,IAAI,EAAE,QAAQ;oBACd,KAAK,EAAE;wBACL;4BACE,IAAI,EAAE,QAAQ;4BACd,MAAM,EAAE,UAAU;yBACnB;wBACD;4BACE,IAAI,EAAE,QAAQ;4BACd,MAAM,EAAE,MAAM;yBACf;qBACF;iBACF;gBACD,YAAY,EAAE;oBACZ,WAAW,EACT,8EAA8E;oBAChF,KAAK,EAAE,mBAAmB;oBAC1B,IAAI,EAAE,SAAS;oBACf,OAAO,EAAE,KAAK;iBACf;gBACD,gBAAgB,EAAE;oBAChB,oBAAoB,EAAE,KAAK;oBAC3B,OAAO,EAAE,EAAE;oBACX,WAAW,EACT,iUAAiU;oBACnU,KAAK,EAAE;wBACL,IAAI,EAAE,QAAQ;qBACf;oBACD,KAAK,EAAE,uBAA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AAU,EAAE;gBACV,OAAO,EAAE;oBACP,WAAW,EAAE,wBAAwB;oBACrC,IAAI,EAAE,QAAQ;oBACd,MAAM,EAAE,OAAO;iBAChB;aACF;YACD,QAAQ,EAAE,CAAC,SAAS,CAAC;YACrB,GAAG,EAAE;gBACH,QAAQ,EAAE,CAAC,MAAM,CAAC;aACnB;SACF;QACD,SAAS,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,oBAAoB;YACjC,KAAK,EAAE;gBACL;oBACE,IAAI,EAAE,QAAQ;oBACd,UAAU,EAAE;wBACV,QAAQ,EAAE;4BACR,WAAW,EAAE,qCAAqC;4BAClD,IAAI,EAAE,QAAQ;4BACd,OAAO,EAAE,YAAY;yBACtB;wBACD,KAAK,EAAE;4BACL,WAAW,EACT,qIAAqI;4BACvI,IAAI,EAAE,QAAQ;4BACd,OAAO,EAAE,0BAA0B;yBACpC;qBACF;iBACF;gBACD;oBACE,KAAK,EAAE,CAAC,EAAC,IAAI,EAAE,uBAAuB,EAAC,EAAE,EAAC,IAAI,EAAE,wBAAwB,EAAC,CAAC;iBAC3E;aACF;SACF;KACF;CACF,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * The single-source-of-truth of the Appium server configuration
2
+ * The single-source-of-truth of the Appium server configuration.
3
3
  *
4
4
  * This defines _both_ what the CLI supports and what the config files support.
5
5
  */
@@ -171,6 +171,14 @@ export const AppiumConfigJsonSchema = /** @type {const} */ ({
171
171
  title: 'log-level config',
172
172
  type: 'string',
173
173
  },
174
+ 'log-format': {
175
+ appiumCliDest: 'logFormat',
176
+ default: 'text',
177
+ description: 'Log format (text|json|pretty_json)',
178
+ enum: ['text', 'json', 'pretty_json'],
179
+ title: 'log-format config',
180
+ type: 'string',
181
+ },
174
182
  'log-no-colors': {
175
183
  default: false,
176
184
  description: 'Do not use color in console output',
@@ -185,13 +193,15 @@ export const AppiumConfigJsonSchema = /** @type {const} */ ({
185
193
  },
186
194
  'plugins-import-chunk-size': {
187
195
  default: 7,
188
- description: 'The maximum amount of plugins that could be imported in parallel on server startup',
196
+ description:
197
+ 'The maximum amount of plugins that could be imported in parallel on server startup',
189
198
  title: 'plugins-import-chunk-size config',
190
199
  type: 'number',
191
200
  },
192
201
  'drivers-import-chunk-size': {
193
202
  default: 3,
194
- description: 'The maximum amount of drivers that could be imported in parallel on server startup',
203
+ description:
204
+ 'The maximum amount of drivers that could be imported in parallel on server startup',
195
205
  title: 'drivers-import-chunk-size config',
196
206
  type: 'number',
197
207
  },
@@ -239,12 +249,34 @@ export const AppiumConfigJsonSchema = /** @type {const} */ ({
239
249
  type: 'boolean',
240
250
  appiumCliDest: 'relaxedSecurityEnabled',
241
251
  },
252
+ 'shutdown-timeout': {
253
+ default: 5000,
254
+ description: 'For how long the server should delay its shutdown before force-closing all open connections to it. ' +
255
+ 'Setting its value to zero should close the server without waiting for active connections.',
256
+ title: 'Graceful server shutdown timeout in milliseconds',
257
+ type: 'integer',
258
+ minimum: 0,
259
+ },
242
260
  'session-override': {
243
261
  default: false,
244
262
  description: 'Enables session override (clobbering)',
245
263
  title: 'session-override config',
246
264
  type: 'boolean',
247
265
  },
266
+ 'ssl-cert-path': {
267
+ description:
268
+ 'Full path to the .cert file if TLS is used. Must be provided together with "ssl-key-path"',
269
+ title: '.cert file path',
270
+ appiumCliDest: 'sslCertificatePath',
271
+ type: 'string',
272
+ },
273
+ 'ssl-key-path': {
274
+ description:
275
+ 'Full path to the .key file if TLS is used. Must be provided together with "ssl-cert-path"',
276
+ title: '.key file path',
277
+ appiumCliDest: 'sslKeyPath',
278
+ type: 'string',
279
+ },
248
280
  'strict-caps': {
249
281
  default: false,
250
282
  description:
@@ -300,18 +332,6 @@ export const AppiumConfigJsonSchema = /** @type {const} */ ({
300
332
  title: 'webhook config',
301
333
  type: 'string',
302
334
  },
303
- 'ssl-cert-path': {
304
- description: 'Full path to the .cert file if TLS is used. Must be provided together with "ssl-key-path"',
305
- title: '.cert file path',
306
- appiumCliDest: 'sslCertificatePath',
307
- type: 'string',
308
- },
309
- 'ssl-key-path': {
310
- description: 'Full path to the .key file if TLS is used. Must be provided together with "ssl-cert-path"',
311
- title: '.key file path',
312
- appiumCliDest: 'sslKeyPath',
313
- type: 'string',
314
- },
315
335
  },
316
336
  title: 'server config',
317
337
  type: 'object',
@@ -173,6 +173,18 @@
173
173
  "title": "log-level config",
174
174
  "type": "string"
175
175
  },
176
+ "log-format": {
177
+ "appiumCliDest": "logFormat",
178
+ "default": "text",
179
+ "description": "Log format (text|json|pretty_json)",
180
+ "enum": [
181
+ "text",
182
+ "json",
183
+ "pretty_json"
184
+ ],
185
+ "title": "log-format config",
186
+ "type": "string"
187
+ },
176
188
  "log-no-colors": {
177
189
  "default": false,
178
190
  "description": "Do not use color in console output",
@@ -239,12 +251,31 @@
239
251
  "type": "boolean",
240
252
  "appiumCliDest": "relaxedSecurityEnabled"
241
253
  },
254
+ "shutdown-timeout": {
255
+ "default": 5000,
256
+ "description": "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.",
257
+ "title": "Graceful server shutdown timeout in milliseconds",
258
+ "type": "integer",
259
+ "minimum": 0
260
+ },
242
261
  "session-override": {
243
262
  "default": false,
244
263
  "description": "Enables session override (clobbering)",
245
264
  "title": "session-override config",
246
265
  "type": "boolean"
247
266
  },
267
+ "ssl-cert-path": {
268
+ "description": "Full path to the .cert file if TLS is used. Must be provided together with \"ssl-key-path\"",
269
+ "title": ".cert file path",
270
+ "appiumCliDest": "sslCertificatePath",
271
+ "type": "string"
272
+ },
273
+ "ssl-key-path": {
274
+ "description": "Full path to the .key file if TLS is used. Must be provided together with \"ssl-cert-path\"",
275
+ "title": ".key file path",
276
+ "appiumCliDest": "sslKeyPath",
277
+ "type": "string"
278
+ },
248
279
  "strict-caps": {
249
280
  "default": false,
250
281
  "description": "Cause sessions to fail if desired caps are sent in that Appium does not recognize as valid for the selected device",
@@ -293,18 +324,6 @@
293
324
  "format": "uri",
294
325
  "title": "webhook config",
295
326
  "type": "string"
296
- },
297
- "ssl-cert-path": {
298
- "description": "Full path to the .cert file if TLS is used. Must be provided together with \"ssl-key-path\"",
299
- "title": ".cert file path",
300
- "appiumCliDest": "sslCertificatePath",
301
- "type": "string"
302
- },
303
- "ssl-key-path": {
304
- "description": "Full path to the .key file if TLS is used. Must be provided together with \"ssl-cert-path\"",
305
- "title": ".key file path",
306
- "appiumCliDest": "sslKeyPath",
307
- "type": "string"
308
327
  }
309
328
  },
310
329
  "title": "server config",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appium/schema",
3
- "version": "0.5.0",
3
+ "version": "0.7.0",
4
4
  "description": "Appium Configuration Schema",
5
5
  "keywords": [
6
6
  "automation",
@@ -49,5 +49,5 @@
49
49
  "publishConfig": {
50
50
  "access": "public"
51
51
  },
52
- "gitHead": "5c1d20517cfc8773cd5ffb0f8bb996668d71116b"
52
+ "gitHead": "e3f7bd07f773c42d06b43a69f15e0c8fed0e10aa"
53
53
  }