doc-detective-common 4.19.0 → 4.20.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/dist/index.cjs +86416 -6069
- package/dist/schemas/schemas.json +86416 -6069
- package/dist/types/generated/closeSurface_v3.d.ts +79 -13
- package/dist/types/generated/closeSurface_v3.d.ts.map +1 -1
- package/dist/types/generated/config_v3.d.ts +24 -0
- package/dist/types/generated/config_v3.d.ts.map +1 -1
- package/dist/types/generated/context_v3.d.ts +24 -0
- package/dist/types/generated/context_v3.d.ts.map +1 -1
- package/dist/types/generated/report_v3.d.ts +24 -0
- package/dist/types/generated/report_v3.d.ts.map +1 -1
- package/dist/types/generated/resolvedTests_v3.d.ts +48 -0
- package/dist/types/generated/resolvedTests_v3.d.ts.map +1 -1
- package/dist/types/generated/screenshot_v3.d.ts +40 -3
- package/dist/types/generated/screenshot_v3.d.ts.map +1 -1
- package/dist/types/generated/spec_v3.d.ts +24 -0
- package/dist/types/generated/spec_v3.d.ts.map +1 -1
- package/dist/types/generated/startSurface_v3.d.ts +108 -0
- package/dist/types/generated/startSurface_v3.d.ts.map +1 -0
- package/dist/types/generated/startSurface_v3.js +7 -0
- package/dist/types/generated/startSurface_v3.js.map +1 -0
- package/dist/types/generated/step_v3.d.ts +532 -107
- package/dist/types/generated/step_v3.d.ts.map +1 -1
- package/dist/types/generated/surface_v3.d.ts +35 -2
- package/dist/types/generated/surface_v3.d.ts.map +1 -1
- package/dist/types/generated/test_v3.d.ts +1837 -851
- package/dist/types/generated/test_v3.d.ts.map +1 -1
- package/dist/types/generated/type_v3.d.ts +60 -10
- package/dist/types/generated/type_v3.d.ts.map +1 -1
- package/dist/types/generated/waitUntil_v3.d.ts +22 -8
- package/dist/types/generated/waitUntil_v3.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Auto-generated from startSurface_v3.schema.json
|
|
3
|
+
* Do not edit manually
|
|
4
|
+
*/
|
|
5
|
+
export type DeviceByName = string;
|
|
6
|
+
/**
|
|
7
|
+
* Wait for a specific element to exist on the app surface. Fields with no accessibility mapping on the target platform fail at runtime with the supported alternative named.
|
|
8
|
+
*/
|
|
9
|
+
export type ElementCriteria = {
|
|
10
|
+
[k: string]: unknown;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Open (provision) a surface and register it by name so later steps can target it with `surface`. Phase A1 ships the native app branch: launch a desktop application by executable path, bundle ID, or UWP AppUserModelID. The mobile fields (`install`, `activity`, `device`) are validated now and land in later phases; browser/process branches and the parallel array form arrive with multi-surface Phase 6. See docs/design/native-app-surfaces.md.
|
|
14
|
+
*/
|
|
15
|
+
export interface StartSurface {
|
|
16
|
+
/**
|
|
17
|
+
* The app identifier: an executable path (`C:\\Windows\\System32\\notepad.exe`), a `.app` path, a bundle ID (`com.apple.TextEdit`), a package name (`com.example.myapp`), or a UWP AppUserModelID (`Microsoft.WindowsCalculator_8wekyb3d8bbwe!App`). Disambiguated by syntax — never by a type field.
|
|
18
|
+
*/
|
|
19
|
+
app: string;
|
|
20
|
+
/**
|
|
21
|
+
* Surface-registry name later steps use in `surface`. Default: the executable basename without extension, or the final dot-segment of an ID.
|
|
22
|
+
*/
|
|
23
|
+
name?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Launch arguments (desktop apps). Entries join into a single shell-style argument string for the driver, so an argument with embedded spaces must carry its own quotes (e.g. "\"My File.txt\"").
|
|
26
|
+
*/
|
|
27
|
+
args?: string[];
|
|
28
|
+
/**
|
|
29
|
+
* Working directory for the launched app (desktop apps). Default: the run's working directory.
|
|
30
|
+
*/
|
|
31
|
+
workingDirectory?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Extra environment variables for the launched app (desktop apps). Driver support varies; unmapped variables fail with a clear runtime error.
|
|
34
|
+
*/
|
|
35
|
+
env?: {
|
|
36
|
+
[k: string]: string;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Path to an installable artifact (`.apk`/`.app`/`.ipa`) to install on the device before launch. Reserved for the mobile phases; validated now, not yet implemented.
|
|
40
|
+
*/
|
|
41
|
+
install?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Android main activity override (defaults to the package's launcher activity). Reserved for the Android phase; validated now, not yet implemented.
|
|
44
|
+
*/
|
|
45
|
+
activity?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Device the app runs on. Omit for a host desktop app. A string references an already-provisioned device by name; an object provisions one. Reserved for the mobile phases; validated now, not yet implemented.
|
|
48
|
+
*/
|
|
49
|
+
device?: DeviceByName | DeviceDescriptor;
|
|
50
|
+
/**
|
|
51
|
+
* Escape-hatch passthrough: merged into the automation session's capabilities after the ones Doc Detective computes (namespaced per driver, e.g. `appium:noReset`). Driver- and version-specific; use sparingly.
|
|
52
|
+
*/
|
|
53
|
+
driverOptions?: {
|
|
54
|
+
[k: string]: unknown;
|
|
55
|
+
};
|
|
56
|
+
waitUntil?: AppReadiness;
|
|
57
|
+
/**
|
|
58
|
+
* Startup ceiling in milliseconds (launch + install + readiness).
|
|
59
|
+
*/
|
|
60
|
+
timeout?: number;
|
|
61
|
+
}
|
|
62
|
+
export interface DeviceDescriptor {
|
|
63
|
+
/**
|
|
64
|
+
* Target platform. Selects the mobile driver.
|
|
65
|
+
*/
|
|
66
|
+
platform: "android" | "ios";
|
|
67
|
+
/**
|
|
68
|
+
* AVD name (Android) or simulator device name (iOS). Also the device's registry identity: the same name resolves to the same device.
|
|
69
|
+
*/
|
|
70
|
+
name?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Platform version. Default: the newest available.
|
|
73
|
+
*/
|
|
74
|
+
osVersion?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Run the Android emulator without a window. Ignored where not applicable.
|
|
77
|
+
*/
|
|
78
|
+
headless?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Initial orientation. Reserved; validated now, not yet implemented.
|
|
81
|
+
*/
|
|
82
|
+
orientation?: "portrait" | "landscape";
|
|
83
|
+
/**
|
|
84
|
+
* Device kind. `emulator`/`simulator` (the default, inferred from `platform`) or `device` for real hardware. Reserved; validated now, not yet implemented.
|
|
85
|
+
*/
|
|
86
|
+
type?: "emulator" | "simulator" | "device";
|
|
87
|
+
/**
|
|
88
|
+
* Pin a specific device/emulator instance by UDID. Reserved; validated now, not yet implemented.
|
|
89
|
+
*/
|
|
90
|
+
udid?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Cloud device farm configuration, keyed by provider. Reserved; validated now, not yet implemented.
|
|
93
|
+
*/
|
|
94
|
+
provider?: {
|
|
95
|
+
[k: string]: unknown;
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Startup readiness: a fixed delay and/or an element that must exist before the surface is considered open. No condition applies by default.
|
|
100
|
+
*/
|
|
101
|
+
export interface AppReadiness {
|
|
102
|
+
/**
|
|
103
|
+
* Fixed delay (ms).
|
|
104
|
+
*/
|
|
105
|
+
delayMs?: number;
|
|
106
|
+
find?: ElementCriteria;
|
|
107
|
+
}
|
|
108
|
+
//# sourceMappingURL=startSurface_v3.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"startSurface_v3.d.ts","sourceRoot":"","sources":["../../../src/types/generated/startSurface_v3.ts"],"names":[],"mappings":"AACA;;;GAGG;AAEH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAClC;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,GAAG,CAAC,EAAE;QACJ,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;KACrB,CAAC;IACF;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,YAAY,GAAG,gBAAgB,CAAC;IACzC;;OAEG;IACH,aAAa,CAAC,EAAE;QACd,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,CAAC;IACF,SAAS,CAAC,EAAE,YAAY,CAAC;IACzB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AACD,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,QAAQ,EAAE,SAAS,GAAG,KAAK,CAAC;IAC5B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,WAAW,CAAC,EAAE,UAAU,GAAG,WAAW,CAAC;IACvC;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,GAAG,WAAW,GAAG,QAAQ,CAAC;IAC3C;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE;QACT,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,CAAC;CACH;AACD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,eAAe,CAAC;CACxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"startSurface_v3.js","sourceRoot":"","sources":["../../../src/types/generated/startSurface_v3.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB;;;GAGG"}
|