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,374 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "title": "context",
4
- "type": "object",
5
- "description": "A context in which to perform tests. If no contexts are specified but a context is required by one or more tests, Doc Detective attempts to identify a supported context in the current environment and run tests against it. For example, if a browser isn't specified but is required by steps in the test, Doc Detective will search for and use a supported browser available in the current environment.",
6
- "additionalProperties": false,
7
- "dynamicDefaults": {
8
- "contextId": "uuid"
9
- },
10
- "properties": {
11
- "$schema": {
12
- "description": "JSON Schema for this object.",
13
- "type": "string",
14
- "enum": [
15
- "https://raw.githubusercontent.com/doc-detective/common/refs/heads/main/dist/schemas/context_v3.schema.json"
16
- ]
17
- },
18
- "contextId": {
19
- "type": "string",
20
- "description": "Unique identifier for the context."
21
- },
22
- "platforms": {
23
- "description": "Platforms to run tests on.",
24
- "anyOf": [
25
- {
26
- "type": "string",
27
- "enum": [
28
- "linux",
29
- "mac",
30
- "windows"
31
- ]
32
- },
33
- {
34
- "type": "array",
35
- "items": {
36
- "type": "string",
37
- "enum": [
38
- "linux",
39
- "mac",
40
- "windows"
41
- ]
42
- }
43
- }
44
- ]
45
- },
46
- "browsers": {
47
- "description": "Browsers to run tests on.",
48
- "anyOf": [
49
- {
50
- "type": "string",
51
- "description": "Name of the browser.",
52
- "enum": [
53
- "chrome",
54
- "firefox",
55
- "safari",
56
- "webkit"
57
- ],
58
- "$comment": "`safari` is just a shortcut for `webkit`. Included for visibility and to reduce questions."
59
- },
60
- {
61
- "type": "object",
62
- "description": "Browser configuration.",
63
- "required": [
64
- "name"
65
- ],
66
- "additionalProperties": false,
67
- "properties": {
68
- "name": {
69
- "type": "string",
70
- "description": "Name of the browser.",
71
- "enum": [
72
- "chrome",
73
- "firefox",
74
- "safari",
75
- "webkit"
76
- ],
77
- "$comment": "`safari` is just a shortcut for `webkit`. Included for visibility and to reduce questions."
78
- },
79
- "headless": {
80
- "type": "boolean",
81
- "description": "If `true`, runs the browser in headless mode.",
82
- "default": true
83
- },
84
- "window": {
85
- "type": "object",
86
- "description": "Browser dimensions.",
87
- "additionalProperties": false,
88
- "properties": {
89
- "width": {
90
- "type": "integer",
91
- "description": "Width of the browser window in pixels."
92
- },
93
- "height": {
94
- "type": "integer",
95
- "description": "Height of the browser window in pixels."
96
- }
97
- },
98
- "title": "Browser Window"
99
- },
100
- "viewport": {
101
- "type": "object",
102
- "description": "Viewport dimensions.",
103
- "additionalProperties": false,
104
- "properties": {
105
- "width": {
106
- "type": "integer",
107
- "description": "Width of the viewport in pixels."
108
- },
109
- "height": {
110
- "type": "integer",
111
- "description": "Height of the viewport in pixels."
112
- }
113
- },
114
- "title": "Browser Viewport"
115
- }
116
- },
117
- "title": "Browser"
118
- },
119
- {
120
- "type": "array",
121
- "items": {
122
- "anyOf": [
123
- {
124
- "type": "string",
125
- "description": "Name of the browser.",
126
- "enum": [
127
- "chrome",
128
- "firefox",
129
- "safari",
130
- "webkit"
131
- ],
132
- "$comment": "`safari` is just a shortcut for `webkit`. Included for visibility and to reduce questions."
133
- },
134
- {
135
- "type": "object",
136
- "description": "Browser configuration.",
137
- "required": [
138
- "name"
139
- ],
140
- "additionalProperties": false,
141
- "properties": {
142
- "name": {
143
- "type": "string",
144
- "description": "Name of the browser.",
145
- "enum": [
146
- "chrome",
147
- "firefox",
148
- "safari",
149
- "webkit"
150
- ],
151
- "$comment": "`safari` is just a shortcut for `webkit`. Included for visibility and to reduce questions."
152
- },
153
- "headless": {
154
- "type": "boolean",
155
- "description": "If `true`, runs the browser in headless mode.",
156
- "default": true
157
- },
158
- "window": {
159
- "type": "object",
160
- "description": "Browser dimensions.",
161
- "additionalProperties": false,
162
- "properties": {
163
- "width": {
164
- "type": "integer",
165
- "description": "Width of the browser window in pixels."
166
- },
167
- "height": {
168
- "type": "integer",
169
- "description": "Height of the browser window in pixels."
170
- }
171
- },
172
- "title": "Browser Window"
173
- },
174
- "viewport": {
175
- "type": "object",
176
- "description": "Viewport dimensions.",
177
- "additionalProperties": false,
178
- "properties": {
179
- "width": {
180
- "type": "integer",
181
- "description": "Width of the viewport in pixels."
182
- },
183
- "height": {
184
- "type": "integer",
185
- "description": "Height of the viewport in pixels."
186
- }
187
- },
188
- "title": "Browser Viewport"
189
- }
190
- },
191
- "title": "Browser"
192
- }
193
- ]
194
- }
195
- }
196
- ]
197
- }
198
- },
199
- "components": {
200
- "schemas": {
201
- "platform": {
202
- "type": "string",
203
- "enum": [
204
- "linux",
205
- "mac",
206
- "windows"
207
- ]
208
- },
209
- "browserName": {
210
- "type": "string",
211
- "description": "Name of the browser.",
212
- "enum": [
213
- "chrome",
214
- "firefox",
215
- "safari",
216
- "webkit"
217
- ],
218
- "$comment": "`safari` is just a shortcut for `webkit`. Included for visibility and to reduce questions."
219
- },
220
- "browser": {
221
- "type": "object",
222
- "description": "Browser configuration.",
223
- "required": [
224
- "name"
225
- ],
226
- "additionalProperties": false,
227
- "properties": {
228
- "name": {
229
- "type": "string",
230
- "description": "Name of the browser.",
231
- "enum": [
232
- "chrome",
233
- "firefox",
234
- "safari",
235
- "webkit"
236
- ],
237
- "$comment": "`safari` is just a shortcut for `webkit`. Included for visibility and to reduce questions."
238
- },
239
- "headless": {
240
- "type": "boolean",
241
- "description": "If `true`, runs the browser in headless mode.",
242
- "default": true
243
- },
244
- "window": {
245
- "type": "object",
246
- "description": "Browser dimensions.",
247
- "additionalProperties": false,
248
- "properties": {
249
- "width": {
250
- "type": "integer",
251
- "description": "Width of the browser window in pixels."
252
- },
253
- "height": {
254
- "type": "integer",
255
- "description": "Height of the browser window in pixels."
256
- }
257
- },
258
- "title": "Browser Window"
259
- },
260
- "viewport": {
261
- "type": "object",
262
- "description": "Viewport dimensions.",
263
- "additionalProperties": false,
264
- "properties": {
265
- "width": {
266
- "type": "integer",
267
- "description": "Width of the viewport in pixels."
268
- },
269
- "height": {
270
- "type": "integer",
271
- "description": "Height of the viewport in pixels."
272
- }
273
- },
274
- "title": "Browser Viewport"
275
- }
276
- },
277
- "title": "Browser"
278
- }
279
- }
280
- },
281
- "examples": [
282
- {
283
- "platforms": "linux",
284
- "browsers": "chrome"
285
- },
286
- {
287
- "platforms": [
288
- "windows",
289
- "mac",
290
- "linux"
291
- ],
292
- "browsers": [
293
- "chrome",
294
- "firefox",
295
- "webkit"
296
- ]
297
- },
298
- {
299
- "browsers": {
300
- "name": "chrome",
301
- "headless": true
302
- }
303
- },
304
- {
305
- "browsers": [
306
- {
307
- "name": "chrome",
308
- "headless": true
309
- },
310
- {
311
- "name": "firefox"
312
- }
313
- ]
314
- },
315
- {
316
- "platforms": [
317
- "mac",
318
- "linux"
319
- ],
320
- "browsers": {
321
- "name": "chrome",
322
- "headless": true
323
- }
324
- },
325
- {
326
- "platforms": [
327
- "windows",
328
- "mac",
329
- "linux"
330
- ],
331
- "browsers": [
332
- {
333
- "name": "chrome",
334
- "headless": true,
335
- "window": {
336
- "width": 1920,
337
- "height": 1080
338
- },
339
- "viewport": {
340
- "width": 1600,
341
- "height": 900
342
- }
343
- },
344
- {
345
- "name": "firefox",
346
- "window": {
347
- "width": 1366,
348
- "height": 768
349
- }
350
- },
351
- {
352
- "name": "webkit",
353
- "headless": false,
354
- "viewport": {
355
- "width": 1440,
356
- "height": 900
357
- }
358
- }
359
- ]
360
- },
361
- {
362
- "platforms": "mac",
363
- "browsers": [
364
- {
365
- "name": "safari",
366
- "window": {
367
- "width": 1280,
368
- "height": 800
369
- }
370
- }
371
- ]
372
- }
373
- ]
374
- }