doc-detective-common 3.6.0-dev.1 → 3.6.0-dev.2

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 (26) hide show
  1. package/dist/schemas/config_v3.schema.json +249 -0
  2. package/dist/schemas/report_v3.schema.json +200 -0
  3. package/dist/schemas/resolvedTests_v3.schema.json +449 -0
  4. package/dist/schemas/screenshot_v3.schema.json +100 -0
  5. package/dist/schemas/sourceIntegration_v3.schema.json +50 -0
  6. package/dist/schemas/spec_v3.schema.json +200 -0
  7. package/dist/schemas/step_v3.schema.json +100 -0
  8. package/dist/schemas/test_v3.schema.json +200 -0
  9. package/package.json +3 -3
  10. package/src/resolvePaths.js +5 -4
  11. package/src/schemas/build/config_v3.schema.json +49 -0
  12. package/src/schemas/build/screenshot_v3.schema.json +4 -0
  13. package/src/schemas/build/sourceIntegration_v3.schema.json +51 -0
  14. package/src/schemas/dereferenceSchemas.js +1 -0
  15. package/src/schemas/output_schemas/config_v3.schema.json +249 -0
  16. package/src/schemas/output_schemas/report_v3.schema.json +200 -0
  17. package/src/schemas/output_schemas/resolvedTests_v3.schema.json +449 -0
  18. package/src/schemas/output_schemas/screenshot_v3.schema.json +100 -0
  19. package/src/schemas/output_schemas/sourceIntegration_v3.schema.json +50 -0
  20. package/src/schemas/output_schemas/spec_v3.schema.json +200 -0
  21. package/src/schemas/output_schemas/step_v3.schema.json +100 -0
  22. package/src/schemas/output_schemas/test_v3.schema.json +200 -0
  23. package/src/schemas/schemas.json +1548 -0
  24. package/src/schemas/src_schemas/config_v3.schema.json +49 -0
  25. package/src/schemas/src_schemas/screenshot_v3.schema.json +4 -0
  26. package/src/schemas/src_schemas/sourceIntegration_v3.schema.json +45 -0
@@ -258,6 +258,55 @@
258
258
  "type": "string",
259
259
  "description": "Local path where Heretto content was downloaded. Set automatically during processing.",
260
260
  "readOnly": true
261
+ },
262
+ "fileMapping": {
263
+ "type": "object",
264
+ "description": "Mapping of local file paths to Heretto file metadata. Set automatically during content loading.",
265
+ "readOnly": true,
266
+ "additionalProperties": {
267
+ "type": "object",
268
+ "properties": {
269
+ "fileId": {
270
+ "type": "string",
271
+ "description": "The UUID of the file in Heretto."
272
+ },
273
+ "filePath": {
274
+ "type": "string",
275
+ "description": "The path of the file in Heretto."
276
+ }
277
+ }
278
+ }
279
+ },
280
+ "uploadOnChange": {
281
+ "type": "boolean",
282
+ "description": "If `true`, uploads changed screenshots and other media files back to Heretto CMS after test execution.",
283
+ "default": false
284
+ },
285
+ "resourceDependencies": {
286
+ "type": "object",
287
+ "description": "Mapping of Heretto file paths to their UUIDs and metadata. Set automatically during content loading by fetching ditamap resource dependencies.",
288
+ "readOnly": true,
289
+ "additionalProperties": {
290
+ "type": "object",
291
+ "properties": {
292
+ "uuid": {
293
+ "type": "string",
294
+ "description": "The UUID of the file in Heretto."
295
+ },
296
+ "fullPath": {
297
+ "type": "string",
298
+ "description": "The full xmldb path of the file in Heretto."
299
+ },
300
+ "name": {
301
+ "type": "string",
302
+ "description": "The file name."
303
+ },
304
+ "parentFolderId": {
305
+ "type": "string",
306
+ "description": "The UUID of the parent folder in Heretto."
307
+ }
308
+ }
309
+ }
261
310
  }
262
311
  },
263
312
  "title": "Heretto CMS integration"
@@ -68,6 +68,10 @@
68
68
  "$ref": "#/components/schemas/crop_element"
69
69
  }
70
70
  ]
71
+ },
72
+ "sourceIntegration": {
73
+ "description": "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.",
74
+ "$ref": "sourceIntegration_v3.schema.json#"
71
75
  }
72
76
  },
73
77
  "title": "Capture screenshot (detailed)"
@@ -0,0 +1,45 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "sourceIntegration",
4
+ "description": "Information about the source integration for a file, enabling upload of changed files back to the source CMS.",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["type", "integrationName"],
8
+ "properties": {
9
+ "type": {
10
+ "type": "string",
11
+ "description": "The type of integration. Currently supported: 'heretto'. Additional types may be added in the future.",
12
+ "enum": ["heretto"]
13
+ },
14
+ "integrationName": {
15
+ "type": "string",
16
+ "description": "The name of the integration configuration in the config file. Used to look up authentication credentials."
17
+ },
18
+ "fileId": {
19
+ "type": "string",
20
+ "description": "The unique identifier (UUID) of the file in the source CMS. If not provided, the file will be looked up by path."
21
+ },
22
+ "filePath": {
23
+ "type": "string",
24
+ "description": "The path of the file in the source CMS. Used for lookup if fileId is not available."
25
+ },
26
+ "contentPath": {
27
+ "type": "string",
28
+ "description": "The local path to the file that references this source. Used for resolving relative paths."
29
+ }
30
+ },
31
+ "examples": [
32
+ {
33
+ "type": "heretto",
34
+ "integrationName": "my-heretto",
35
+ "fileId": "8f3ed200-cbba-11e1-ac51-c82a1446d15c",
36
+ "filePath": "/db/organizations/example/repositories/docs/images/screenshot.png"
37
+ },
38
+ {
39
+ "type": "heretto",
40
+ "integrationName": "my-heretto",
41
+ "filePath": "images/screenshot.png",
42
+ "contentPath": "/tmp/doc-detective/heretto_abc123/topic.dita"
43
+ }
44
+ ]
45
+ }