doc-detective 4.0.1-dev.2 → 4.0.1-dev.3

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 (130) hide show
  1. package/dist/common/src/detectTests.d.ts +101 -0
  2. package/dist/common/src/detectTests.d.ts.map +1 -0
  3. package/dist/common/src/detectTests.js +662 -0
  4. package/dist/common/src/detectTests.js.map +1 -0
  5. package/dist/common/src/fileTypes.d.ts +35 -0
  6. package/dist/common/src/fileTypes.d.ts.map +1 -0
  7. package/dist/common/src/fileTypes.js +293 -0
  8. package/dist/common/src/fileTypes.js.map +1 -0
  9. package/dist/common/src/index.d.ts +10 -0
  10. package/dist/common/src/index.d.ts.map +1 -0
  11. package/dist/common/src/index.js +5 -0
  12. package/dist/common/src/index.js.map +1 -0
  13. package/dist/common/src/schemas/index.d.ts +5 -0
  14. package/dist/common/src/schemas/index.d.ts.map +1 -0
  15. package/dist/common/src/schemas/index.js +3 -0
  16. package/dist/common/src/schemas/index.js.map +1 -0
  17. package/dist/common/src/schemas/schemas.json +128117 -0
  18. package/dist/common/src/types/generated/checkLink_v3.d.ts +27 -0
  19. package/dist/common/src/types/generated/checkLink_v3.d.ts.map +1 -0
  20. package/dist/common/src/types/generated/checkLink_v3.js +7 -0
  21. package/dist/common/src/types/generated/checkLink_v3.js.map +1 -0
  22. package/dist/common/src/types/generated/click_v3.d.ts +16 -0
  23. package/dist/common/src/types/generated/click_v3.d.ts.map +1 -0
  24. package/dist/common/src/types/generated/click_v3.js +7 -0
  25. package/dist/common/src/types/generated/click_v3.js.map +1 -0
  26. package/dist/common/src/types/generated/config_v3.d.ts +398 -0
  27. package/dist/common/src/types/generated/config_v3.d.ts.map +1 -0
  28. package/dist/common/src/types/generated/config_v3.js +7 -0
  29. package/dist/common/src/types/generated/config_v3.js.map +1 -0
  30. package/dist/common/src/types/generated/context_v3.d.ts +108 -0
  31. package/dist/common/src/types/generated/context_v3.d.ts.map +1 -0
  32. package/dist/common/src/types/generated/context_v3.js +7 -0
  33. package/dist/common/src/types/generated/context_v3.js.map +1 -0
  34. package/dist/common/src/types/generated/dragAndDrop_v3.d.ts +37 -0
  35. package/dist/common/src/types/generated/dragAndDrop_v3.d.ts.map +1 -0
  36. package/dist/common/src/types/generated/dragAndDrop_v3.js +7 -0
  37. package/dist/common/src/types/generated/dragAndDrop_v3.js.map +1 -0
  38. package/dist/common/src/types/generated/endRecord_v3.d.ts +9 -0
  39. package/dist/common/src/types/generated/endRecord_v3.d.ts.map +1 -0
  40. package/dist/common/src/types/generated/endRecord_v3.js +7 -0
  41. package/dist/common/src/types/generated/endRecord_v3.js.map +1 -0
  42. package/dist/common/src/types/generated/find_v3.d.ts +16 -0
  43. package/dist/common/src/types/generated/find_v3.d.ts.map +1 -0
  44. package/dist/common/src/types/generated/find_v3.js +7 -0
  45. package/dist/common/src/types/generated/find_v3.js.map +1 -0
  46. package/dist/common/src/types/generated/goTo_v3.d.ts +46 -0
  47. package/dist/common/src/types/generated/goTo_v3.d.ts.map +1 -0
  48. package/dist/common/src/types/generated/goTo_v3.js +7 -0
  49. package/dist/common/src/types/generated/goTo_v3.js.map +1 -0
  50. package/dist/common/src/types/generated/httpRequest_v3.d.ts +16 -0
  51. package/dist/common/src/types/generated/httpRequest_v3.d.ts.map +1 -0
  52. package/dist/common/src/types/generated/httpRequest_v3.js +7 -0
  53. package/dist/common/src/types/generated/httpRequest_v3.js.map +1 -0
  54. package/dist/common/src/types/generated/loadCookie_v3.d.ts +16 -0
  55. package/dist/common/src/types/generated/loadCookie_v3.d.ts.map +1 -0
  56. package/dist/common/src/types/generated/loadCookie_v3.js +7 -0
  57. package/dist/common/src/types/generated/loadCookie_v3.js.map +1 -0
  58. package/dist/common/src/types/generated/loadVariables_v3.d.ts +9 -0
  59. package/dist/common/src/types/generated/loadVariables_v3.d.ts.map +1 -0
  60. package/dist/common/src/types/generated/loadVariables_v3.js +7 -0
  61. package/dist/common/src/types/generated/loadVariables_v3.js.map +1 -0
  62. package/dist/common/src/types/generated/openApi_v3.d.ts +62 -0
  63. package/dist/common/src/types/generated/openApi_v3.d.ts.map +1 -0
  64. package/dist/common/src/types/generated/openApi_v3.js +7 -0
  65. package/dist/common/src/types/generated/openApi_v3.js.map +1 -0
  66. package/dist/common/src/types/generated/record_v3.d.ts +32 -0
  67. package/dist/common/src/types/generated/record_v3.d.ts.map +1 -0
  68. package/dist/common/src/types/generated/record_v3.js +7 -0
  69. package/dist/common/src/types/generated/record_v3.js.map +1 -0
  70. package/dist/common/src/types/generated/report_v3.d.ts +174 -0
  71. package/dist/common/src/types/generated/report_v3.d.ts.map +1 -0
  72. package/dist/common/src/types/generated/report_v3.js +7 -0
  73. package/dist/common/src/types/generated/report_v3.js.map +1 -0
  74. package/dist/common/src/types/generated/resolvedTests_v3.d.ts +571 -0
  75. package/dist/common/src/types/generated/resolvedTests_v3.d.ts.map +1 -0
  76. package/dist/common/src/types/generated/resolvedTests_v3.js +7 -0
  77. package/dist/common/src/types/generated/resolvedTests_v3.js.map +1 -0
  78. package/dist/common/src/types/generated/runCode_v3.d.ts +57 -0
  79. package/dist/common/src/types/generated/runCode_v3.d.ts.map +1 -0
  80. package/dist/common/src/types/generated/runCode_v3.js +7 -0
  81. package/dist/common/src/types/generated/runCode_v3.js.map +1 -0
  82. package/dist/common/src/types/generated/runShell_v3.d.ts +56 -0
  83. package/dist/common/src/types/generated/runShell_v3.d.ts.map +1 -0
  84. package/dist/common/src/types/generated/runShell_v3.js +7 -0
  85. package/dist/common/src/types/generated/runShell_v3.js.map +1 -0
  86. package/dist/common/src/types/generated/saveCookie_v3.d.ts +16 -0
  87. package/dist/common/src/types/generated/saveCookie_v3.d.ts.map +1 -0
  88. package/dist/common/src/types/generated/saveCookie_v3.js +7 -0
  89. package/dist/common/src/types/generated/saveCookie_v3.js.map +1 -0
  90. package/dist/common/src/types/generated/screenshot_v3.d.ts +74 -0
  91. package/dist/common/src/types/generated/screenshot_v3.d.ts.map +1 -0
  92. package/dist/common/src/types/generated/screenshot_v3.js +7 -0
  93. package/dist/common/src/types/generated/screenshot_v3.js.map +1 -0
  94. package/dist/common/src/types/generated/sourceIntegration_v3.d.ts +30 -0
  95. package/dist/common/src/types/generated/sourceIntegration_v3.d.ts.map +1 -0
  96. package/dist/common/src/types/generated/sourceIntegration_v3.js +7 -0
  97. package/dist/common/src/types/generated/sourceIntegration_v3.js.map +1 -0
  98. package/dist/common/src/types/generated/spec_v3.d.ts +159 -0
  99. package/dist/common/src/types/generated/spec_v3.d.ts.map +1 -0
  100. package/dist/common/src/types/generated/spec_v3.js +7 -0
  101. package/dist/common/src/types/generated/spec_v3.js.map +1 -0
  102. package/dist/common/src/types/generated/step_v3.d.ts +1558 -0
  103. package/dist/common/src/types/generated/step_v3.d.ts.map +1 -0
  104. package/dist/common/src/types/generated/step_v3.js +7 -0
  105. package/dist/common/src/types/generated/step_v3.js.map +1 -0
  106. package/dist/common/src/types/generated/stopRecord_v3.d.ts +9 -0
  107. package/dist/common/src/types/generated/stopRecord_v3.d.ts.map +1 -0
  108. package/dist/common/src/types/generated/stopRecord_v3.js +7 -0
  109. package/dist/common/src/types/generated/stopRecord_v3.js.map +1 -0
  110. package/dist/common/src/types/generated/test_v3.d.ts +3491 -0
  111. package/dist/common/src/types/generated/test_v3.d.ts.map +1 -0
  112. package/dist/common/src/types/generated/test_v3.js +7 -0
  113. package/dist/common/src/types/generated/test_v3.js.map +1 -0
  114. package/dist/common/src/types/generated/type_v3.d.ts +54 -0
  115. package/dist/common/src/types/generated/type_v3.d.ts.map +1 -0
  116. package/dist/common/src/types/generated/type_v3.js +7 -0
  117. package/dist/common/src/types/generated/type_v3.js.map +1 -0
  118. package/dist/common/src/types/generated/wait_v3.d.ts +12 -0
  119. package/dist/common/src/types/generated/wait_v3.d.ts.map +1 -0
  120. package/dist/common/src/types/generated/wait_v3.js +7 -0
  121. package/dist/common/src/types/generated/wait_v3.js.map +1 -0
  122. package/dist/common/src/validate.d.ts +41 -0
  123. package/dist/common/src/validate.d.ts.map +1 -0
  124. package/dist/common/src/validate.js +557 -0
  125. package/dist/common/src/validate.js.map +1 -0
  126. package/package.json +6 -1
  127. package/.doc-detective.json +0 -1
  128. package/CONTRIBUTIONS.md +0 -27
  129. package/screenshot-boolean.png +0 -0
  130. package/scripts/createCjsWrapper.js +0 -31
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Auto-generated from runShell_v3.schema.json
3
+ * Do not edit manually
4
+ */
5
+ /**
6
+ * Perform a native shell command.
7
+ */
8
+ export type RunShell = RunShellCommandSimple | RunShellCommandDetailed;
9
+ /**
10
+ * Command to perform in the machine's default shell.
11
+ */
12
+ export type RunShellCommandSimple = string;
13
+ export interface RunShellCommandDetailed {
14
+ /**
15
+ * Command to perform in the machine's default shell.
16
+ */
17
+ command: string;
18
+ /**
19
+ * Arguments for the command.
20
+ */
21
+ args?: string[];
22
+ /**
23
+ * Working directory for the command.
24
+ */
25
+ workingDirectory?: string;
26
+ /**
27
+ * Expected exit codes of the command. If the command's actual exit code isn't in this list, the step fails.
28
+ */
29
+ exitCodes?: number[];
30
+ /**
31
+ * Content expected in the command's stdout or stderr. If the expected content can't be found in the command's stdout or stderr, the step fails. Supports strings and regular expressions. To use a regular expression, the string must start and end with a forward slash, like in `/^hello-world.* /`.
32
+ */
33
+ stdio?: string;
34
+ /**
35
+ * File path to save the command's output, relative to `directory`.
36
+ */
37
+ path?: string;
38
+ /**
39
+ * Directory to save the command's output. If the directory doesn't exist, creates the directory. If not specified, the directory is your media directory.
40
+ */
41
+ directory?: string;
42
+ /**
43
+ * Allowed variation as a fraction (0 to 1) of text different between the current output and previously saved output. For example, 0.1 means 10%. If the difference between the current output and the previous output is greater than `maxVariation`, the step fails. If output doesn't exist at `path`, this value is ignored.
44
+ */
45
+ maxVariation?: number;
46
+ /**
47
+ * If `true`, overwrites the existing output at `path` if it exists.
48
+ * If `aboveVariation`, overwrites the existing output at `path` if the difference between the new output and the existing output is greater than `maxVariation`.
49
+ */
50
+ overwrite?: "true" | "false" | "aboveVariation";
51
+ /**
52
+ * Max time in milliseconds the command is allowed to run. If the command runs longer than this, the step fails.
53
+ */
54
+ timeout?: number;
55
+ }
56
+ //# sourceMappingURL=runShell_v3.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runShell_v3.d.ts","sourceRoot":"","sources":["../../../../../src/common/src/types/generated/runShell_v3.ts"],"names":[],"mappings":"AACA;;;GAGG;AAEH;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,qBAAqB,GAAG,uBAAuB,CAAC;AACvE;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC;AAE3C,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,gBAAgB,CAAC;IAChD;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
@@ -0,0 +1,7 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * Auto-generated from runShell_v3.schema.json
4
+ * Do not edit manually
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=runShell_v3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runShell_v3.js","sourceRoot":"","sources":["../../../../../src/common/src/types/generated/runShell_v3.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB;;;GAGG"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Auto-generated from saveCookie_v3.schema.json
3
+ * Do not edit manually
4
+ */
5
+ /**
6
+ * Save a specific browser cookie to a file or environment variable for later reuse.
7
+ */
8
+ export type SaveCookie = CookieName | SaveCookieDetailed;
9
+ /**
10
+ * Name of the specific cookie to save. Will be saved to a default file path or environment variable.
11
+ */
12
+ export type CookieName = string;
13
+ export type SaveCookieDetailed = {
14
+ [k: string]: unknown;
15
+ };
16
+ //# sourceMappingURL=saveCookie_v3.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"saveCookie_v3.d.ts","sourceRoot":"","sources":["../../../../../src/common/src/types/generated/saveCookie_v3.ts"],"names":[],"mappings":"AACA;;;GAGG;AAEH;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,kBAAkB,CAAC;AACzD;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC;AAChC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB,CAAC"}
@@ -0,0 +1,7 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * Auto-generated from saveCookie_v3.schema.json
4
+ * Do not edit manually
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=saveCookie_v3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"saveCookie_v3.js","sourceRoot":"","sources":["../../../../../src/common/src/types/generated/saveCookie_v3.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB;;;GAGG"}
@@ -0,0 +1,74 @@
1
+ /**
2
+ * Auto-generated from screenshot_v3.schema.json
3
+ * Do not edit manually
4
+ */
5
+ /**
6
+ * Takes a screenshot in PNG format.
7
+ */
8
+ export type Screenshot = ScreenshotSimple | CaptureScreenshotDetailed | CaptureScreenshot;
9
+ /**
10
+ * File path of the PNG file. Accepts absolute paths. If not specified, the file name is the ID of the step.
11
+ */
12
+ export type ScreenshotSimple = string;
13
+ /**
14
+ * File path of the PNG file. Accepts absolute paths. If not specified, the file name is the ID of the step.
15
+ */
16
+ export type ScreenshotSimple1 = string;
17
+ /**
18
+ * Display text or selector of the element to screenshot.
19
+ */
20
+ export type CropByElementSimple = string;
21
+ /**
22
+ * Crop the screenshot to a specific element.
23
+ */
24
+ export type CropByElementDetailed = {
25
+ [k: string]: unknown;
26
+ };
27
+ /**
28
+ * If `true`, captures a screenshot. If `false`, doesn't capture a screenshot.
29
+ */
30
+ export type CaptureScreenshot = boolean;
31
+ export interface CaptureScreenshotDetailed {
32
+ path?: ScreenshotSimple1;
33
+ /**
34
+ * Directory of the PNG file. If the directory doesn't exist, creates the directory.
35
+ */
36
+ directory?: string;
37
+ /**
38
+ * Allowed variation in percentage of pixels between the new screenshot and the existing screenshot at `path`. If the difference between the new screenshot and the existing screenshot is greater than `maxVariation`, the step fails. If a screenshot doesn't exist at `path`, this value is ignored.
39
+ */
40
+ maxVariation?: number;
41
+ /**
42
+ * If `true`, overwrites the existing screenshot at `path` if it exists.
43
+ * If `aboveVariation`, overwrites the existing screenshot at `path` if the difference between the new screenshot and the existing screenshot is greater than `maxVariation`.
44
+ */
45
+ overwrite?: "true" | "false" | "aboveVariation";
46
+ crop?: CropByElementSimple | CropByElementDetailed;
47
+ sourceIntegration?: SourceIntegration;
48
+ }
49
+ /**
50
+ * Information about the source integration for this screenshot, enabling upload of changed files back to the source CMS. Set automatically during test resolution for files from integrations.
51
+ */
52
+ export interface SourceIntegration {
53
+ /**
54
+ * The type of integration. Currently supported: 'heretto'. Additional types may be added in the future.
55
+ */
56
+ type: "heretto";
57
+ /**
58
+ * The name of the integration configuration in the config file. Used to look up authentication credentials.
59
+ */
60
+ integrationName: string;
61
+ /**
62
+ * The unique identifier (UUID) of the file in the source CMS. If not provided, the file will be looked up by path.
63
+ */
64
+ fileId?: string;
65
+ /**
66
+ * The path of the file in the source CMS. Used for lookup if fileId is not available.
67
+ */
68
+ filePath?: string;
69
+ /**
70
+ * The local path to the file that references this source. Used for resolving relative paths.
71
+ */
72
+ contentPath?: string;
73
+ }
74
+ //# sourceMappingURL=screenshot_v3.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"screenshot_v3.d.ts","sourceRoot":"","sources":["../../../../../src/common/src/types/generated/screenshot_v3.ts"],"names":[],"mappings":"AACA;;;GAGG;AAEH;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,gBAAgB,GAAG,yBAAyB,GAAG,iBAAiB,CAAC;AAC1F;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC;AACtC;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC;AACvC;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC;AACzC;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB,CAAC;AACF;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC;AAExC,MAAM,WAAW,yBAAyB;IACxC,IAAI,CAAC,EAAE,iBAAiB,CAAC;IACzB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,gBAAgB,CAAC;IAChD,IAAI,CAAC,EAAE,mBAAmB,GAAG,qBAAqB,CAAC;IACnD,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;CACvC;AACD;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
@@ -0,0 +1,7 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * Auto-generated from screenshot_v3.schema.json
4
+ * Do not edit manually
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=screenshot_v3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"screenshot_v3.js","sourceRoot":"","sources":["../../../../../src/common/src/types/generated/screenshot_v3.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB;;;GAGG"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Auto-generated from sourceIntegration_v3.schema.json
3
+ * Do not edit manually
4
+ */
5
+ /**
6
+ * Information about the source integration for a file, enabling upload of changed files back to the source CMS.
7
+ */
8
+ export interface SourceIntegration {
9
+ /**
10
+ * The type of integration. Currently supported: 'heretto'. Additional types may be added in the future.
11
+ */
12
+ type: "heretto";
13
+ /**
14
+ * The name of the integration configuration in the config file. Used to look up authentication credentials.
15
+ */
16
+ integrationName: string;
17
+ /**
18
+ * The unique identifier (UUID) of the file in the source CMS. If not provided, the file will be looked up by path.
19
+ */
20
+ fileId?: string;
21
+ /**
22
+ * The path of the file in the source CMS. Used for lookup if fileId is not available.
23
+ */
24
+ filePath?: string;
25
+ /**
26
+ * The local path to the file that references this source. Used for resolving relative paths.
27
+ */
28
+ contentPath?: string;
29
+ }
30
+ //# sourceMappingURL=sourceIntegration_v3.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sourceIntegration_v3.d.ts","sourceRoot":"","sources":["../../../../../src/common/src/types/generated/sourceIntegration_v3.ts"],"names":[],"mappings":"AACA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
@@ -0,0 +1,7 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * Auto-generated from sourceIntegration_v3.schema.json
4
+ * Do not edit manually
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=sourceIntegration_v3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sourceIntegration_v3.js","sourceRoot":"","sources":["../../../../../src/common/src/types/generated/sourceIntegration_v3.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB;;;GAGG"}
@@ -0,0 +1,159 @@
1
+ /**
2
+ * Auto-generated from spec_v3.schema.json
3
+ * Do not edit manually
4
+ */
5
+ /**
6
+ * OpenAPI description and configuration.
7
+ */
8
+ export type OpenApi = {
9
+ [k: string]: unknown;
10
+ };
11
+ /**
12
+ * A Doc Detective test.
13
+ */
14
+ export type Test = {
15
+ [k: string]: unknown;
16
+ } | {
17
+ [k: string]: unknown;
18
+ };
19
+ export interface Specification {
20
+ /**
21
+ * JSON Schema for this object.
22
+ */
23
+ $schema?: "https://raw.githubusercontent.com/doc-detective/common/refs/heads/main/dist/schemas/spec_v3.schema.json";
24
+ /**
25
+ * Unique identifier for the test specification.
26
+ */
27
+ specId?: string;
28
+ /**
29
+ * Description of the test specification.
30
+ */
31
+ description?: string;
32
+ /**
33
+ * Path to the test specification.
34
+ */
35
+ specPath?: string;
36
+ /**
37
+ * Path to the content that the specification is associated with.
38
+ */
39
+ contentPath?: string;
40
+ /**
41
+ * Contexts to run the test in. Overrides contexts defined at the config and spec levels.
42
+ */
43
+ runOn?: Context[];
44
+ openApi?: (OpenApi & OpenAPIDescriptionTest)[];
45
+ /**
46
+ * [Tests](test) to perform.
47
+ *
48
+ * @minItems 1
49
+ */
50
+ tests: [Test, ...Test[]];
51
+ [k: string]: unknown;
52
+ }
53
+ /**
54
+ * 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.
55
+ */
56
+ export interface Context {
57
+ /**
58
+ * JSON Schema for this object.
59
+ */
60
+ $schema?: "https://raw.githubusercontent.com/doc-detective/common/refs/heads/main/dist/schemas/context_v3.schema.json";
61
+ /**
62
+ * Unique identifier for the context.
63
+ */
64
+ contextId?: string;
65
+ /**
66
+ * Platforms to run tests on.
67
+ */
68
+ platforms?: ("linux" | "mac" | "windows") | ("linux" | "mac" | "windows")[];
69
+ /**
70
+ * Browsers to run tests on.
71
+ */
72
+ browsers?: ("chrome" | "firefox" | "safari" | "webkit") | Browser | (("chrome" | "firefox" | "safari" | "webkit") | Browser1)[];
73
+ }
74
+ /**
75
+ * Browser configuration.
76
+ */
77
+ export interface Browser {
78
+ /**
79
+ * Name of the browser.
80
+ */
81
+ name: "chrome" | "firefox" | "safari" | "webkit";
82
+ /**
83
+ * If `true`, runs the browser in headless mode.
84
+ */
85
+ headless?: boolean;
86
+ window?: BrowserWindow;
87
+ viewport?: BrowserViewport;
88
+ }
89
+ /**
90
+ * Browser dimensions.
91
+ */
92
+ export interface BrowserWindow {
93
+ /**
94
+ * Width of the browser window in pixels.
95
+ */
96
+ width?: number;
97
+ /**
98
+ * Height of the browser window in pixels.
99
+ */
100
+ height?: number;
101
+ }
102
+ /**
103
+ * Viewport dimensions.
104
+ */
105
+ export interface BrowserViewport {
106
+ /**
107
+ * Width of the viewport in pixels.
108
+ */
109
+ width?: number;
110
+ /**
111
+ * Height of the viewport in pixels.
112
+ */
113
+ height?: number;
114
+ }
115
+ /**
116
+ * Browser configuration.
117
+ */
118
+ export interface Browser1 {
119
+ /**
120
+ * Name of the browser.
121
+ */
122
+ name: "chrome" | "firefox" | "safari" | "webkit";
123
+ /**
124
+ * If `true`, runs the browser in headless mode.
125
+ */
126
+ headless?: boolean;
127
+ window?: BrowserWindow1;
128
+ viewport?: BrowserViewport1;
129
+ }
130
+ /**
131
+ * Browser dimensions.
132
+ */
133
+ export interface BrowserWindow1 {
134
+ /**
135
+ * Width of the browser window in pixels.
136
+ */
137
+ width?: number;
138
+ /**
139
+ * Height of the browser window in pixels.
140
+ */
141
+ height?: number;
142
+ }
143
+ /**
144
+ * Viewport dimensions.
145
+ */
146
+ export interface BrowserViewport1 {
147
+ /**
148
+ * Width of the viewport in pixels.
149
+ */
150
+ width?: number;
151
+ /**
152
+ * Height of the viewport in pixels.
153
+ */
154
+ height?: number;
155
+ }
156
+ export interface OpenAPIDescriptionTest {
157
+ [k: string]: unknown;
158
+ }
159
+ //# sourceMappingURL=spec_v3.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spec_v3.d.ts","sourceRoot":"","sources":["../../../../../src/common/src/types/generated/spec_v3.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,7 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * Auto-generated from spec_v3.schema.json
4
+ * Do not edit manually
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=spec_v3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spec_v3.js","sourceRoot":"","sources":["../../../../../src/common/src/types/generated/spec_v3.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB;;;GAGG"}