appium 3.2.2 → 3.3.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.
Files changed (120) hide show
  1. package/build/lib/cli/args.d.ts +16 -12
  2. package/build/lib/cli/args.d.ts.map +1 -1
  3. package/build/lib/cli/args.js +15 -35
  4. package/build/lib/cli/args.js.map +1 -1
  5. package/build/lib/cli/driver-command.d.ts +51 -93
  6. package/build/lib/cli/driver-command.d.ts.map +1 -1
  7. package/build/lib/cli/driver-command.js +11 -66
  8. package/build/lib/cli/driver-command.js.map +1 -1
  9. package/build/lib/cli/extension-command.d.ts +211 -415
  10. package/build/lib/cli/extension-command.d.ts.map +1 -1
  11. package/build/lib/cli/extension-command.js +384 -653
  12. package/build/lib/cli/extension-command.js.map +1 -1
  13. package/build/lib/cli/extension.d.ts +11 -16
  14. package/build/lib/cli/extension.d.ts.map +1 -1
  15. package/build/lib/cli/extension.js +10 -28
  16. package/build/lib/cli/extension.js.map +1 -1
  17. package/build/lib/cli/parser.d.ts +40 -69
  18. package/build/lib/cli/parser.d.ts.map +1 -1
  19. package/build/lib/cli/parser.js +24 -59
  20. package/build/lib/cli/parser.js.map +1 -1
  21. package/build/lib/cli/plugin-command.d.ts +50 -90
  22. package/build/lib/cli/plugin-command.d.ts.map +1 -1
  23. package/build/lib/cli/plugin-command.js +11 -63
  24. package/build/lib/cli/plugin-command.js.map +1 -1
  25. package/build/lib/cli/setup-command.d.ts +21 -26
  26. package/build/lib/cli/setup-command.d.ts.map +1 -1
  27. package/build/lib/cli/setup-command.js +13 -55
  28. package/build/lib/cli/setup-command.js.map +1 -1
  29. package/build/lib/cli/utils.d.ts +27 -29
  30. package/build/lib/cli/utils.d.ts.map +1 -1
  31. package/build/lib/cli/utils.js +29 -31
  32. package/build/lib/cli/utils.js.map +1 -1
  33. package/build/lib/config-file.d.ts +24 -67
  34. package/build/lib/config-file.d.ts.map +1 -1
  35. package/build/lib/config-file.js +56 -115
  36. package/build/lib/config-file.js.map +1 -1
  37. package/build/lib/config.d.ts +42 -44
  38. package/build/lib/config.d.ts.map +1 -1
  39. package/build/lib/config.js +75 -107
  40. package/build/lib/config.js.map +1 -1
  41. package/build/lib/constants.d.ts +23 -23
  42. package/build/lib/constants.d.ts.map +1 -1
  43. package/build/lib/constants.js +10 -15
  44. package/build/lib/constants.js.map +1 -1
  45. package/build/lib/doctor/doctor.d.ts +40 -57
  46. package/build/lib/doctor/doctor.d.ts.map +1 -1
  47. package/build/lib/doctor/doctor.js +29 -60
  48. package/build/lib/doctor/doctor.js.map +1 -1
  49. package/build/lib/grid-register.d.ts +32 -7
  50. package/build/lib/grid-register.d.ts.map +1 -1
  51. package/build/lib/grid-register.js +84 -48
  52. package/build/lib/grid-register.js.map +1 -1
  53. package/build/lib/logsink.d.ts +13 -22
  54. package/build/lib/logsink.d.ts.map +1 -1
  55. package/build/lib/logsink.js +48 -103
  56. package/build/lib/logsink.js.map +1 -1
  57. package/build/lib/main.js +1 -1
  58. package/build/lib/main.js.map +1 -1
  59. package/build/lib/schema/arg-spec.d.ts +32 -107
  60. package/build/lib/schema/arg-spec.d.ts.map +1 -1
  61. package/build/lib/schema/arg-spec.js +11 -107
  62. package/build/lib/schema/arg-spec.js.map +1 -1
  63. package/build/lib/schema/cli-args.d.ts +3 -15
  64. package/build/lib/schema/cli-args.d.ts.map +1 -1
  65. package/build/lib/schema/cli-args.js +15 -105
  66. package/build/lib/schema/cli-args.js.map +1 -1
  67. package/build/lib/schema/cli-transformers.d.ts +15 -12
  68. package/build/lib/schema/cli-transformers.d.ts.map +1 -1
  69. package/build/lib/schema/cli-transformers.js +15 -45
  70. package/build/lib/schema/cli-transformers.js.map +1 -1
  71. package/build/lib/schema/index.d.ts +2 -2
  72. package/build/lib/schema/index.d.ts.map +1 -1
  73. package/build/lib/schema/index.js.map +1 -1
  74. package/build/lib/schema/keywords.d.ts +12 -20
  75. package/build/lib/schema/keywords.d.ts.map +1 -1
  76. package/build/lib/schema/keywords.js +6 -51
  77. package/build/lib/schema/keywords.js.map +1 -1
  78. package/build/lib/schema/schema.d.ts +106 -231
  79. package/build/lib/schema/schema.d.ts.map +1 -1
  80. package/build/lib/schema/schema.js +75 -345
  81. package/build/lib/schema/schema.js.map +1 -1
  82. package/build/lib/utils.d.ts +59 -238
  83. package/build/lib/utils.d.ts.map +1 -1
  84. package/build/lib/utils.js +55 -207
  85. package/build/lib/utils.js.map +1 -1
  86. package/lib/cli/{args.js → args.ts} +40 -51
  87. package/lib/cli/driver-command.ts +122 -0
  88. package/lib/cli/{extension-command.js → extension-command.ts} +610 -689
  89. package/lib/cli/extension.ts +65 -0
  90. package/lib/cli/{parser.js → parser.ts} +48 -71
  91. package/lib/cli/plugin-command.ts +117 -0
  92. package/lib/cli/{setup-command.js → setup-command.ts} +57 -72
  93. package/lib/cli/utils.ts +97 -0
  94. package/lib/config-file.ts +212 -0
  95. package/lib/{config.js → config.ts} +129 -141
  96. package/lib/{constants.js → constants.ts} +30 -41
  97. package/lib/doctor/{doctor.js → doctor.ts} +81 -91
  98. package/lib/grid-register.ts +250 -0
  99. package/lib/{logsink.js → logsink.ts} +91 -137
  100. package/lib/main.js +1 -1
  101. package/lib/schema/arg-spec.ts +131 -0
  102. package/lib/schema/cli-args.ts +171 -0
  103. package/lib/schema/cli-transformers.ts +83 -0
  104. package/lib/schema/keywords.ts +96 -0
  105. package/lib/schema/schema.ts +449 -0
  106. package/lib/utils.ts +404 -0
  107. package/package.json +16 -16
  108. package/lib/cli/driver-command.js +0 -174
  109. package/lib/cli/extension.js +0 -74
  110. package/lib/cli/plugin-command.js +0 -164
  111. package/lib/cli/utils.js +0 -91
  112. package/lib/config-file.js +0 -228
  113. package/lib/grid-register.js +0 -146
  114. package/lib/schema/arg-spec.js +0 -229
  115. package/lib/schema/cli-args.js +0 -254
  116. package/lib/schema/cli-transformers.js +0 -113
  117. package/lib/schema/keywords.js +0 -136
  118. package/lib/schema/schema.js +0 -725
  119. package/lib/utils.js +0 -512
  120. /package/lib/schema/{index.js → index.ts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"cli-transformers.js","sourceRoot":"","sources":["../../../lib/schema/cli-transformers.js"],"names":[],"mappings":";;;AAiBA,oCAKC;AAtBD,uCAA2C;AAC3C,qCAAiD;AAEjD;;;;;;;GAOG;AAEH;;;;GAIG;AACH,SAAgB,YAAY,CAAC,KAAK;IAChC,OAAO,KAAK;SACT,KAAK,CAAC,GAAG,CAAC;SACV,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;SACpB,MAAM,CAAC,OAAO,CAAC,CAAC;AACrB,CAAC;AAED;;;;GAIG;AACH,SAAS,YAAY,CAAC,KAAK;IACzB,OAAO,KAAK;SACT,KAAK,CAAC,OAAO,CAAC;SACd,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;SACpB,MAAM,CAAC,OAAO,CAAC;SACf,OAAO,CAAC,YAAY,CAAC,CAAC;AAC3B,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACU,QAAA,YAAY,GAAG;IAC1B;;;;;OAKG;IACH,GAAG,EAAE,CAAC,SAAS,EAAE,EAAE;QACjB,IAAI,GAAG,GAAG,SAAS,CAAC;QACpB,IAAI,cAAc,GAAG,KAAK,CAAC;QAC3B,sFAAsF;QACtF,4CAA4C;QAC5C,IAAI,IAAA,oBAAU,EAAC,SAAS,CAAC,EAAE,CAAC;YAC1B,IAAI,CAAC;gBACH,GAAG,GAAG,IAAA,sBAAY,EAAC,SAAS,EAAE,MAAM,CAAC,CAAC;YACxC,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,MAAM,IAAI,4BAAiB,CAAC,wBAAwB,SAAS,MAAM,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;YACpF,CAAC;YACD,cAAc,GAAG,IAAI,CAAC;QACxB,CAAC;QACD,IAAI,CAAC;YACH,OAAO,cAAc,CAAC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AEG;IACH,IAAI,EAAE,CAAC,UAAkB,EAAuB,EAAE;QAChD,IAAI,IAAI,GAAG,UAAU,CAAC;QACtB,IAAI,cAAc,GAAG,KAAK,CAAC;QAC3B,IAAI,IAAA,oBAAU,EAAC,UAAU,CAAC,EAAE,CAAC;YAC3B,IAAI,CAAC;gBACH,2DAA2D;gBAC3D,IAAI,GAAG,IAAA,sBAAY,EAAC,UAAU,EAAE,MAAM,CAAC,CAAC;YAC1C,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,MAAM,IAAI,4BAAiB,CAAC,wBAAwB,UAAU,MAAO,GAAa,CAAC,OAAO,EAAE,CAAC,CAAC;YAChG,CAAC;YACD,cAAc,GAAG,IAAI,CAAC;QACxB,CAAC;QACD,IAAI,CAAC;YACH,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC1B,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,MAAM,GAAG,GAAG,cAAc;gBACxB,CAAC,CAAC,IAAI,UAAU,wBAAwB;gBACxC,CAAC,CAAC,yCAAyC,CAAC;YAC9C,MAAM,IAAI,SAAS,CAAC,GAAG,GAAG,qBAAsB,CAAW,CAAC,OAAO,EAAE,CAAC,CAAC;QACzE,CAAC;IACH,CAAC;CACO,CAAC;AAEX;;GAEG;AACH,SAAS,YAAY,CAAC,KAAa;IACjC,OAAO,KAAK;SACT,KAAK,CAAC,OAAO,CAAC;SACd,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;SACpB,MAAM,CAAC,OAAO,CAAC;SACf,OAAO,CAAC,YAAY,CAAC,CAAC;AAC3B,CAAC"}
@@ -1,3 +1,3 @@
1
- export * from "./schema";
2
- export * from "./cli-args";
1
+ export * from './schema';
2
+ export * from './cli-args';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/schema/index.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/schema/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/schema/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,6CAA2B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/schema/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,6CAA2B"}
@@ -1,24 +1,16 @@
1
+ import type { KeywordDefinition } from 'ajv';
2
+ import { transformers } from './cli-transformers';
3
+ export type AppiumCliTransformerName = keyof typeof transformers;
4
+ export interface AppiumJSONSchemaKeywords {
5
+ appiumCliDest?: string;
6
+ appiumCliDescription?: string;
7
+ appiumCliAliases?: string[];
8
+ appiumCliIgnored?: boolean;
9
+ appiumCliTransformer?: AppiumCliTransformerName;
10
+ appiumDeprecated?: boolean;
11
+ }
1
12
  /**
2
13
  * Collection of keyword definitions to add to the singleton `Ajv` instance.
3
- * @type {Record<string,KeywordDefinition>}
4
14
  */
5
- export const keywords: Record<string, KeywordDefinition>;
6
- /**
7
- * These are the valid values for the `appiumCliTransformer` keyword.
8
- * Unfortunately, TS cannot infer this in a JS context. In TS, we'd use
9
- * `as const` when defining `argTransformers`, then get `keyof typeof argTransformers`. alas.
10
- */
11
- export type AppiumCliTransformerName = "csv" | "json";
12
- /**
13
- * These are the custom keywords that Appium recognizes.
14
- */
15
- export type AppiumJSONSchemaKeywords = {
16
- appiumCliDest?: string | undefined;
17
- appiumCliDescription?: string | undefined;
18
- appiumCliAliases?: string[] | undefined;
19
- appiumCliIgnored?: boolean | undefined;
20
- appiumCliTransformer?: AppiumCliTransformerName | undefined;
21
- appiumDeprecated?: boolean | undefined;
22
- };
23
- export type KeywordDefinition = import("ajv").KeywordDefinition;
15
+ export declare const keywords: Record<string, KeywordDefinition>;
24
16
  //# sourceMappingURL=keywords.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"keywords.d.ts","sourceRoot":"","sources":["../../../lib/schema/keywords.js"],"names":[],"mappings":"AAEA;;;GAGG;AACH,uBAFU,MAAM,CAAC,MAAM,EAAC,iBAAiB,CAAC,CA4GxC;;;;;;uCAMW,KAAK,GAAC,MAAM;;;;;;;;;;;;gCAgBZ,OAAO,KAAK,EAAE,iBAAiB"}
1
+ {"version":3,"file":"keywords.d.ts","sourceRoot":"","sources":["../../../lib/schema/keywords.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,KAAK,CAAC;AAC3C,OAAO,EAAC,YAAY,EAAC,MAAM,oBAAoB,CAAC;AAEhD,MAAM,MAAM,wBAAwB,GAAG,MAAM,OAAO,YAAY,CAAC;AAEjE,MAAM,WAAW,wBAAwB;IACvC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,oBAAoB,CAAC,EAAE,wBAAwB,CAAC;IAChD,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CA8EtD,CAAC"}
@@ -4,19 +4,10 @@ exports.keywords = void 0;
4
4
  const cli_transformers_1 = require("./cli-transformers");
5
5
  /**
6
6
  * Collection of keyword definitions to add to the singleton `Ajv` instance.
7
- * @type {Record<string,KeywordDefinition>}
8
7
  */
9
8
  exports.keywords = {
10
9
  /**
11
- * Keyword to provide a list of command alias names for the CLI.
12
- *
13
- * If defined, there must be at least one item in the array and it must be non-empty.
14
- * All items in the array must be unique.
15
- *
16
- * @todo Avoid alias collisions!
17
- * @type {KeywordDefinition}
18
- * @example
19
- * {appiumCliAliases: ['B', 'bobby', 'robert']}
10
+ * List of alias names for a CLI arg.
20
11
  */
21
12
  appiumCliAliases: {
22
13
  keyword: 'appiumCliAliases',
@@ -32,14 +23,7 @@ exports.keywords = {
32
23
  },
33
24
  },
34
25
  /**
35
- * Keyword to provide the name of the property in the destination (parsed
36
- * args) object. By default, this value will be whatever the property name is,
37
- * but camel-cased. If a flag needs something _other_ than just camel-casing,
38
- * use this.
39
- * @type {KeywordDefinition}
40
- * @example
41
- * // for prop 'no-color'
42
- * {appiumCliDest: 'NOCOLOR'} // value will be stored as property `NOCOLOR` instead of `noColor`
26
+ * Explicit destination key name in parsed args.
43
27
  */
44
28
  appiumCliDest: {
45
29
  keyword: 'appiumCliDest',
@@ -50,12 +34,7 @@ exports.keywords = {
50
34
  },
51
35
  },
52
36
  /**
53
- * CLI-specific description of the property. Sometimes the allowed type can
54
- * be different enough on the CLI that providing a description written for a
55
- * config file context wouldn't make sense.
56
- * @type {KeywordDefinition}
57
- * @example
58
- * {appiumCliDescription: 'This is a comma-delimited string, but in the config file it is an array'}
37
+ * CLI-specific description (overrides generic schema description for help text).
59
38
  */
60
39
  appiumCliDescription: {
61
40
  keyword: 'appiumCliDescription',
@@ -67,9 +46,7 @@ exports.keywords = {
67
46
  },
68
47
  },
69
48
  /**
70
- * Transformers for CLI args. These usually take strings then do something with them, like
71
- * read a file or parse further.
72
- * @type {KeywordDefinition}
49
+ * Named transformer to apply to CLI value before validation.
73
50
  */
74
51
  appiumCliTransformer: {
75
52
  keyword: 'appiumCliTransformer',
@@ -80,8 +57,7 @@ exports.keywords = {
80
57
  },
81
58
  },
82
59
  /**
83
- * Flag to tell Appium to _not_ provide this property as a CLI argument.
84
- * @type {KeywordDefinition}
60
+ * If true, this property is not exposed as a CLI arg.
85
61
  */
86
62
  appiumCliIgnored: {
87
63
  keyword: 'appiumCliIgnored',
@@ -92,8 +68,7 @@ exports.keywords = {
92
68
  },
93
69
  },
94
70
  /**
95
- * Mark this property as deprecated.
96
- * @type {KeywordDefinition}
71
+ * Marks property as deprecated for CLI docs/help output.
97
72
  */
98
73
  appiumDeprecated: {
99
74
  keyword: 'appiumDeprecated',
@@ -105,24 +80,4 @@ exports.keywords = {
105
80
  },
106
81
  },
107
82
  };
108
- /**
109
- * These are the valid values for the `appiumCliTransformer` keyword.
110
- * Unfortunately, TS cannot infer this in a JS context. In TS, we'd use
111
- * `as const` when defining `argTransformers`, then get `keyof typeof argTransformers`. alas.
112
- * @typedef {'csv'|'json'} AppiumCliTransformerName
113
- */
114
- /**
115
- * These are the custom keywords that Appium recognizes.
116
- *
117
- * @typedef AppiumJSONSchemaKeywords
118
- * @property {string} [appiumCliDest]
119
- * @property {string} [appiumCliDescription]
120
- * @property {string[]} [appiumCliAliases]
121
- * @property {boolean} [appiumCliIgnored]
122
- * @property {AppiumCliTransformerName} [appiumCliTransformer]
123
- * @property {boolean} [appiumDeprecated]
124
- */
125
- /**
126
- * @typedef {import('ajv').KeywordDefinition} KeywordDefinition
127
- */
128
83
  //# sourceMappingURL=keywords.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"keywords.js","sourceRoot":"","sources":["../../../lib/schema/keywords.js"],"names":[],"mappings":";;;AAAA,yDAAgD;AAEhD;;;GAGG;AACU,QAAA,QAAQ,GAAG;IACtB;;;;;;;;;;OAUG;IACH,gBAAgB,EAAE;QAChB,OAAO,EAAE,kBAAkB;QAC3B,UAAU,EAAE;YACV,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,SAAS,EAAE,CAAC;aACb;YACD,QAAQ,EAAE,CAAC;YACX,WAAW,EAAE,IAAI;YACjB,WAAW,EACT,qIAAqI;SACxI;KACF;IACD;;;;;;;;;OASG;IACH,aAAa,EAAE;QACb,OAAO,EAAE,eAAe;QACxB,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,CAAC;YACZ,WAAW,EAAE,oEAAoE;SAClF;KACF;IAED;;;;;;;OAOG;IACH,oBAAoB,EAAE;QACpB,OAAO,EAAE,sBAAsB;QAC/B,UAAU,EAAE,QAAQ;QACpB,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,CAAC;YACZ,WAAW,EAAE,+EAA+E;SAC7F;KACF;IAED;;;;OAIG;IACH,oBAAoB,EAAE;QACpB,OAAO,EAAE,sBAAsB;QAC/B,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,+BAAY,CAAC;YAC/B,WAAW,EACT,oFAAoF;SACvF;KACF;IAED;;;OAGG;IACH,gBAAgB,EAAE;QAChB,OAAO,EAAE,kBAAkB;QAC3B,UAAU,EAAE;YACV,IAAI,EAAE,SAAS;YACf,WAAW,EACT,kHAAkH;YACpH,IAAI,EAAE,CAAC,IAAI,CAAC;SACb;KACF;IAED;;;OAGG;IACH,gBAAgB,EAAE;QAChB,OAAO,EAAE,kBAAkB;QAC3B,UAAU,EAAE;YACV,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,wEAAwE;YACrF,IAAI,EAAE,CAAC,IAAI,CAAC;YACZ,QAAQ,EACN,+IAA+I;SAClJ;KACF;CACF,CAAC;AAEF;;;;;GAKG;AAEH;;;;;;;;;;GAUG;AAEH;;GAEG"}
1
+ {"version":3,"file":"keywords.js","sourceRoot":"","sources":["../../../lib/schema/keywords.ts"],"names":[],"mappings":";;;AACA,yDAAgD;AAahD;;GAEG;AACU,QAAA,QAAQ,GAAsC;IACzD;;OAEG;IACH,gBAAgB,EAAE;QAChB,OAAO,EAAE,kBAAkB;QAC3B,UAAU,EAAE;YACV,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,SAAS,EAAE,CAAC;aACb;YACD,QAAQ,EAAE,CAAC;YACX,WAAW,EAAE,IAAI;YACjB,WAAW,EACT,qIAAqI;SACxI;KACF;IACD;;OAEG;IACH,aAAa,EAAE;QACb,OAAO,EAAE,eAAe;QACxB,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,CAAC;YACZ,WAAW,EAAE,oEAAoE;SAClF;KACF;IACD;;OAEG;IACH,oBAAoB,EAAE;QACpB,OAAO,EAAE,sBAAsB;QAC/B,UAAU,EAAE,QAAQ;QACpB,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,CAAC;YACZ,WAAW,EAAE,+EAA+E;SAC7F;KACF;IACD;;OAEG;IACH,oBAAoB,EAAE;QACpB,OAAO,EAAE,sBAAsB;QAC/B,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,+BAAY,CAA+B;YAC7D,WAAW,EACT,oFAAoF;SACvF;KACF;IACD;;OAEG;IACH,gBAAgB,EAAE;QAChB,OAAO,EAAE,kBAAkB;QAC3B,UAAU,EAAE;YACV,IAAI,EAAE,SAAS;YACf,WAAW,EACT,kHAAkH;YACpH,IAAI,EAAE,CAAC,IAAI,CAAC;SACb;KACF;IACD;;OAEG;IACH,gBAAgB,EAAE;QAChB,OAAO,EAAE,kBAAkB;QAC3B,UAAU,EAAE;YACV,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,wEAAwE;YACrF,IAAI,EAAE,CAAC,IAAI,CAAC;YACZ,QAAQ,EACN,+IAA+I;SAClJ;KACF;CACF,CAAC"}
@@ -1,265 +1,140 @@
1
+ import { type ErrorObject, type SchemaObject } from 'ajv';
2
+ import type { ExtensionType } from '@appium/types';
3
+ import { ArgSpec } from './arg-spec';
4
+ type StrictSchemaObject = SchemaObject & {
5
+ additionalProperties: false;
6
+ };
7
+ type FlattenedSchema = {
8
+ schema: SchemaObject;
9
+ argSpec: ArgSpec;
10
+ }[];
11
+ type ArgSpecDefaultValue = ArgSpec['defaultValue'];
12
+ type NestedArgSpecDefaultValue = Record<string, Record<string, ArgSpecDefaultValue>>;
13
+ type DefaultValues<Flattened extends boolean | undefined> = Record<string, Flattened extends true ? ArgSpecDefaultValue : ArgSpecDefaultValue | NestedArgSpecDefaultValue>;
14
+ type AllowedSchemaExtension = '.json' | '.js' | '.cjs';
1
15
  /**
2
16
  * Key/value pairs go in... but they don't come out.
3
- *
4
- * @template K,V
5
- * @extends {Map<K,V>}
6
17
  */
7
- export class RoachHotelMap<K, V> extends Map<K, V> {
8
- constructor();
9
- constructor(entries?: readonly (readonly [K, V])[] | null | undefined);
10
- constructor();
11
- constructor(iterable?: Iterable<readonly [K, V]> | null | undefined);
12
- /**
13
- * @param {K} key
14
- * @param {V} value
15
- */
18
+ export declare class RoachHotelMap<K, V> extends Map<K, V> {
16
19
  set(key: K, value: V): this;
20
+ delete(_key: K): boolean;
21
+ clear(): void;
17
22
  }
18
- /**
19
- * Extensions that an extension schema file can have.
20
- */
21
- export const ALLOWED_SCHEMA_EXTENSIONS: Readonly<Set<AllowedSchemaExtension>>;
22
- /**
23
- * Thrown when the {@link AppiumSchema} instance has not yet been finalized, but
24
- * the method called requires it.
25
- */
26
- export class SchemaFinalizationError extends Error {
27
- constructor();
23
+ export declare const ALLOWED_SCHEMA_EXTENSIONS: Readonly<Set<AllowedSchemaExtension>>;
24
+ declare class AppiumSchema {
25
+ #private;
26
+ private constructor();
28
27
  /**
29
- * @type {Readonly<string>}
28
+ * Returns a singleton instance.
30
29
  */
31
- code: Readonly<string>;
32
- }
33
- /**
34
- * Thrown when a "unique" schema ID conflicts with an existing schema ID.
35
- *
36
- * This is likely going to be caused by attempting to register the same schema twice.
37
- */
38
- export class SchemaNameConflictError extends Error {
30
+ static create(): AppiumSchema;
39
31
  /**
40
- * @param {ExtensionType} extType
41
- * @param {string} extName
32
+ * Returns `true` if a schema has been registered for extension type/name.
42
33
  */
43
- constructor(extType: ExtensionType, extName: string);
34
+ hasRegisteredSchema(extType: ExtensionType, extName: string): boolean;
44
35
  /**
45
- * @type {Readonly<string>}
36
+ * Returns `true` if this instance has been finalized.
46
37
  */
47
- code: Readonly<string>;
38
+ isFinalized(): boolean;
48
39
  /**
49
- * @type {Readonly<{extType: ExtensionType, extName: string}>}
40
+ * Returns map of known argument specs.
50
41
  */
51
- data: Readonly<{
52
- extType: ExtensionType;
53
- extName: string;
54
- }>;
55
- }
56
- /**
57
- * Thrown when a schema ID was expected, but it doesn't exist on the {@link Ajv} instance.
58
- */
59
- export class SchemaUnknownSchemaError extends ReferenceError {
42
+ getAllArgSpecs(): ReadonlyMap<string, ArgSpec>;
60
43
  /**
61
- * @param {string} schemaId
44
+ * Finalizes all registered schemas into Ajv and generates arg-spec lookups.
62
45
  */
63
- constructor(schemaId: string);
46
+ finalize(): Readonly<Record<string, StrictSchemaObject>>;
64
47
  /**
65
- * @type {Readonly<string>}
48
+ * Resets this instance to initial state.
66
49
  */
67
- code: Readonly<string>;
50
+ reset(): void;
68
51
  /**
69
- * @type {Readonly<{schemaId: string}>}
52
+ * Registers an extension schema.
70
53
  */
71
- data: Readonly<{
72
- schemaId: string;
73
- }>;
74
- }
75
- /**
76
- * Thrown when a schema is provided, but it's of an unsupported type.
77
- *
78
- * "Valid" schemas which are unsupported include boolean schemas and async schemas
79
- * (having a `true` `$async` property).
80
- */
81
- export class SchemaUnsupportedSchemaError extends TypeError {
54
+ registerSchema(extType: ExtensionType, extName: string, schema: SchemaObject): void;
82
55
  /**
83
- * @param {any} schema
84
- * @param {ExtensionType} extType
85
- * @param {string} extName
56
+ * Returns an `ArgSpec` for argument name/ext context, if present.
86
57
  */
87
- constructor(schema: any, extType: ExtensionType, extName: string);
58
+ getArgSpec(name: string, extType?: ExtensionType, extName?: string): ArgSpec | undefined;
88
59
  /**
89
- * @type {Readonly<string>}
60
+ * Returns `true` if an `ArgSpec` exists for argument name/ext context.
90
61
  */
91
- code: Readonly<string>;
62
+ hasArgSpec(name: string, extType?: ExtensionType, extName?: string): boolean;
92
63
  /**
93
- * @type {Readonly<{schema: any, extType: ExtensionType, extName: string}>}
64
+ * Returns default values for all args, flattened or nested.
94
65
  */
95
- data: Readonly<{
96
- schema: any;
66
+ getDefaults<Flattened extends boolean | undefined = true>(flatten?: Flattened): DefaultValues<Flattened>;
67
+ /**
68
+ * Returns flattened defaults for a specific extension.
69
+ */
70
+ getDefaultsForExtension(extType: ExtensionType, extName: string): Record<string, ArgSpecDefaultValue>;
71
+ /**
72
+ * Flattens finalized schemas into schema + argSpec tuples.
73
+ */
74
+ flatten(): FlattenedSchema;
75
+ /**
76
+ * Returns schema by ID (default: base Appium schema).
77
+ */
78
+ getSchema(ref?: string): SchemaObject;
79
+ /**
80
+ * Validates a value against schema by ID/reference.
81
+ */
82
+ validate(value: any, ref?: string): ErrorObject[];
83
+ /**
84
+ * Returns `true` if filename extension is an allowed schema extension.
85
+ */
86
+ static isAllowedSchemaFileExtension(filename: string): boolean;
87
+ /**
88
+ * Returns `true` if schema is a plain object and not async.
89
+ */
90
+ static isSupportedSchemaType(schema: any): schema is SchemaObject;
91
+ /**
92
+ * Configures and creates an Ajv instance.
93
+ */
94
+ private static _instantiateAjv;
95
+ /**
96
+ * Retrieves schema validator function from Ajv.
97
+ */
98
+ private _getValidator;
99
+ }
100
+ export declare class SchemaFinalizationError extends Error {
101
+ readonly code: "APPIUMERR_SCHEMA_FINALIZATION";
102
+ constructor();
103
+ }
104
+ /**
105
+ * Thrown when a unique extension schema name conflicts with an existing one.
106
+ */
107
+ export declare class SchemaNameConflictError extends Error {
108
+ readonly code: "APPIUMERR_SCHEMA_NAME_CONFLICT";
109
+ readonly data: Readonly<{
97
110
  extType: ExtensionType;
98
111
  extName: string;
99
112
  }>;
113
+ constructor(extType: ExtensionType, extName: string);
100
114
  }
101
115
  /**
102
- * Registers a schema from an extension.
103
- *
104
- * This is "fail-fast" in that the schema will immediately be validated against JSON schema draft-07 _or_ whatever the value of the schema's `$schema` prop is.
105
- *
106
- * Does _not_ add the schema to the `ajv` instance (this is done by {@link AppiumSchema.finalize}).
107
- * @param {ExtensionType} extType - Extension type
108
- * @param {string} extName - Unique extension name for `type`
109
- * @param {SchemaObject} schema - Schema object
110
- * @throws {SchemaNameConflictError} If the schema is an invalid
111
- * @returns {void}
112
- */
113
- export function registerSchema(extType: ExtensionType, extName: string, schema: SchemaObject): void;
114
- export function getAllArgSpecs(): RoachHotelMap<string, ArgSpec<any>>;
115
- /**
116
- * Returns a {@link ArgSpec} for the given argument name.
117
- * @param {string} name - CLI argument name
118
- * @param {ExtensionType} [extType] - Extension type
119
- * @param {string} [extName] - Extension name
120
- * @returns {ArgSpec|undefined} ArgSpec or `undefined` if not found
121
- */
122
- export function getArgSpec(name: string, extType?: ExtensionType, extName?: string): ArgSpec<any> | undefined;
123
- /**
124
- * Returns `true` if the instance knows about an argument by the given `name`.
125
- * @param {string} name - CLI argument name
126
- * @param {ExtensionType} [extType] - Extension type
127
- * @param {string} [extName] - Extension name
128
- * @returns {boolean} `true` if such an {@link ArgSpec} exists
129
- */
130
- export function hasArgSpec(name: string, extType?: ExtensionType, extName?: string): boolean;
131
- /**
132
- * Return `true` if {@link AppiumSchema.finalize finalize} has been called
133
- * successfully and {@link AppiumSchema.reset reset} has not been called since.
134
- * @returns {boolean} If finalized
135
- */
136
- export function isFinalized(): boolean;
137
- /**
138
- * Call this when no more schemas will be registered.
139
- *
140
- * This does three things:
141
- * 1. It combines all schemas from extensions into the Appium config schema,
142
- * then adds the result to the `Ajv` instance.
143
- * 2. It adds schemas for _each_ argument/property for validation purposes.
144
- * The CLI uses these schemas to validate specific arguments.
145
- * 3. The schemas are validated against JSON schema draft-07 (which is the
146
- * only one supported at this time)
147
- *
148
- * Any method in this instance that needs to interact with the `Ajv` instance
149
- * will throw if this method has not been called.
150
- *
151
- * If the instance has already been finalized, this is a no-op.
152
- * @public
153
- * @throws {Error} If the schema is not valid
154
- * @returns {Readonly<Record<string,StrictSchemaObject>>} Record of schema IDs to full schema objects
155
- */
156
- export function finalizeSchema(): Readonly<Record<string, StrictSchemaObject>>;
157
- /**
158
- * Resets this instance to its original state.
159
- *
160
- * - Removes all added schemas from the `Ajv` instance
161
- * - Resets the map of {@link ArgSpec ArgSpecs}
162
- * - Resets the map of registered schemas
163
- * - Sets the {@link AppiumSchema._finalized _finalized} flag to `false`
164
- *
165
- * If you need to call {@link AppiumSchema.finalize} again, you'll want to call this first.
166
- * @returns {void}
116
+ * Thrown when requested schema ID is unknown to Ajv.
167
117
  */
168
- export function resetSchema(): void;
169
- /**
170
- * Given an object, validates it against the Appium config schema.
171
- * If errors occur, the returned array will be non-empty.
172
- * @param {any} value - The value (hopefully an object) to validate against the schema
173
- * @param {string} [ref] - Schema ID or ref.
174
- * @public
175
- * @returns {import('ajv').ErrorObject[]} Array of errors, if any.
176
- */
177
- export function validate(value: any, ref?: string): import("ajv").ErrorObject[];
178
- /**
179
- * Retrieves the schema itself
180
- * @public
181
- * @param {string} [ref] - Schema ID
182
- * @throws If the schema has not yet been finalized
183
- * @returns {SchemaObject}
184
- */
185
- export function getSchema(ref?: string): SchemaObject;
186
- /**
187
- * Flatten schema into an array of `SchemaObject`s and associated
188
- * {@link ArgSpec ArgSpecs}.
189
- *
190
- * Converts nested extension schemas to keys based on the extension type and
191
- * name. Used when translating to `argparse` options or getting the list of
192
- * default values (see {@link AppiumSchema.getDefaults}) for CLI or otherwise.
193
- *
194
- * The return value is an intermediate representation used by `cli-args`
195
- * module's `toParserArgs`, which converts the finalized schema to parameters
196
- * used by `argparse`.
197
- * @throws If {@link AppiumSchema.finalize} has not been called yet.
198
- * @returns {FlattenedSchema}
199
- */
200
- export function flattenSchema(): FlattenedSchema;
201
- /**
202
- * Returns a `Record` of argument "dest" strings to default values.
203
- *
204
- * The "dest" string is the property name in object returned by
205
- * `argparse.ArgumentParser['parse_args']`.
206
- * @template {boolean|undefined} Flattened
207
- * @param {Flattened} [flatten=true] - If `true`, flattens the returned object
208
- * using "keypath"-style keys of the format `<extType>.<extName>.<argName>`.
209
- * Otherwise, returns a nested object using `extType` and `extName` as
210
- * properties. Base arguments (server arguments) are always at the top level.
211
- * @returns {DefaultValues<Flattened>}
212
- */
213
- export function getDefaultsForSchema<Flattened extends boolean | undefined>(flatten?: Flattened | undefined): DefaultValues<Flattened>;
214
- /**
215
- * Returns a flattened Record of defaults for a specific extension. Keys will
216
- * be of format `<argName>`.
217
- * @param {ExtensionType} extType - Extension type
218
- * @param {string} extName - Extension name
219
- * @returns {Record<string,ArgSpecDefaultValue>}
220
- */
221
- export function getDefaultsForExtension(extType: ExtensionType, extName: string): Record<string, ArgSpecDefaultValue>;
222
- /**
223
- * Returns `true` if `filename`'s file extension is allowed (in {@link ALLOWED_SCHEMA_EXTENSIONS}).
224
- * @param {import('type-fest').LiteralUnion<AllowedSchemaExtension, string>} filename
225
- * @returns {boolean}
226
- */
227
- export function isAllowedSchemaFileExtension(filename: import("type-fest").LiteralUnion<AllowedSchemaExtension, string>): boolean;
228
- /**
229
- * Appium only supports schemas that are plain objects; not arrays.
230
- */
231
- export type SchemaObject = import("ajv").SchemaObject & {
232
- [key: number]: never;
233
- };
234
- export type ExtensionType = import("@appium/types").ExtensionType;
235
- /**
236
- * An object having property `additionalProperties: false`
237
- */
238
- export type StrictProp = {
239
- additionalProperties: false;
240
- };
241
- /**
242
- * A {@link SchemaObject} with `additionalProperties: false`
243
- */
244
- export type StrictSchemaObject = SchemaObject & StrictProp;
245
- /**
246
- * A list of schemas associated with properties and their corresponding {@link ArgSpec} objects.
247
- *
248
- * Intermediate data structure used when converting the entire schema down to CLI arguments.
249
- */
250
- export type FlattenedSchema = {
251
- schema: SchemaObject;
252
- argSpec: ArgSpec<any>;
253
- }[];
254
- export type ArgSpecDefaultValue = any;
255
- /**
256
- * e.g. `{driver: {foo: 'bar'}}` where `foo` is the arg name and `bar` is the default value.
257
- */
258
- export type NestedArgSpecDefaultValue = Record<string, Record<string, ArgSpecDefaultValue>>;
118
+ export declare class SchemaUnknownSchemaError extends ReferenceError {
119
+ readonly code: "APPIUMERR_SCHEMA_UNKNOWN_SCHEMA";
120
+ readonly data: Readonly<{
121
+ schemaId: string;
122
+ }>;
123
+ constructor(schemaId: string);
124
+ }
259
125
  /**
260
- * Helper type for the return value of {@link AppiumSchema.getDefaults}
126
+ * Thrown when provided schema type is unsupported (boolean/async/non-object).
261
127
  */
262
- export type DefaultValues<Flattened extends boolean | undefined> = Record<string, Flattened extends true ? ArgSpecDefaultValue : ArgSpecDefaultValue | NestedArgSpecDefaultValue>;
263
- export type AllowedSchemaExtension = ".json" | ".js" | ".cjs";
264
- import { ArgSpec } from './arg-spec';
128
+ export declare class SchemaUnsupportedSchemaError extends TypeError {
129
+ readonly code: "APPIUMERR_SCHEMA_UNSUPPORTED_SCHEMA";
130
+ readonly data: Readonly<{
131
+ schema: any;
132
+ extType: ExtensionType;
133
+ extName: string;
134
+ }>;
135
+ constructor(schema: any, extType: ExtensionType, extName: string);
136
+ }
137
+ export declare const registerSchema: (extType: ExtensionType, extName: string, schema: SchemaObject) => void, getAllArgSpecs: () => ReadonlyMap<string, ArgSpec>, getArgSpec: (name: string, extType?: ExtensionType, extName?: string) => ArgSpec | undefined, hasArgSpec: (name: string, extType?: ExtensionType, extName?: string) => boolean, isFinalized: () => boolean, finalizeSchema: () => Readonly<Record<string, StrictSchemaObject>>, resetSchema: () => void, validate: (value: any, ref?: string) => ErrorObject[], getSchema: (ref?: string) => SchemaObject, flattenSchema: () => FlattenedSchema, getDefaultsForSchema: <Flattened extends boolean | undefined = true>(flatten?: Flattened) => DefaultValues<Flattened>, getDefaultsForExtension: (extType: ExtensionType, extName: string) => Record<string, ArgSpecDefaultValue>;
138
+ export declare const isAllowedSchemaFileExtension: typeof AppiumSchema.isAllowedSchemaFileExtension;
139
+ export {};
265
140
  //# sourceMappingURL=schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../lib/schema/schema.js"],"names":[],"mappings":"AASA;;;;;GAKG;AACH,2BAHa,CAAC,EAAC,CAAC;;;;;IAId;;;OAGG;IACH,SAHW,CAAC,SACD,CAAC,QAOX;CAaF;AAED;;GAE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