feat(domain): R2.1 Rust contracts of the sheet, report and archive documents
Sheet document v2, report v3 / v2 / identity, migration map, sheet snapshot, branding, PDF labels and archive envelope ported from the Zod schemas with their exact semantics: strict objects where Zod is strict, optional fields absent (never null), nullable fields required, integers as JavaScript numbers, UTF-16 caps, hand-checked patterns, url crate for .url(), lone surrogate escapes read as U+FFFD (L1, owner confirmation pending). Fields in Zod schema order (PDF labels in the engine dictionary order): the curated and legacy sheets, the demo report and the three frozen archive envelopes print byte for byte as their Zod / attachment form. ts-rs types regenerated; plan rev 2 after three plan challenges.
This commit is contained in:
1 parent
3114d67959
commit
ee0700887f
87 files changed
+2657
-148
No files matched your search
@@ -0,0 +1,18 @@
|
||||
import { readdirSync, readFileSync } from 'node:fs'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
|
||||
/** The ts-rs output directory and its hand-kept index must list the same types. */
|
||||
describe('types/index.ts', () => {
|
||||
it('re-exports every generated type file', () => {
|
||||
const dir = fileURLToPath(new URL('../types/', import.meta.url))
|
||||
const generated = readdirSync(dir)
|
||||
.filter((f) => f.endsWith('.ts') && f !== 'index.ts')
|
||||
.map((f) => f.slice(0, -3))
|
||||
.sort()
|
||||
const index = readFileSync(`${dir}index.ts`, 'utf8')
|
||||
const exported = [...index.matchAll(/export type \{ (\w+) \}/g)]
|
||||
.map((m) => m[1])
|
||||
.sort()
|
||||
expect(exported).toEqual(generated)
|
||||
})
|
||||
})
|
||||
@@ -0,0 +1,15 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { Annotation } from "./Annotation";
|
||||
import type { AnnotationCategory } from "./AnnotationCategory";
|
||||
import type { Attribution } from "./Attribution";
|
||||
import type { FindingZone } from "./FindingZone";
|
||||
import type { LocalizedOptionalText } from "./LocalizedOptionalText";
|
||||
import type { LocalizedText } from "./LocalizedText";
|
||||
import type { Reference } from "./Reference";
|
||||
import type { SheetView } from "./SheetView";
|
||||
import type { VertebralConfig } from "./VertebralConfig";
|
||||
|
||||
/**
|
||||
* The canonical sheet document (schema_version 2).
|
||||
*/
|
||||
export type AnatomicalSheetDocument = { schema_version: 2, species_id: string, name: LocalizedText, description: LocalizedOptionalText, scope_disclaimer: LocalizedOptionalText, attribution: Attribution, vertebral_config: VertebralConfig, references: Array<Reference>, categories: Array<AnnotationCategory>, views: Array<SheetView>, annotations: Array<Annotation>, finding_zones: Array<FindingZone>, };
|
||||
@@ -0,0 +1,7 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type Animal = {
|
||||
/**
|
||||
* Species of the animal; the sheet the report references matches it.
|
||||
*/
|
||||
speciesId: string, name: string, breed?: string, age?: string, };
|
||||
@@ -0,0 +1,5 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { DetailTriggerAnnotation } from "./DetailTriggerAnnotation";
|
||||
import type { ObservableAnnotation } from "./ObservableAnnotation";
|
||||
|
||||
export type Annotation = ObservableAnnotation | DetailTriggerAnnotation;
|
||||
@@ -0,0 +1,4 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { LocalizedText } from "./LocalizedText";
|
||||
|
||||
export type AnnotationCategory = { id: string, name: LocalizedText, color: string | null, };
|
||||
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type Attribution = { authors: Array<string>, license: string | null, notes: string | null, };
|
||||
@@ -0,0 +1,5 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { Credit } from "./Credit";
|
||||
import type { ImageAsset } from "./ImageAsset";
|
||||
|
||||
export type Branding = { siteUrl: string, headerLogo: ImageAsset | null, footerLogo: ImageAsset | null, poweredBy: Credit | null, partner: Credit | null, };
|
||||
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type Circle = { type: "circle", cx: number, cy: number, r: number, };
|
||||
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type CountRange = { min: number, max: number, };
|
||||
@@ -0,0 +1,4 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { ImageAsset } from "./ImageAsset";
|
||||
|
||||
export type Credit = { logo: ImageAsset | null, url: string, fallbackText: string, };
|
||||
@@ -0,0 +1,10 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { Geometry } from "./Geometry";
|
||||
import type { Laterality } from "./Laterality";
|
||||
import type { LocalizedText } from "./LocalizedText";
|
||||
import type { ReviewStatus } from "./ReviewStatus";
|
||||
|
||||
/**
|
||||
* Navigation only: a trigger opens a detail view and never carries findings.
|
||||
*/
|
||||
export type DetailTriggerAnnotation = { id: string, view_id: string, category_id: string, laterality: Laterality, geometry: Geometry | null, review_status: ReviewStatus, color: string | null, kind: "detail_trigger", name: LocalizedText | null, opens_view_id: string, };
|
||||
@@ -0,0 +1,5 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { LocalizedText } from "./LocalizedText";
|
||||
import type { ViewBox } from "./ViewBox";
|
||||
|
||||
export type DetailView = { id: string, name: LocalizedText, svg_asset_id: string | null, view_box: ViewBox | null, kind: "detail", parent_view_id: string, };
|
||||
@@ -0,0 +1,12 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { LateralSide } from "./LateralSide";
|
||||
|
||||
export type Finding = { findingZoneId: string,
|
||||
/**
|
||||
* Node ids from the zone's categories down to the leaf.
|
||||
*/
|
||||
path: Array<string>, labelFrSnapshot: string, labelEnSnapshot: string, requiresVetReferral?: boolean, side?: LateralSide,
|
||||
/**
|
||||
* Set by the migration when the path no longer exists in the sheet; data kept.
|
||||
*/
|
||||
unresolved?: true, };
|
||||
@@ -0,0 +1,8 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { FindingCategoryKind } from "./FindingCategoryKind";
|
||||
import type { FindingNode } from "./FindingNode";
|
||||
import type { LocalizedOptionalText } from "./LocalizedOptionalText";
|
||||
import type { LocalizedText } from "./LocalizedText";
|
||||
import type { ReviewStatus } from "./ReviewStatus";
|
||||
|
||||
export type FindingCategory = { id: string, kind: FindingCategoryKind, name: LocalizedText, description: LocalizedOptionalText, reference_ids: Array<string>, review_status: ReviewStatus, children: Array<FindingNode>, };
|
||||
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type FindingCategoryKind = "dysfunction" | "consultation_reason" | "anamnesis" | "custom";
|
||||
@@ -0,0 +1,9 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { LocalizedOptionalText } from "./LocalizedOptionalText";
|
||||
import type { LocalizedText } from "./LocalizedText";
|
||||
import type { ReviewStatus } from "./ReviewStatus";
|
||||
|
||||
/**
|
||||
* A finding node; every optional key of the authoring form is filled in when parsed.
|
||||
*/
|
||||
export type FindingNode = { id: string, name: LocalizedText, description: LocalizedOptionalText, requires_vet_referral: boolean, reference_ids: Array<string>, review_status: ReviewStatus, children: Array<FindingNode>, };
|
||||
@@ -0,0 +1,5 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { FindingCategory } from "./FindingCategory";
|
||||
import type { LocalizedText } from "./LocalizedText";
|
||||
|
||||
export type FindingZone = { id: string, name: LocalizedText, categories: Array<FindingCategory>, };
|
||||
@@ -0,0 +1,6 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { Circle } from "./Circle";
|
||||
import type { PathGeometry } from "./PathGeometry";
|
||||
import type { Polygon } from "./Polygon";
|
||||
|
||||
export type Geometry = Circle | Polygon | PathGeometry;
|
||||
@@ -0,0 +1,5 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { PngAsset } from "./PngAsset";
|
||||
import type { SvgAsset } from "./SvgAsset";
|
||||
|
||||
export type ImageAsset = PngAsset | SvgAsset;
|
||||
@@ -0,0 +1,6 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
/**
|
||||
* Explicit on every annotation: absence no longer carries meaning.
|
||||
*/
|
||||
export type Laterality = "unpaired" | "bilateral" | "left" | "right";
|
||||
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type Locale = "fr" | "en";
|
||||
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type LocalizedOptionalText = { fr?: string, en?: string, };
|
||||
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type LocalizedText = { fr: string, en: string, };
|
||||
@@ -0,0 +1,5 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { LocalizedText } from "./LocalizedText";
|
||||
import type { ViewBox } from "./ViewBox";
|
||||
|
||||
export type MainView = { id: string, name: LocalizedText, svg_asset_id: string | null, view_box: ViewBox | null, kind: "main", };
|
||||
@@ -0,0 +1,5 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { NextAppointmentDate } from "./NextAppointmentDate";
|
||||
import type { NextAppointmentPeriod } from "./NextAppointmentPeriod";
|
||||
|
||||
export type NextAppointment = NextAppointmentDate | NextAppointmentPeriod;
|
||||
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type NextAppointmentDate = { kind: "date", date: string, };
|
||||
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type NextAppointmentPeriod = { kind: "period", text: string, };
|
||||
@@ -0,0 +1,11 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { Geometry } from "./Geometry";
|
||||
import type { Laterality } from "./Laterality";
|
||||
import type { LocalizedText } from "./LocalizedText";
|
||||
import type { ObservableKind } from "./ObservableKind";
|
||||
import type { ReviewStatus } from "./ReviewStatus";
|
||||
|
||||
/**
|
||||
* A point or zone annotation: observable, linked to findings by one explicit field.
|
||||
*/
|
||||
export type ObservableAnnotation = { id: string, view_id: string, category_id: string, laterality: Laterality, geometry: Geometry | null, review_status: ReviewStatus, color: string | null, name: LocalizedText, finding_zone_id: string | null, vertebral_region_code: string | null, kind: ObservableKind, };
|
||||
@@ -0,0 +1,6 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
/**
|
||||
* The two observable annotation kinds share one shape.
|
||||
*/
|
||||
export type ObservableKind = "point" | "zone";
|
||||
@@ -0,0 +1,6 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { Finding } from "./Finding";
|
||||
import type { ReportZone } from "./ReportZone";
|
||||
import type { Severity } from "./Severity";
|
||||
|
||||
export type Observation = { id: string, zones: Array<ReportZone>, findings: Array<Finding>, freeTextFindings: Array<string>, severity?: Severity, comment: string, };
|
||||
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type Owner = { name: string, };
|
||||
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type PathGeometry = { type: "path", d: string, };
|
||||
@@ -0,0 +1,7 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { PdfLabels } from "./PdfLabels";
|
||||
|
||||
/**
|
||||
* Strict: every key present in both locales, no extra key.
|
||||
*/
|
||||
export type PdfLabelSet = { fr: PdfLabels, en: PdfLabels, };
|
||||
@@ -0,0 +1,7 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
/**
|
||||
* Fields in the order of the engine dictionaries (`packages/pdf/src/i18n`), which is the
|
||||
* order every shipped attachment carries.
|
||||
*/
|
||||
export type PdfLabels = { "pdf.eyebrow.observation": string, "pdf.eyebrow.synthesis": string, "pdf.title.conclusion": string, "pdf.section.zones": string, "pdf.section.findings_prefix": string, "pdf.section.free_findings": string, "pdf.section.severity": string, "pdf.section.comment": string, "pdf.section.conclusion": string, "pdf.section.recommendations": string, "pdf.section.next_appointment": string, "pdf.view.general": string, "pdf.view.detail_prefix": string, "pdf.empty": string, "pdf.owner_prefix": string, "pdf.siret_prefix": string, "pdf.title.suffix.bilan": string, "pdf.subject": string, "severity.mild": string, "severity.moderate": string, "severity.severe": string, "lateral.left": string, "lateral.right": string, "footer.powered_by": string, "footer.in_partnership": string, };
|
||||
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type PngAsset = { kind: "png", base64: string, };
|
||||
@@ -0,0 +1,6 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
/**
|
||||
* A polygon point: a pair of finite numbers.
|
||||
*/
|
||||
export type Point = [number, number];
|
||||
@@ -0,0 +1,4 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { Point } from "./Point";
|
||||
|
||||
export type Polygon = { type: "polygon", points: Array<Point>, };
|
||||
@@ -0,0 +1,7 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type Practitioner = { name: string, cabinet?: string, contact?: string,
|
||||
/**
|
||||
* SIRET, 14-digit French business identifier (not validated).
|
||||
*/
|
||||
siret?: string, };
|
||||
@@ -0,0 +1,7 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { ReferenceType } from "./ReferenceType";
|
||||
|
||||
/**
|
||||
* One bibliographic reference, declared once and cited by id.
|
||||
*/
|
||||
export type Reference = { id: string, type: ReferenceType, citation: string, url: string | null, doi: string | null, };
|
||||
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type ReferenceType = "book" | "journal" | "standard" | "legal" | "web" | "manual";
|
||||
@@ -0,0 +1,21 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { Animal } from "./Animal";
|
||||
import type { NextAppointment } from "./NextAppointment";
|
||||
import type { Observation } from "./Observation";
|
||||
import type { Owner } from "./Owner";
|
||||
import type { Practitioner } from "./Practitioner";
|
||||
import type { SheetRef } from "./SheetRef";
|
||||
|
||||
export type Report = { version: 3, id: string,
|
||||
/**
|
||||
* ISO timestamp of report creation.
|
||||
*/
|
||||
createdAt: string,
|
||||
/**
|
||||
* ISO date of the clinical encounter.
|
||||
*/
|
||||
date: string, practitioner: Practitioner, animal: Animal, owner: Owner, sheet: SheetRef, observations: Array<Observation>, conclusion: string, recommendations: string, nextAppointment?: NextAppointment,
|
||||
/**
|
||||
* Reserved for report-only points (OPEN_QUESTIONS Q6); empty until defined.
|
||||
*/
|
||||
localAnnotations: Array<unknown>, };
|
||||
@@ -0,0 +1,19 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { Branding } from "./Branding";
|
||||
import type { Locale } from "./Locale";
|
||||
import type { PdfLabelSet } from "./PdfLabelSet";
|
||||
import type { Report } from "./Report";
|
||||
import type { SheetSnapshot } from "./SheetSnapshot";
|
||||
|
||||
/**
|
||||
* An archive envelope, in the order the engine writes it.
|
||||
*/
|
||||
export type ReportArchiveEnvelope = { format: "faunosteo-report-archive", envelopeVersion: 1,
|
||||
/**
|
||||
* ISO timestamp of the export.
|
||||
*/
|
||||
exportedAt: string, locale: Locale,
|
||||
/**
|
||||
* As exported, never rebased.
|
||||
*/
|
||||
report: Report, sheetSnapshot: SheetSnapshot, branding: Branding, labels: PdfLabelSet, };
|
||||
@@ -3,8 +3,7 @@ import type { LateralSide } from "./LateralSide";
|
||||
import type { Vertebra } from "./Vertebra";
|
||||
|
||||
/**
|
||||
* A zone of an observation. Unknown keys are ignored on input, as the Zod schema strips
|
||||
* them; optional fields are written only when set.
|
||||
* A zone of an observation.
|
||||
*/
|
||||
export type ReportZone = { annotationId: string, viewId: string, side?: LateralSide, vertebrae?: Array<Vertebra>,
|
||||
/**
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
/**
|
||||
* How far the content was checked against references.
|
||||
*/
|
||||
export type ReviewStatus = "inherited" | "reviewed" | "to_confirm";
|
||||
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type Severity = "mild" | "moderate" | "severe";
|
||||
@@ -1,7 +1,7 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
/**
|
||||
* Reference of the anatomical sheet a report was written against (`Report.sheet`).
|
||||
* The sheet document a report was built on, by content.
|
||||
*/
|
||||
export type SheetRef = { sheetId: string,
|
||||
/**
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { AnatomicalSheetDocument } from "./AnatomicalSheetDocument";
|
||||
import type { SheetSnapshotAsset } from "./SheetSnapshotAsset";
|
||||
import type { SheetSnapshotRef } from "./SheetSnapshotRef";
|
||||
import type { SheetStatus } from "./SheetStatus";
|
||||
|
||||
export type SheetSnapshot = { status: SheetStatus, ref: SheetSnapshotRef,
|
||||
/**
|
||||
* Lean, valid document (schema v2, strict).
|
||||
*/
|
||||
document: AnatomicalSheetDocument, assets: Array<SheetSnapshotAsset>, };
|
||||
@@ -0,0 +1,7 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type SheetSnapshotAsset = { svgAssetId: string,
|
||||
/**
|
||||
* Content address from the seed manifest; a provenance pointer, not a tamper check.
|
||||
*/
|
||||
sha256: string | null, svg: string, };
|
||||
@@ -0,0 +1,6 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
/**
|
||||
* `SheetRefSchema.extend({schemaVersion, speciesId}).strict()`.
|
||||
*/
|
||||
export type SheetSnapshotRef = { sheetId: string, versionId: string | null, documentSha256: string, schemaVersion: number, speciesId: string, };
|
||||
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type SheetStatus = "draft" | "published";
|
||||
@@ -0,0 +1,8 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { DetailView } from "./DetailView";
|
||||
import type { MainView } from "./MainView";
|
||||
|
||||
/**
|
||||
* Views form a tree: a detail names its parent, any depth.
|
||||
*/
|
||||
export type SheetView = MainView | DetailView;
|
||||
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type SvgAsset = { kind: "svg", svg: string, };
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
/**
|
||||
* One vertebra of a spine zone: the region code and the 1-based index in that region.
|
||||
* One vertebra: the sheet's region code and the 1-based index in that region.
|
||||
*/
|
||||
export type Vertebra = { region: string, index: number, };
|
||||
@@ -0,0 +1,4 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { VertebralRegion } from "./VertebralRegion";
|
||||
|
||||
export type VertebralConfig = { regions: Array<VertebralRegion>, };
|
||||
@@ -0,0 +1,5 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { CountRange } from "./CountRange";
|
||||
import type { LocalizedText } from "./LocalizedText";
|
||||
|
||||
export type VertebralRegion = { code: string, name: LocalizedText, count: number, count_range: CountRange | null, };
|
||||
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type ViewBox = { min_x: number, min_y: number, width: number, height: number, };
|
||||
@@ -1,6 +1,59 @@
|
||||
// Types of the core contracts, generated by ts-rs from crates/core (`pnpm rust:check`
|
||||
// regenerates them; CI fails when the committed files drift from the Rust structs).
|
||||
// regenerates them; the drift gate fails when the committed files differ from the Rust structs).
|
||||
// This index lists every generated file: tests/types-index.test.ts keeps it complete.
|
||||
export type { AnatomicalSheetDocument } from './AnatomicalSheetDocument'
|
||||
export type { Animal } from './Animal'
|
||||
export type { AnnotationCategory } from './AnnotationCategory'
|
||||
export type { Annotation } from './Annotation'
|
||||
export type { Attribution } from './Attribution'
|
||||
export type { Branding } from './Branding'
|
||||
export type { Circle } from './Circle'
|
||||
export type { CountRange } from './CountRange'
|
||||
export type { Credit } from './Credit'
|
||||
export type { DetailTriggerAnnotation } from './DetailTriggerAnnotation'
|
||||
export type { DetailView } from './DetailView'
|
||||
export type { FindingCategoryKind } from './FindingCategoryKind'
|
||||
export type { FindingCategory } from './FindingCategory'
|
||||
export type { FindingNode } from './FindingNode'
|
||||
export type { Finding } from './Finding'
|
||||
export type { FindingZone } from './FindingZone'
|
||||
export type { Geometry } from './Geometry'
|
||||
export type { ImageAsset } from './ImageAsset'
|
||||
export type { Laterality } from './Laterality'
|
||||
export type { LateralSide } from './LateralSide'
|
||||
export type { Locale } from './Locale'
|
||||
export type { LocalizedOptionalText } from './LocalizedOptionalText'
|
||||
export type { LocalizedText } from './LocalizedText'
|
||||
export type { MainView } from './MainView'
|
||||
export type { NextAppointmentDate } from './NextAppointmentDate'
|
||||
export type { NextAppointmentPeriod } from './NextAppointmentPeriod'
|
||||
export type { NextAppointment } from './NextAppointment'
|
||||
export type { ObservableAnnotation } from './ObservableAnnotation'
|
||||
export type { ObservableKind } from './ObservableKind'
|
||||
export type { Observation } from './Observation'
|
||||
export type { Owner } from './Owner'
|
||||
export type { PathGeometry } from './PathGeometry'
|
||||
export type { PdfLabelSet } from './PdfLabelSet'
|
||||
export type { PdfLabels } from './PdfLabels'
|
||||
export type { PngAsset } from './PngAsset'
|
||||
export type { Point } from './Point'
|
||||
export type { Polygon } from './Polygon'
|
||||
export type { Practitioner } from './Practitioner'
|
||||
export type { Reference } from './Reference'
|
||||
export type { ReferenceType } from './ReferenceType'
|
||||
export type { ReportArchiveEnvelope } from './ReportArchiveEnvelope'
|
||||
export type { Report } from './Report'
|
||||
export type { ReportZone } from './ReportZone'
|
||||
export type { ReviewStatus } from './ReviewStatus'
|
||||
export type { Severity } from './Severity'
|
||||
export type { SheetRef } from './SheetRef'
|
||||
export type { SheetSnapshotAsset } from './SheetSnapshotAsset'
|
||||
export type { SheetSnapshotRef } from './SheetSnapshotRef'
|
||||
export type { SheetSnapshot } from './SheetSnapshot'
|
||||
export type { SheetStatus } from './SheetStatus'
|
||||
export type { SheetView } from './SheetView'
|
||||
export type { SvgAsset } from './SvgAsset'
|
||||
export type { VertebralConfig } from './VertebralConfig'
|
||||
export type { VertebralRegion } from './VertebralRegion'
|
||||
export type { Vertebra } from './Vertebra'
|
||||
export type { ViewBox } from './ViewBox'
|
||||
Reference in new issue
Block a user