@appium/schema 1.0.0 → 1.1.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-schema.d.ts +66 -86
- package/build/lib/appium-config-schema.d.ts.map +1 -1
- package/build/lib/appium-config-schema.js +6 -6
- package/build/lib/appium-config-schema.js.map +1 -1
- package/build/lib/index.d.ts +1 -1
- package/build/lib/index.d.ts.map +1 -1
- package/build/lib/index.js +4 -0
- package/build/lib/index.js.map +1 -1
- package/lib/{appium-config-schema.js → appium-config-schema.ts} +6 -4
- package/lib/index.ts +6 -0
- package/package.json +8 -8
- package/tsconfig.json +0 -1
- package/index.js +0 -1
- package/lib/index.js +0 -1
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
import type { JSONSchema7 } from 'json-schema';
|
|
2
|
+
/**
|
|
3
|
+
* The single-source-of-truth of the Appium server configuration.
|
|
4
|
+
*
|
|
5
|
+
* This defines _both_ what the CLI supports and what the config files support.
|
|
6
|
+
*/
|
|
7
|
+
export declare const AppiumConfigJsonSchema: {
|
|
8
|
+
readonly $schema: "http://json-schema.org/draft-07/schema";
|
|
9
|
+
readonly additionalProperties: false;
|
|
10
|
+
readonly description: "A schema for Appium configuration files";
|
|
11
|
+
readonly properties: {
|
|
12
|
+
readonly $schema: {
|
|
13
|
+
readonly description: "The JSON schema for this file";
|
|
14
|
+
readonly default: "https://raw.githubusercontent.com/appium/appium/master/packages/schema/lib/appium-config.schema.json";
|
|
15
|
+
readonly type: "string";
|
|
16
|
+
readonly format: "uri";
|
|
17
|
+
};
|
|
18
|
+
readonly server: {
|
|
19
|
+
readonly additionalProperties: false;
|
|
20
|
+
readonly description: "Configuration when running Appium as a server";
|
|
21
|
+
readonly properties: {
|
|
21
22
|
readonly address: {
|
|
22
23
|
readonly appiumCliAliases: readonly ["a"];
|
|
23
24
|
readonly default: "0.0.0.0";
|
|
@@ -98,7 +99,7 @@ export namespace AppiumConfigJsonSchema {
|
|
|
98
99
|
};
|
|
99
100
|
readonly driver: {
|
|
100
101
|
readonly description: "Driver-specific configuration. Keys should correspond to driver package names";
|
|
101
|
-
readonly properties: Record<string,
|
|
102
|
+
readonly properties: Record<string, JSONSchema7>;
|
|
102
103
|
readonly title: "driver config";
|
|
103
104
|
readonly type: "object";
|
|
104
105
|
};
|
|
@@ -199,7 +200,7 @@ export namespace AppiumConfigJsonSchema {
|
|
|
199
200
|
};
|
|
200
201
|
readonly plugin: {
|
|
201
202
|
readonly description: "Plugin-specific configuration. Keys should correspond to plugin package names";
|
|
202
|
-
readonly properties: Record<string,
|
|
203
|
+
readonly properties: Record<string, JSONSchema7>;
|
|
203
204
|
readonly title: "plugin config";
|
|
204
205
|
readonly type: "object";
|
|
205
206
|
};
|
|
@@ -292,67 +293,46 @@ export namespace AppiumConfigJsonSchema {
|
|
|
292
293
|
readonly type: "string";
|
|
293
294
|
};
|
|
294
295
|
};
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
let type_6: "string";
|
|
336
|
-
export { type_6 as type };
|
|
337
|
-
let format_1: "regex";
|
|
338
|
-
export { format_1 as format };
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
export { properties_3 as properties };
|
|
342
|
-
let required_2: readonly ["pattern"];
|
|
343
|
-
export { required_2 as required };
|
|
344
|
-
export namespace not_1 {
|
|
345
|
-
let required_3: readonly ["text"];
|
|
346
|
-
export { required_3 as required };
|
|
347
|
-
}
|
|
348
|
-
export { not_1 as not };
|
|
349
|
-
}
|
|
350
|
-
namespace logFilter {
|
|
351
|
-
let type_7: "object";
|
|
352
|
-
export { type_7 as type };
|
|
353
|
-
let description_7: "Log filtering rule";
|
|
354
|
-
export { description_7 as description };
|
|
355
|
-
export let allOf: readonly [{
|
|
296
|
+
readonly title: "server config";
|
|
297
|
+
readonly type: "object";
|
|
298
|
+
};
|
|
299
|
+
};
|
|
300
|
+
readonly title: "Appium Configuration";
|
|
301
|
+
readonly type: "object";
|
|
302
|
+
readonly $defs: {
|
|
303
|
+
readonly logFilterText: {
|
|
304
|
+
readonly type: "object";
|
|
305
|
+
readonly description: "Log filter with plain text";
|
|
306
|
+
readonly properties: {
|
|
307
|
+
readonly text: {
|
|
308
|
+
readonly description: "Text to match";
|
|
309
|
+
readonly type: "string";
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
readonly required: readonly ["text"];
|
|
313
|
+
readonly not: {
|
|
314
|
+
readonly required: readonly ["pattern"];
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
readonly logFilterRegex: {
|
|
318
|
+
readonly type: "object";
|
|
319
|
+
readonly description: "Log filter with regular expression";
|
|
320
|
+
readonly properties: {
|
|
321
|
+
readonly pattern: {
|
|
322
|
+
readonly description: "Regex pattern to match";
|
|
323
|
+
readonly type: "string";
|
|
324
|
+
readonly format: "regex";
|
|
325
|
+
};
|
|
326
|
+
};
|
|
327
|
+
readonly required: readonly ["pattern"];
|
|
328
|
+
readonly not: {
|
|
329
|
+
readonly required: readonly ["text"];
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
readonly logFilter: {
|
|
333
|
+
readonly type: "object";
|
|
334
|
+
readonly description: "Log filtering rule";
|
|
335
|
+
readonly allOf: readonly [{
|
|
356
336
|
readonly type: "object";
|
|
357
337
|
readonly properties: {
|
|
358
338
|
readonly replacer: {
|
|
@@ -373,7 +353,7 @@ export namespace AppiumConfigJsonSchema {
|
|
|
373
353
|
readonly $ref: "#/$defs/logFilterRegex";
|
|
374
354
|
}];
|
|
375
355
|
}];
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
}
|
|
356
|
+
};
|
|
357
|
+
};
|
|
358
|
+
};
|
|
379
359
|
//# sourceMappingURL=appium-config-schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appium-config-schema.d.ts","sourceRoot":"","sources":["../../lib/appium-config-schema.
|
|
1
|
+
{"version":3,"file":"appium-config-schema.d.ts","sourceRoot":"","sources":["../../lib/appium-config-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,aAAa,CAAC;AAE7C;;;;GAIG;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yCAyGP,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yCAmI3B,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuK7C,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AppiumConfigJsonSchema = void 0;
|
|
2
4
|
/**
|
|
3
5
|
* The single-source-of-truth of the Appium server configuration.
|
|
4
6
|
*
|
|
5
7
|
* This defines _both_ what the CLI supports and what the config files support.
|
|
6
8
|
*/
|
|
7
|
-
|
|
8
|
-
exports.AppiumConfigJsonSchema = void 0;
|
|
9
|
-
exports.AppiumConfigJsonSchema = ({
|
|
9
|
+
exports.AppiumConfigJsonSchema = {
|
|
10
10
|
$schema: 'http://json-schema.org/draft-07/schema',
|
|
11
11
|
additionalProperties: false,
|
|
12
12
|
description: 'A schema for Appium configuration files',
|
|
@@ -104,7 +104,7 @@ exports.AppiumConfigJsonSchema = ({
|
|
|
104
104
|
},
|
|
105
105
|
driver: {
|
|
106
106
|
description: 'Driver-specific configuration. Keys should correspond to driver package names',
|
|
107
|
-
properties:
|
|
107
|
+
properties: {},
|
|
108
108
|
title: 'driver config',
|
|
109
109
|
type: 'object',
|
|
110
110
|
},
|
|
@@ -228,7 +228,7 @@ exports.AppiumConfigJsonSchema = ({
|
|
|
228
228
|
},
|
|
229
229
|
plugin: {
|
|
230
230
|
description: 'Plugin-specific configuration. Keys should correspond to plugin package names',
|
|
231
|
-
properties:
|
|
231
|
+
properties: {},
|
|
232
232
|
title: 'plugin config',
|
|
233
233
|
type: 'object',
|
|
234
234
|
},
|
|
@@ -383,5 +383,5 @@ exports.AppiumConfigJsonSchema = ({
|
|
|
383
383
|
],
|
|
384
384
|
},
|
|
385
385
|
},
|
|
386
|
-
}
|
|
386
|
+
};
|
|
387
387
|
//# sourceMappingURL=appium-config-schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appium-config-schema.js","sourceRoot":"","sources":["../../lib/appium-config-schema.
|
|
1
|
+
{"version":3,"file":"appium-config-schema.js","sourceRoot":"","sources":["../../lib/appium-config-schema.ts"],"names":[],"mappings":";;;AAEA;;;;GAIG;AAEU,QAAA,sBAAsB,GAAG;IACpC,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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YACd,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,oCAAoC;YACjD,UAAU,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;CACO,CAAC"}
|
package/build/lib/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './appium-config-schema';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/build/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
|
package/build/lib/index.js
CHANGED
|
@@ -15,4 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./appium-config-schema"), exports);
|
|
18
|
+
// Handle smoke test flag
|
|
19
|
+
if (require.main === module && process.argv[2] === '--smoke-test') {
|
|
20
|
+
process.exit(0);
|
|
21
|
+
}
|
|
18
22
|
//# sourceMappingURL=index.js.map
|
package/build/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/index.
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AAEvC,yBAAyB;AACzB,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,cAAc,EAAE,CAAC;IAClE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import type {JSONSchema7} from 'json-schema';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* The single-source-of-truth of the Appium server configuration.
|
|
3
5
|
*
|
|
4
6
|
* This defines _both_ what the CLI supports and what the config files support.
|
|
5
7
|
*/
|
|
6
8
|
|
|
7
|
-
export const AppiumConfigJsonSchema =
|
|
9
|
+
export const AppiumConfigJsonSchema = {
|
|
8
10
|
$schema: 'http://json-schema.org/draft-07/schema',
|
|
9
11
|
additionalProperties: false,
|
|
10
12
|
description: 'A schema for Appium configuration files',
|
|
@@ -109,7 +111,7 @@ export const AppiumConfigJsonSchema = /** @type {const} */ ({
|
|
|
109
111
|
driver: {
|
|
110
112
|
description:
|
|
111
113
|
'Driver-specific configuration. Keys should correspond to driver package names',
|
|
112
|
-
properties:
|
|
114
|
+
properties: {} as Record<string, JSONSchema7>,
|
|
113
115
|
title: 'driver config',
|
|
114
116
|
type: 'object',
|
|
115
117
|
},
|
|
@@ -240,7 +242,7 @@ export const AppiumConfigJsonSchema = /** @type {const} */ ({
|
|
|
240
242
|
plugin: {
|
|
241
243
|
description:
|
|
242
244
|
'Plugin-specific configuration. Keys should correspond to plugin package names',
|
|
243
|
-
properties:
|
|
245
|
+
properties: {} as Record<string, JSONSchema7>,
|
|
244
246
|
title: 'plugin config',
|
|
245
247
|
type: 'object',
|
|
246
248
|
},
|
|
@@ -407,4 +409,4 @@ export const AppiumConfigJsonSchema = /** @type {const} */ ({
|
|
|
407
409
|
],
|
|
408
410
|
},
|
|
409
411
|
},
|
|
410
|
-
}
|
|
412
|
+
} as const;
|
package/lib/index.ts
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appium/schema",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Appium Configuration Schema",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"automation",
|
|
@@ -23,23 +23,23 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"author": "https://github.com/appium",
|
|
26
|
+
"main": "./build/lib/index.js",
|
|
26
27
|
"types": "./build/lib/index.d.ts",
|
|
27
28
|
"files": [
|
|
28
29
|
"build",
|
|
29
30
|
"lib",
|
|
30
|
-
"index.js",
|
|
31
31
|
"tsconfig.json",
|
|
32
|
-
"!build/tsconfig.tsbuildinfo"
|
|
32
|
+
"!build/tsconfig.tsbuildinfo",
|
|
33
|
+
"!build/test"
|
|
33
34
|
],
|
|
34
35
|
"scripts": {
|
|
35
|
-
"build": "node ./scripts/generate-schema-json.
|
|
36
|
+
"build": "node ./scripts/generate-schema-json.mjs",
|
|
36
37
|
"clean": "git checkout -- ./lib/appium-config.schema.json || true",
|
|
37
|
-
"test:smoke": "node ./index.js",
|
|
38
|
+
"test:smoke": "node ./build/lib/index.js --smoke-test",
|
|
38
39
|
"test": "exit 0"
|
|
39
40
|
},
|
|
40
41
|
"dependencies": {
|
|
41
|
-
"json-schema": "0.4.0"
|
|
42
|
-
"source-map-support": "0.5.21"
|
|
42
|
+
"json-schema": "0.4.0"
|
|
43
43
|
},
|
|
44
44
|
"engines": {
|
|
45
45
|
"node": "^20.19.0 || ^22.12.0 || >=24.0.0",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"publishConfig": {
|
|
49
49
|
"access": "public"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "980a121804ae006db879fb6860f627ac36174c15"
|
|
52
52
|
}
|
package/tsconfig.json
CHANGED
package/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require('./build/lib/index.js');
|
package/lib/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './appium-config-schema';
|