document-operations 1.1.97 → 1.1.99
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/dist/index.d.cts +12 -12
- package/dist/index.d.ts +12 -12
- package/package.json +4 -4
package/dist/index.d.cts
CHANGED
|
@@ -207,7 +207,7 @@ declare const ComputeFormulaOutputSchema: z.ZodObject<{
|
|
|
207
207
|
}, z.core.$strip>;
|
|
208
208
|
declare const computeFormulaOperation: {
|
|
209
209
|
run: (input: unknown, context?: DocumentOperationContext) => Promise<{
|
|
210
|
-
sourceFormat: "docx" | "pptx" | "xlsx" | "odt" | "
|
|
210
|
+
sourceFormat: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd" | "svg" | "csv" | "doc" | "xls" | "ppt";
|
|
211
211
|
documentKind: "wordprocessing" | "presentation" | "spreadsheet" | "drawing" | "formula";
|
|
212
212
|
formulaCount: number;
|
|
213
213
|
formulas: {
|
|
@@ -467,7 +467,7 @@ declare const ListDocumentConversionsOutputSchema: z.ZodObject<{
|
|
|
467
467
|
}, z.core.$strip>;
|
|
468
468
|
declare const convertDocumentOperation: {
|
|
469
469
|
run: (input: unknown, context?: DocumentOperationContext) => Promise<{
|
|
470
|
-
targetFormat: "docx" | "pptx" | "xlsx" | "odt" | "
|
|
470
|
+
targetFormat: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd" | "svg" | "csv" | "doc" | "xls" | "ppt";
|
|
471
471
|
output: {
|
|
472
472
|
path: string;
|
|
473
473
|
byteLength: number;
|
|
@@ -604,8 +604,8 @@ declare const convertDocumentOperation: {
|
|
|
604
604
|
declare const listDocumentConversionsOperation: {
|
|
605
605
|
run: (input: unknown, context?: DocumentOperationContext) => Promise<{
|
|
606
606
|
conversions: {
|
|
607
|
-
source: "docx" | "pptx" | "xlsx" | "odt" | "
|
|
608
|
-
target: "docx" | "pptx" | "xlsx" | "odt" | "
|
|
607
|
+
source: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd" | "svg" | "csv" | "doc" | "xls" | "ppt";
|
|
608
|
+
target: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd" | "svg" | "csv" | "doc" | "xls" | "ppt";
|
|
609
609
|
}[];
|
|
610
610
|
}>;
|
|
611
611
|
name: string;
|
|
@@ -711,8 +711,8 @@ declare const documentCreateOperation: {
|
|
|
711
711
|
docx: "docx";
|
|
712
712
|
pptx: "pptx";
|
|
713
713
|
odt: "odt";
|
|
714
|
-
odp: "odp";
|
|
715
714
|
ods: "ods";
|
|
715
|
+
odp: "odp";
|
|
716
716
|
odg: "odg";
|
|
717
717
|
markdown: "markdown";
|
|
718
718
|
pdf: "pdf";
|
|
@@ -779,8 +779,8 @@ declare const documentAppendParagraphsOperation: {
|
|
|
779
779
|
headingLevel: z.ZodOptional<z.ZodNumber>;
|
|
780
780
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
781
781
|
left: "left";
|
|
782
|
-
center: "center";
|
|
783
782
|
right: "right";
|
|
783
|
+
center: "center";
|
|
784
784
|
justify: "justify";
|
|
785
785
|
}>>;
|
|
786
786
|
runs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1084,7 +1084,7 @@ declare const metadataWriteOperation: {
|
|
|
1084
1084
|
}, z.core.$strip>]>;
|
|
1085
1085
|
};
|
|
1086
1086
|
//#endregion
|
|
1087
|
-
//#region ../odf.js/dist/read-
|
|
1087
|
+
//#region ../odf.js/dist/read-Buxfl_Bt.d.ts
|
|
1088
1088
|
interface OdtDocument {
|
|
1089
1089
|
metadata: LayoutMetadata;
|
|
1090
1090
|
sections: ContentSection[];
|
|
@@ -1101,7 +1101,7 @@ interface OdtHeaderFooterPart {
|
|
|
1101
1101
|
readonly blocks: ContentBlock[];
|
|
1102
1102
|
}
|
|
1103
1103
|
//#endregion
|
|
1104
|
-
//#region ../odf.js/dist/forms-
|
|
1104
|
+
//#region ../odf.js/dist/forms-DGfbFo5Z.d.ts
|
|
1105
1105
|
//#region src/typed/shared/forms.d.ts
|
|
1106
1106
|
interface OdbFormControl {
|
|
1107
1107
|
tag: string;
|
|
@@ -1123,7 +1123,7 @@ interface OdbFormDefinition {
|
|
|
1123
1123
|
subForms: OdbFormDefinition[];
|
|
1124
1124
|
}
|
|
1125
1125
|
//#endregion
|
|
1126
|
-
//#region ../odf.js/dist/form-
|
|
1126
|
+
//#region ../odf.js/dist/form-CcNpyDeG.d.ts
|
|
1127
1127
|
//#region src/typed/odb/form.d.ts
|
|
1128
1128
|
interface OdbForm {
|
|
1129
1129
|
name: string;
|
|
@@ -1132,7 +1132,7 @@ interface OdbForm {
|
|
|
1132
1132
|
forms: OdbFormDefinition[];
|
|
1133
1133
|
}
|
|
1134
1134
|
//#endregion
|
|
1135
|
-
//#region ../odf.js/dist/report-
|
|
1135
|
+
//#region ../odf.js/dist/report-r8tCi_tJ.d.ts
|
|
1136
1136
|
//#region src/typed/odb/report.d.ts
|
|
1137
1137
|
interface OdbReportElement {
|
|
1138
1138
|
tag: string;
|
|
@@ -1953,7 +1953,7 @@ declare const pdfInspectOperation: {
|
|
|
1953
1953
|
yPt: number;
|
|
1954
1954
|
}][] | undefined;
|
|
1955
1955
|
source?: {
|
|
1956
|
-
format: "docx" | "pptx" | "xlsx" | "odt" | "
|
|
1956
|
+
format: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odm" | "odb" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd";
|
|
1957
1957
|
xml: string;
|
|
1958
1958
|
} | undefined;
|
|
1959
1959
|
}[] | undefined;
|
|
@@ -1996,7 +1996,7 @@ declare const pdfInspectOperation: {
|
|
|
1996
1996
|
structure?: LayoutStructureElement[] | undefined;
|
|
1997
1997
|
form?: LayoutFormField[] | undefined;
|
|
1998
1998
|
source?: Record<string, {
|
|
1999
|
-
format: "docx" | "pptx" | "xlsx" | "odt" | "
|
|
1999
|
+
format: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odm" | "odb" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd";
|
|
2000
2000
|
xml: string;
|
|
2001
2001
|
}> | undefined;
|
|
2002
2002
|
} | PdfInspectSummary>;
|
package/dist/index.d.ts
CHANGED
|
@@ -207,7 +207,7 @@ declare const ComputeFormulaOutputSchema: z.ZodObject<{
|
|
|
207
207
|
}, z.core.$strip>;
|
|
208
208
|
declare const computeFormulaOperation: {
|
|
209
209
|
run: (input: unknown, context?: DocumentOperationContext) => Promise<{
|
|
210
|
-
sourceFormat: "docx" | "pptx" | "xlsx" | "odt" | "
|
|
210
|
+
sourceFormat: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd" | "svg" | "csv" | "doc" | "xls" | "ppt";
|
|
211
211
|
documentKind: "wordprocessing" | "presentation" | "spreadsheet" | "drawing" | "formula";
|
|
212
212
|
formulaCount: number;
|
|
213
213
|
formulas: {
|
|
@@ -467,7 +467,7 @@ declare const ListDocumentConversionsOutputSchema: z.ZodObject<{
|
|
|
467
467
|
}, z.core.$strip>;
|
|
468
468
|
declare const convertDocumentOperation: {
|
|
469
469
|
run: (input: unknown, context?: DocumentOperationContext) => Promise<{
|
|
470
|
-
targetFormat: "docx" | "pptx" | "xlsx" | "odt" | "
|
|
470
|
+
targetFormat: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd" | "svg" | "csv" | "doc" | "xls" | "ppt";
|
|
471
471
|
output: {
|
|
472
472
|
path: string;
|
|
473
473
|
byteLength: number;
|
|
@@ -604,8 +604,8 @@ declare const convertDocumentOperation: {
|
|
|
604
604
|
declare const listDocumentConversionsOperation: {
|
|
605
605
|
run: (input: unknown, context?: DocumentOperationContext) => Promise<{
|
|
606
606
|
conversions: {
|
|
607
|
-
source: "docx" | "pptx" | "xlsx" | "odt" | "
|
|
608
|
-
target: "docx" | "pptx" | "xlsx" | "odt" | "
|
|
607
|
+
source: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd" | "svg" | "csv" | "doc" | "xls" | "ppt";
|
|
608
|
+
target: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd" | "svg" | "csv" | "doc" | "xls" | "ppt";
|
|
609
609
|
}[];
|
|
610
610
|
}>;
|
|
611
611
|
name: string;
|
|
@@ -711,8 +711,8 @@ declare const documentCreateOperation: {
|
|
|
711
711
|
docx: "docx";
|
|
712
712
|
pptx: "pptx";
|
|
713
713
|
odt: "odt";
|
|
714
|
-
odp: "odp";
|
|
715
714
|
ods: "ods";
|
|
715
|
+
odp: "odp";
|
|
716
716
|
odg: "odg";
|
|
717
717
|
markdown: "markdown";
|
|
718
718
|
pdf: "pdf";
|
|
@@ -779,8 +779,8 @@ declare const documentAppendParagraphsOperation: {
|
|
|
779
779
|
headingLevel: z.ZodOptional<z.ZodNumber>;
|
|
780
780
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
781
781
|
left: "left";
|
|
782
|
-
center: "center";
|
|
783
782
|
right: "right";
|
|
783
|
+
center: "center";
|
|
784
784
|
justify: "justify";
|
|
785
785
|
}>>;
|
|
786
786
|
runs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1084,7 +1084,7 @@ declare const metadataWriteOperation: {
|
|
|
1084
1084
|
}, z.core.$strip>]>;
|
|
1085
1085
|
};
|
|
1086
1086
|
//#endregion
|
|
1087
|
-
//#region ../odf.js/dist/read-
|
|
1087
|
+
//#region ../odf.js/dist/read-Buxfl_Bt.d.ts
|
|
1088
1088
|
interface OdtDocument {
|
|
1089
1089
|
metadata: LayoutMetadata;
|
|
1090
1090
|
sections: ContentSection[];
|
|
@@ -1101,7 +1101,7 @@ interface OdtHeaderFooterPart {
|
|
|
1101
1101
|
readonly blocks: ContentBlock[];
|
|
1102
1102
|
}
|
|
1103
1103
|
//#endregion
|
|
1104
|
-
//#region ../odf.js/dist/forms-
|
|
1104
|
+
//#region ../odf.js/dist/forms-DGfbFo5Z.d.ts
|
|
1105
1105
|
//#region src/typed/shared/forms.d.ts
|
|
1106
1106
|
interface OdbFormControl {
|
|
1107
1107
|
tag: string;
|
|
@@ -1123,7 +1123,7 @@ interface OdbFormDefinition {
|
|
|
1123
1123
|
subForms: OdbFormDefinition[];
|
|
1124
1124
|
}
|
|
1125
1125
|
//#endregion
|
|
1126
|
-
//#region ../odf.js/dist/form-
|
|
1126
|
+
//#region ../odf.js/dist/form-CcNpyDeG.d.ts
|
|
1127
1127
|
//#region src/typed/odb/form.d.ts
|
|
1128
1128
|
interface OdbForm {
|
|
1129
1129
|
name: string;
|
|
@@ -1132,7 +1132,7 @@ interface OdbForm {
|
|
|
1132
1132
|
forms: OdbFormDefinition[];
|
|
1133
1133
|
}
|
|
1134
1134
|
//#endregion
|
|
1135
|
-
//#region ../odf.js/dist/report-
|
|
1135
|
+
//#region ../odf.js/dist/report-r8tCi_tJ.d.ts
|
|
1136
1136
|
//#region src/typed/odb/report.d.ts
|
|
1137
1137
|
interface OdbReportElement {
|
|
1138
1138
|
tag: string;
|
|
@@ -1953,7 +1953,7 @@ declare const pdfInspectOperation: {
|
|
|
1953
1953
|
yPt: number;
|
|
1954
1954
|
}][] | undefined;
|
|
1955
1955
|
source?: {
|
|
1956
|
-
format: "docx" | "pptx" | "xlsx" | "odt" | "
|
|
1956
|
+
format: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odm" | "odb" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd";
|
|
1957
1957
|
xml: string;
|
|
1958
1958
|
} | undefined;
|
|
1959
1959
|
}[] | undefined;
|
|
@@ -1996,7 +1996,7 @@ declare const pdfInspectOperation: {
|
|
|
1996
1996
|
structure?: LayoutStructureElement[] | undefined;
|
|
1997
1997
|
form?: LayoutFormField[] | undefined;
|
|
1998
1998
|
source?: Record<string, {
|
|
1999
|
-
format: "docx" | "pptx" | "xlsx" | "odt" | "
|
|
1999
|
+
format: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odm" | "odb" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd";
|
|
2000
2000
|
xml: string;
|
|
2001
2001
|
}> | undefined;
|
|
2002
2002
|
} | PdfInspectSummary>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "document-operations",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.99",
|
|
4
4
|
"description": "The canonical set of document-conversion, editing, inspection, and .odb operations documents.js exposes — one Zod input/output schema and one transport-agnostic run() function per operation, shared by document-mcp, document-cli, and a REST API server rather than each defining its own copy.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -82,10 +82,10 @@
|
|
|
82
82
|
"license": "MIT",
|
|
83
83
|
"packageManager": "pnpm@12.4.1+sha512.2e81e399d73fe8390dab25e06aa788ab7a5908248d2f5a370f82b481147a6a7a367bf8048f9a6fdb6460f21a66f0542dedb8b94ca2c8723596741920b1656d4c",
|
|
84
84
|
"dependencies": {
|
|
85
|
-
"document-compute.js": "1.6.
|
|
85
|
+
"document-compute.js": "1.6.46",
|
|
86
86
|
"document-outline.js": "3.10.21",
|
|
87
87
|
"document-schema.js": "7.15.3",
|
|
88
|
-
"documents.js": "14.4.
|
|
88
|
+
"documents.js": "14.4.36",
|
|
89
89
|
"zod": "4.4.3"
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"@vitest/coverage-v8": "4.1.11",
|
|
99
99
|
"eslint": "10.8.1",
|
|
100
100
|
"husky": "9.1.7",
|
|
101
|
-
"odf.js": "11.1.
|
|
101
|
+
"odf.js": "11.1.10",
|
|
102
102
|
"publint": "0.3.22",
|
|
103
103
|
"semantic-release": "25.0.9",
|
|
104
104
|
"tsdown": "0.22.14",
|