doc-detective-common 4.0.0-beta.0-dev.4 → 4.0.0-beta.0-dev.5

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 (200) hide show
  1. package/package.json +1 -1
  2. package/.c8rc.json +0 -8
  3. package/.mocharc.yml +0 -1
  4. package/icon.png +0 -0
  5. package/scripts/check-coverage-ratchet.cjs +0 -123
  6. package/scripts/createCjsWrapper.js +0 -25
  7. package/scripts/generateTypes.cjs +0 -54
  8. package/src/detectTests.ts +0 -660
  9. package/src/index.ts +0 -3
  10. package/src/schemas/build/checkLink_v2.schema.json +0 -81
  11. package/src/schemas/build/checkLink_v3.schema.json +0 -92
  12. package/src/schemas/build/click_v3.schema.json +0 -145
  13. package/src/schemas/build/config_v2.schema.json +0 -1079
  14. package/src/schemas/build/config_v3.schema.json +0 -696
  15. package/src/schemas/build/context_v2.schema.json +0 -135
  16. package/src/schemas/build/context_v3.schema.json +0 -229
  17. package/src/schemas/build/dragAndDrop_v3.schema.json +0 -189
  18. package/src/schemas/build/find_v2.schema.json +0 -168
  19. package/src/schemas/build/find_v3.schema.json +0 -214
  20. package/src/schemas/build/goTo_v2.schema.json +0 -63
  21. package/src/schemas/build/goTo_v3.schema.json +0 -257
  22. package/src/schemas/build/httpRequest_v2.schema.json +0 -321
  23. package/src/schemas/build/httpRequest_v3.schema.json +0 -439
  24. package/src/schemas/build/loadCookie_v3.schema.json +0 -138
  25. package/src/schemas/build/loadVariables_v3.schema.json +0 -10
  26. package/src/schemas/build/moveTo_v2.schema.json +0 -99
  27. package/src/schemas/build/openApi_v2.schema.json +0 -76
  28. package/src/schemas/build/openApi_v3.schema.json +0 -161
  29. package/src/schemas/build/record_v3.schema.json +0 -70
  30. package/src/schemas/build/report_v3.schema.json +0 -53
  31. package/src/schemas/build/resolvedTests_v3.schema.json +0 -238
  32. package/src/schemas/build/runCode_v2.schema.json +0 -201
  33. package/src/schemas/build/runCode_v3.schema.json +0 -138
  34. package/src/schemas/build/runShell_v2.schema.json +0 -189
  35. package/src/schemas/build/runShell_v3.schema.json +0 -156
  36. package/src/schemas/build/saveCookie_v3.schema.json +0 -149
  37. package/src/schemas/build/saveScreenshot_v2.schema.json +0 -150
  38. package/src/schemas/build/screenshot_v3.schema.json +0 -250
  39. package/src/schemas/build/setVariables_v2.schema.json +0 -39
  40. package/src/schemas/build/sourceIntegration_v3.schema.json +0 -51
  41. package/src/schemas/build/spec_v2.schema.json +0 -199
  42. package/src/schemas/build/spec_v3.schema.json +0 -213
  43. package/src/schemas/build/startRecording_v2.schema.json +0 -57
  44. package/src/schemas/build/step_v3.schema.json +0 -669
  45. package/src/schemas/build/stopRecord_v3.schema.json +0 -13
  46. package/src/schemas/build/stopRecording_v2.schema.json +0 -33
  47. package/src/schemas/build/test_v2.schema.json +0 -244
  48. package/src/schemas/build/test_v3.schema.json +0 -292
  49. package/src/schemas/build/typeKeys_v2.schema.json +0 -72
  50. package/src/schemas/build/type_v3.schema.json +0 -131
  51. package/src/schemas/build/wait_v2.schema.json +0 -42
  52. package/src/schemas/build/wait_v3.schema.json +0 -37
  53. package/src/schemas/dereferenceSchemas.cjs +0 -208
  54. package/src/schemas/index.ts +0 -6
  55. package/src/schemas/output_schemas/analytics_v1.schema.json +0 -585
  56. package/src/schemas/output_schemas/checkLink_v1.schema.json +0 -42
  57. package/src/schemas/output_schemas/checkLink_v2.schema.json +0 -80
  58. package/src/schemas/output_schemas/checkLink_v3.schema.json +0 -145
  59. package/src/schemas/output_schemas/click_v1.schema.json +0 -60
  60. package/src/schemas/output_schemas/click_v3.schema.json +0 -252
  61. package/src/schemas/output_schemas/config_v2.schema.json +0 -2628
  62. package/src/schemas/output_schemas/config_v3.schema.json +0 -16470
  63. package/src/schemas/output_schemas/context_v2.schema.json +0 -134
  64. package/src/schemas/output_schemas/context_v3.schema.json +0 -374
  65. package/src/schemas/output_schemas/dragAndDrop_v3.schema.json +0 -496
  66. package/src/schemas/output_schemas/endRecord_v3.schema.json +0 -12
  67. package/src/schemas/output_schemas/find_v1.schema.json +0 -171
  68. package/src/schemas/output_schemas/find_v2.schema.json +0 -184
  69. package/src/schemas/output_schemas/find_v3.schema.json +0 -1349
  70. package/src/schemas/output_schemas/goTo_v1.schema.json +0 -30
  71. package/src/schemas/output_schemas/goTo_v2.schema.json +0 -62
  72. package/src/schemas/output_schemas/goTo_v3.schema.json +0 -419
  73. package/src/schemas/output_schemas/httpRequest_v1.schema.json +0 -115
  74. package/src/schemas/output_schemas/httpRequest_v2.schema.json +0 -392
  75. package/src/schemas/output_schemas/httpRequest_v3.schema.json +0 -994
  76. package/src/schemas/output_schemas/loadCookie_v3.schema.json +0 -228
  77. package/src/schemas/output_schemas/loadVariables_v3.schema.json +0 -9
  78. package/src/schemas/output_schemas/matchText_v1.schema.json +0 -32
  79. package/src/schemas/output_schemas/moveMouse_v1.schema.json +0 -60
  80. package/src/schemas/output_schemas/moveTo_v2.schema.json +0 -98
  81. package/src/schemas/output_schemas/openApi_v2.schema.json +0 -75
  82. package/src/schemas/output_schemas/openApi_v3.schema.json +0 -162
  83. package/src/schemas/output_schemas/record_v3.schema.json +0 -101
  84. package/src/schemas/output_schemas/report_v3.schema.json +0 -16826
  85. package/src/schemas/output_schemas/resolvedTests_v3.schema.json +0 -33331
  86. package/src/schemas/output_schemas/runCode_v2.schema.json +0 -200
  87. package/src/schemas/output_schemas/runCode_v3.schema.json +0 -222
  88. package/src/schemas/output_schemas/runShell_v1.schema.json +0 -35
  89. package/src/schemas/output_schemas/runShell_v2.schema.json +0 -188
  90. package/src/schemas/output_schemas/runShell_v3.schema.json +0 -236
  91. package/src/schemas/output_schemas/saveCookie_v3.schema.json +0 -245
  92. package/src/schemas/output_schemas/saveScreenshot_v2.schema.json +0 -149
  93. package/src/schemas/output_schemas/screenshot_v1.schema.json +0 -48
  94. package/src/schemas/output_schemas/screenshot_v3.schema.json +0 -681
  95. package/src/schemas/output_schemas/scroll_v1.schema.json +0 -50
  96. package/src/schemas/output_schemas/setVariables_v2.schema.json +0 -38
  97. package/src/schemas/output_schemas/sourceIntegration_v3.schema.json +0 -50
  98. package/src/schemas/output_schemas/spec_v2.schema.json +0 -2301
  99. package/src/schemas/output_schemas/spec_v3.schema.json +0 -16630
  100. package/src/schemas/output_schemas/startRecording_v1.schema.json +0 -55
  101. package/src/schemas/output_schemas/startRecording_v2.schema.json +0 -56
  102. package/src/schemas/output_schemas/step_v3.schema.json +0 -7317
  103. package/src/schemas/output_schemas/stopRecord_v3.schema.json +0 -12
  104. package/src/schemas/output_schemas/stopRecording_v1.schema.json +0 -20
  105. package/src/schemas/output_schemas/stopRecording_v2.schema.json +0 -32
  106. package/src/schemas/output_schemas/test_v2.schema.json +0 -1903
  107. package/src/schemas/output_schemas/test_v3.schema.json +0 -15863
  108. package/src/schemas/output_schemas/typeKeys_v2.schema.json +0 -71
  109. package/src/schemas/output_schemas/type_v1.schema.json +0 -62
  110. package/src/schemas/output_schemas/type_v3.schema.json +0 -244
  111. package/src/schemas/output_schemas/wait_v1.schema.json +0 -42
  112. package/src/schemas/output_schemas/wait_v2.schema.json +0 -41
  113. package/src/schemas/output_schemas/wait_v3.schema.json +0 -41
  114. package/src/schemas/schemas.json +0 -121331
  115. package/src/schemas/src_schemas/analytics_v1.schema.json +0 -585
  116. package/src/schemas/src_schemas/checkLink_v1.schema.json +0 -42
  117. package/src/schemas/src_schemas/checkLink_v2.schema.json +0 -65
  118. package/src/schemas/src_schemas/checkLink_v3.schema.json +0 -91
  119. package/src/schemas/src_schemas/click_v1.schema.json +0 -60
  120. package/src/schemas/src_schemas/click_v3.schema.json +0 -144
  121. package/src/schemas/src_schemas/config_v2.schema.json +0 -929
  122. package/src/schemas/src_schemas/config_v3.schema.json +0 -633
  123. package/src/schemas/src_schemas/context_v2.schema.json +0 -108
  124. package/src/schemas/src_schemas/context_v3.schema.json +0 -202
  125. package/src/schemas/src_schemas/dragAndDrop_v3.schema.json +0 -185
  126. package/src/schemas/src_schemas/find_v1.schema.json +0 -137
  127. package/src/schemas/src_schemas/find_v2.schema.json +0 -155
  128. package/src/schemas/src_schemas/find_v3.schema.json +0 -210
  129. package/src/schemas/src_schemas/goTo_v1.schema.json +0 -30
  130. package/src/schemas/src_schemas/goTo_v2.schema.json +0 -58
  131. package/src/schemas/src_schemas/goTo_v3.schema.json +0 -232
  132. package/src/schemas/src_schemas/httpRequest_v1.schema.json +0 -115
  133. package/src/schemas/src_schemas/httpRequest_v2.schema.json +0 -284
  134. package/src/schemas/src_schemas/httpRequest_v3.schema.json +0 -402
  135. package/src/schemas/src_schemas/loadCookie_v3.schema.json +0 -113
  136. package/src/schemas/src_schemas/loadVariables_v3.schema.json +0 -9
  137. package/src/schemas/src_schemas/matchText_v1.schema.json +0 -32
  138. package/src/schemas/src_schemas/moveMouse_v1.schema.json +0 -60
  139. package/src/schemas/src_schemas/moveTo_v2.schema.json +0 -89
  140. package/src/schemas/src_schemas/openApi_v2.schema.json +0 -64
  141. package/src/schemas/src_schemas/openApi_v3.schema.json +0 -161
  142. package/src/schemas/src_schemas/record_v3.schema.json +0 -69
  143. package/src/schemas/src_schemas/report_v3.schema.json +0 -52
  144. package/src/schemas/src_schemas/resolvedTests_v3.schema.json +0 -237
  145. package/src/schemas/src_schemas/runCode_v2.schema.json +0 -181
  146. package/src/schemas/src_schemas/runCode_v3.schema.json +0 -137
  147. package/src/schemas/src_schemas/runShell_v1.schema.json +0 -35
  148. package/src/schemas/src_schemas/runShell_v2.schema.json +0 -166
  149. package/src/schemas/src_schemas/runShell_v3.schema.json +0 -155
  150. package/src/schemas/src_schemas/saveCookie_v3.schema.json +0 -124
  151. package/src/schemas/src_schemas/saveScreenshot_v2.schema.json +0 -129
  152. package/src/schemas/src_schemas/screenshot_v1.schema.json +0 -48
  153. package/src/schemas/src_schemas/screenshot_v3.schema.json +0 -249
  154. package/src/schemas/src_schemas/scroll_v1.schema.json +0 -50
  155. package/src/schemas/src_schemas/setVariables_v2.schema.json +0 -38
  156. package/src/schemas/src_schemas/sourceIntegration_v3.schema.json +0 -45
  157. package/src/schemas/src_schemas/spec_v2.schema.json +0 -175
  158. package/src/schemas/src_schemas/spec_v3.schema.json +0 -212
  159. package/src/schemas/src_schemas/startRecording_v1.schema.json +0 -55
  160. package/src/schemas/src_schemas/startRecording_v2.schema.json +0 -54
  161. package/src/schemas/src_schemas/step_v3.schema.json +0 -632
  162. package/src/schemas/src_schemas/stopRecord_v3.schema.json +0 -9
  163. package/src/schemas/src_schemas/stopRecording_v1.schema.json +0 -20
  164. package/src/schemas/src_schemas/stopRecording_v2.schema.json +0 -32
  165. package/src/schemas/src_schemas/test_v2.schema.json +0 -200
  166. package/src/schemas/src_schemas/test_v3.schema.json +0 -268
  167. package/src/schemas/src_schemas/typeKeys_v2.schema.json +0 -63
  168. package/src/schemas/src_schemas/type_v1.schema.json +0 -62
  169. package/src/schemas/src_schemas/type_v3.schema.json +0 -118
  170. package/src/schemas/src_schemas/wait_v1.schema.json +0 -42
  171. package/src/schemas/src_schemas/wait_v2.schema.json +0 -41
  172. package/src/schemas/src_schemas/wait_v3.schema.json +0 -36
  173. package/src/types/generated/checkLink_v3.ts +0 -29
  174. package/src/types/generated/click_v3.ts +0 -17
  175. package/src/types/generated/config_v3.ts +0 -405
  176. package/src/types/generated/context_v3.ts +0 -112
  177. package/src/types/generated/dragAndDrop_v3.ts +0 -39
  178. package/src/types/generated/endRecord_v3.ts +0 -10
  179. package/src/types/generated/find_v3.ts +0 -17
  180. package/src/types/generated/goTo_v3.ts +0 -48
  181. package/src/types/generated/httpRequest_v3.ts +0 -17
  182. package/src/types/generated/loadCookie_v3.ts +0 -17
  183. package/src/types/generated/loadVariables_v3.ts +0 -10
  184. package/src/types/generated/openApi_v3.ts +0 -64
  185. package/src/types/generated/record_v3.ts +0 -34
  186. package/src/types/generated/report_v3.ts +0 -183
  187. package/src/types/generated/resolvedTests_v3.ts +0 -585
  188. package/src/types/generated/runCode_v3.ts +0 -59
  189. package/src/types/generated/runShell_v3.ts +0 -58
  190. package/src/types/generated/saveCookie_v3.ts +0 -17
  191. package/src/types/generated/screenshot_v3.ts +0 -76
  192. package/src/types/generated/sourceIntegration_v3.ts +0 -31
  193. package/src/types/generated/spec_v3.ts +0 -166
  194. package/src/types/generated/step_v3.ts +0 -1288
  195. package/src/types/generated/stopRecord_v3.ts +0 -10
  196. package/src/types/generated/test_v3.ts +0 -3048
  197. package/src/types/generated/type_v3.ts +0 -56
  198. package/src/types/generated/wait_v3.ts +0 -13
  199. package/src/validate.ts +0 -627
  200. package/tsconfig.json +0 -22
@@ -1,669 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "title": "step",
4
- "description": "A step in a test.",
5
- "type": "object",
6
- "components": {
7
- "schemas": {
8
- "common": {
9
- "type": "object",
10
- "dynamicDefaults": {
11
- "stepId": "uuid"
12
- },
13
- "properties": {
14
- "$schema": {
15
- "$ref": "#/components/schemas/$schema"
16
- },
17
- "stepId": {
18
- "$ref": "#/components/schemas/stepId"
19
- },
20
- "description": {
21
- "$ref": "#/components/schemas/description"
22
- },
23
- "unsafe": {
24
- "$ref": "#/components/schemas/unsafe"
25
- },
26
- "outputs": {
27
- "$ref": "#/components/schemas/outputs"
28
- },
29
- "variables": {
30
- "$ref": "#/components/schemas/variables"
31
- },
32
- "breakpoint": {
33
- "$ref": "#/components/schemas/breakpoint"
34
- }
35
- },
36
- "title": "Common"
37
- },
38
- "$schema": {
39
- "description": "JSON Schema for this object.",
40
- "type": "string",
41
- "enum": [
42
- "https://raw.githubusercontent.com/doc-detective/common/refs/heads/main/dist/schemas/step_v3.schema.json"
43
- ]
44
- },
45
- "stepId": {
46
- "type": "string",
47
- "description": "ID of the step."
48
- },
49
- "description": {
50
- "type": "string",
51
- "description": "Description of the step."
52
- },
53
- "unsafe": {
54
- "type": "boolean",
55
- "description": "Whether or not the step may be unsafe. Unsafe steps may perform actions that could modify the system or environment in unexpected ways. Unsafe steps are only performed within Docker containers or if unsafe steps are enabled with the `allowUnsafeSteps` config property or the `--allow-unsafe` flag.",
56
- "default": false
57
- },
58
- "outputs": {
59
- "type": "object",
60
- "description": "Outputs from step processes and user-defined expressions. Use the `outputs` object to reference outputs in subsequent steps. If a user-defined output matches the key for a step-defined output, the user-defined output takes precedence.",
61
- "default": {},
62
- "patternProperties": {
63
- "^[A-Za-z0-9_]+$": {
64
- "type": "string",
65
- "description": "Runtime expression for a user-defined output value."
66
- }
67
- },
68
- "title": "Outputs (step)"
69
- },
70
- "variables": {
71
- "type": "object",
72
- "description": "Environment variables to set from user-defined expressions.",
73
- "default": {},
74
- "patternProperties": {
75
- "^[A-Za-z0-9_]+$": {
76
- "type": "string",
77
- "description": "Runtime expression for a user-defined output value."
78
- }
79
- },
80
- "title": "Variables (step)"
81
- },
82
- "breakpoint": {
83
- "type": "boolean",
84
- "description": "Whether or not this step should act as a breakpoint when debugging is enabled. When `true`, execution will pause at this step when debug mode is enabled.",
85
- "default": false
86
- }
87
- }
88
- },
89
- "anyOf": [
90
- {
91
- "allOf": [
92
- {
93
- "$ref": "#/components/schemas/common"
94
- },
95
- {
96
- "type": "object",
97
- "required": [
98
- "checkLink"
99
- ],
100
- "properties": {
101
- "checkLink": {
102
- "$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/checkLink_v3.schema.json#"
103
- }
104
- },
105
- "title": "checkLink"
106
- }
107
- ]
108
- },
109
- {
110
- "allOf": [
111
- {
112
- "$ref": "#/components/schemas/common"
113
- },
114
- {
115
- "type": "object",
116
- "required": [
117
- "click"
118
- ],
119
- "properties": {
120
- "click": {
121
- "$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/click_v3.schema.json#"
122
- }
123
- },
124
- "title": "click"
125
- }
126
- ]
127
- },
128
- {
129
- "allOf": [
130
- {
131
- "$ref": "#/components/schemas/common"
132
- },
133
- {
134
- "type": "object",
135
- "required": [
136
- "find"
137
- ],
138
- "properties": {
139
- "find": {
140
- "$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/find_v3.schema.json#"
141
- }
142
- },
143
- "title": "find"
144
- }
145
- ]
146
- },
147
- {
148
- "allOf": [
149
- {
150
- "$ref": "#/components/schemas/common"
151
- },
152
- {
153
- "type": "object",
154
- "required": [
155
- "goTo"
156
- ],
157
- "properties": {
158
- "goTo": {
159
- "$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/goTo_v3.schema.json#"
160
- }
161
- },
162
- "title": "goTo"
163
- }
164
- ]
165
- },
166
- {
167
- "allOf": [
168
- {
169
- "$ref": "#/components/schemas/common"
170
- },
171
- {
172
- "type": "object",
173
- "required": [
174
- "httpRequest"
175
- ],
176
- "properties": {
177
- "httpRequest": {
178
- "$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/httpRequest_v3.schema.json#"
179
- }
180
- },
181
- "title": "httpRequest"
182
- }
183
- ]
184
- },
185
- {
186
- "allOf": [
187
- {
188
- "$ref": "#/components/schemas/common"
189
- },
190
- {
191
- "type": "object",
192
- "required": [
193
- "runShell"
194
- ],
195
- "properties": {
196
- "runShell": {
197
- "$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/runShell_v3.schema.json#"
198
- }
199
- },
200
- "title": "runShell"
201
- }
202
- ]
203
- },
204
- {
205
- "allOf": [
206
- {
207
- "$ref": "#/components/schemas/common"
208
- },
209
- {
210
- "type": "object",
211
- "required": [
212
- "runCode"
213
- ],
214
- "properties": {
215
- "runCode": {
216
- "$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/runCode_v3.schema.json#"
217
- }
218
- },
219
- "title": "runCode"
220
- }
221
- ]
222
- },
223
- {
224
- "allOf": [
225
- {
226
- "$ref": "#/components/schemas/common"
227
- },
228
- {
229
- "type": "object",
230
- "required": [
231
- "type"
232
- ],
233
- "properties": {
234
- "type": {
235
- "$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/type_v3.schema.json#"
236
- }
237
- },
238
- "title": "type"
239
- }
240
- ]
241
- },
242
- {
243
- "allOf": [
244
- {
245
- "$ref": "#/components/schemas/common"
246
- },
247
- {
248
- "type": "object",
249
- "required": [
250
- "screenshot"
251
- ],
252
- "properties": {
253
- "screenshot": {
254
- "$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/screenshot_v3.schema.json#"
255
- }
256
- },
257
- "title": "screenshot"
258
- }
259
- ]
260
- },
261
- {
262
- "allOf": [
263
- {
264
- "$ref": "#/components/schemas/common"
265
- },
266
- {
267
- "type": "object",
268
- "required": [
269
- "saveCookie"
270
- ],
271
- "properties": {
272
- "saveCookie": {
273
- "$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/saveCookie_v3.schema.json#"
274
- }
275
- },
276
- "title": "saveCookie"
277
- }
278
- ]
279
- },
280
- {
281
- "allOf": [
282
- {
283
- "$ref": "#/components/schemas/common"
284
- },
285
- {
286
- "type": "object",
287
- "required": [
288
- "record"
289
- ],
290
- "properties": {
291
- "record": {
292
- "$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/record_v3.schema.json#"
293
- }
294
- },
295
- "title": "record"
296
- }
297
- ]
298
- },
299
- {
300
- "allOf": [
301
- {
302
- "$ref": "#/components/schemas/common"
303
- },
304
- {
305
- "type": "object",
306
- "required": [
307
- "stopRecord"
308
- ],
309
- "properties": {
310
- "stopRecord": {
311
- "$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/stopRecord_v3.schema.json#"
312
- }
313
- },
314
- "title": "stopRecord"
315
- }
316
- ]
317
- },
318
- {
319
- "allOf": [
320
- {
321
- "$ref": "#/components/schemas/common"
322
- },
323
- {
324
- "title": "loadVariables",
325
- "type": "object",
326
- "required": [
327
- "loadVariables"
328
- ],
329
- "properties": {
330
- "loadVariables": {
331
- "$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/loadVariables_v3.schema.json#"
332
- }
333
- }
334
- }
335
- ]
336
- },
337
- {
338
- "allOf": [
339
- {
340
- "$ref": "#/components/schemas/common"
341
- },
342
- {
343
- "title": "dragAndDrop",
344
- "type": "object",
345
- "required": [
346
- "dragAndDrop"
347
- ],
348
- "properties": {
349
- "dragAndDrop": {
350
- "$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/dragAndDrop_v3.schema.json#"
351
- }
352
- }
353
- }
354
- ]
355
- },
356
- {
357
- "allOf": [
358
- {
359
- "$ref": "#/components/schemas/common"
360
- },
361
- {
362
- "title": "loadCookie",
363
- "type": "object",
364
- "required": [
365
- "loadCookie"
366
- ],
367
- "properties": {
368
- "loadCookie": {
369
- "$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/loadCookie_v3.schema.json#"
370
- }
371
- }
372
- }
373
- ]
374
- },
375
- {
376
- "allOf": [
377
- {
378
- "$ref": "#/components/schemas/common"
379
- },
380
- {
381
- "title": "wait",
382
- "type": "object",
383
- "required": [
384
- "wait"
385
- ],
386
- "properties": {
387
- "wait": {
388
- "$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/wait_v3.schema.json#"
389
- }
390
- }
391
- }
392
- ]
393
- }
394
- ],
395
- "examples": [
396
- {
397
- "stepId": "uuid",
398
- "description": "Description of the step.",
399
- "checkLink": "https://www.google.com",
400
- "outputs": {
401
- "outputKey": "outputValue"
402
- },
403
- "variables": {
404
- "variableKey": "variableValue"
405
- }
406
- },
407
- {
408
- "checkLink": "https://www.google.com"
409
- },
410
- {
411
- "stepId": "path-only",
412
- "checkLink": "/search"
413
- },
414
- {
415
- "stepId": "status-code",
416
- "checkLink": {
417
- "url": "https://www.google.com",
418
- "statusCodes": [
419
- 200
420
- ]
421
- }
422
- },
423
- {
424
- "goTo": {
425
- "url": "https://www.google.com"
426
- }
427
- },
428
- {
429
- "goTo": "https://www.google.com"
430
- },
431
- {
432
- "wait": 5000
433
- },
434
- {
435
- "runCode": {
436
- "language": "python",
437
- "code": "print('Hello from Python')",
438
- "workingDirectory": ".",
439
- "exitCodes": [
440
- 0
441
- ],
442
- "stdio": "Hello from Python!",
443
- "path": "python-output.txt",
444
- "directory": "output",
445
- "maxVariation": 0.1,
446
- "overwrite": "aboveVariation"
447
- }
448
- },
449
- {
450
- "stopRecord": true
451
- },
452
- {
453
- "screenshot": true
454
- },
455
- {
456
- "screenshot": "image.png"
457
- },
458
- {
459
- "screenshot": "static/images/image.png"
460
- },
461
- {
462
- "screenshot": "/User/manny/projects/doc-detective/static/images/image.png"
463
- },
464
- {
465
- "screenshot": {
466
- "path": "image.png",
467
- "directory": "static/images",
468
- "maxVariation": 0.1,
469
- "overwrite": "aboveVariation",
470
- "crop": "#elementToScreenshot"
471
- }
472
- },
473
- {
474
- "screenshot": {
475
- "path": "image.png",
476
- "directory": "static/images",
477
- "maxVariation": 0.1,
478
- "overwrite": "aboveVariation"
479
- }
480
- },
481
- {
482
- "screenshot": {
483
- "path": "image.png",
484
- "directory": "static/images",
485
- "maxVariation": 0.1,
486
- "overwrite": "aboveVariation",
487
- "crop": {
488
- "selector": "#elementToScreenshot",
489
- "elementText": "Element text",
490
- "padding": {
491
- "top": 0,
492
- "right": 0,
493
- "bottom": 0,
494
- "left": 0
495
- }
496
- }
497
- }
498
- },
499
- {
500
- "record": true
501
- },
502
- {
503
- "record": "video.mp4"
504
- },
505
- {
506
- "record": "static/media/video.mp4"
507
- },
508
- {
509
- "record": "/User/manny/projects/doc-detective/static/media/video.mp4"
510
- },
511
- {
512
- "record": {
513
- "path": "video.mp4",
514
- "directory": "static/media",
515
- "overwrite": true
516
- }
517
- },
518
- {
519
- "loadVariables": "variables.env"
520
- },
521
- {
522
- "saveCookie": "session_token"
523
- },
524
- {
525
- "saveCookie": {
526
- "name": "auth_cookie",
527
- "path": "auth-session.txt",
528
- "directory": "./test-data",
529
- "overwrite": true
530
- }
531
- },
532
- {
533
- "loadCookie": "session_token"
534
- },
535
- {
536
- "loadCookie": {
537
- "name": "auth_cookie",
538
- "path": "auth-session.txt",
539
- "directory": "./test-data"
540
- }
541
- },
542
- {
543
- "find": {
544
- "$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/find_v3.schema.json#/examples/0"
545
- }
546
- },
547
- {
548
- "find": {
549
- "$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/find_v3.schema.json#/examples/1"
550
- }
551
- },
552
- {
553
- "find": {
554
- "$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/find_v3.schema.json#/examples/2"
555
- }
556
- },
557
- {
558
- "find": {
559
- "$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/find_v3.schema.json#/examples/3"
560
- }
561
- },
562
- {
563
- "find": {
564
- "$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/find_v3.schema.json#/examples/4"
565
- }
566
- },
567
- {
568
- "click": {
569
- "$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/click_v3.schema.json#/examples/0"
570
- }
571
- },
572
- {
573
- "click": {
574
- "$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/click_v3.schema.json#/examples/1"
575
- }
576
- },
577
- {
578
- "click": {
579
- "$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/click_v3.schema.json#/examples/2"
580
- }
581
- },
582
- {
583
- "click": {
584
- "$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/click_v3.schema.json#/examples/3"
585
- }
586
- },
587
- {
588
- "httpRequest": {
589
- "$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/httpRequest_v3.schema.json#/examples/0"
590
- }
591
- },
592
- {
593
- "httpRequest": {
594
- "$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/httpRequest_v3.schema.json#/examples/1"
595
- }
596
- },
597
- {
598
- "httpRequest": {
599
- "$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/httpRequest_v3.schema.json#/examples/2"
600
- }
601
- },
602
- {
603
- "httpRequest": {
604
- "$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/httpRequest_v3.schema.json#/examples/3"
605
- }
606
- },
607
- {
608
- "httpRequest": {
609
- "$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/httpRequest_v3.schema.json#/examples/4"
610
- }
611
- },
612
- {
613
- "httpRequest": {
614
- "$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/httpRequest_v3.schema.json#/examples/5"
615
- }
616
- },
617
- {
618
- "httpRequest": {
619
- "$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/httpRequest_v3.schema.json#/examples/6"
620
- }
621
- },
622
- {
623
- "httpRequest": {
624
- "$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/httpRequest_v3.schema.json#/examples/7"
625
- }
626
- },
627
- {
628
- "httpRequest": {
629
- "$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/httpRequest_v3.schema.json#/examples/8"
630
- }
631
- },
632
- {
633
- "httpRequest": {
634
- "$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/httpRequest_v3.schema.json#/examples/9"
635
- }
636
- },
637
- {
638
- "httpRequest": {
639
- "$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/httpRequest_v3.schema.json#/examples/10"
640
- }
641
- },
642
- {
643
- "httpRequest": {
644
- "$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/httpRequest_v3.schema.json#/examples/11"
645
- }
646
- },
647
- {
648
- "stepId": "breakpoint-example",
649
- "description": "Step with breakpoint enabled",
650
- "goTo": "https://www.example.com",
651
- "breakpoint": true
652
- },
653
- {
654
- "checkLink": "https://www.google.com",
655
- "breakpoint": false
656
- },
657
- {
658
- "dragAndDrop": {
659
- "source": {
660
- "selector": "#sourceElement"
661
- },
662
- "target": {
663
- "selector": "#targetElement"
664
- }
665
- }
666
- }
667
- ],
668
- "$id": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/src_schemas/step_v3.schema.json"
669
- }
@@ -1,13 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "title": "stopRecord",
4
- "description": "Stop the current recording.",
5
- "type": [
6
- "boolean",
7
- "null"
8
- ],
9
- "examples": [
10
- true
11
- ],
12
- "$id": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/src_schemas/stopRecord_v3.schema.json"
13
- }