document-schema 7.12.0 → 7.13.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.
Files changed (46) hide show
  1. package/README.md +6 -0
  2. package/dist/codec.d.cts +1 -1
  3. package/dist/codec.d.ts +1 -1
  4. package/dist/{construct-C4XiF8OW.d.cts → construct-GVdTKrE7.d.cts} +3 -3
  5. package/dist/{construct-C4XiF8OW.d.ts → construct-GVdTKrE7.d.ts} +3 -3
  6. package/dist/construct.d.cts +1 -1
  7. package/dist/construct.d.ts +1 -1
  8. package/dist/{content-DnNAXdH_.d.cts → content-CvvaHPSp.d.cts} +145 -145
  9. package/dist/{content-vx3Mbnjy.d.ts → content-DbjeTN2j.d.ts} +145 -145
  10. package/dist/content.d.cts +1 -1
  11. package/dist/content.d.ts +1 -1
  12. package/dist/decompose.d.cts +2 -2
  13. package/dist/decompose.d.ts +2 -2
  14. package/dist/definitions.d.cts +4 -4
  15. package/dist/definitions.d.ts +4 -4
  16. package/dist/factor-styles.d.cts +1 -1
  17. package/dist/factor-styles.d.ts +1 -1
  18. package/dist/flatten.d.cts +1 -1
  19. package/dist/flatten.d.ts +1 -1
  20. package/dist/index.cjs +2 -0
  21. package/dist/index.d.cts +6 -6
  22. package/dist/index.d.ts +6 -6
  23. package/dist/index.js +2 -2
  24. package/dist/{package-node-CjEahULr.d.ts → package-node--fbVCVcl.d.ts} +50 -50
  25. package/dist/{package-node-DMS4Zrfi.d.cts → package-node-D7WUiIDz.d.cts} +50 -50
  26. package/dist/package-node.d.cts +1 -1
  27. package/dist/package-node.d.ts +1 -1
  28. package/dist/package.d.cts +7 -7
  29. package/dist/package.d.ts +7 -7
  30. package/dist/schema-io.cjs +2 -2
  31. package/dist/schema-io.d.cts +1 -1
  32. package/dist/schema-io.d.ts +1 -1
  33. package/dist/schema-io.js +2 -2
  34. package/dist/{style-D06NwxAJ.d.cts → style-BGMcYrD2.d.cts} +1 -1
  35. package/dist/{style-D06NwxAJ.d.ts → style-BGMcYrD2.d.ts} +1 -1
  36. package/dist/style.d.cts +1 -1
  37. package/dist/style.d.ts +1 -1
  38. package/dist/table-grid.cjs +85 -0
  39. package/dist/table-grid.d.cts +49 -3
  40. package/dist/table-grid.d.ts +49 -3
  41. package/dist/table-grid.js +84 -1
  42. package/dist/text-layout.d.cts +1 -1
  43. package/dist/text-layout.d.ts +1 -1
  44. package/package.json +1 -1
  45. package/schemas/content-document.schema.json +16 -16
  46. package/schemas/document-tree.schema.json +3 -3
@@ -1,5 +1,5 @@
1
- import { D as ContentEmbeddedObject, Gt as ContentSheetImage, Sn as ContentVector, W as ContentFormula, _ as ContentConstructEnd, a as ContentBlock, y as ContentConstructStart } from "./content-vx3Mbnjy.js";
2
- import { a as ConstructDescriptor } from "./construct-C4XiF8OW.js";
1
+ import { D as ContentEmbeddedObject, Gt as ContentSheetImage, Sn as ContentVector, W as ContentFormula, _ as ContentConstructEnd, a as ContentBlock, y as ContentConstructStart } from "./content-DbjeTN2j.js";
2
+ import { a as ConstructDescriptor } from "./construct-GVdTKrE7.js";
3
3
  import { z } from "zod";
4
4
  //#region src/package-node.d.ts
5
5
  declare const SectionDescriptorSchema: z.ZodObject<{
@@ -23,23 +23,13 @@ declare const SectionDescriptorSchema: z.ZodObject<{
23
23
  }>;
24
24
  xml: z.ZodString;
25
25
  }, z.core.$strict>>;
26
- pageSize: z.ZodObject<{
27
- widthPt: z.ZodNumber;
28
- heightPt: z.ZodNumber;
29
- }, z.core.$strip>;
30
- margins: z.ZodObject<{
31
- topPt: z.ZodNumber;
32
- rightPt: z.ZodNumber;
33
- bottomPt: z.ZodNumber;
34
- leftPt: z.ZodNumber;
35
- }, z.core.$strip>;
36
26
  origin: z.ZodOptional<z.ZodEnum<{
37
- body: "body";
38
27
  chart: "chart";
39
28
  diagram: "diagram";
40
29
  table: "table";
41
30
  image: "image";
42
31
  notes: "notes";
32
+ body: "body";
43
33
  }>>;
44
34
  interpretation: z.ZodOptional<z.ZodObject<{
45
35
  transcript: z.ZodOptional<z.ZodObject<{
@@ -60,6 +50,16 @@ declare const SectionDescriptorSchema: z.ZodObject<{
60
50
  at: z.ZodString;
61
51
  }, z.core.$strip>>;
62
52
  }, z.core.$strip>>;
53
+ pageSize: z.ZodObject<{
54
+ widthPt: z.ZodNumber;
55
+ heightPt: z.ZodNumber;
56
+ }, z.core.$strip>;
57
+ margins: z.ZodObject<{
58
+ topPt: z.ZodNumber;
59
+ rightPt: z.ZodNumber;
60
+ bottomPt: z.ZodNumber;
61
+ leftPt: z.ZodNumber;
62
+ }, z.core.$strip>;
63
63
  breakType: z.ZodOptional<z.ZodEnum<{
64
64
  nextPage: "nextPage";
65
65
  continuous: "continuous";
@@ -85,6 +85,7 @@ declare const SectionDescriptorSchema: z.ZodObject<{
85
85
  }, z.core.$strict>;
86
86
  type SectionDescriptor = z.infer<typeof SectionDescriptorSchema>;
87
87
  declare const SlideDescriptorSchema: z.ZodObject<{
88
+ notes: z.ZodString;
88
89
  source: z.ZodOptional<z.ZodObject<{
89
90
  format: z.ZodEnum<{
90
91
  docx: "docx";
@@ -105,14 +106,13 @@ declare const SlideDescriptorSchema: z.ZodObject<{
105
106
  }>;
106
107
  xml: z.ZodString;
107
108
  }, z.core.$strict>>;
108
- notes: z.ZodString;
109
109
  origin: z.ZodOptional<z.ZodEnum<{
110
- body: "body";
111
110
  chart: "chart";
112
111
  diagram: "diagram";
113
112
  table: "table";
114
113
  image: "image";
115
114
  notes: "notes";
115
+ body: "body";
116
116
  }>>;
117
117
  interpretation: z.ZodOptional<z.ZodObject<{
118
118
  transcript: z.ZodOptional<z.ZodObject<{
@@ -141,7 +141,6 @@ declare const SlideDescriptorSchema: z.ZodObject<{
141
141
  }, z.core.$strict>;
142
142
  type SlideDescriptor = z.infer<typeof SlideDescriptorSchema>;
143
143
  declare const SheetDescriptorSchema: z.ZodObject<{
144
- name: z.ZodString;
145
144
  source: z.ZodOptional<z.ZodObject<{
146
145
  format: z.ZodEnum<{
147
146
  docx: "docx";
@@ -162,18 +161,13 @@ declare const SheetDescriptorSchema: z.ZodObject<{
162
161
  }>;
163
162
  xml: z.ZodString;
164
163
  }, z.core.$strict>>;
165
- rows: z.ZodArray<z.ZodObject<{
166
- index: z.ZodNumber;
167
- heightPt: z.ZodOptional<z.ZodNumber>;
168
- hidden: z.ZodOptional<z.ZodBoolean>;
169
- }, z.core.$strip>>;
170
164
  origin: z.ZodOptional<z.ZodEnum<{
171
- body: "body";
172
165
  chart: "chart";
173
166
  diagram: "diagram";
174
167
  table: "table";
175
168
  image: "image";
176
169
  notes: "notes";
170
+ body: "body";
177
171
  }>>;
178
172
  interpretation: z.ZodOptional<z.ZodObject<{
179
173
  transcript: z.ZodOptional<z.ZodObject<{
@@ -194,6 +188,7 @@ declare const SheetDescriptorSchema: z.ZodObject<{
194
188
  at: z.ZodString;
195
189
  }, z.core.$strip>>;
196
190
  }, z.core.$strip>>;
191
+ name: z.ZodString;
197
192
  printSettings: z.ZodObject<{
198
193
  pageSize: z.ZodObject<{
199
194
  widthPt: z.ZodNumber;
@@ -237,12 +232,12 @@ declare const SheetDescriptorSchema: z.ZodObject<{
237
232
  }, z.core.$strip>;
238
233
  cells: z.ZodArray<z.ZodObject<{
239
234
  origin: z.ZodOptional<z.ZodEnum<{
240
- body: "body";
241
235
  chart: "chart";
242
236
  diagram: "diagram";
243
237
  table: "table";
244
238
  image: "image";
245
239
  notes: "notes";
240
+ body: "body";
246
241
  }>>;
247
242
  interpretation: z.ZodOptional<z.ZodObject<{
248
243
  transcript: z.ZodOptional<z.ZodObject<{
@@ -317,12 +312,12 @@ declare const SheetDescriptorSchema: z.ZodObject<{
317
312
  }, z.core.$strip>>;
318
313
  runs: z.ZodOptional<z.ZodArray<z.ZodObject<{
319
314
  origin: z.ZodOptional<z.ZodEnum<{
320
- body: "body";
321
315
  chart: "chart";
322
316
  diagram: "diagram";
323
317
  table: "table";
324
318
  image: "image";
325
319
  notes: "notes";
320
+ body: "body";
326
321
  }>>;
327
322
  interpretation: z.ZodOptional<z.ZodObject<{
328
323
  transcript: z.ZodOptional<z.ZodObject<{
@@ -557,8 +552,8 @@ declare const SheetDescriptorSchema: z.ZodObject<{
557
552
  }, z.core.$strip>>;
558
553
  alignment: z.ZodOptional<z.ZodEnum<{
559
554
  left: "left";
560
- center: "center";
561
555
  right: "right";
556
+ center: "center";
562
557
  justify: "justify";
563
558
  }>>;
564
559
  verticalAlignment: z.ZodOptional<z.ZodEnum<{
@@ -609,6 +604,11 @@ declare const SheetDescriptorSchema: z.ZodObject<{
609
604
  widthPt: z.ZodOptional<z.ZodNumber>;
610
605
  hidden: z.ZodOptional<z.ZodBoolean>;
611
606
  }, z.core.$strip>>;
607
+ rows: z.ZodArray<z.ZodObject<{
608
+ index: z.ZodNumber;
609
+ heightPt: z.ZodOptional<z.ZodNumber>;
610
+ hidden: z.ZodOptional<z.ZodBoolean>;
611
+ }, z.core.$strip>>;
612
612
  dataValidations: z.ZodOptional<z.ZodArray<z.ZodObject<{
613
613
  ranges: z.ZodArray<z.ZodObject<{
614
614
  startRow: z.ZodNumber;
@@ -617,11 +617,11 @@ declare const SheetDescriptorSchema: z.ZodObject<{
617
617
  endColumn: z.ZodNumber;
618
618
  }, z.core.$strip>>;
619
619
  type: z.ZodEnum<{
620
- time: "time";
621
620
  date: "date";
622
621
  custom: "custom";
623
622
  decimal: "decimal";
624
623
  list: "list";
624
+ time: "time";
625
625
  whole: "whole";
626
626
  textLength: "textLength";
627
627
  }>;
@@ -1092,11 +1092,11 @@ declare const SheetDescriptorSchema: z.ZodObject<{
1092
1092
  stops: z.ZodArray<z.ZodObject<{
1093
1093
  value: z.ZodObject<{
1094
1094
  type: z.ZodEnum<{
1095
- num: "num";
1096
- min: "min";
1097
- max: "max";
1098
1095
  formula: "formula";
1099
1096
  percent: "percent";
1097
+ num: "num";
1098
+ max: "max";
1099
+ min: "min";
1100
1100
  percentile: "percentile";
1101
1101
  }>;
1102
1102
  value: z.ZodOptional<z.ZodString>;
@@ -1139,22 +1139,22 @@ declare const SheetDescriptorSchema: z.ZodObject<{
1139
1139
  }, z.core.$strip>, z.ZodObject<{
1140
1140
  min: z.ZodObject<{
1141
1141
  type: z.ZodEnum<{
1142
- num: "num";
1143
- min: "min";
1144
- max: "max";
1145
1142
  formula: "formula";
1146
1143
  percent: "percent";
1144
+ num: "num";
1145
+ max: "max";
1146
+ min: "min";
1147
1147
  percentile: "percentile";
1148
1148
  }>;
1149
1149
  value: z.ZodOptional<z.ZodString>;
1150
1150
  }, z.core.$strip>;
1151
1151
  max: z.ZodObject<{
1152
1152
  type: z.ZodEnum<{
1153
- num: "num";
1154
- min: "min";
1155
- max: "max";
1156
1153
  formula: "formula";
1157
1154
  percent: "percent";
1155
+ num: "num";
1156
+ max: "max";
1157
+ min: "min";
1158
1158
  percentile: "percentile";
1159
1159
  }>;
1160
1160
  value: z.ZodOptional<z.ZodString>;
@@ -1198,11 +1198,11 @@ declare const SheetDescriptorSchema: z.ZodObject<{
1198
1198
  iconSetType: z.ZodString;
1199
1199
  thresholds: z.ZodArray<z.ZodObject<{
1200
1200
  type: z.ZodEnum<{
1201
- num: "num";
1202
- min: "min";
1203
- max: "max";
1204
1201
  formula: "formula";
1205
1202
  percent: "percent";
1203
+ num: "num";
1204
+ max: "max";
1205
+ min: "min";
1206
1206
  percentile: "percentile";
1207
1207
  }>;
1208
1208
  value: z.ZodOptional<z.ZodString>;
@@ -1264,12 +1264,12 @@ declare const DrawPageDescriptorSchema: z.ZodObject<{
1264
1264
  xml: z.ZodString;
1265
1265
  }, z.core.$strict>>;
1266
1266
  origin: z.ZodOptional<z.ZodEnum<{
1267
- body: "body";
1268
1267
  chart: "chart";
1269
1268
  diagram: "diagram";
1270
1269
  table: "table";
1271
1270
  image: "image";
1272
1271
  notes: "notes";
1272
+ body: "body";
1273
1273
  }>>;
1274
1274
  interpretation: z.ZodOptional<z.ZodObject<{
1275
1275
  transcript: z.ZodOptional<z.ZodObject<{
@@ -1298,7 +1298,7 @@ declare const DrawPageDescriptorSchema: z.ZodObject<{
1298
1298
  }, z.core.$strict>;
1299
1299
  type DrawPageDescriptor = z.infer<typeof DrawPageDescriptorSchema>;
1300
1300
  declare const ShapeDescriptorSchema: z.ZodObject<{
1301
- name: z.ZodOptional<z.ZodString>;
1301
+ sourcePath: z.ZodOptional<z.ZodString>;
1302
1302
  source: z.ZodOptional<z.ZodObject<{
1303
1303
  format: z.ZodEnum<{
1304
1304
  docx: "docx";
@@ -1319,7 +1319,6 @@ declare const ShapeDescriptorSchema: z.ZodObject<{
1319
1319
  }>;
1320
1320
  xml: z.ZodString;
1321
1321
  }, z.core.$strict>>;
1322
- sourcePath: z.ZodOptional<z.ZodString>;
1323
1322
  frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
1324
1323
  pageIndex: z.ZodNumber;
1325
1324
  xPt: z.ZodNumber;
@@ -1328,12 +1327,12 @@ declare const ShapeDescriptorSchema: z.ZodObject<{
1328
1327
  heightPt: z.ZodNumber;
1329
1328
  }, z.core.$strip>>>;
1330
1329
  origin: z.ZodOptional<z.ZodEnum<{
1331
- body: "body";
1332
1330
  chart: "chart";
1333
1331
  diagram: "diagram";
1334
1332
  table: "table";
1335
1333
  image: "image";
1336
1334
  notes: "notes";
1335
+ body: "body";
1337
1336
  }>>;
1338
1337
  interpretation: z.ZodOptional<z.ZodObject<{
1339
1338
  transcript: z.ZodOptional<z.ZodObject<{
@@ -1354,6 +1353,7 @@ declare const ShapeDescriptorSchema: z.ZodObject<{
1354
1353
  at: z.ZodString;
1355
1354
  }, z.core.$strip>>;
1356
1355
  }, z.core.$strip>>;
1356
+ name: z.ZodOptional<z.ZodString>;
1357
1357
  frame: z.ZodObject<{
1358
1358
  xPt: z.ZodNumber;
1359
1359
  yPt: z.ZodNumber;
@@ -1373,12 +1373,12 @@ declare const ShapeDescriptorSchema: z.ZodObject<{
1373
1373
  type ShapeDescriptor = z.infer<typeof ShapeDescriptorSchema>;
1374
1374
  declare const HeadingParagraphSchema: z.ZodObject<{
1375
1375
  origin: z.ZodOptional<z.ZodEnum<{
1376
- body: "body";
1377
1376
  chart: "chart";
1378
1377
  diagram: "diagram";
1379
1378
  table: "table";
1380
1379
  image: "image";
1381
1380
  notes: "notes";
1381
+ body: "body";
1382
1382
  }>>;
1383
1383
  interpretation: z.ZodOptional<z.ZodObject<{
1384
1384
  transcript: z.ZodOptional<z.ZodObject<{
@@ -1402,12 +1402,12 @@ declare const HeadingParagraphSchema: z.ZodObject<{
1402
1402
  kind: z.ZodLiteral<"paragraph">;
1403
1403
  runs: z.ZodArray<z.ZodObject<{
1404
1404
  origin: z.ZodOptional<z.ZodEnum<{
1405
- body: "body";
1406
1405
  chart: "chart";
1407
1406
  diagram: "diagram";
1408
1407
  table: "table";
1409
1408
  image: "image";
1410
1409
  notes: "notes";
1410
+ body: "body";
1411
1411
  }>>;
1412
1412
  interpretation: z.ZodOptional<z.ZodObject<{
1413
1413
  transcript: z.ZodOptional<z.ZodObject<{
@@ -1551,10 +1551,10 @@ declare const HeadingParagraphSchema: z.ZodObject<{
1551
1551
  }, z.core.$strict>, z.ZodObject<{
1552
1552
  kind: z.ZodLiteral<"anchor">;
1553
1553
  anchorType: z.ZodEnum<{
1554
- comment: "comment";
1555
1554
  bookmark: "bookmark";
1556
1555
  footnote: "footnote";
1557
1556
  endnote: "endnote";
1557
+ comment: "comment";
1558
1558
  }>;
1559
1559
  name: z.ZodString;
1560
1560
  definition: z.ZodOptional<z.ZodString>;
@@ -1677,8 +1677,8 @@ declare const HeadingParagraphSchema: z.ZodObject<{
1677
1677
  preformatted: z.ZodOptional<z.ZodBoolean>;
1678
1678
  alignment: z.ZodOptional<z.ZodEnum<{
1679
1679
  left: "left";
1680
- center: "center";
1681
1680
  right: "right";
1681
+ center: "center";
1682
1682
  justify: "justify";
1683
1683
  }>>;
1684
1684
  list: z.ZodOptional<z.ZodObject<{
@@ -1798,12 +1798,12 @@ declare const HeadingParagraphSchema: z.ZodObject<{
1798
1798
  type HeadingParagraph = z.infer<typeof HeadingParagraphSchema>;
1799
1799
  declare const ListParagraphSchema: z.ZodObject<{
1800
1800
  origin: z.ZodOptional<z.ZodEnum<{
1801
- body: "body";
1802
1801
  chart: "chart";
1803
1802
  diagram: "diagram";
1804
1803
  table: "table";
1805
1804
  image: "image";
1806
1805
  notes: "notes";
1806
+ body: "body";
1807
1807
  }>>;
1808
1808
  interpretation: z.ZodOptional<z.ZodObject<{
1809
1809
  transcript: z.ZodOptional<z.ZodObject<{
@@ -1827,12 +1827,12 @@ declare const ListParagraphSchema: z.ZodObject<{
1827
1827
  kind: z.ZodLiteral<"paragraph">;
1828
1828
  runs: z.ZodArray<z.ZodObject<{
1829
1829
  origin: z.ZodOptional<z.ZodEnum<{
1830
- body: "body";
1831
1830
  chart: "chart";
1832
1831
  diagram: "diagram";
1833
1832
  table: "table";
1834
1833
  image: "image";
1835
1834
  notes: "notes";
1835
+ body: "body";
1836
1836
  }>>;
1837
1837
  interpretation: z.ZodOptional<z.ZodObject<{
1838
1838
  transcript: z.ZodOptional<z.ZodObject<{
@@ -1976,10 +1976,10 @@ declare const ListParagraphSchema: z.ZodObject<{
1976
1976
  }, z.core.$strict>, z.ZodObject<{
1977
1977
  kind: z.ZodLiteral<"anchor">;
1978
1978
  anchorType: z.ZodEnum<{
1979
- comment: "comment";
1980
1979
  bookmark: "bookmark";
1981
1980
  footnote: "footnote";
1982
1981
  endnote: "endnote";
1982
+ comment: "comment";
1983
1983
  }>;
1984
1984
  name: z.ZodString;
1985
1985
  definition: z.ZodOptional<z.ZodString>;
@@ -2103,8 +2103,8 @@ declare const ListParagraphSchema: z.ZodObject<{
2103
2103
  headingLevel: z.ZodOptional<z.ZodNumber>;
2104
2104
  alignment: z.ZodOptional<z.ZodEnum<{
2105
2105
  left: "left";
2106
- center: "center";
2107
2106
  right: "right";
2107
+ center: "center";
2108
2108
  justify: "justify";
2109
2109
  }>>;
2110
2110
  spacingBeforePt: z.ZodOptional<z.ZodNumber>;