doc-detective-common 4.0.0-beta.0-dev.7 → 4.0.0-beta.0-dev.8

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 (45) hide show
  1. package/dist/detectTests.d.ts +17 -22
  2. package/dist/detectTests.d.ts.map +1 -1
  3. package/dist/detectTests.js +81 -4
  4. package/dist/detectTests.js.map +1 -1
  5. package/dist/fileTypes.d.ts +35 -0
  6. package/dist/fileTypes.d.ts.map +1 -0
  7. package/dist/fileTypes.js +293 -0
  8. package/dist/fileTypes.js.map +1 -0
  9. package/dist/index.cjs +7288 -162
  10. package/dist/index.d.cts +2 -1
  11. package/dist/index.d.ts +2 -1
  12. package/dist/index.d.ts.map +1 -1
  13. package/dist/index.js +1 -0
  14. package/dist/index.js.map +1 -1
  15. package/dist/schemas/schemas.json +6786 -0
  16. package/dist/types/generated/step_v3.d.ts +288 -0
  17. package/dist/types/generated/step_v3.d.ts.map +1 -1
  18. package/dist/types/generated/test_v3.d.ts +576 -0
  19. package/dist/types/generated/test_v3.d.ts.map +1 -1
  20. package/package.json +4 -3
  21. package/dist/schemas/checkLink_v3.schema.json +0 -145
  22. package/dist/schemas/click_v3.schema.json +0 -252
  23. package/dist/schemas/config_v3.schema.json +0 -16470
  24. package/dist/schemas/context_v3.schema.json +0 -374
  25. package/dist/schemas/dragAndDrop_v3.schema.json +0 -496
  26. package/dist/schemas/find_v3.schema.json +0 -1349
  27. package/dist/schemas/goTo_v3.schema.json +0 -419
  28. package/dist/schemas/httpRequest_v3.schema.json +0 -994
  29. package/dist/schemas/loadCookie_v3.schema.json +0 -228
  30. package/dist/schemas/loadVariables_v3.schema.json +0 -9
  31. package/dist/schemas/openApi_v3.schema.json +0 -162
  32. package/dist/schemas/record_v3.schema.json +0 -101
  33. package/dist/schemas/report_v3.schema.json +0 -16826
  34. package/dist/schemas/resolvedTests_v3.schema.json +0 -33331
  35. package/dist/schemas/runCode_v3.schema.json +0 -222
  36. package/dist/schemas/runShell_v3.schema.json +0 -236
  37. package/dist/schemas/saveCookie_v3.schema.json +0 -245
  38. package/dist/schemas/screenshot_v3.schema.json +0 -681
  39. package/dist/schemas/sourceIntegration_v3.schema.json +0 -50
  40. package/dist/schemas/spec_v3.schema.json +0 -16630
  41. package/dist/schemas/step_v3.schema.json +0 -7317
  42. package/dist/schemas/stopRecord_v3.schema.json +0 -12
  43. package/dist/schemas/test_v3.schema.json +0 -15863
  44. package/dist/schemas/type_v3.schema.json +0 -244
  45. package/dist/schemas/wait_v3.schema.json +0 -41
@@ -1,419 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "title": "goTo",
4
- "anyOf": [
5
- {
6
- "title": "Go to URL (simple)",
7
- "description": "Navigate to an HTTP or HTTPS URL. Can be a full URL or a path. If a path is provided, navigates relative to the current URL, if any.",
8
- "type": "string",
9
- "pattern": "(^(http://|https://|/).*|\\$[A-Za-z0-9_]+)",
10
- "transform": [
11
- "trim"
12
- ]
13
- },
14
- {
15
- "description": "Navigate to an HTTP or HTTPS URL.",
16
- "type": "object",
17
- "additionalProperties": false,
18
- "required": [
19
- "url"
20
- ],
21
- "properties": {
22
- "url": {
23
- "type": "string",
24
- "description": "URL to navigate to. Can be a full URL or a path. If a path is provided and `origin` is specified, prepends `origin` to `url`. If a path is provided but `origin` isn't specified, attempts to navigate relative to the current URL, if any.",
25
- "pattern": "(^(http://|https://|/).*|\\$[A-Za-z0-9_]+)",
26
- "transform": [
27
- "trim"
28
- ]
29
- },
30
- "origin": {
31
- "type": "string",
32
- "description": "Protocol and domain to navigate to. Prepended to `url`.",
33
- "transform": [
34
- "trim"
35
- ]
36
- },
37
- "timeout": {
38
- "type": "integer",
39
- "description": "Maximum time in milliseconds to wait for the page to be ready. If exceeded, the goTo action fails.",
40
- "default": 30000,
41
- "minimum": 0
42
- },
43
- "waitUntil": {
44
- "type": "object",
45
- "description": "Configuration for waiting conditions after navigation.",
46
- "additionalProperties": false,
47
- "properties": {
48
- "networkIdleTime": {
49
- "description": "Wait for network activity to be idle (no new requests) for this duration in milliseconds. Set to `null` to skip this check.",
50
- "anyOf": [
51
- {
52
- "type": "integer",
53
- "minimum": 0
54
- },
55
- {
56
- "type": "null"
57
- }
58
- ],
59
- "default": 500
60
- },
61
- "domIdleTime": {
62
- "description": "Wait for DOM mutations to stop for this duration in milliseconds. Set to `null` to skip this check.",
63
- "anyOf": [
64
- {
65
- "type": "integer",
66
- "minimum": 0
67
- },
68
- {
69
- "type": "null"
70
- }
71
- ],
72
- "default": 1000
73
- },
74
- "find": {
75
- "type": "object",
76
- "description": "Wait for a specific element to be present in the DOM. At least one of selector or elementText must be specified.",
77
- "additionalProperties": false,
78
- "anyOf": [
79
- {
80
- "required": [
81
- "selector"
82
- ]
83
- },
84
- {
85
- "required": [
86
- "elementText"
87
- ]
88
- },
89
- {
90
- "required": [
91
- "elementId"
92
- ]
93
- },
94
- {
95
- "required": [
96
- "elementTestId"
97
- ]
98
- },
99
- {
100
- "required": [
101
- "elementClass"
102
- ]
103
- },
104
- {
105
- "required": [
106
- "elementAttribute"
107
- ]
108
- },
109
- {
110
- "required": [
111
- "elementAria"
112
- ]
113
- }
114
- ],
115
- "properties": {
116
- "selector": {
117
- "type": "string",
118
- "description": "CSS selector for the element to wait for."
119
- },
120
- "elementText": {
121
- "type": "string",
122
- "description": "Text content the element must contain. Supports exact match or regex pattern using /pattern/ syntax."
123
- },
124
- "elementId": {
125
- "type": "string",
126
- "description": "ID attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax."
127
- },
128
- "elementTestId": {
129
- "type": "string",
130
- "description": "data-testid attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax."
131
- },
132
- "elementClass": {
133
- "anyOf": [
134
- {
135
- "type": "string"
136
- },
137
- {
138
- "type": "array",
139
- "items": {
140
- "type": "string"
141
- }
142
- }
143
- ],
144
- "description": "Class or array of classes that the element must have. Each class supports exact match or regex pattern using /pattern/ syntax. Element must have all specified classes."
145
- },
146
- "elementAttribute": {
147
- "type": "object",
148
- "description": "Object of attribute key-value pairs that the element must have. Values can be strings (supporting /pattern/ regex), numbers, or booleans. Boolean true matches attribute presence, false matches absence.",
149
- "additionalProperties": {
150
- "anyOf": [
151
- {
152
- "type": "string"
153
- },
154
- {
155
- "type": "number"
156
- },
157
- {
158
- "type": "boolean"
159
- }
160
- ]
161
- }
162
- },
163
- "elementAria": {
164
- "type": "string",
165
- "description": "Computed accessible name of the element per ARIA specification. Supports exact match or regex pattern using /pattern/ syntax."
166
- }
167
- }
168
- }
169
- }
170
- }
171
- },
172
- "title": "Go to URL (detailed)"
173
- }
174
- ],
175
- "components": {
176
- "schemas": {
177
- "string": {
178
- "title": "Go to URL (simple)",
179
- "description": "Navigate to an HTTP or HTTPS URL. Can be a full URL or a path. If a path is provided, navigates relative to the current URL, if any.",
180
- "type": "string",
181
- "pattern": "(^(http://|https://|/).*|\\$[A-Za-z0-9_]+)",
182
- "transform": [
183
- "trim"
184
- ]
185
- },
186
- "object": {
187
- "description": "Navigate to an HTTP or HTTPS URL.",
188
- "type": "object",
189
- "additionalProperties": false,
190
- "required": [
191
- "url"
192
- ],
193
- "properties": {
194
- "url": {
195
- "type": "string",
196
- "description": "URL to navigate to. Can be a full URL or a path. If a path is provided and `origin` is specified, prepends `origin` to `url`. If a path is provided but `origin` isn't specified, attempts to navigate relative to the current URL, if any.",
197
- "pattern": "(^(http://|https://|/).*|\\$[A-Za-z0-9_]+)",
198
- "transform": [
199
- "trim"
200
- ]
201
- },
202
- "origin": {
203
- "type": "string",
204
- "description": "Protocol and domain to navigate to. Prepended to `url`.",
205
- "transform": [
206
- "trim"
207
- ]
208
- },
209
- "timeout": {
210
- "type": "integer",
211
- "description": "Maximum time in milliseconds to wait for the page to be ready. If exceeded, the goTo action fails.",
212
- "default": 30000,
213
- "minimum": 0
214
- },
215
- "waitUntil": {
216
- "type": "object",
217
- "description": "Configuration for waiting conditions after navigation.",
218
- "additionalProperties": false,
219
- "properties": {
220
- "networkIdleTime": {
221
- "description": "Wait for network activity to be idle (no new requests) for this duration in milliseconds. Set to `null` to skip this check.",
222
- "anyOf": [
223
- {
224
- "type": "integer",
225
- "minimum": 0
226
- },
227
- {
228
- "type": "null"
229
- }
230
- ],
231
- "default": 500
232
- },
233
- "domIdleTime": {
234
- "description": "Wait for DOM mutations to stop for this duration in milliseconds. Set to `null` to skip this check.",
235
- "anyOf": [
236
- {
237
- "type": "integer",
238
- "minimum": 0
239
- },
240
- {
241
- "type": "null"
242
- }
243
- ],
244
- "default": 1000
245
- },
246
- "find": {
247
- "type": "object",
248
- "description": "Wait for a specific element to be present in the DOM. At least one of selector or elementText must be specified.",
249
- "additionalProperties": false,
250
- "anyOf": [
251
- {
252
- "required": [
253
- "selector"
254
- ]
255
- },
256
- {
257
- "required": [
258
- "elementText"
259
- ]
260
- },
261
- {
262
- "required": [
263
- "elementId"
264
- ]
265
- },
266
- {
267
- "required": [
268
- "elementTestId"
269
- ]
270
- },
271
- {
272
- "required": [
273
- "elementClass"
274
- ]
275
- },
276
- {
277
- "required": [
278
- "elementAttribute"
279
- ]
280
- },
281
- {
282
- "required": [
283
- "elementAria"
284
- ]
285
- }
286
- ],
287
- "properties": {
288
- "selector": {
289
- "type": "string",
290
- "description": "CSS selector for the element to wait for."
291
- },
292
- "elementText": {
293
- "type": "string",
294
- "description": "Text content the element must contain. Supports exact match or regex pattern using /pattern/ syntax."
295
- },
296
- "elementId": {
297
- "type": "string",
298
- "description": "ID attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax."
299
- },
300
- "elementTestId": {
301
- "type": "string",
302
- "description": "data-testid attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax."
303
- },
304
- "elementClass": {
305
- "anyOf": [
306
- {
307
- "type": "string"
308
- },
309
- {
310
- "type": "array",
311
- "items": {
312
- "type": "string"
313
- }
314
- }
315
- ],
316
- "description": "Class or array of classes that the element must have. Each class supports exact match or regex pattern using /pattern/ syntax. Element must have all specified classes."
317
- },
318
- "elementAttribute": {
319
- "type": "object",
320
- "description": "Object of attribute key-value pairs that the element must have. Values can be strings (supporting /pattern/ regex), numbers, or booleans. Boolean true matches attribute presence, false matches absence.",
321
- "additionalProperties": {
322
- "anyOf": [
323
- {
324
- "type": "string"
325
- },
326
- {
327
- "type": "number"
328
- },
329
- {
330
- "type": "boolean"
331
- }
332
- ]
333
- }
334
- },
335
- "elementAria": {
336
- "type": "string",
337
- "description": "Computed accessible name of the element per ARIA specification. Supports exact match or regex pattern using /pattern/ syntax."
338
- }
339
- }
340
- }
341
- }
342
- }
343
- },
344
- "title": "Go to URL (detailed)"
345
- }
346
- }
347
- },
348
- "examples": [
349
- "https://www.google.com",
350
- "/search",
351
- {
352
- "url": "https://www.google.com"
353
- },
354
- {
355
- "url": "/search",
356
- "origin": "https://www.google.com"
357
- },
358
- {
359
- "url": "https://www.example.com",
360
- "waitUntil": {
361
- "networkIdleTime": 500
362
- }
363
- },
364
- {
365
- "url": "https://www.example.com/dashboard",
366
- "waitUntil": {
367
- "find": {
368
- "selector": "[data-testid='dashboard-loaded']"
369
- }
370
- }
371
- },
372
- {
373
- "url": "https://www.example.com/app",
374
- "timeout": 60000,
375
- "waitUntil": {
376
- "networkIdleTime": 500,
377
- "domIdleTime": 1000,
378
- "find": {
379
- "selector": ".main-content",
380
- "elementText": "Dashboard"
381
- }
382
- }
383
- },
384
- {
385
- "url": "https://www.example.com/app",
386
- "timeout": 60000,
387
- "waitUntil": {
388
- "networkIdleTime": null
389
- }
390
- },
391
- {
392
- "url": "https://www.example.com/status",
393
- "waitUntil": {
394
- "find": {
395
- "elementText": "System operational"
396
- }
397
- }
398
- },
399
- {
400
- "url": "http://localhost:8092",
401
- "waitUntil": {
402
- "find": {
403
- "selector": "button",
404
- "elementText": "Standard Button",
405
- "elementTestId": "standard-btn",
406
- "elementAria": "Sample Standard Button",
407
- "elementId": "standard-btn",
408
- "elementClass": [
409
- "btn"
410
- ],
411
- "elementAttribute": {
412
- "type": "button",
413
- "value": "Standard Button"
414
- }
415
- }
416
- }
417
- }
418
- ]
419
- }