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,496 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "title": "dragAndDrop",
4
- "description": "Drag and drop an element from source to target.",
5
- "type": "object",
6
- "required": [
7
- "source",
8
- "target"
9
- ],
10
- "properties": {
11
- "source": {
12
- "description": "The element to drag.",
13
- "anyOf": [
14
- {
15
- "title": "Element (simple)",
16
- "type": "string",
17
- "description": "Display text, selector, or regex pattern (enclosed in forward slashes) of the element."
18
- },
19
- {
20
- "title": "Element (detailed)",
21
- "type": "object",
22
- "anyOf": [
23
- {
24
- "required": [
25
- "selector"
26
- ]
27
- },
28
- {
29
- "required": [
30
- "elementText"
31
- ]
32
- },
33
- {
34
- "required": [
35
- "elementId"
36
- ]
37
- },
38
- {
39
- "required": [
40
- "elementTestId"
41
- ]
42
- },
43
- {
44
- "required": [
45
- "elementClass"
46
- ]
47
- },
48
- {
49
- "required": [
50
- "elementAttribute"
51
- ]
52
- },
53
- {
54
- "required": [
55
- "elementAria"
56
- ]
57
- }
58
- ],
59
- "properties": {
60
- "elementText": {
61
- "type": "string",
62
- "description": "Display text or regex pattern (enclosed in forward slashes) of the element. If combined with `selector`, the element must match both the text and the selector."
63
- },
64
- "selector": {
65
- "type": "string",
66
- "description": "Selector of the element. If combined with `elementText`, the element must match both the text and the selector."
67
- },
68
- "elementId": {
69
- "type": "string",
70
- "description": "ID attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax."
71
- },
72
- "elementTestId": {
73
- "type": "string",
74
- "description": "data-testid attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax."
75
- },
76
- "elementClass": {
77
- "anyOf": [
78
- {
79
- "type": "string"
80
- },
81
- {
82
- "type": "array",
83
- "items": {
84
- "type": "string"
85
- }
86
- }
87
- ],
88
- "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."
89
- },
90
- "elementAttribute": {
91
- "type": "object",
92
- "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.",
93
- "additionalProperties": {
94
- "anyOf": [
95
- {
96
- "type": "string"
97
- },
98
- {
99
- "type": "number"
100
- },
101
- {
102
- "type": "boolean"
103
- }
104
- ]
105
- }
106
- },
107
- "elementAria": {
108
- "type": "string",
109
- "description": "Computed accessible name of the element per ARIA specification. Supports exact match or regex pattern using /pattern/ syntax."
110
- },
111
- "timeout": {
112
- "type": "integer",
113
- "description": "Max duration in milliseconds to wait for the element to exist.",
114
- "default": 5000
115
- }
116
- }
117
- }
118
- ]
119
- },
120
- "target": {
121
- "description": "The target location to drop the element.",
122
- "anyOf": [
123
- {
124
- "title": "Element (simple)",
125
- "type": "string",
126
- "description": "Display text, selector, or regex pattern (enclosed in forward slashes) of the element."
127
- },
128
- {
129
- "title": "Element (detailed)",
130
- "type": "object",
131
- "anyOf": [
132
- {
133
- "required": [
134
- "selector"
135
- ]
136
- },
137
- {
138
- "required": [
139
- "elementText"
140
- ]
141
- },
142
- {
143
- "required": [
144
- "elementId"
145
- ]
146
- },
147
- {
148
- "required": [
149
- "elementTestId"
150
- ]
151
- },
152
- {
153
- "required": [
154
- "elementClass"
155
- ]
156
- },
157
- {
158
- "required": [
159
- "elementAttribute"
160
- ]
161
- },
162
- {
163
- "required": [
164
- "elementAria"
165
- ]
166
- }
167
- ],
168
- "properties": {
169
- "elementText": {
170
- "type": "string",
171
- "description": "Display text or regex pattern (enclosed in forward slashes) of the element. If combined with `selector`, the element must match both the text and the selector."
172
- },
173
- "selector": {
174
- "type": "string",
175
- "description": "Selector of the element. If combined with `elementText`, the element must match both the text and the selector."
176
- },
177
- "elementId": {
178
- "type": "string",
179
- "description": "ID attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax."
180
- },
181
- "elementTestId": {
182
- "type": "string",
183
- "description": "data-testid attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax."
184
- },
185
- "elementClass": {
186
- "anyOf": [
187
- {
188
- "type": "string"
189
- },
190
- {
191
- "type": "array",
192
- "items": {
193
- "type": "string"
194
- }
195
- }
196
- ],
197
- "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."
198
- },
199
- "elementAttribute": {
200
- "type": "object",
201
- "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.",
202
- "additionalProperties": {
203
- "anyOf": [
204
- {
205
- "type": "string"
206
- },
207
- {
208
- "type": "number"
209
- },
210
- {
211
- "type": "boolean"
212
- }
213
- ]
214
- }
215
- },
216
- "elementAria": {
217
- "type": "string",
218
- "description": "Computed accessible name of the element per ARIA specification. Supports exact match or regex pattern using /pattern/ syntax."
219
- },
220
- "timeout": {
221
- "type": "integer",
222
- "description": "Max duration in milliseconds to wait for the element to exist.",
223
- "default": 5000
224
- }
225
- }
226
- }
227
- ]
228
- },
229
- "duration": {
230
- "type": "integer",
231
- "description": "Duration of the drag operation in milliseconds.",
232
- "default": 1000,
233
- "minimum": 0
234
- }
235
- },
236
- "components": {
237
- "schemas": {
238
- "elementSpecification": {
239
- "anyOf": [
240
- {
241
- "title": "Element (simple)",
242
- "type": "string",
243
- "description": "Display text, selector, or regex pattern (enclosed in forward slashes) of the element."
244
- },
245
- {
246
- "title": "Element (detailed)",
247
- "type": "object",
248
- "anyOf": [
249
- {
250
- "required": [
251
- "selector"
252
- ]
253
- },
254
- {
255
- "required": [
256
- "elementText"
257
- ]
258
- },
259
- {
260
- "required": [
261
- "elementId"
262
- ]
263
- },
264
- {
265
- "required": [
266
- "elementTestId"
267
- ]
268
- },
269
- {
270
- "required": [
271
- "elementClass"
272
- ]
273
- },
274
- {
275
- "required": [
276
- "elementAttribute"
277
- ]
278
- },
279
- {
280
- "required": [
281
- "elementAria"
282
- ]
283
- }
284
- ],
285
- "properties": {
286
- "elementText": {
287
- "type": "string",
288
- "description": "Display text or regex pattern (enclosed in forward slashes) of the element. If combined with `selector`, the element must match both the text and the selector."
289
- },
290
- "selector": {
291
- "type": "string",
292
- "description": "Selector of the element. If combined with `elementText`, the element must match both the text and the selector."
293
- },
294
- "elementId": {
295
- "type": "string",
296
- "description": "ID attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax."
297
- },
298
- "elementTestId": {
299
- "type": "string",
300
- "description": "data-testid attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax."
301
- },
302
- "elementClass": {
303
- "anyOf": [
304
- {
305
- "type": "string"
306
- },
307
- {
308
- "type": "array",
309
- "items": {
310
- "type": "string"
311
- }
312
- }
313
- ],
314
- "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."
315
- },
316
- "elementAttribute": {
317
- "type": "object",
318
- "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.",
319
- "additionalProperties": {
320
- "anyOf": [
321
- {
322
- "type": "string"
323
- },
324
- {
325
- "type": "number"
326
- },
327
- {
328
- "type": "boolean"
329
- }
330
- ]
331
- }
332
- },
333
- "elementAria": {
334
- "type": "string",
335
- "description": "Computed accessible name of the element per ARIA specification. Supports exact match or regex pattern using /pattern/ syntax."
336
- },
337
- "timeout": {
338
- "type": "integer",
339
- "description": "Max duration in milliseconds to wait for the element to exist.",
340
- "default": 5000
341
- }
342
- }
343
- }
344
- ]
345
- },
346
- "string": {
347
- "title": "Element (simple)",
348
- "type": "string",
349
- "description": "Display text, selector, or regex pattern (enclosed in forward slashes) of the element."
350
- },
351
- "object": {
352
- "title": "Element (detailed)",
353
- "type": "object",
354
- "anyOf": [
355
- {
356
- "required": [
357
- "selector"
358
- ]
359
- },
360
- {
361
- "required": [
362
- "elementText"
363
- ]
364
- },
365
- {
366
- "required": [
367
- "elementId"
368
- ]
369
- },
370
- {
371
- "required": [
372
- "elementTestId"
373
- ]
374
- },
375
- {
376
- "required": [
377
- "elementClass"
378
- ]
379
- },
380
- {
381
- "required": [
382
- "elementAttribute"
383
- ]
384
- },
385
- {
386
- "required": [
387
- "elementAria"
388
- ]
389
- }
390
- ],
391
- "properties": {
392
- "elementText": {
393
- "type": "string",
394
- "description": "Display text or regex pattern (enclosed in forward slashes) of the element. If combined with `selector`, the element must match both the text and the selector."
395
- },
396
- "selector": {
397
- "type": "string",
398
- "description": "Selector of the element. If combined with `elementText`, the element must match both the text and the selector."
399
- },
400
- "elementId": {
401
- "type": "string",
402
- "description": "ID attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax."
403
- },
404
- "elementTestId": {
405
- "type": "string",
406
- "description": "data-testid attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax."
407
- },
408
- "elementClass": {
409
- "anyOf": [
410
- {
411
- "type": "string"
412
- },
413
- {
414
- "type": "array",
415
- "items": {
416
- "type": "string"
417
- }
418
- }
419
- ],
420
- "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."
421
- },
422
- "elementAttribute": {
423
- "type": "object",
424
- "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.",
425
- "additionalProperties": {
426
- "anyOf": [
427
- {
428
- "type": "string"
429
- },
430
- {
431
- "type": "number"
432
- },
433
- {
434
- "type": "boolean"
435
- }
436
- ]
437
- }
438
- },
439
- "elementAria": {
440
- "type": "string",
441
- "description": "Computed accessible name of the element per ARIA specification. Supports exact match or regex pattern using /pattern/ syntax."
442
- },
443
- "timeout": {
444
- "type": "integer",
445
- "description": "Max duration in milliseconds to wait for the element to exist.",
446
- "default": 5000
447
- }
448
- }
449
- }
450
- }
451
- },
452
- "examples": [
453
- {
454
- "source": "Table",
455
- "target": "#canvas"
456
- },
457
- {
458
- "source": ".draggable-block",
459
- "target": ".drop-zone",
460
- "duration": 2000
461
- },
462
- {
463
- "source": {
464
- "selector": ".widget",
465
- "elementText": "Data Table"
466
- },
467
- "target": {
468
- "selector": "#design-canvas"
469
- },
470
- "duration": 500
471
- },
472
- {
473
- "source": {
474
- "selector": ".draggable",
475
- "timeout": 10000
476
- },
477
- "target": {
478
- "elementText": "Drop Zone",
479
- "timeout": 5000
480
- }
481
- },
482
- {
483
- "source": "/Widget Item.*/",
484
- "target": "#canvas"
485
- },
486
- {
487
- "source": {
488
- "selector": ".draggable",
489
- "elementText": "/Button [0-9]+/"
490
- },
491
- "target": {
492
- "elementText": "/Drop Zone.*/"
493
- }
494
- }
495
- ]
496
- }