@allyhub/sdk 0.6.0 → 0.7.1
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/define.d.ts +4 -0
- package/dist/define.js +1 -1
- package/dist/node_modules/@allyhub-next/audio/dist/node/index.d.ts +1 -1
- package/dist/node_modules/@allyhub-next/audio/dist/node/index.js +1 -1
- package/dist/node_modules/@allyhub-next/audio/dist/node/master.d.ts +4 -0
- package/dist/node_modules/@allyhub-next/audio/dist/node/master.js +1 -1
- package/dist/node_modules/@allyhub-next/audio/package.json +1 -1
- package/dist/node_modules/@allyhub-next/chart/dist/chart-xml.js +2 -2
- package/dist/node_modules/@allyhub-next/chart/dist/chart.d.ts +14 -5
- package/dist/node_modules/@allyhub-next/chart/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub-next/chart/package.json +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/data/deck-code.d.ts +205 -0
- package/dist/node_modules/@allyhub-next/formats/dist/data/deck-code.js +2 -0
- package/dist/node_modules/@allyhub-next/formats/dist/data/script.d.ts +4 -1
- package/dist/node_modules/@allyhub-next/formats/dist/data/script.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/data/sheet.d.ts +69 -18
- package/dist/node_modules/@allyhub-next/formats/dist/data/sheet.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/data/slides.d.ts +847 -116
- package/dist/node_modules/@allyhub-next/formats/dist/data/slides.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/data/website.d.ts +20 -0
- package/dist/node_modules/@allyhub-next/formats/dist/data/website.js +2 -0
- package/dist/node_modules/@allyhub-next/formats/dist/index.d.ts +3 -0
- package/dist/node_modules/@allyhub-next/formats/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/items.d.ts +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/items.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/media-type.d.ts +3 -0
- package/dist/node_modules/@allyhub-next/formats/dist/media-type.js +2 -0
- package/dist/node_modules/@allyhub-next/formats/dist/schemas.d.ts +501 -38
- package/dist/node_modules/@allyhub-next/formats/dist/schemas.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/strict.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/formats/dist/strict.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/package.json +2 -1
- package/dist/node_modules/@allyhub-next/ooxml/LICENSE +241 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/brightness.d.ts +31 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/brightness.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/color.d.ts +33 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/color.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/enums.d.ts +13 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/enums.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/ext.d.ts +79 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/ext.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/generated/enums.d.ts +132 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/generated/enums.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/generated/presets.d.ts +28 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/generated/presets.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/generated/spec.d.ts +4708 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/generated/spec.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/geometry/index.d.ts +57 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/geometry/index.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/index.d.ts +10 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/index.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/mce.d.ts +12 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/mce.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/node.d.ts +111 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/node.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/ns.d.ts +45 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/ns.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/opc.d.ts +48 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/opc.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/report.d.ts +45 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/report.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/xml.d.ts +28 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/xml.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/package.json +26 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/account.d.ts +338 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/account.js +2 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/auth.d.ts +12 -13
- package/dist/node_modules/@allyhub-next/protocol/dist/auth.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/blobs.d.ts +35 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/blobs.js +2 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/cloud.d.ts +101 -32
- package/dist/node_modules/@allyhub-next/protocol/dist/cloud.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/editor.d.ts +79 -5
- package/dist/node_modules/@allyhub-next/protocol/dist/editor.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/files.d.ts +2 -2
- package/dist/node_modules/@allyhub-next/protocol/dist/index.d.ts +6 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/notes.d.ts +21 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/notes.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/open.d.ts +13 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/open.js +2 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/registry.d.ts +73 -59
- package/dist/node_modules/@allyhub-next/protocol/dist/registry.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/routes.d.ts +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/routes.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/shares.d.ts +115 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/shares.js +2 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/sites.d.ts +293 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/sites.js +2 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/snapshots.d.ts +396 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/snapshots.js +2 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/teams.d.ts +27 -9
- package/dist/node_modules/@allyhub-next/protocol/dist/teams.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/tools.d.ts +53 -14
- package/dist/node_modules/@allyhub-next/protocol/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/package.json +2 -1
- package/dist/node_modules/@allyhub-next/runtimes/dist/download.d.ts +19 -1
- package/dist/node_modules/@allyhub-next/runtimes/dist/download.js +1 -1
- package/dist/node_modules/@allyhub-next/runtimes/dist/index.d.ts +2 -2
- package/dist/node_modules/@allyhub-next/runtimes/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/runtimes/dist/lock.d.ts +6 -0
- package/dist/node_modules/@allyhub-next/runtimes/dist/lock.js +1 -1
- package/dist/node_modules/@allyhub-next/runtimes/dist/packages.d.ts +19 -2
- package/dist/node_modules/@allyhub-next/runtimes/dist/packages.js +3 -3
- package/dist/node_modules/@allyhub-next/runtimes/dist/runtimes.d.ts +3 -0
- package/dist/node_modules/@allyhub-next/runtimes/dist/runtimes.js +3 -3
- package/dist/node_modules/@allyhub-next/runtimes/package.json +1 -1
- package/dist/node_modules/@allyhub-next/runtimes/schemas/runtimes.schema.json +25 -5
- package/dist/node_modules/@allyhub-next/scenery/package.json +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/analyse.d.ts +9 -3
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/analyse.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/coerce.d.ts +5 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/coerce.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/engine.d.ts +60 -13
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/engine.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/aggregate.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/convert.d.ts +4 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/convert.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/criteria.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/database.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/date.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/define.d.ts +27 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/define.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/delimiters.d.ts +16 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/delimiters.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/dynamic.d.ts +18 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/dynamic.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/finance.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/index.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/index.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/info.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/kernels.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/logical.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/lookup.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/maths.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/modern.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/modern.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/text.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/graph.d.ts +38 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/graph.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/indexes.d.ts +19 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/indexes.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/remote.d.ts +49 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/remote.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/server.d.ts +82 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/server.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/types.d.ts +6 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/types.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/check.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/diff.d.ts +15 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/diff.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/export.d.ts +29 -8
- package/dist/node_modules/@allyhub-next/sheet/dist/export.js +3 -4
- package/dist/node_modules/@allyhub-next/sheet/dist/file.js +2 -2
- package/dist/node_modules/@allyhub-next/sheet/dist/format.d.ts +8 -2
- package/dist/node_modules/@allyhub-next/sheet/dist/format.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/html.d.ts +52 -4
- package/dist/node_modules/@allyhub-next/sheet/dist/html.js +43 -11
- package/dist/node_modules/@allyhub-next/sheet/dist/index.d.ts +7 -3
- package/dist/node_modules/@allyhub-next/sheet/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/inspect.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/paginate.d.ts +98 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/paginate.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/structure.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/table-style.d.ts +32 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/table-style.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/table-styles.d.ts +3 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/table-styles.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/values.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/workbook.d.ts +10 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/workbook.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/charts.d.ts +10 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/charts.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/formula.d.ts +14 -4
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/formula.js +2 -2
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/functions.d.ts +11 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/functions.js +36 -16
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/import.d.ts +3 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/import.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/read.d.ts +42 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/read.js +2 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/sax.d.ts +23 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/sax.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/styles.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/styles.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/write.d.ts +6 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/write.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/zip.d.ts +40 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/zip.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/package.json +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/animation.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/api.d.ts +59 -39
- package/dist/node_modules/@allyhub-next/slides-core/dist/api.js +2 -2
- package/dist/node_modules/@allyhub-next/slides-core/dist/capabilities.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/chart-api.d.ts +27 -13
- package/dist/node_modules/@allyhub-next/slides-core/dist/chart-api.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/check.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/code.d.ts +33 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/code.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/components.d.ts +31 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/components.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/enums.d.ts +179 -16
- package/dist/node_modules/@allyhub-next/slides-core/dist/enums.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/file.d.ts +43 -21
- package/dist/node_modules/@allyhub-next/slides-core/dist/file.js +3 -3
- package/dist/node_modules/@allyhub-next/slides-core/dist/identity.d.ts +17 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/identity.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/index.d.ts +5 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/lang.d.ts +6 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/lang.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/measure.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/merge.d.ts +58 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/merge.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/model.d.ts +2 -4
- package/dist/node_modules/@allyhub-next/slides-core/dist/office.d.ts +17 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/office.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/resolve.d.ts +21 -5
- package/dist/node_modules/@allyhub-next/slides-core/dist/resolve.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/script.d.ts +18 -16
- package/dist/node_modules/@allyhub-next/slides-core/dist/script.js +2 -2
- package/dist/node_modules/@allyhub-next/slides-core/dist/stage.d.ts +51 -53
- package/dist/node_modules/@allyhub-next/slides-core/dist/strict.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/units.d.ts +27 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/units.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/values.d.ts +7 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/values.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/package.json +1 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/captions.js +6 -6
- package/dist/node_modules/@allyhub-next/video-core/dist/fact.d.ts +47 -8
- package/dist/node_modules/@allyhub-next/video-core/dist/fact.js +1 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/index.d.ts +1 -0
- package/dist/node_modules/@allyhub-next/video-core/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/marks.d.ts +14 -0
- package/dist/node_modules/@allyhub-next/video-core/dist/marks.js +1 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/music.d.ts +2 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/piece.d.ts +11 -2
- package/dist/node_modules/@allyhub-next/video-core/dist/problem.d.ts +4 -0
- package/dist/node_modules/@allyhub-next/video-core/dist/problem.js +1 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/schema.d.ts +2 -2
- package/dist/node_modules/@allyhub-next/video-core/dist/schema.js +1 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/script.d.ts +2 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/script.js +1 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/source.d.ts +7 -0
- package/dist/node_modules/@allyhub-next/video-core/dist/source.js +2 -0
- package/dist/node_modules/@allyhub-next/video-core/dist/timeline.d.ts +10 -33
- package/dist/node_modules/@allyhub-next/video-core/package.json +1 -1
- package/dist/slides.d.ts +3 -1
- package/dist/slides.js +1 -1
- package/docs/README.md +1 -0
- package/docs/contract.md +1 -1
- package/docs/defaults.md +2 -2
- package/docs/layers.md +1 -1
- package/docs/project.md +3 -1
- package/docs/sheets.md +7 -6
- package/docs/slides.md +16 -12
- package/docs/sound.md +1 -1
- package/docs/websites.md +57 -0
- package/package.json +3 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/preset.d.ts +0 -5
- package/dist/node_modules/@allyhub-next/slides-core/dist/preset.js +0 -2
|
@@ -1607,9 +1607,9 @@ declare const Validation: z.ZodObject<{
|
|
|
1607
1607
|
list: "list";
|
|
1608
1608
|
date: "date";
|
|
1609
1609
|
custom: "custom";
|
|
1610
|
-
time: "time";
|
|
1611
1610
|
whole: "whole";
|
|
1612
1611
|
decimal: "decimal";
|
|
1612
|
+
time: "time";
|
|
1613
1613
|
textLength: "textLength";
|
|
1614
1614
|
}>;
|
|
1615
1615
|
operator: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1672,6 +1672,7 @@ export type SheetChartAxis = z.output<typeof ChartAxis>;
|
|
|
1672
1672
|
declare const Chart: z.ZodObject<{
|
|
1673
1673
|
type: z.ZodEnum<{
|
|
1674
1674
|
line: "line";
|
|
1675
|
+
pie: "pie";
|
|
1675
1676
|
"column-clustered": "column-clustered";
|
|
1676
1677
|
"column-stacked": "column-stacked";
|
|
1677
1678
|
"column-stacked-100": "column-stacked-100";
|
|
@@ -1682,7 +1683,6 @@ declare const Chart: z.ZodObject<{
|
|
|
1682
1683
|
area: "area";
|
|
1683
1684
|
"area-stacked": "area-stacked";
|
|
1684
1685
|
"area-stacked-100": "area-stacked-100";
|
|
1685
|
-
pie: "pie";
|
|
1686
1686
|
doughnut: "doughnut";
|
|
1687
1687
|
scatter: "scatter";
|
|
1688
1688
|
"scatter-lines": "scatter-lines";
|
|
@@ -1718,14 +1718,14 @@ declare const Chart: z.ZodObject<{
|
|
|
1718
1718
|
series: z.ZodOptional<z.ZodBoolean>;
|
|
1719
1719
|
format: z.ZodOptional<z.ZodString>;
|
|
1720
1720
|
position: z.ZodOptional<z.ZodEnum<{
|
|
1721
|
-
t: "t";
|
|
1722
|
-
r: "r";
|
|
1723
1721
|
l: "l";
|
|
1724
1722
|
ctr: "ctr";
|
|
1723
|
+
r: "r";
|
|
1724
|
+
t: "t";
|
|
1725
|
+
b: "b";
|
|
1725
1726
|
outEnd: "outEnd";
|
|
1726
1727
|
inEnd: "inEnd";
|
|
1727
1728
|
inBase: "inBase";
|
|
1728
|
-
b: "b";
|
|
1729
1729
|
bestFit: "bestFit";
|
|
1730
1730
|
}>>;
|
|
1731
1731
|
size: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1742,7 +1742,7 @@ declare const Chart: z.ZodObject<{
|
|
|
1742
1742
|
accent6: "accent6";
|
|
1743
1743
|
hlink: "hlink";
|
|
1744
1744
|
folHlink: "folHlink";
|
|
1745
|
-
}>, z.ZodString]>>;
|
|
1745
|
+
}>, z.ZodString, z.ZodString]>>;
|
|
1746
1746
|
}, z.core.$strict>]>>;
|
|
1747
1747
|
gap_width: z.ZodOptional<z.ZodNumber>;
|
|
1748
1748
|
overlap: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1776,11 +1776,27 @@ export type SheetChart = z.output<typeof Chart>;
|
|
|
1776
1776
|
/** Excel's paper sizes people use, by their `paperSize` in a file. */
|
|
1777
1777
|
export declare const SHEET_PAPERS: {
|
|
1778
1778
|
readonly letter: 1;
|
|
1779
|
+
readonly tabloid: 3;
|
|
1780
|
+
readonly ledger: 4;
|
|
1779
1781
|
readonly legal: 5;
|
|
1782
|
+
readonly executive: 7;
|
|
1780
1783
|
readonly a3: 8;
|
|
1781
1784
|
readonly a4: 9;
|
|
1782
1785
|
readonly a5: 11;
|
|
1786
|
+
readonly b4: 12;
|
|
1787
|
+
readonly b5: 13;
|
|
1788
|
+
};
|
|
1789
|
+
/** A sheet's page margins where `print.margins` says nothing: Excel's Normal, in inches. */
|
|
1790
|
+
export declare const SHEET_MARGINS: {
|
|
1791
|
+
readonly left: 0.7;
|
|
1792
|
+
readonly right: 0.7;
|
|
1793
|
+
readonly top: 0.75;
|
|
1794
|
+
readonly bottom: 0.75;
|
|
1795
|
+
readonly header: 0.3;
|
|
1796
|
+
readonly footer: 0.3;
|
|
1783
1797
|
};
|
|
1798
|
+
/** Who a note is by when it says no one. */
|
|
1799
|
+
export declare const SHEET_NOTE_AUTHOR = "AllyHub";
|
|
1784
1800
|
declare const HeaderFooter: z.ZodObject<{
|
|
1785
1801
|
left: z.ZodOptional<z.ZodString>;
|
|
1786
1802
|
center: z.ZodOptional<z.ZodString>;
|
|
@@ -1798,15 +1814,25 @@ declare const Print: z.ZodObject<{
|
|
|
1798
1814
|
}>>;
|
|
1799
1815
|
paper: z.ZodOptional<z.ZodEnum<{
|
|
1800
1816
|
letter: "letter";
|
|
1817
|
+
tabloid: "tabloid";
|
|
1818
|
+
ledger: "ledger";
|
|
1801
1819
|
legal: "legal";
|
|
1820
|
+
executive: "executive";
|
|
1802
1821
|
a3: "a3";
|
|
1803
1822
|
a4: "a4";
|
|
1804
1823
|
a5: "a5";
|
|
1824
|
+
b4: "b4";
|
|
1825
|
+
b5: "b5";
|
|
1805
1826
|
}>>;
|
|
1806
1827
|
fit: z.ZodOptional<z.ZodObject<{
|
|
1807
1828
|
width: z.ZodOptional<z.ZodNumber>;
|
|
1808
1829
|
height: z.ZodOptional<z.ZodNumber>;
|
|
1809
1830
|
}, z.core.$strict>>;
|
|
1831
|
+
scale: z.ZodOptional<z.ZodNumber>;
|
|
1832
|
+
breaks: z.ZodOptional<z.ZodObject<{
|
|
1833
|
+
rows: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
1834
|
+
cols: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1835
|
+
}, z.core.$strict>>;
|
|
1810
1836
|
margins: z.ZodOptional<z.ZodObject<{
|
|
1811
1837
|
left: z.ZodOptional<z.ZodNumber>;
|
|
1812
1838
|
right: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3225,9 +3251,9 @@ declare const Worksheet: z.ZodObject<{
|
|
|
3225
3251
|
list: "list";
|
|
3226
3252
|
date: "date";
|
|
3227
3253
|
custom: "custom";
|
|
3228
|
-
time: "time";
|
|
3229
3254
|
whole: "whole";
|
|
3230
3255
|
decimal: "decimal";
|
|
3256
|
+
time: "time";
|
|
3231
3257
|
textLength: "textLength";
|
|
3232
3258
|
}>;
|
|
3233
3259
|
operator: z.ZodOptional<z.ZodEnum<{
|
|
@@ -3265,6 +3291,7 @@ declare const Worksheet: z.ZodObject<{
|
|
|
3265
3291
|
charts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3266
3292
|
type: z.ZodEnum<{
|
|
3267
3293
|
line: "line";
|
|
3294
|
+
pie: "pie";
|
|
3268
3295
|
"column-clustered": "column-clustered";
|
|
3269
3296
|
"column-stacked": "column-stacked";
|
|
3270
3297
|
"column-stacked-100": "column-stacked-100";
|
|
@@ -3275,7 +3302,6 @@ declare const Worksheet: z.ZodObject<{
|
|
|
3275
3302
|
area: "area";
|
|
3276
3303
|
"area-stacked": "area-stacked";
|
|
3277
3304
|
"area-stacked-100": "area-stacked-100";
|
|
3278
|
-
pie: "pie";
|
|
3279
3305
|
doughnut: "doughnut";
|
|
3280
3306
|
scatter: "scatter";
|
|
3281
3307
|
"scatter-lines": "scatter-lines";
|
|
@@ -3311,14 +3337,14 @@ declare const Worksheet: z.ZodObject<{
|
|
|
3311
3337
|
series: z.ZodOptional<z.ZodBoolean>;
|
|
3312
3338
|
format: z.ZodOptional<z.ZodString>;
|
|
3313
3339
|
position: z.ZodOptional<z.ZodEnum<{
|
|
3314
|
-
t: "t";
|
|
3315
|
-
r: "r";
|
|
3316
3340
|
l: "l";
|
|
3317
3341
|
ctr: "ctr";
|
|
3342
|
+
r: "r";
|
|
3343
|
+
t: "t";
|
|
3344
|
+
b: "b";
|
|
3318
3345
|
outEnd: "outEnd";
|
|
3319
3346
|
inEnd: "inEnd";
|
|
3320
3347
|
inBase: "inBase";
|
|
3321
|
-
b: "b";
|
|
3322
3348
|
bestFit: "bestFit";
|
|
3323
3349
|
}>>;
|
|
3324
3350
|
size: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3335,7 +3361,7 @@ declare const Worksheet: z.ZodObject<{
|
|
|
3335
3361
|
accent6: "accent6";
|
|
3336
3362
|
hlink: "hlink";
|
|
3337
3363
|
folHlink: "folHlink";
|
|
3338
|
-
}>, z.ZodString]>>;
|
|
3364
|
+
}>, z.ZodString, z.ZodString]>>;
|
|
3339
3365
|
}, z.core.$strict>]>>;
|
|
3340
3366
|
gap_width: z.ZodOptional<z.ZodNumber>;
|
|
3341
3367
|
overlap: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3388,15 +3414,25 @@ declare const Worksheet: z.ZodObject<{
|
|
|
3388
3414
|
}>>;
|
|
3389
3415
|
paper: z.ZodOptional<z.ZodEnum<{
|
|
3390
3416
|
letter: "letter";
|
|
3417
|
+
tabloid: "tabloid";
|
|
3418
|
+
ledger: "ledger";
|
|
3391
3419
|
legal: "legal";
|
|
3420
|
+
executive: "executive";
|
|
3392
3421
|
a3: "a3";
|
|
3393
3422
|
a4: "a4";
|
|
3394
3423
|
a5: "a5";
|
|
3424
|
+
b4: "b4";
|
|
3425
|
+
b5: "b5";
|
|
3395
3426
|
}>>;
|
|
3396
3427
|
fit: z.ZodOptional<z.ZodObject<{
|
|
3397
3428
|
width: z.ZodOptional<z.ZodNumber>;
|
|
3398
3429
|
height: z.ZodOptional<z.ZodNumber>;
|
|
3399
3430
|
}, z.core.$strict>>;
|
|
3431
|
+
scale: z.ZodOptional<z.ZodNumber>;
|
|
3432
|
+
breaks: z.ZodOptional<z.ZodObject<{
|
|
3433
|
+
rows: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
3434
|
+
cols: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3435
|
+
}, z.core.$strict>>;
|
|
3400
3436
|
margins: z.ZodOptional<z.ZodObject<{
|
|
3401
3437
|
left: z.ZodOptional<z.ZodNumber>;
|
|
3402
3438
|
right: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3417,6 +3453,8 @@ declare const Worksheet: z.ZodObject<{
|
|
|
3417
3453
|
}, z.core.$strict>>;
|
|
3418
3454
|
}, z.core.$strict>>;
|
|
3419
3455
|
protect: z.ZodOptional<z.ZodBoolean>;
|
|
3456
|
+
names: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>>;
|
|
3457
|
+
hidden_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3420
3458
|
}, z.core.$strict>;
|
|
3421
3459
|
export type SheetWorksheet = z.output<typeof Worksheet>;
|
|
3422
3460
|
declare const Check: z.ZodObject<{
|
|
@@ -3428,6 +3466,7 @@ export type SheetCheck = z.output<typeof Check>;
|
|
|
3428
3466
|
export declare const SheetFileSchema: z.ZodObject<{
|
|
3429
3467
|
title: z.ZodOptional<z.ZodString>;
|
|
3430
3468
|
names: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>>;
|
|
3469
|
+
hidden_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3431
3470
|
sheets: z.ZodArray<z.ZodObject<{
|
|
3432
3471
|
name: z.ZodString;
|
|
3433
3472
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -4811,9 +4850,9 @@ export declare const SheetFileSchema: z.ZodObject<{
|
|
|
4811
4850
|
list: "list";
|
|
4812
4851
|
date: "date";
|
|
4813
4852
|
custom: "custom";
|
|
4814
|
-
time: "time";
|
|
4815
4853
|
whole: "whole";
|
|
4816
4854
|
decimal: "decimal";
|
|
4855
|
+
time: "time";
|
|
4817
4856
|
textLength: "textLength";
|
|
4818
4857
|
}>;
|
|
4819
4858
|
operator: z.ZodOptional<z.ZodEnum<{
|
|
@@ -4851,6 +4890,7 @@ export declare const SheetFileSchema: z.ZodObject<{
|
|
|
4851
4890
|
charts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4852
4891
|
type: z.ZodEnum<{
|
|
4853
4892
|
line: "line";
|
|
4893
|
+
pie: "pie";
|
|
4854
4894
|
"column-clustered": "column-clustered";
|
|
4855
4895
|
"column-stacked": "column-stacked";
|
|
4856
4896
|
"column-stacked-100": "column-stacked-100";
|
|
@@ -4861,7 +4901,6 @@ export declare const SheetFileSchema: z.ZodObject<{
|
|
|
4861
4901
|
area: "area";
|
|
4862
4902
|
"area-stacked": "area-stacked";
|
|
4863
4903
|
"area-stacked-100": "area-stacked-100";
|
|
4864
|
-
pie: "pie";
|
|
4865
4904
|
doughnut: "doughnut";
|
|
4866
4905
|
scatter: "scatter";
|
|
4867
4906
|
"scatter-lines": "scatter-lines";
|
|
@@ -4897,14 +4936,14 @@ export declare const SheetFileSchema: z.ZodObject<{
|
|
|
4897
4936
|
series: z.ZodOptional<z.ZodBoolean>;
|
|
4898
4937
|
format: z.ZodOptional<z.ZodString>;
|
|
4899
4938
|
position: z.ZodOptional<z.ZodEnum<{
|
|
4900
|
-
t: "t";
|
|
4901
|
-
r: "r";
|
|
4902
4939
|
l: "l";
|
|
4903
4940
|
ctr: "ctr";
|
|
4941
|
+
r: "r";
|
|
4942
|
+
t: "t";
|
|
4943
|
+
b: "b";
|
|
4904
4944
|
outEnd: "outEnd";
|
|
4905
4945
|
inEnd: "inEnd";
|
|
4906
4946
|
inBase: "inBase";
|
|
4907
|
-
b: "b";
|
|
4908
4947
|
bestFit: "bestFit";
|
|
4909
4948
|
}>>;
|
|
4910
4949
|
size: z.ZodOptional<z.ZodNumber>;
|
|
@@ -4921,7 +4960,7 @@ export declare const SheetFileSchema: z.ZodObject<{
|
|
|
4921
4960
|
accent6: "accent6";
|
|
4922
4961
|
hlink: "hlink";
|
|
4923
4962
|
folHlink: "folHlink";
|
|
4924
|
-
}>, z.ZodString]>>;
|
|
4963
|
+
}>, z.ZodString, z.ZodString]>>;
|
|
4925
4964
|
}, z.core.$strict>]>>;
|
|
4926
4965
|
gap_width: z.ZodOptional<z.ZodNumber>;
|
|
4927
4966
|
overlap: z.ZodOptional<z.ZodNumber>;
|
|
@@ -4974,15 +5013,25 @@ export declare const SheetFileSchema: z.ZodObject<{
|
|
|
4974
5013
|
}>>;
|
|
4975
5014
|
paper: z.ZodOptional<z.ZodEnum<{
|
|
4976
5015
|
letter: "letter";
|
|
5016
|
+
tabloid: "tabloid";
|
|
5017
|
+
ledger: "ledger";
|
|
4977
5018
|
legal: "legal";
|
|
5019
|
+
executive: "executive";
|
|
4978
5020
|
a3: "a3";
|
|
4979
5021
|
a4: "a4";
|
|
4980
5022
|
a5: "a5";
|
|
5023
|
+
b4: "b4";
|
|
5024
|
+
b5: "b5";
|
|
4981
5025
|
}>>;
|
|
4982
5026
|
fit: z.ZodOptional<z.ZodObject<{
|
|
4983
5027
|
width: z.ZodOptional<z.ZodNumber>;
|
|
4984
5028
|
height: z.ZodOptional<z.ZodNumber>;
|
|
4985
5029
|
}, z.core.$strict>>;
|
|
5030
|
+
scale: z.ZodOptional<z.ZodNumber>;
|
|
5031
|
+
breaks: z.ZodOptional<z.ZodObject<{
|
|
5032
|
+
rows: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
5033
|
+
cols: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5034
|
+
}, z.core.$strict>>;
|
|
4986
5035
|
margins: z.ZodOptional<z.ZodObject<{
|
|
4987
5036
|
left: z.ZodOptional<z.ZodNumber>;
|
|
4988
5037
|
right: z.ZodOptional<z.ZodNumber>;
|
|
@@ -5003,6 +5052,8 @@ export declare const SheetFileSchema: z.ZodObject<{
|
|
|
5003
5052
|
}, z.core.$strict>>;
|
|
5004
5053
|
}, z.core.$strict>>;
|
|
5005
5054
|
protect: z.ZodOptional<z.ZodBoolean>;
|
|
5055
|
+
names: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>>;
|
|
5056
|
+
hidden_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5006
5057
|
}, z.core.$strict>>;
|
|
5007
5058
|
checks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5008
5059
|
name: z.ZodString;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{z as t}from"zod";import{CHART_LEGEND_POSITIONS as h,ChartSchema as e,SHEET_CHART_TYPES as y}from"./slides.js";export const SHEET_FILE="sheet.yaml",SHEET_DATA="data",SHEET_CODE="sheet.ts",SHEET_FILES="files",SHEET_SEPARATOR=", ",SHEET_PICTURE_HEIGHT=60;const o=t.string().regex(/^#[0-9a-fA-F]{6}$/u,"A colour is #RRGGBB.");export const SHEET_ALIGNS=["general","left","center","right","fill","justify","centerContinuous","distributed"],SHEET_VALIGNS=["top","center","bottom","justify","distributed"],SHEET_UNDERLINES=["single","double","singleAccounting","doubleAccounting"],SHEET_BORDERS=["none","thin","medium","thick","double","hair","dotted","dashed","dashDot","dashDotDot","mediumDashed","mediumDashDot","mediumDashDotDot","slantDashDot"],SHEET_PATTERNS=["solid","darkDown","darkGray","darkGrid","darkHorizontal","darkTrellis","darkUp","darkVertical","gray0625","gray125","lightDown","lightGray","lightGrid","lightHorizontal","lightTrellis","lightUp","lightVertical","mediumGray"];const
|
|
2
|
+
import{z as t}from"zod";import{CHART_LEGEND_POSITIONS as h,ChartSchema as e,SHEET_CHART_TYPES as y}from"./slides.js";export const SHEET_FILE="sheet.yaml",SHEET_DATA="data",SHEET_CODE="sheet.ts",SHEET_FILES="files",SHEET_SEPARATOR=", ",SHEET_PICTURE_HEIGHT=60;const o=t.string().regex(/^#[0-9a-fA-F]{6}$/u,"A colour is #RRGGBB.");export const SHEET_ALIGNS=["general","left","center","right","fill","justify","centerContinuous","distributed"],SHEET_VALIGNS=["top","center","bottom","justify","distributed"],SHEET_UNDERLINES=["single","double","singleAccounting","doubleAccounting"],SHEET_BORDERS=["none","thin","medium","thick","double","hair","dotted","dashed","dashDot","dashDotDot","mediumDashed","mediumDashDot","mediumDashDotDot","slantDashDot"],SHEET_PATTERNS=["solid","darkDown","darkGray","darkGrid","darkHorizontal","darkTrellis","darkUp","darkVertical","gray0625","gray125","lightDown","lightGray","lightGrid","lightHorizontal","lightTrellis","lightUp","lightVertical","mediumGray"];const l=t.strictObject({style:t.enum(SHEET_BORDERS),color:o.optional()}),m={bold:t.boolean().optional(),italic:t.boolean().optional(),underline:t.union([t.boolean(),t.enum(SHEET_UNDERLINES)]).optional(),strike:t.boolean().optional(),font:t.string().min(1).optional(),size:t.number().positive().optional(),color:o.optional(),fill:t.union([o,t.strictObject({pattern:t.enum(SHEET_PATTERNS),color:o.optional(),background:o.optional()})]).optional(),align:t.enum(SHEET_ALIGNS).optional(),valign:t.enum(SHEET_VALIGNS).optional(),wrap:t.boolean().optional(),shrink:t.boolean().optional(),indent:t.number().int().min(0).optional(),rotation:t.number().int().min(-90).max(180).optional(),border:t.strictObject({left:l.optional(),right:l.optional(),top:l.optional(),bottom:l.optional()}).optional()},a={...m,format:t.string().min(1).optional()},r=t.union([t.number(),t.boolean(),t.string(),t.null()]),E=t.strictObject({value:r.optional(),formula:t.string().min(1).optional(),name:t.string().min(1).optional(),...a}).refine(c=>c.value===void 0||c.formula===void 0,{message:"A cell has a value or a formula, not both."}),O=t.union([r,E]),f=t.strictObject({range:t.string().min(1),...a}),b=t.union([t.literal(!0),t.strictObject({separator:t.string().min(1).optional(),height:t.number().positive().optional()})]),S=t.strictObject({formula:t.string().min(1).optional(),...a,width:t.number().positive().optional(),files:b.optional()}),u=t.strictObject({values:t.array(t.string()).optional(),blanks:t.boolean().optional()}),x=t.strictObject({name:t.string().min(1),at:t.string().min(1),rows:t.string().min(1),key:t.string().min(1).optional(),style:t.string().min(1).optional(),columns:t.record(t.string(),S).optional(),filter:t.union([t.literal(!1),t.strictObject({columns:t.record(t.string(),u)})]).optional()}),j=t.strictObject({at:t.string().min(1),rows:t.string().min(1)}),T=t.strictObject({width:t.number().positive().optional(),hidden:t.boolean().optional(),level:t.number().int().min(1).max(7).optional(),...a,files:b.optional()}),_=t.strictObject({height:t.number().positive().optional(),hidden:t.boolean().optional(),level:t.number().int().min(1).max(7).optional(),...a}),v=t.strictObject({range:t.string().min(1),columns:t.record(t.string(),u).optional()});export const SHEET_OPERATORS=["between","notBetween","equal","notEqual","greaterThan","lessThan","greaterThanOrEqual","lessThanOrEqual"];const p=t.union([t.number(),t.string()]),i={bold:t.boolean().optional(),italic:t.boolean().optional(),underline:t.boolean().optional(),strike:t.boolean().optional(),color:o.optional(),fill:o.optional(),border:m.border},n={range:t.string().min(1),stop:t.boolean().optional()},s=t.strictObject({at:t.enum(["min","max","num","percent","percentile","formula"]),value:p.optional()});export const SHEET_ICONS=["3Arrows","3ArrowsGray","3Flags","3TrafficLights1","3TrafficLights2","3Signs","3Symbols","3Symbols2","4Arrows","4ArrowsGray","4RedToBlack","4Rating","4TrafficLights","5Arrows","5ArrowsGray","5Rating","5Quarters"];const w=t.discriminatedUnion("type",[t.strictObject({...n,...i,type:t.literal("cellIs"),operator:t.enum(SHEET_OPERATORS),formula:t.array(p).min(1).max(2)}),t.strictObject({...n,...i,type:t.literal("containsText"),operator:t.enum(["contains","notContains","beginsWith","endsWith"]).optional(),text:t.string()}),t.strictObject({...n,...i,type:t.enum(["duplicateValues","uniqueValues"])}),t.strictObject({...n,...i,type:t.literal("top10"),rank:t.number().int().positive(),percent:t.boolean().optional(),bottom:t.boolean().optional()}),t.strictObject({...n,...i,type:t.literal("aboveAverage"),below:t.boolean().optional(),equal:t.boolean().optional()}),t.strictObject({...n,...i,type:t.literal("expression"),formula:t.string().min(1)}),t.strictObject({...n,type:t.literal("dataBar"),color:o,min:s.optional(),max:s.optional(),show:t.boolean().optional()}),t.strictObject({...n,type:t.literal("colorScale"),stops:t.array(t.strictObject({...s.shape,color:o})).min(2).max(3)}),t.strictObject({...n,type:t.literal("iconSet"),icons:t.enum(SHEET_ICONS),stops:t.array(s).min(3).max(5).optional(),reverse:t.boolean().optional(),show:t.boolean().optional()})]);export const SHEET_VALIDATIONS=["whole","decimal","list","date","time","textLength","custom"];const A=t.strictObject({range:t.string().min(1),type:t.enum(SHEET_VALIDATIONS),operator:t.enum(SHEET_OPERATORS).optional(),formula:t.array(p).max(2).optional(),values:t.array(t.string()).optional(),multiple:t.boolean().optional(),separator:t.string().min(1).optional(),blank:t.boolean().optional(),dropdown:t.boolean().optional(),prompt:t.strictObject({title:t.string().optional(),message:t.string().optional(),show:t.boolean().optional()}).optional(),error:t.strictObject({style:t.enum(["stop","warning","information"]).optional(),title:t.string().optional(),message:t.string().optional(),show:t.boolean().optional()}).optional()}),k=t.strictObject({values:t.string().min(1),x:t.string().min(1).optional(),name:t.string().optional(),color:o.optional(),format:t.string().min(1).optional(),smooth:t.boolean().optional(),line_width:t.number().positive().optional(),marker_size:t.number().int().min(2).max(72).optional()}),g=t.strictObject({title:t.string().optional(),min:t.number().optional(),max:t.number().optional(),major:t.number().positive().optional(),gridlines:t.boolean().optional(),visible:t.boolean().optional(),format:t.string().min(1).optional(),reverse:t.boolean().optional()}),H=t.strictObject({type:t.enum(y),at:t.string().min(1),x:t.number().min(0).optional(),y:t.number().min(0).optional(),width:t.number().positive().optional(),height:t.number().positive().optional(),title:t.string().optional(),categories:t.string().min(1).optional(),series:t.array(k).min(1),legend:t.enum(h).optional(),labels:e.shape.labels,gap_width:e.shape.gap_width,overlap:e.shape.overlap,vary_by_categories:e.shape.vary_by_categories,hole_size:e.shape.hole_size,value_axis:g.optional(),category_axis:g.optional(),size:t.number().positive().optional(),title_size:t.number().positive().optional(),color:o.optional()});export const SHEET_PAPERS={letter:1,tabloid:3,ledger:4,legal:5,executive:7,a3:8,a4:9,a5:11,b4:12,b5:13},SHEET_MARGINS={left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},SHEET_NOTE_AUTHOR="AllyHub";const d=t.strictObject({left:t.string().optional(),center:t.string().optional(),right:t.string().optional()}),R=t.strictObject({area:t.string().min(1).optional(),title_rows:t.string().regex(/^\d+:\d+$/u).optional(),title_cols:t.string().regex(/^[A-Za-z]+:[A-Za-z]+$/u).optional(),orientation:t.enum(["portrait","landscape"]).optional(),paper:t.enum(Object.keys(SHEET_PAPERS)).optional(),fit:t.strictObject({width:t.number().int().min(0).optional(),height:t.number().int().min(0).optional()}).optional(),scale:t.number().int().min(10).max(400).optional(),breaks:t.strictObject({rows:t.array(t.number().int().min(2)).optional(),cols:t.array(t.string().regex(/^[A-Za-z]+$/u)).optional()}).optional(),margins:t.strictObject({left:t.number().min(0).optional(),right:t.number().min(0).optional(),top:t.number().min(0).optional(),bottom:t.number().min(0).optional(),header:t.number().min(0).optional(),footer:t.number().min(0).optional()}).optional(),header:d.optional(),footer:d.optional()}),C=t.strictObject({file:t.string().min(1),at:t.string().min(1),x:t.number().min(0).optional(),y:t.number().min(0).optional(),width:t.number().positive().optional(),height:t.number().positive().optional()}),D=t.union([t.string().min(1),t.strictObject({text:t.string().min(1),author:t.string().optional()})]),G=t.strictObject({name:t.string().min(1),hidden:t.boolean().optional(),gridlines:t.boolean().optional(),tab:o.optional(),freeze:t.string().min(1).optional(),tables:t.array(x).optional(),columns:t.record(t.string(),T).optional(),rows:t.record(t.string(),_).optional(),cells:t.record(t.string(),O).optional(),format:t.array(f).optional(),merges:t.array(t.string().min(1)).optional(),blocks:t.array(j).optional(),filter:v.optional(),conditional:t.array(w).optional(),validations:t.array(A).optional(),charts:t.array(H).optional(),pictures:t.array(C).optional(),links:t.record(t.string(),t.string().min(1)).optional(),notes:t.record(t.string(),D).optional(),print:R.optional(),protect:t.boolean().optional(),names:t.record(t.string(),r).optional(),hidden_names:t.array(t.string().min(1)).optional()}),I=t.strictObject({name:t.string().min(1),formula:t.string().min(1)});export const SheetFileSchema=t.strictObject({title:t.string().optional(),names:t.record(t.string(),r).optional(),hidden_names:t.array(t.string().min(1)).optional(),sheets:t.array(G).min(1),checks:t.array(I).optional(),scenarios:t.record(t.string(),t.record(t.string(),r)).optional()});
|