document-operations 1.1.34 → 1.1.36
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 +14 -14
- package/dist/index.d.ts +14 -14
- package/package.json +6 -6
package/dist/index.d.cts
CHANGED
|
@@ -172,9 +172,9 @@ declare const ComputeFormulaOutputSchema: z.ZodObject<{
|
|
|
172
172
|
kind: z.ZodLiteral<"quantity">;
|
|
173
173
|
magnitude: z.ZodNumber;
|
|
174
174
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
175
|
-
time: "time";
|
|
176
175
|
length: "length";
|
|
177
176
|
mass: "mass";
|
|
177
|
+
time: "time";
|
|
178
178
|
electricCurrent: "electricCurrent";
|
|
179
179
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
180
180
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -185,9 +185,9 @@ declare const ComputeFormulaOutputSchema: z.ZodObject<{
|
|
|
185
185
|
min: z.ZodNumber;
|
|
186
186
|
max: z.ZodNumber;
|
|
187
187
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
188
|
-
time: "time";
|
|
189
188
|
length: "length";
|
|
190
189
|
mass: "mass";
|
|
190
|
+
time: "time";
|
|
191
191
|
electricCurrent: "electricCurrent";
|
|
192
192
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
193
193
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -237,9 +237,9 @@ declare const computeFormulaOperation: {
|
|
|
237
237
|
kind: z.ZodLiteral<"quantity">;
|
|
238
238
|
magnitude: z.ZodNumber;
|
|
239
239
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
240
|
-
time: "time";
|
|
241
240
|
length: "length";
|
|
242
241
|
mass: "mass";
|
|
242
|
+
time: "time";
|
|
243
243
|
electricCurrent: "electricCurrent";
|
|
244
244
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
245
245
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -250,9 +250,9 @@ declare const computeFormulaOperation: {
|
|
|
250
250
|
min: z.ZodNumber;
|
|
251
251
|
max: z.ZodNumber;
|
|
252
252
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
253
|
-
time: "time";
|
|
254
253
|
length: "length";
|
|
255
254
|
mass: "mass";
|
|
255
|
+
time: "time";
|
|
256
256
|
electricCurrent: "electricCurrent";
|
|
257
257
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
258
258
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -300,9 +300,9 @@ declare const computeFormulaOperation: {
|
|
|
300
300
|
kind: z.ZodLiteral<"quantity">;
|
|
301
301
|
magnitude: z.ZodNumber;
|
|
302
302
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
303
|
-
time: "time";
|
|
304
303
|
length: "length";
|
|
305
304
|
mass: "mass";
|
|
305
|
+
time: "time";
|
|
306
306
|
electricCurrent: "electricCurrent";
|
|
307
307
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
308
308
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -313,9 +313,9 @@ declare const computeFormulaOperation: {
|
|
|
313
313
|
min: z.ZodNumber;
|
|
314
314
|
max: z.ZodNumber;
|
|
315
315
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
316
|
-
time: "time";
|
|
317
316
|
length: "length";
|
|
318
317
|
mass: "mass";
|
|
318
|
+
time: "time";
|
|
319
319
|
electricCurrent: "electricCurrent";
|
|
320
320
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
321
321
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -341,12 +341,12 @@ declare const computeFormulaOperation: {
|
|
|
341
341
|
bindings?: Record<string, {
|
|
342
342
|
kind: "quantity";
|
|
343
343
|
magnitude: number;
|
|
344
|
-
dimension: Partial<Record<"length" | "
|
|
344
|
+
dimension: Partial<Record<"length" | "mass" | "time" | "electricCurrent" | "thermodynamicTemperature" | "amountOfSubstance" | "luminousIntensity", number>>;
|
|
345
345
|
} | {
|
|
346
346
|
kind: "interval";
|
|
347
347
|
min: number;
|
|
348
348
|
max: number;
|
|
349
|
-
dimension: Partial<Record<"length" | "
|
|
349
|
+
dimension: Partial<Record<"length" | "mass" | "time" | "electricCurrent" | "thermodynamicTemperature" | "amountOfSubstance" | "luminousIntensity", number>>;
|
|
350
350
|
}> | undefined;
|
|
351
351
|
}, context?: DocumentOperationContext): Promise<{
|
|
352
352
|
sourceFormat: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd" | "svg" | "csv" | "doc" | "xls" | "ppt";
|
|
@@ -360,12 +360,12 @@ declare const computeFormulaOperation: {
|
|
|
360
360
|
result: {
|
|
361
361
|
kind: "quantity";
|
|
362
362
|
magnitude: number;
|
|
363
|
-
dimension: Partial<Record<"length" | "
|
|
363
|
+
dimension: Partial<Record<"length" | "mass" | "time" | "electricCurrent" | "thermodynamicTemperature" | "amountOfSubstance" | "luminousIntensity", number>>;
|
|
364
364
|
} | {
|
|
365
365
|
kind: "interval";
|
|
366
366
|
min: number;
|
|
367
367
|
max: number;
|
|
368
|
-
dimension: Partial<Record<"length" | "
|
|
368
|
+
dimension: Partial<Record<"length" | "mass" | "time" | "electricCurrent" | "thermodynamicTemperature" | "amountOfSubstance" | "luminousIntensity", number>>;
|
|
369
369
|
};
|
|
370
370
|
} | {
|
|
371
371
|
status: "no-content";
|
|
@@ -418,8 +418,8 @@ declare const ConvertDocumentOutputSchema: z.ZodObject<{
|
|
|
418
418
|
}, z.core.$strip>]>;
|
|
419
419
|
diagnostics: z.ZodArray<z.ZodObject<{
|
|
420
420
|
severity: z.ZodEnum<{
|
|
421
|
-
info: "info";
|
|
422
421
|
warning: "warning";
|
|
422
|
+
info: "info";
|
|
423
423
|
}>;
|
|
424
424
|
code: z.ZodString;
|
|
425
425
|
message: z.ZodString;
|
|
@@ -573,8 +573,8 @@ declare const convertDocumentOperation: {
|
|
|
573
573
|
}, z.core.$strip>]>;
|
|
574
574
|
diagnostics: z.ZodArray<z.ZodObject<{
|
|
575
575
|
severity: z.ZodEnum<{
|
|
576
|
-
info: "info";
|
|
577
576
|
warning: "warning";
|
|
577
|
+
info: "info";
|
|
578
578
|
}>;
|
|
579
579
|
code: z.ZodString;
|
|
580
580
|
message: z.ZodString;
|
|
@@ -621,7 +621,7 @@ declare const convertDocumentOperation: {
|
|
|
621
621
|
large?: true | undefined;
|
|
622
622
|
};
|
|
623
623
|
diagnostics: {
|
|
624
|
-
severity: "
|
|
624
|
+
severity: "warning" | "info";
|
|
625
625
|
code: string;
|
|
626
626
|
message: string;
|
|
627
627
|
pageIndex?: number | undefined;
|
|
@@ -2041,7 +2041,7 @@ declare const pdfInspectOperation: {
|
|
|
2041
2041
|
font: {
|
|
2042
2042
|
family: string;
|
|
2043
2043
|
weight: "bold" | "normal";
|
|
2044
|
-
style: "
|
|
2044
|
+
style: "italic" | "normal";
|
|
2045
2045
|
};
|
|
2046
2046
|
sizePt: number;
|
|
2047
2047
|
color: {
|
package/dist/index.d.ts
CHANGED
|
@@ -172,9 +172,9 @@ declare const ComputeFormulaOutputSchema: z.ZodObject<{
|
|
|
172
172
|
kind: z.ZodLiteral<"quantity">;
|
|
173
173
|
magnitude: z.ZodNumber;
|
|
174
174
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
175
|
-
time: "time";
|
|
176
175
|
length: "length";
|
|
177
176
|
mass: "mass";
|
|
177
|
+
time: "time";
|
|
178
178
|
electricCurrent: "electricCurrent";
|
|
179
179
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
180
180
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -185,9 +185,9 @@ declare const ComputeFormulaOutputSchema: z.ZodObject<{
|
|
|
185
185
|
min: z.ZodNumber;
|
|
186
186
|
max: z.ZodNumber;
|
|
187
187
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
188
|
-
time: "time";
|
|
189
188
|
length: "length";
|
|
190
189
|
mass: "mass";
|
|
190
|
+
time: "time";
|
|
191
191
|
electricCurrent: "electricCurrent";
|
|
192
192
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
193
193
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -237,9 +237,9 @@ declare const computeFormulaOperation: {
|
|
|
237
237
|
kind: z.ZodLiteral<"quantity">;
|
|
238
238
|
magnitude: z.ZodNumber;
|
|
239
239
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
240
|
-
time: "time";
|
|
241
240
|
length: "length";
|
|
242
241
|
mass: "mass";
|
|
242
|
+
time: "time";
|
|
243
243
|
electricCurrent: "electricCurrent";
|
|
244
244
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
245
245
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -250,9 +250,9 @@ declare const computeFormulaOperation: {
|
|
|
250
250
|
min: z.ZodNumber;
|
|
251
251
|
max: z.ZodNumber;
|
|
252
252
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
253
|
-
time: "time";
|
|
254
253
|
length: "length";
|
|
255
254
|
mass: "mass";
|
|
255
|
+
time: "time";
|
|
256
256
|
electricCurrent: "electricCurrent";
|
|
257
257
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
258
258
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -300,9 +300,9 @@ declare const computeFormulaOperation: {
|
|
|
300
300
|
kind: z.ZodLiteral<"quantity">;
|
|
301
301
|
magnitude: z.ZodNumber;
|
|
302
302
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
303
|
-
time: "time";
|
|
304
303
|
length: "length";
|
|
305
304
|
mass: "mass";
|
|
305
|
+
time: "time";
|
|
306
306
|
electricCurrent: "electricCurrent";
|
|
307
307
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
308
308
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -313,9 +313,9 @@ declare const computeFormulaOperation: {
|
|
|
313
313
|
min: z.ZodNumber;
|
|
314
314
|
max: z.ZodNumber;
|
|
315
315
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
316
|
-
time: "time";
|
|
317
316
|
length: "length";
|
|
318
317
|
mass: "mass";
|
|
318
|
+
time: "time";
|
|
319
319
|
electricCurrent: "electricCurrent";
|
|
320
320
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
321
321
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -341,12 +341,12 @@ declare const computeFormulaOperation: {
|
|
|
341
341
|
bindings?: Record<string, {
|
|
342
342
|
kind: "quantity";
|
|
343
343
|
magnitude: number;
|
|
344
|
-
dimension: Partial<Record<"length" | "
|
|
344
|
+
dimension: Partial<Record<"length" | "mass" | "time" | "electricCurrent" | "thermodynamicTemperature" | "amountOfSubstance" | "luminousIntensity", number>>;
|
|
345
345
|
} | {
|
|
346
346
|
kind: "interval";
|
|
347
347
|
min: number;
|
|
348
348
|
max: number;
|
|
349
|
-
dimension: Partial<Record<"length" | "
|
|
349
|
+
dimension: Partial<Record<"length" | "mass" | "time" | "electricCurrent" | "thermodynamicTemperature" | "amountOfSubstance" | "luminousIntensity", number>>;
|
|
350
350
|
}> | undefined;
|
|
351
351
|
}, context?: DocumentOperationContext): Promise<{
|
|
352
352
|
sourceFormat: "docx" | "pptx" | "xlsx" | "odt" | "ods" | "odp" | "odg" | "odf" | "markdown" | "pdf" | "epub" | "rtf" | "wpd" | "svg" | "csv" | "doc" | "xls" | "ppt";
|
|
@@ -360,12 +360,12 @@ declare const computeFormulaOperation: {
|
|
|
360
360
|
result: {
|
|
361
361
|
kind: "quantity";
|
|
362
362
|
magnitude: number;
|
|
363
|
-
dimension: Partial<Record<"length" | "
|
|
363
|
+
dimension: Partial<Record<"length" | "mass" | "time" | "electricCurrent" | "thermodynamicTemperature" | "amountOfSubstance" | "luminousIntensity", number>>;
|
|
364
364
|
} | {
|
|
365
365
|
kind: "interval";
|
|
366
366
|
min: number;
|
|
367
367
|
max: number;
|
|
368
|
-
dimension: Partial<Record<"length" | "
|
|
368
|
+
dimension: Partial<Record<"length" | "mass" | "time" | "electricCurrent" | "thermodynamicTemperature" | "amountOfSubstance" | "luminousIntensity", number>>;
|
|
369
369
|
};
|
|
370
370
|
} | {
|
|
371
371
|
status: "no-content";
|
|
@@ -418,8 +418,8 @@ declare const ConvertDocumentOutputSchema: z.ZodObject<{
|
|
|
418
418
|
}, z.core.$strip>]>;
|
|
419
419
|
diagnostics: z.ZodArray<z.ZodObject<{
|
|
420
420
|
severity: z.ZodEnum<{
|
|
421
|
-
info: "info";
|
|
422
421
|
warning: "warning";
|
|
422
|
+
info: "info";
|
|
423
423
|
}>;
|
|
424
424
|
code: z.ZodString;
|
|
425
425
|
message: z.ZodString;
|
|
@@ -573,8 +573,8 @@ declare const convertDocumentOperation: {
|
|
|
573
573
|
}, z.core.$strip>]>;
|
|
574
574
|
diagnostics: z.ZodArray<z.ZodObject<{
|
|
575
575
|
severity: z.ZodEnum<{
|
|
576
|
-
info: "info";
|
|
577
576
|
warning: "warning";
|
|
577
|
+
info: "info";
|
|
578
578
|
}>;
|
|
579
579
|
code: z.ZodString;
|
|
580
580
|
message: z.ZodString;
|
|
@@ -621,7 +621,7 @@ declare const convertDocumentOperation: {
|
|
|
621
621
|
large?: true | undefined;
|
|
622
622
|
};
|
|
623
623
|
diagnostics: {
|
|
624
|
-
severity: "
|
|
624
|
+
severity: "warning" | "info";
|
|
625
625
|
code: string;
|
|
626
626
|
message: string;
|
|
627
627
|
pageIndex?: number | undefined;
|
|
@@ -2041,7 +2041,7 @@ declare const pdfInspectOperation: {
|
|
|
2041
2041
|
font: {
|
|
2042
2042
|
family: string;
|
|
2043
2043
|
weight: "bold" | "normal";
|
|
2044
|
-
style: "
|
|
2044
|
+
style: "italic" | "normal";
|
|
2045
2045
|
};
|
|
2046
2046
|
sizePt: number;
|
|
2047
2047
|
color: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "document-operations",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.36",
|
|
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.5.
|
|
86
|
-
"document-outline.js": "3.9.
|
|
87
|
-
"document-schema.js": "7.11.
|
|
88
|
-
"documents.js": "7.20.
|
|
85
|
+
"document-compute.js": "1.5.38",
|
|
86
|
+
"document-outline.js": "3.9.17",
|
|
87
|
+
"document-schema.js": "7.11.5",
|
|
88
|
+
"documents.js": "7.20.35",
|
|
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": "8.0.
|
|
101
|
+
"odf.js": "8.0.1",
|
|
102
102
|
"publint": "0.3.22",
|
|
103
103
|
"semantic-release": "25.0.9",
|
|
104
104
|
"tsdown": "0.22.14",
|