@tiwater/office-mcp 0.14.2 → 0.15.0
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.
- package/office/README.md +10 -10
- package/office/contracts/docx_apply_font_policy.schema.json +73 -0
- package/office/contracts/docx_apply_toc_style_policy.schema.json +49 -0
- package/office/contracts/docx_collapse_trailing_empty_paragraphs.schema.json +26 -0
- package/office/contracts/docx_collapse_trailing_empty_section.schema.json +26 -0
- package/office/contracts/docx_compare.schema.json +19 -0
- package/office/contracts/docx_copy_table_range.schema.json +111 -0
- package/office/contracts/docx_delete_body_drawing_before_paragraph.schema.json +50 -0
- package/office/contracts/docx_delete_body_paragraph.schema.json +50 -0
- package/office/contracts/docx_delete_body_range.schema.json +65 -0
- package/office/contracts/docx_delete_comments.schema.json +48 -0
- package/office/contracts/docx_delete_table_rows.schema.json +57 -0
- package/office/contracts/docx_export_json.schema.json +20 -0
- package/office/contracts/docx_find_literal.schema.json +46 -0
- package/office/contracts/docx_freeze_fields.schema.json +26 -0
- package/office/contracts/docx_insert_body_image.schema.json +65 -0
- package/office/contracts/docx_insert_body_range.schema.json +62 -0
- package/office/contracts/docx_insert_table_columns.schema.json +61 -0
- package/office/contracts/docx_insert_table_rows.schema.json +130 -0
- package/office/contracts/docx_inspect.schema.json +20 -0
- package/office/contracts/docx_inspect_tables.schema.json +20 -0
- package/office/contracts/docx_list_objects.schema.json +42 -0
- package/office/contracts/docx_mark_fields_dirty.schema.json +26 -0
- package/office/contracts/docx_merge_table_cells.schema.json +80 -0
- package/office/contracts/docx_read_object.schema.json +24 -0
- package/office/contracts/docx_replace_body_text.schema.json +48 -0
- package/office/contracts/docx_replace_drawing_image.schema.json +56 -0
- package/office/contracts/docx_replace_header_text.schema.json +48 -0
- package/office/contracts/docx_replace_style_ids.schema.json +29 -0
- package/office/contracts/docx_replace_table_rows.schema.json +136 -0
- package/office/contracts/docx_sanitize_fields.schema.json +26 -0
- package/office/contracts/docx_set_anchored_text.schema.json +48 -0
- package/office/contracts/docx_set_body_paragraph_keep_lines.schema.json +49 -0
- package/office/contracts/docx_set_body_paragraph_keep_next.schema.json +49 -0
- package/office/contracts/docx_set_footer_paragraph_text.schema.json +55 -0
- package/office/contracts/docx_set_footer_run_text.schema.json +61 -0
- package/office/contracts/docx_set_footer_table_cell_run_text.schema.json +79 -0
- package/office/contracts/docx_set_footer_table_cell_text.schema.json +67 -0
- package/office/contracts/docx_set_header_paragraph_font_size.schema.json +56 -0
- package/office/contracts/docx_set_header_paragraph_text.schema.json +55 -0
- package/office/contracts/docx_set_header_run_text.schema.json +61 -0
- package/office/contracts/docx_set_header_table_cell_run_text.schema.json +79 -0
- package/office/contracts/docx_set_header_table_cell_text.schema.json +67 -0
- package/office/contracts/docx_set_paragraph_run_text.schema.json +55 -0
- package/office/contracts/docx_set_paragraph_text.schema.json +49 -0
- package/office/contracts/docx_set_table_cell_alignment.schema.json +62 -0
- package/office/contracts/docx_set_table_cell_font_size.schema.json +62 -0
- package/office/contracts/docx_set_table_cell_no_wrap.schema.json +61 -0
- package/office/contracts/docx_set_table_cell_rich_text.schema.json +96 -0
- package/office/contracts/docx_set_table_cell_run_text.schema.json +73 -0
- package/office/contracts/docx_set_table_cell_text.schema.json +64 -0
- package/office/contracts/docx_set_table_row_cant_split.schema.json +55 -0
- package/office/contracts/docx_set_table_row_height.schema.json +59 -0
- package/office/contracts/docx_set_table_row_keep_next.schema.json +55 -0
- package/office/contracts/docx_set_table_row_repeat_as_header.schema.json +119 -0
- package/office/contracts/docx_set_table_width.schema.json +60 -0
- package/office/contracts/docx_start_section.schema.json +52 -0
- package/office/contracts/docx_strip_direct_formatting.schema.json +19 -0
- package/office/contracts/docx_unmerge_table_column_cells.schema.json +63 -0
- package/office/contracts/docx_unmerge_table_row_cells.schema.json +57 -0
- package/office/contracts/docx_validate.schema.json +14 -0
- package/office/contracts/docx_validate_font_policy.schema.json +48 -0
- package/office/contracts/docx_validate_toc_style_policy.schema.json +24 -0
- package/office/contracts/office_render_pdf.schema.json +27 -0
- package/office/contracts/pptx_apply_format.schema.json +74 -0
- package/office/contracts/pptx_apply_template.schema.json +111 -0
- package/office/contracts/pptx_export_json.schema.json +20 -0
- package/office/contracts/pptx_inspect.schema.json +20 -0
- package/office/contracts/pptx_replace_picture_image.schema.json +57 -0
- package/office/contracts/pptx_set_shape_geometry.schema.json +76 -0
- package/office/contracts/pptx_validate.schema.json +14 -0
- package/office/contracts/tiwater-office-provider-contract-manifest-v1.json +955 -0
- package/office/contracts/xlsx_convert_legacy.schema.json +24 -0
- package/office/contracts/xlsx_copy_row.schema.json +59 -0
- package/office/contracts/xlsx_delete_rows.schema.json +56 -0
- package/office/contracts/xlsx_expand_section_rows.schema.json +70 -0
- package/office/contracts/xlsx_export_json.schema.json +24 -0
- package/office/contracts/xlsx_insert_rows.schema.json +62 -0
- package/office/contracts/xlsx_inspect.schema.json +20 -0
- package/office/contracts/xlsx_set_cell_number_format.schema.json +54 -0
- package/office/contracts/xlsx_set_cell_value.schema.json +78 -0
- package/office/contracts/xlsx_set_column_width.schema.json +55 -0
- package/office/contracts/xlsx_set_page_setup.schema.json +90 -0
- package/office/contracts/xlsx_set_print_area.schema.json +49 -0
- package/office/contracts/xlsx_set_range_values.schema.json +75 -0
- package/office/contracts/xlsx_set_rich_text_cell_value.schema.json +57 -0
- package/office/contracts/xlsx_set_row_page_breaks.schema.json +53 -0
- package/office/contracts/xlsx_validate.schema.json +14 -0
- package/office/index.mjs +188 -493
- package/package.json +2 -7
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"input": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"minLength": 1
|
|
8
|
+
},
|
|
9
|
+
"output": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"minLength": 1,
|
|
12
|
+
"description": "New document output path. Existing files are never overwritten."
|
|
13
|
+
},
|
|
14
|
+
"receiptOutput": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"minLength": 1,
|
|
17
|
+
"description": "New JSON receipt path. Existing files are never overwritten."
|
|
18
|
+
},
|
|
19
|
+
"changes": {
|
|
20
|
+
"minItems": 1,
|
|
21
|
+
"type": "array",
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"properties": {
|
|
25
|
+
"headerIndex": {
|
|
26
|
+
"type": "integer",
|
|
27
|
+
"minimum": 0,
|
|
28
|
+
"maximum": 9007199254740991
|
|
29
|
+
},
|
|
30
|
+
"paragraphIndex": {
|
|
31
|
+
"type": "integer",
|
|
32
|
+
"minimum": 0,
|
|
33
|
+
"maximum": 9007199254740991
|
|
34
|
+
},
|
|
35
|
+
"fontSize": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"minLength": 1
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"required": [
|
|
41
|
+
"headerIndex",
|
|
42
|
+
"paragraphIndex",
|
|
43
|
+
"fontSize"
|
|
44
|
+
],
|
|
45
|
+
"additionalProperties": false
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"required": [
|
|
50
|
+
"input",
|
|
51
|
+
"output",
|
|
52
|
+
"receiptOutput",
|
|
53
|
+
"changes"
|
|
54
|
+
],
|
|
55
|
+
"additionalProperties": false
|
|
56
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"input": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"minLength": 1
|
|
8
|
+
},
|
|
9
|
+
"output": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"minLength": 1,
|
|
12
|
+
"description": "New document output path. Existing files are never overwritten."
|
|
13
|
+
},
|
|
14
|
+
"receiptOutput": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"minLength": 1,
|
|
17
|
+
"description": "New JSON receipt path. Existing files are never overwritten."
|
|
18
|
+
},
|
|
19
|
+
"changes": {
|
|
20
|
+
"minItems": 1,
|
|
21
|
+
"type": "array",
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"properties": {
|
|
25
|
+
"headerIndex": {
|
|
26
|
+
"type": "integer",
|
|
27
|
+
"minimum": 0,
|
|
28
|
+
"maximum": 9007199254740991
|
|
29
|
+
},
|
|
30
|
+
"paragraphIndex": {
|
|
31
|
+
"type": "integer",
|
|
32
|
+
"minimum": 0,
|
|
33
|
+
"maximum": 9007199254740991
|
|
34
|
+
},
|
|
35
|
+
"text": {
|
|
36
|
+
"type": "string"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"required": [
|
|
40
|
+
"headerIndex",
|
|
41
|
+
"paragraphIndex",
|
|
42
|
+
"text"
|
|
43
|
+
],
|
|
44
|
+
"additionalProperties": false
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"required": [
|
|
49
|
+
"input",
|
|
50
|
+
"output",
|
|
51
|
+
"receiptOutput",
|
|
52
|
+
"changes"
|
|
53
|
+
],
|
|
54
|
+
"additionalProperties": false
|
|
55
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"input": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"minLength": 1
|
|
8
|
+
},
|
|
9
|
+
"output": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"minLength": 1,
|
|
12
|
+
"description": "New document output path. Existing files are never overwritten."
|
|
13
|
+
},
|
|
14
|
+
"receiptOutput": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"minLength": 1,
|
|
17
|
+
"description": "New JSON receipt path. Existing files are never overwritten."
|
|
18
|
+
},
|
|
19
|
+
"changes": {
|
|
20
|
+
"minItems": 1,
|
|
21
|
+
"type": "array",
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"properties": {
|
|
25
|
+
"headerIndex": {
|
|
26
|
+
"type": "integer",
|
|
27
|
+
"minimum": 0,
|
|
28
|
+
"maximum": 9007199254740991
|
|
29
|
+
},
|
|
30
|
+
"paragraphIndex": {
|
|
31
|
+
"type": "integer",
|
|
32
|
+
"minimum": 0,
|
|
33
|
+
"maximum": 9007199254740991
|
|
34
|
+
},
|
|
35
|
+
"runIndex": {
|
|
36
|
+
"type": "integer",
|
|
37
|
+
"minimum": 0,
|
|
38
|
+
"maximum": 9007199254740991
|
|
39
|
+
},
|
|
40
|
+
"text": {
|
|
41
|
+
"type": "string"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"required": [
|
|
45
|
+
"headerIndex",
|
|
46
|
+
"paragraphIndex",
|
|
47
|
+
"runIndex",
|
|
48
|
+
"text"
|
|
49
|
+
],
|
|
50
|
+
"additionalProperties": false
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"required": [
|
|
55
|
+
"input",
|
|
56
|
+
"output",
|
|
57
|
+
"receiptOutput",
|
|
58
|
+
"changes"
|
|
59
|
+
],
|
|
60
|
+
"additionalProperties": false
|
|
61
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"input": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"minLength": 1
|
|
8
|
+
},
|
|
9
|
+
"output": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"minLength": 1,
|
|
12
|
+
"description": "New document output path. Existing files are never overwritten."
|
|
13
|
+
},
|
|
14
|
+
"receiptOutput": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"minLength": 1,
|
|
17
|
+
"description": "New JSON receipt path. Existing files are never overwritten."
|
|
18
|
+
},
|
|
19
|
+
"changes": {
|
|
20
|
+
"minItems": 1,
|
|
21
|
+
"type": "array",
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"properties": {
|
|
25
|
+
"headerIndex": {
|
|
26
|
+
"type": "integer",
|
|
27
|
+
"minimum": 0,
|
|
28
|
+
"maximum": 9007199254740991
|
|
29
|
+
},
|
|
30
|
+
"tableIndex": {
|
|
31
|
+
"type": "integer",
|
|
32
|
+
"minimum": 0,
|
|
33
|
+
"maximum": 9007199254740991
|
|
34
|
+
},
|
|
35
|
+
"rowIndex": {
|
|
36
|
+
"type": "integer",
|
|
37
|
+
"minimum": 0,
|
|
38
|
+
"maximum": 9007199254740991
|
|
39
|
+
},
|
|
40
|
+
"cellIndex": {
|
|
41
|
+
"type": "integer",
|
|
42
|
+
"minimum": 0,
|
|
43
|
+
"maximum": 9007199254740991
|
|
44
|
+
},
|
|
45
|
+
"paragraphIndex": {
|
|
46
|
+
"type": "integer",
|
|
47
|
+
"minimum": 0,
|
|
48
|
+
"maximum": 9007199254740991
|
|
49
|
+
},
|
|
50
|
+
"runIndex": {
|
|
51
|
+
"type": "integer",
|
|
52
|
+
"minimum": 0,
|
|
53
|
+
"maximum": 9007199254740991
|
|
54
|
+
},
|
|
55
|
+
"text": {
|
|
56
|
+
"type": "string"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"required": [
|
|
60
|
+
"headerIndex",
|
|
61
|
+
"tableIndex",
|
|
62
|
+
"rowIndex",
|
|
63
|
+
"cellIndex",
|
|
64
|
+
"paragraphIndex",
|
|
65
|
+
"runIndex",
|
|
66
|
+
"text"
|
|
67
|
+
],
|
|
68
|
+
"additionalProperties": false
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"required": [
|
|
73
|
+
"input",
|
|
74
|
+
"output",
|
|
75
|
+
"receiptOutput",
|
|
76
|
+
"changes"
|
|
77
|
+
],
|
|
78
|
+
"additionalProperties": false
|
|
79
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"input": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"minLength": 1
|
|
8
|
+
},
|
|
9
|
+
"output": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"minLength": 1,
|
|
12
|
+
"description": "New document output path. Existing files are never overwritten."
|
|
13
|
+
},
|
|
14
|
+
"receiptOutput": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"minLength": 1,
|
|
17
|
+
"description": "New JSON receipt path. Existing files are never overwritten."
|
|
18
|
+
},
|
|
19
|
+
"changes": {
|
|
20
|
+
"minItems": 1,
|
|
21
|
+
"type": "array",
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"properties": {
|
|
25
|
+
"headerIndex": {
|
|
26
|
+
"type": "integer",
|
|
27
|
+
"minimum": 0,
|
|
28
|
+
"maximum": 9007199254740991
|
|
29
|
+
},
|
|
30
|
+
"tableIndex": {
|
|
31
|
+
"type": "integer",
|
|
32
|
+
"minimum": 0,
|
|
33
|
+
"maximum": 9007199254740991
|
|
34
|
+
},
|
|
35
|
+
"rowIndex": {
|
|
36
|
+
"type": "integer",
|
|
37
|
+
"minimum": 0,
|
|
38
|
+
"maximum": 9007199254740991
|
|
39
|
+
},
|
|
40
|
+
"cellIndex": {
|
|
41
|
+
"type": "integer",
|
|
42
|
+
"minimum": 0,
|
|
43
|
+
"maximum": 9007199254740991
|
|
44
|
+
},
|
|
45
|
+
"text": {
|
|
46
|
+
"type": "string"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"required": [
|
|
50
|
+
"headerIndex",
|
|
51
|
+
"tableIndex",
|
|
52
|
+
"rowIndex",
|
|
53
|
+
"cellIndex",
|
|
54
|
+
"text"
|
|
55
|
+
],
|
|
56
|
+
"additionalProperties": false
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"required": [
|
|
61
|
+
"input",
|
|
62
|
+
"output",
|
|
63
|
+
"receiptOutput",
|
|
64
|
+
"changes"
|
|
65
|
+
],
|
|
66
|
+
"additionalProperties": false
|
|
67
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"input": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"minLength": 1
|
|
8
|
+
},
|
|
9
|
+
"output": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"minLength": 1,
|
|
12
|
+
"description": "New document output path. Existing files are never overwritten."
|
|
13
|
+
},
|
|
14
|
+
"receiptOutput": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"minLength": 1,
|
|
17
|
+
"description": "New JSON receipt path. Existing files are never overwritten."
|
|
18
|
+
},
|
|
19
|
+
"changes": {
|
|
20
|
+
"minItems": 1,
|
|
21
|
+
"type": "array",
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"properties": {
|
|
25
|
+
"paragraphIndex": {
|
|
26
|
+
"type": "integer",
|
|
27
|
+
"minimum": 0,
|
|
28
|
+
"maximum": 9007199254740991
|
|
29
|
+
},
|
|
30
|
+
"runIndex": {
|
|
31
|
+
"type": "integer",
|
|
32
|
+
"minimum": 0,
|
|
33
|
+
"maximum": 9007199254740991
|
|
34
|
+
},
|
|
35
|
+
"text": {
|
|
36
|
+
"type": "string"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"required": [
|
|
40
|
+
"paragraphIndex",
|
|
41
|
+
"runIndex",
|
|
42
|
+
"text"
|
|
43
|
+
],
|
|
44
|
+
"additionalProperties": false
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"required": [
|
|
49
|
+
"input",
|
|
50
|
+
"output",
|
|
51
|
+
"receiptOutput",
|
|
52
|
+
"changes"
|
|
53
|
+
],
|
|
54
|
+
"additionalProperties": false
|
|
55
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"input": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"minLength": 1
|
|
8
|
+
},
|
|
9
|
+
"output": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"minLength": 1,
|
|
12
|
+
"description": "New document output path. Existing files are never overwritten."
|
|
13
|
+
},
|
|
14
|
+
"receiptOutput": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"minLength": 1,
|
|
17
|
+
"description": "New JSON receipt path. Existing files are never overwritten."
|
|
18
|
+
},
|
|
19
|
+
"changes": {
|
|
20
|
+
"minItems": 1,
|
|
21
|
+
"type": "array",
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"properties": {
|
|
25
|
+
"paragraphIndex": {
|
|
26
|
+
"type": "integer",
|
|
27
|
+
"minimum": 0,
|
|
28
|
+
"maximum": 9007199254740991
|
|
29
|
+
},
|
|
30
|
+
"text": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"required": [
|
|
35
|
+
"paragraphIndex",
|
|
36
|
+
"text"
|
|
37
|
+
],
|
|
38
|
+
"additionalProperties": false
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"required": [
|
|
43
|
+
"input",
|
|
44
|
+
"output",
|
|
45
|
+
"receiptOutput",
|
|
46
|
+
"changes"
|
|
47
|
+
],
|
|
48
|
+
"additionalProperties": false
|
|
49
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"input": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"minLength": 1
|
|
8
|
+
},
|
|
9
|
+
"output": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"minLength": 1,
|
|
12
|
+
"description": "New document output path. Existing files are never overwritten."
|
|
13
|
+
},
|
|
14
|
+
"receiptOutput": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"minLength": 1,
|
|
17
|
+
"description": "New JSON receipt path. Existing files are never overwritten."
|
|
18
|
+
},
|
|
19
|
+
"changes": {
|
|
20
|
+
"minItems": 1,
|
|
21
|
+
"type": "array",
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"properties": {
|
|
25
|
+
"tableIndex": {
|
|
26
|
+
"type": "integer",
|
|
27
|
+
"minimum": 0,
|
|
28
|
+
"maximum": 9007199254740991
|
|
29
|
+
},
|
|
30
|
+
"rowIndex": {
|
|
31
|
+
"type": "integer",
|
|
32
|
+
"minimum": 0,
|
|
33
|
+
"maximum": 9007199254740991
|
|
34
|
+
},
|
|
35
|
+
"cellIndex": {
|
|
36
|
+
"type": "integer",
|
|
37
|
+
"minimum": 0,
|
|
38
|
+
"maximum": 9007199254740991
|
|
39
|
+
},
|
|
40
|
+
"alignment": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"minLength": 1
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"required": [
|
|
46
|
+
"tableIndex",
|
|
47
|
+
"rowIndex",
|
|
48
|
+
"cellIndex",
|
|
49
|
+
"alignment"
|
|
50
|
+
],
|
|
51
|
+
"additionalProperties": false
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"required": [
|
|
56
|
+
"input",
|
|
57
|
+
"output",
|
|
58
|
+
"receiptOutput",
|
|
59
|
+
"changes"
|
|
60
|
+
],
|
|
61
|
+
"additionalProperties": false
|
|
62
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"input": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"minLength": 1
|
|
8
|
+
},
|
|
9
|
+
"output": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"minLength": 1,
|
|
12
|
+
"description": "New document output path. Existing files are never overwritten."
|
|
13
|
+
},
|
|
14
|
+
"receiptOutput": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"minLength": 1,
|
|
17
|
+
"description": "New JSON receipt path. Existing files are never overwritten."
|
|
18
|
+
},
|
|
19
|
+
"changes": {
|
|
20
|
+
"minItems": 1,
|
|
21
|
+
"type": "array",
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"properties": {
|
|
25
|
+
"tableIndex": {
|
|
26
|
+
"type": "integer",
|
|
27
|
+
"minimum": 0,
|
|
28
|
+
"maximum": 9007199254740991
|
|
29
|
+
},
|
|
30
|
+
"rowIndex": {
|
|
31
|
+
"type": "integer",
|
|
32
|
+
"minimum": 0,
|
|
33
|
+
"maximum": 9007199254740991
|
|
34
|
+
},
|
|
35
|
+
"cellIndex": {
|
|
36
|
+
"type": "integer",
|
|
37
|
+
"minimum": 0,
|
|
38
|
+
"maximum": 9007199254740991
|
|
39
|
+
},
|
|
40
|
+
"fontSize": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"minLength": 1
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"required": [
|
|
46
|
+
"tableIndex",
|
|
47
|
+
"rowIndex",
|
|
48
|
+
"cellIndex",
|
|
49
|
+
"fontSize"
|
|
50
|
+
],
|
|
51
|
+
"additionalProperties": false
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"required": [
|
|
56
|
+
"input",
|
|
57
|
+
"output",
|
|
58
|
+
"receiptOutput",
|
|
59
|
+
"changes"
|
|
60
|
+
],
|
|
61
|
+
"additionalProperties": false
|
|
62
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"input": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"minLength": 1
|
|
8
|
+
},
|
|
9
|
+
"output": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"minLength": 1,
|
|
12
|
+
"description": "New document output path. Existing files are never overwritten."
|
|
13
|
+
},
|
|
14
|
+
"receiptOutput": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"minLength": 1,
|
|
17
|
+
"description": "New JSON receipt path. Existing files are never overwritten."
|
|
18
|
+
},
|
|
19
|
+
"changes": {
|
|
20
|
+
"minItems": 1,
|
|
21
|
+
"type": "array",
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"properties": {
|
|
25
|
+
"tableIndex": {
|
|
26
|
+
"type": "integer",
|
|
27
|
+
"minimum": 0,
|
|
28
|
+
"maximum": 9007199254740991
|
|
29
|
+
},
|
|
30
|
+
"rowIndex": {
|
|
31
|
+
"type": "integer",
|
|
32
|
+
"minimum": 0,
|
|
33
|
+
"maximum": 9007199254740991
|
|
34
|
+
},
|
|
35
|
+
"cellIndex": {
|
|
36
|
+
"type": "integer",
|
|
37
|
+
"minimum": 0,
|
|
38
|
+
"maximum": 9007199254740991
|
|
39
|
+
},
|
|
40
|
+
"noWrap": {
|
|
41
|
+
"type": "boolean"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"required": [
|
|
45
|
+
"tableIndex",
|
|
46
|
+
"rowIndex",
|
|
47
|
+
"cellIndex",
|
|
48
|
+
"noWrap"
|
|
49
|
+
],
|
|
50
|
+
"additionalProperties": false
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"required": [
|
|
55
|
+
"input",
|
|
56
|
+
"output",
|
|
57
|
+
"receiptOutput",
|
|
58
|
+
"changes"
|
|
59
|
+
],
|
|
60
|
+
"additionalProperties": false
|
|
61
|
+
}
|