@nakafa/aksara-contracts 8.4.1 → 8.9.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/assessment/answer.d.ts +2 -0
- package/dist/assessment/answer.js +5 -3
- package/dist/assessment/closure.js +2 -1
- package/dist/assessment/fit.d.ts +16 -2
- package/dist/assessment/fit.js +23 -5
- package/dist/assessment/graphic.d.ts +27 -0
- package/dist/assessment/graphic.js +17 -1
- package/dist/assessment/hash.d.ts +71 -3
- package/dist/assessment/interaction.d.ts +18 -1
- package/dist/assessment/interaction.js +2 -1
- package/dist/assessment/item.d.ts +85 -0
- package/dist/assessment/item.js +1 -1
- package/dist/assessment/joint.d.ts +4 -3
- package/dist/assessment/joint.js +4 -3
- package/dist/assessment/key.d.ts +138 -0
- package/dist/assessment/key.js +6 -0
- package/dist/assessment/paper.d.ts +316 -0
- package/dist/assessment/profile.d.ts +3 -3
- package/dist/assessment/profile.js +4 -4
- package/dist/assessment/rows.d.ts +285 -3
- package/dist/assessment/scoring.d.ts +12 -6
- package/dist/assessment/scoring.js +25 -8
- package/dist/assessment/sketch.d.ts +125 -0
- package/dist/assessment/sketch.js +175 -0
- package/dist/assessment/snapshot.d.ts +746 -10
- package/dist/assessment/structure.js +4 -4
- package/dist/hash/sha256.d.ts +16 -0
- package/dist/hash/sha256.js +164 -0
- package/dist/hash/stream.d.ts +7 -5
- package/dist/hash/stream.js +13 -18
- package/dist/math/boundary.js +3 -22
- package/dist/math/edge.d.ts +11 -0
- package/dist/math/edge.js +74 -0
- package/dist/math/graph.d.ts +9 -0
- package/dist/math/graph.js +66 -0
- package/dist/math/plane.js +6 -0
- package/dist/math/shape.d.ts +392 -0
- package/dist/math/shape.js +59 -0
- package/dist/math/straight.d.ts +13 -0
- package/dist/math/straight.js +26 -0
- package/dist/release/snapshot/data.d.ts +88 -2
- package/dist/release/snapshot/verify.d.ts +285 -3
- package/dist/transport/group.d.ts +264 -6
- package/dist/transport/request.d.ts +1886 -22
- package/dist/transport/snapshot.d.ts +176 -4
- package/dist/visual/biology/blood.d.ts +91 -0
- package/dist/visual/biology/blood.js +55 -0
- package/dist/visual/biology/heart.d.ts +92 -0
- package/dist/visual/biology/heart.js +54 -0
- package/dist/visual/biology/mitochondrion.d.ts +91 -0
- package/dist/visual/biology/mitochondrion.js +45 -0
- package/dist/visual/biology/muscle.d.ts +103 -0
- package/dist/visual/biology/muscle.js +62 -0
- package/dist/visual/biology/neuron.d.ts +97 -0
- package/dist/visual/biology/neuron.js +48 -0
- package/dist/visual/biology/paddy.d.ts +100 -0
- package/dist/visual/biology/paddy.js +54 -0
- package/dist/visual/biology/synapse.d.ts +101 -0
- package/dist/visual/biology/synapse.js +46 -0
- package/dist/visual/biology/vessel.d.ts +104 -0
- package/dist/visual/biology/vessel.js +60 -0
- package/dist/visual/biology/yeast.d.ts +108 -0
- package/dist/visual/biology/yeast.js +61 -0
- package/dist/visual/catalog.d.ts +2177 -778
- package/dist/visual/catalog.js +28 -0
- package/dist/visual/mathematics/journey.d.ts +118 -0
- package/dist/visual/mathematics/journey.js +125 -0
- package/dist/visual/mathematics/logic.d.ts +90 -0
- package/dist/visual/mathematics/logic.js +49 -0
- package/dist/visual/mathematics/network.d.ts +101 -0
- package/dist/visual/mathematics/network.js +97 -0
- package/dist/visual/mathematics/numeral.d.ts +81 -0
- package/dist/visual/mathematics/numeral.js +48 -0
- package/dist/visual/mathematics/sets.d.ts +92 -0
- package/dist/visual/mathematics/sets.js +95 -0
- package/dist/visual/physics/thermodynamics.d.ts +117 -0
- package/dist/visual/physics/thermodynamics.js +95 -0
- package/package.json +2 -2
|
@@ -277,7 +277,7 @@ export declare const StageSnapshotBatchInputSchema: Schema.Struct<{
|
|
|
277
277
|
readonly seconds: Schema.Int;
|
|
278
278
|
}>>;
|
|
279
279
|
readonly defaults: Schema.$Array<Schema.Struct<{
|
|
280
|
-
readonly interaction: Schema.Union<[Schema.Literal<"choice"> | Schema.Literal<"extendedText"> | Schema.Literal<"gapMatch"> | Schema.Literal<"graphPoint"> | Schema.Literal<"hotspot"> | Schema.Literal<"inlineChoice"> | Schema.Literal<"match"> | Schema.Literal<"mathEntry"> | Schema.Literal<"matrix"> | Schema.Literal<"numericEntry"> | Schema.Literal<"order"> | Schema.Literal<"textEntry">, ...(Schema.Literal<"choice"> | Schema.Literal<"extendedText"> | Schema.Literal<"gapMatch"> | Schema.Literal<"graphPoint"> | Schema.Literal<"hotspot"> | Schema.Literal<"inlineChoice"> | Schema.Literal<"match"> | Schema.Literal<"mathEntry"> | Schema.Literal<"matrix"> | Schema.Literal<"numericEntry"> | Schema.Literal<"order"> | Schema.Literal<"textEntry">)[]]>;
|
|
280
|
+
readonly interaction: Schema.Union<[Schema.Literal<"choice"> | Schema.Literal<"extendedText"> | Schema.Literal<"gapMatch"> | Schema.Literal<"graphPoint"> | Schema.Literal<"hotspot"> | Schema.Literal<"inlineChoice"> | Schema.Literal<"match"> | Schema.Literal<"mathEntry"> | Schema.Literal<"matrix"> | Schema.Literal<"numericEntry"> | Schema.Literal<"order"> | Schema.Literal<"sketch"> | Schema.Literal<"textEntry">, ...(Schema.Literal<"choice"> | Schema.Literal<"extendedText"> | Schema.Literal<"gapMatch"> | Schema.Literal<"graphPoint"> | Schema.Literal<"hotspot"> | Schema.Literal<"inlineChoice"> | Schema.Literal<"match"> | Schema.Literal<"mathEntry"> | Schema.Literal<"matrix"> | Schema.Literal<"numericEntry"> | Schema.Literal<"order"> | Schema.Literal<"sketch"> | Schema.Literal<"textEntry">)[]]>;
|
|
281
281
|
readonly rule: Schema.Union<readonly [Schema.Struct<{
|
|
282
282
|
readonly kind: Schema.Literal<"allOrNothing">;
|
|
283
283
|
}>, Schema.Struct<{
|
|
@@ -323,7 +323,7 @@ export declare const StageSnapshotBatchInputSchema: Schema.Struct<{
|
|
|
323
323
|
}>]>;
|
|
324
324
|
readonly sections: Schema.NonEmptyArray<Schema.Struct<{
|
|
325
325
|
readonly id: Schema.String;
|
|
326
|
-
readonly interactions: Schema.NonEmptyArray<Schema.Union<[Schema.Literal<"choice"> | Schema.Literal<"extendedText"> | Schema.Literal<"gapMatch"> | Schema.Literal<"graphPoint"> | Schema.Literal<"hotspot"> | Schema.Literal<"inlineChoice"> | Schema.Literal<"match"> | Schema.Literal<"mathEntry"> | Schema.Literal<"matrix"> | Schema.Literal<"numericEntry"> | Schema.Literal<"order"> | Schema.Literal<"textEntry">, ...(Schema.Literal<"choice"> | Schema.Literal<"extendedText"> | Schema.Literal<"gapMatch"> | Schema.Literal<"graphPoint"> | Schema.Literal<"hotspot"> | Schema.Literal<"inlineChoice"> | Schema.Literal<"match"> | Schema.Literal<"mathEntry"> | Schema.Literal<"matrix"> | Schema.Literal<"numericEntry"> | Schema.Literal<"order"> | Schema.Literal<"textEntry">)[]]>>;
|
|
326
|
+
readonly interactions: Schema.NonEmptyArray<Schema.Union<[Schema.Literal<"choice"> | Schema.Literal<"extendedText"> | Schema.Literal<"gapMatch"> | Schema.Literal<"graphPoint"> | Schema.Literal<"hotspot"> | Schema.Literal<"inlineChoice"> | Schema.Literal<"match"> | Schema.Literal<"mathEntry"> | Schema.Literal<"matrix"> | Schema.Literal<"numericEntry"> | Schema.Literal<"order"> | Schema.Literal<"sketch"> | Schema.Literal<"textEntry">, ...(Schema.Literal<"choice"> | Schema.Literal<"extendedText"> | Schema.Literal<"gapMatch"> | Schema.Literal<"graphPoint"> | Schema.Literal<"hotspot"> | Schema.Literal<"inlineChoice"> | Schema.Literal<"match"> | Schema.Literal<"mathEntry"> | Schema.Literal<"matrix"> | Schema.Literal<"numericEntry"> | Schema.Literal<"order"> | Schema.Literal<"sketch"> | Schema.Literal<"textEntry">)[]]>>;
|
|
327
327
|
readonly items: Schema.Int;
|
|
328
328
|
readonly names: Schema.$Record<Schema.Literals<readonly ["en", "id", "de", "ms"]>, Schema.Trimmed>;
|
|
329
329
|
readonly navigation: Schema.Literals<readonly ["free", "linear"]>;
|
|
@@ -581,6 +581,23 @@ export declare const StageSnapshotBatchInputSchema: Schema.Struct<{
|
|
|
581
581
|
readonly label: Schema.Trimmed;
|
|
582
582
|
readonly expectedLines: Schema.optionalKey<Schema.Int>;
|
|
583
583
|
readonly kind: Schema.Literal<"extendedText">;
|
|
584
|
+
}>, Schema.Struct<{
|
|
585
|
+
readonly id: Schema.String;
|
|
586
|
+
readonly label: Schema.Trimmed;
|
|
587
|
+
readonly frame: Schema.Struct<{
|
|
588
|
+
readonly kind: Schema.Literal<"cartesian">;
|
|
589
|
+
readonly x: Schema.Struct<{
|
|
590
|
+
readonly max: Schema.Finite;
|
|
591
|
+
readonly min: Schema.Finite;
|
|
592
|
+
}>;
|
|
593
|
+
readonly y: Schema.Struct<{
|
|
594
|
+
readonly max: Schema.Finite;
|
|
595
|
+
readonly min: Schema.Finite;
|
|
596
|
+
}>;
|
|
597
|
+
}>;
|
|
598
|
+
readonly grid: Schema.optionalKey<Schema.Finite>;
|
|
599
|
+
readonly kind: Schema.Literal<"sketch">;
|
|
600
|
+
readonly marks: Schema.$Array<Schema.Literals<readonly ["asymptote", "point"]>>;
|
|
584
601
|
}>]>>;
|
|
585
602
|
readonly joint: Schema.optionalKey<Schema.Struct<{
|
|
586
603
|
readonly levels: Schema.NonEmptyArray<Schema.Struct<{
|
|
@@ -723,12 +740,81 @@ export declare const StageSnapshotBatchInputSchema: Schema.Struct<{
|
|
|
723
740
|
readonly interaction: Schema.String;
|
|
724
741
|
readonly criteria: Schema.NonEmptyArray<Schema.Struct<{
|
|
725
742
|
readonly criterion: Schema.String;
|
|
743
|
+
readonly feedback: Schema.optionalKey<Schema.Struct<{
|
|
744
|
+
readonly earned: Schema.Trimmed;
|
|
745
|
+
readonly missed: Schema.Trimmed;
|
|
746
|
+
}>>;
|
|
726
747
|
readonly levels: Schema.NonEmptyArray<Schema.Struct<{
|
|
727
748
|
readonly descriptor: Schema.Trimmed;
|
|
728
749
|
readonly level: Schema.String;
|
|
729
750
|
}>>;
|
|
730
751
|
}>>;
|
|
731
752
|
readonly kind: Schema.Literal<"extendedText">;
|
|
753
|
+
}>, Schema.Struct<{
|
|
754
|
+
readonly criteria: Schema.NonEmptyArray<Schema.Struct<{
|
|
755
|
+
readonly check: Schema.Struct<{
|
|
756
|
+
readonly feature: Schema.Union<readonly [Schema.Struct<{
|
|
757
|
+
readonly contact: Schema.Literals<readonly ["cross", "touch"]>;
|
|
758
|
+
readonly kind: Schema.Literal<"zero">;
|
|
759
|
+
readonly x: Schema.String;
|
|
760
|
+
}>, Schema.Struct<{
|
|
761
|
+
readonly kind: Schema.Literal<"yIntercept">;
|
|
762
|
+
readonly y: Schema.String;
|
|
763
|
+
}>, Schema.Struct<{
|
|
764
|
+
readonly kind: Schema.Literal<"extremum">;
|
|
765
|
+
readonly turn: Schema.Literals<readonly ["maximum", "minimum"]>;
|
|
766
|
+
readonly x: Schema.String;
|
|
767
|
+
readonly y: Schema.String;
|
|
768
|
+
}>, Schema.Struct<{
|
|
769
|
+
readonly kind: Schema.Literal<"asymptote">;
|
|
770
|
+
readonly line: Schema.Union<readonly [Schema.Struct<{
|
|
771
|
+
readonly kind: Schema.Literal<"vertical">;
|
|
772
|
+
readonly x: Schema.String;
|
|
773
|
+
}>, Schema.Struct<{
|
|
774
|
+
readonly intercept: Schema.String;
|
|
775
|
+
readonly kind: Schema.Literal<"sloped">;
|
|
776
|
+
readonly slope: Schema.String;
|
|
777
|
+
}>]>;
|
|
778
|
+
}>, Schema.Struct<{
|
|
779
|
+
readonly direction: Schema.Literals<readonly ["falling", "rising"]>;
|
|
780
|
+
readonly from: Schema.NullOr<Schema.String>;
|
|
781
|
+
readonly kind: Schema.Literal<"interval">;
|
|
782
|
+
readonly to: Schema.NullOr<Schema.String>;
|
|
783
|
+
}>, Schema.Struct<{
|
|
784
|
+
readonly kind: Schema.Literal<"end">;
|
|
785
|
+
readonly limit: Schema.Union<readonly [Schema.Literals<readonly ["negativeInfinity", "positiveInfinity"]>, Schema.String]>;
|
|
786
|
+
readonly side: Schema.Literals<readonly ["left", "right"]>;
|
|
787
|
+
}>, Schema.Struct<{
|
|
788
|
+
readonly kind: Schema.Literal<"inflection">;
|
|
789
|
+
readonly x: Schema.String;
|
|
790
|
+
readonly y: Schema.String;
|
|
791
|
+
}>, Schema.Struct<{
|
|
792
|
+
readonly end: Schema.optionalKey<Schema.Literals<readonly ["closed", "open"]>>;
|
|
793
|
+
readonly kind: Schema.Literal<"point">;
|
|
794
|
+
readonly x: Schema.String;
|
|
795
|
+
readonly y: Schema.String;
|
|
796
|
+
}>]>;
|
|
797
|
+
readonly kind: Schema.Literal<"feature">;
|
|
798
|
+
}>;
|
|
799
|
+
readonly criterion: Schema.String;
|
|
800
|
+
readonly feedback: Schema.Struct<{
|
|
801
|
+
readonly earned: Schema.Trimmed;
|
|
802
|
+
readonly missed: Schema.Trimmed;
|
|
803
|
+
}>;
|
|
804
|
+
readonly requires: Schema.optionalKey<Schema.NonEmptyArray<Schema.String>>;
|
|
805
|
+
}>>;
|
|
806
|
+
readonly interaction: Schema.String;
|
|
807
|
+
readonly kind: Schema.Literal<"sketch">;
|
|
808
|
+
readonly tolerances: Schema.Struct<{
|
|
809
|
+
readonly asymptote: Schema.optionalKey<Schema.String>;
|
|
810
|
+
readonly end: Schema.optionalKey<Schema.String>;
|
|
811
|
+
readonly extremum: Schema.optionalKey<Schema.String>;
|
|
812
|
+
readonly inflection: Schema.optionalKey<Schema.String>;
|
|
813
|
+
readonly interval: Schema.optionalKey<Schema.String>;
|
|
814
|
+
readonly point: Schema.optionalKey<Schema.String>;
|
|
815
|
+
readonly yIntercept: Schema.optionalKey<Schema.String>;
|
|
816
|
+
readonly zero: Schema.optionalKey<Schema.String>;
|
|
817
|
+
}>;
|
|
732
818
|
}>]>>;
|
|
733
819
|
readonly version: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
|
|
734
820
|
}>;
|
|
@@ -1111,7 +1197,7 @@ export declare const StageSnapshotBatchRequestSchema: Schema.Struct<{
|
|
|
1111
1197
|
readonly seconds: Schema.Int;
|
|
1112
1198
|
}>>;
|
|
1113
1199
|
readonly defaults: Schema.$Array<Schema.Struct<{
|
|
1114
|
-
readonly interaction: Schema.Union<[Schema.Literal<"choice"> | Schema.Literal<"extendedText"> | Schema.Literal<"gapMatch"> | Schema.Literal<"graphPoint"> | Schema.Literal<"hotspot"> | Schema.Literal<"inlineChoice"> | Schema.Literal<"match"> | Schema.Literal<"mathEntry"> | Schema.Literal<"matrix"> | Schema.Literal<"numericEntry"> | Schema.Literal<"order"> | Schema.Literal<"textEntry">, ...(Schema.Literal<"choice"> | Schema.Literal<"extendedText"> | Schema.Literal<"gapMatch"> | Schema.Literal<"graphPoint"> | Schema.Literal<"hotspot"> | Schema.Literal<"inlineChoice"> | Schema.Literal<"match"> | Schema.Literal<"mathEntry"> | Schema.Literal<"matrix"> | Schema.Literal<"numericEntry"> | Schema.Literal<"order"> | Schema.Literal<"textEntry">)[]]>;
|
|
1200
|
+
readonly interaction: Schema.Union<[Schema.Literal<"choice"> | Schema.Literal<"extendedText"> | Schema.Literal<"gapMatch"> | Schema.Literal<"graphPoint"> | Schema.Literal<"hotspot"> | Schema.Literal<"inlineChoice"> | Schema.Literal<"match"> | Schema.Literal<"mathEntry"> | Schema.Literal<"matrix"> | Schema.Literal<"numericEntry"> | Schema.Literal<"order"> | Schema.Literal<"sketch"> | Schema.Literal<"textEntry">, ...(Schema.Literal<"choice"> | Schema.Literal<"extendedText"> | Schema.Literal<"gapMatch"> | Schema.Literal<"graphPoint"> | Schema.Literal<"hotspot"> | Schema.Literal<"inlineChoice"> | Schema.Literal<"match"> | Schema.Literal<"mathEntry"> | Schema.Literal<"matrix"> | Schema.Literal<"numericEntry"> | Schema.Literal<"order"> | Schema.Literal<"sketch"> | Schema.Literal<"textEntry">)[]]>;
|
|
1115
1201
|
readonly rule: Schema.Union<readonly [Schema.Struct<{
|
|
1116
1202
|
readonly kind: Schema.Literal<"allOrNothing">;
|
|
1117
1203
|
}>, Schema.Struct<{
|
|
@@ -1157,7 +1243,7 @@ export declare const StageSnapshotBatchRequestSchema: Schema.Struct<{
|
|
|
1157
1243
|
}>]>;
|
|
1158
1244
|
readonly sections: Schema.NonEmptyArray<Schema.Struct<{
|
|
1159
1245
|
readonly id: Schema.String;
|
|
1160
|
-
readonly interactions: Schema.NonEmptyArray<Schema.Union<[Schema.Literal<"choice"> | Schema.Literal<"extendedText"> | Schema.Literal<"gapMatch"> | Schema.Literal<"graphPoint"> | Schema.Literal<"hotspot"> | Schema.Literal<"inlineChoice"> | Schema.Literal<"match"> | Schema.Literal<"mathEntry"> | Schema.Literal<"matrix"> | Schema.Literal<"numericEntry"> | Schema.Literal<"order"> | Schema.Literal<"textEntry">, ...(Schema.Literal<"choice"> | Schema.Literal<"extendedText"> | Schema.Literal<"gapMatch"> | Schema.Literal<"graphPoint"> | Schema.Literal<"hotspot"> | Schema.Literal<"inlineChoice"> | Schema.Literal<"match"> | Schema.Literal<"mathEntry"> | Schema.Literal<"matrix"> | Schema.Literal<"numericEntry"> | Schema.Literal<"order"> | Schema.Literal<"textEntry">)[]]>>;
|
|
1246
|
+
readonly interactions: Schema.NonEmptyArray<Schema.Union<[Schema.Literal<"choice"> | Schema.Literal<"extendedText"> | Schema.Literal<"gapMatch"> | Schema.Literal<"graphPoint"> | Schema.Literal<"hotspot"> | Schema.Literal<"inlineChoice"> | Schema.Literal<"match"> | Schema.Literal<"mathEntry"> | Schema.Literal<"matrix"> | Schema.Literal<"numericEntry"> | Schema.Literal<"order"> | Schema.Literal<"sketch"> | Schema.Literal<"textEntry">, ...(Schema.Literal<"choice"> | Schema.Literal<"extendedText"> | Schema.Literal<"gapMatch"> | Schema.Literal<"graphPoint"> | Schema.Literal<"hotspot"> | Schema.Literal<"inlineChoice"> | Schema.Literal<"match"> | Schema.Literal<"mathEntry"> | Schema.Literal<"matrix"> | Schema.Literal<"numericEntry"> | Schema.Literal<"order"> | Schema.Literal<"sketch"> | Schema.Literal<"textEntry">)[]]>>;
|
|
1161
1247
|
readonly items: Schema.Int;
|
|
1162
1248
|
readonly names: Schema.$Record<Schema.Literals<readonly ["en", "id", "de", "ms"]>, Schema.Trimmed>;
|
|
1163
1249
|
readonly navigation: Schema.Literals<readonly ["free", "linear"]>;
|
|
@@ -1415,6 +1501,23 @@ export declare const StageSnapshotBatchRequestSchema: Schema.Struct<{
|
|
|
1415
1501
|
readonly label: Schema.Trimmed;
|
|
1416
1502
|
readonly expectedLines: Schema.optionalKey<Schema.Int>;
|
|
1417
1503
|
readonly kind: Schema.Literal<"extendedText">;
|
|
1504
|
+
}>, Schema.Struct<{
|
|
1505
|
+
readonly id: Schema.String;
|
|
1506
|
+
readonly label: Schema.Trimmed;
|
|
1507
|
+
readonly frame: Schema.Struct<{
|
|
1508
|
+
readonly kind: Schema.Literal<"cartesian">;
|
|
1509
|
+
readonly x: Schema.Struct<{
|
|
1510
|
+
readonly max: Schema.Finite;
|
|
1511
|
+
readonly min: Schema.Finite;
|
|
1512
|
+
}>;
|
|
1513
|
+
readonly y: Schema.Struct<{
|
|
1514
|
+
readonly max: Schema.Finite;
|
|
1515
|
+
readonly min: Schema.Finite;
|
|
1516
|
+
}>;
|
|
1517
|
+
}>;
|
|
1518
|
+
readonly grid: Schema.optionalKey<Schema.Finite>;
|
|
1519
|
+
readonly kind: Schema.Literal<"sketch">;
|
|
1520
|
+
readonly marks: Schema.$Array<Schema.Literals<readonly ["asymptote", "point"]>>;
|
|
1418
1521
|
}>]>>;
|
|
1419
1522
|
readonly joint: Schema.optionalKey<Schema.Struct<{
|
|
1420
1523
|
readonly levels: Schema.NonEmptyArray<Schema.Struct<{
|
|
@@ -1557,12 +1660,81 @@ export declare const StageSnapshotBatchRequestSchema: Schema.Struct<{
|
|
|
1557
1660
|
readonly interaction: Schema.String;
|
|
1558
1661
|
readonly criteria: Schema.NonEmptyArray<Schema.Struct<{
|
|
1559
1662
|
readonly criterion: Schema.String;
|
|
1663
|
+
readonly feedback: Schema.optionalKey<Schema.Struct<{
|
|
1664
|
+
readonly earned: Schema.Trimmed;
|
|
1665
|
+
readonly missed: Schema.Trimmed;
|
|
1666
|
+
}>>;
|
|
1560
1667
|
readonly levels: Schema.NonEmptyArray<Schema.Struct<{
|
|
1561
1668
|
readonly descriptor: Schema.Trimmed;
|
|
1562
1669
|
readonly level: Schema.String;
|
|
1563
1670
|
}>>;
|
|
1564
1671
|
}>>;
|
|
1565
1672
|
readonly kind: Schema.Literal<"extendedText">;
|
|
1673
|
+
}>, Schema.Struct<{
|
|
1674
|
+
readonly criteria: Schema.NonEmptyArray<Schema.Struct<{
|
|
1675
|
+
readonly check: Schema.Struct<{
|
|
1676
|
+
readonly feature: Schema.Union<readonly [Schema.Struct<{
|
|
1677
|
+
readonly contact: Schema.Literals<readonly ["cross", "touch"]>;
|
|
1678
|
+
readonly kind: Schema.Literal<"zero">;
|
|
1679
|
+
readonly x: Schema.String;
|
|
1680
|
+
}>, Schema.Struct<{
|
|
1681
|
+
readonly kind: Schema.Literal<"yIntercept">;
|
|
1682
|
+
readonly y: Schema.String;
|
|
1683
|
+
}>, Schema.Struct<{
|
|
1684
|
+
readonly kind: Schema.Literal<"extremum">;
|
|
1685
|
+
readonly turn: Schema.Literals<readonly ["maximum", "minimum"]>;
|
|
1686
|
+
readonly x: Schema.String;
|
|
1687
|
+
readonly y: Schema.String;
|
|
1688
|
+
}>, Schema.Struct<{
|
|
1689
|
+
readonly kind: Schema.Literal<"asymptote">;
|
|
1690
|
+
readonly line: Schema.Union<readonly [Schema.Struct<{
|
|
1691
|
+
readonly kind: Schema.Literal<"vertical">;
|
|
1692
|
+
readonly x: Schema.String;
|
|
1693
|
+
}>, Schema.Struct<{
|
|
1694
|
+
readonly intercept: Schema.String;
|
|
1695
|
+
readonly kind: Schema.Literal<"sloped">;
|
|
1696
|
+
readonly slope: Schema.String;
|
|
1697
|
+
}>]>;
|
|
1698
|
+
}>, Schema.Struct<{
|
|
1699
|
+
readonly direction: Schema.Literals<readonly ["falling", "rising"]>;
|
|
1700
|
+
readonly from: Schema.NullOr<Schema.String>;
|
|
1701
|
+
readonly kind: Schema.Literal<"interval">;
|
|
1702
|
+
readonly to: Schema.NullOr<Schema.String>;
|
|
1703
|
+
}>, Schema.Struct<{
|
|
1704
|
+
readonly kind: Schema.Literal<"end">;
|
|
1705
|
+
readonly limit: Schema.Union<readonly [Schema.Literals<readonly ["negativeInfinity", "positiveInfinity"]>, Schema.String]>;
|
|
1706
|
+
readonly side: Schema.Literals<readonly ["left", "right"]>;
|
|
1707
|
+
}>, Schema.Struct<{
|
|
1708
|
+
readonly kind: Schema.Literal<"inflection">;
|
|
1709
|
+
readonly x: Schema.String;
|
|
1710
|
+
readonly y: Schema.String;
|
|
1711
|
+
}>, Schema.Struct<{
|
|
1712
|
+
readonly end: Schema.optionalKey<Schema.Literals<readonly ["closed", "open"]>>;
|
|
1713
|
+
readonly kind: Schema.Literal<"point">;
|
|
1714
|
+
readonly x: Schema.String;
|
|
1715
|
+
readonly y: Schema.String;
|
|
1716
|
+
}>]>;
|
|
1717
|
+
readonly kind: Schema.Literal<"feature">;
|
|
1718
|
+
}>;
|
|
1719
|
+
readonly criterion: Schema.String;
|
|
1720
|
+
readonly feedback: Schema.Struct<{
|
|
1721
|
+
readonly earned: Schema.Trimmed;
|
|
1722
|
+
readonly missed: Schema.Trimmed;
|
|
1723
|
+
}>;
|
|
1724
|
+
readonly requires: Schema.optionalKey<Schema.NonEmptyArray<Schema.String>>;
|
|
1725
|
+
}>>;
|
|
1726
|
+
readonly interaction: Schema.String;
|
|
1727
|
+
readonly kind: Schema.Literal<"sketch">;
|
|
1728
|
+
readonly tolerances: Schema.Struct<{
|
|
1729
|
+
readonly asymptote: Schema.optionalKey<Schema.String>;
|
|
1730
|
+
readonly end: Schema.optionalKey<Schema.String>;
|
|
1731
|
+
readonly extremum: Schema.optionalKey<Schema.String>;
|
|
1732
|
+
readonly inflection: Schema.optionalKey<Schema.String>;
|
|
1733
|
+
readonly interval: Schema.optionalKey<Schema.String>;
|
|
1734
|
+
readonly point: Schema.optionalKey<Schema.String>;
|
|
1735
|
+
readonly yIntercept: Schema.optionalKey<Schema.String>;
|
|
1736
|
+
readonly zero: Schema.optionalKey<Schema.String>;
|
|
1737
|
+
}>;
|
|
1566
1738
|
}>]>>;
|
|
1567
1739
|
readonly version: Schema.brand<Schema.String, "@NakafaAI/AksaraSha256Hash">;
|
|
1568
1740
|
}>;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import type { RichSlot } from "#contracts/visual/card";
|
|
3
|
+
/** The blood labs. The named group is answer state. */
|
|
4
|
+
export declare function bloodVisuals<E>(rich: RichSlot<E>): {
|
|
5
|
+
BloodTypingLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
6
|
+
readonly description: RichSlot<E>;
|
|
7
|
+
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
8
|
+
readonly attrs: {
|
|
9
|
+
readonly latex: string;
|
|
10
|
+
};
|
|
11
|
+
readonly type: "mathInline";
|
|
12
|
+
} | {
|
|
13
|
+
readonly marks?: readonly [{
|
|
14
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
15
|
+
} | {
|
|
16
|
+
readonly attrs: {
|
|
17
|
+
readonly href: string;
|
|
18
|
+
};
|
|
19
|
+
readonly type: "link";
|
|
20
|
+
} | {
|
|
21
|
+
readonly attrs: {
|
|
22
|
+
readonly variant: "success" | "warning" | null;
|
|
23
|
+
};
|
|
24
|
+
readonly type: "highlight";
|
|
25
|
+
}, ...({
|
|
26
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
27
|
+
} | {
|
|
28
|
+
readonly attrs: {
|
|
29
|
+
readonly href: string;
|
|
30
|
+
};
|
|
31
|
+
readonly type: "link";
|
|
32
|
+
} | {
|
|
33
|
+
readonly attrs: {
|
|
34
|
+
readonly variant: "success" | "warning" | null;
|
|
35
|
+
};
|
|
36
|
+
readonly type: "highlight";
|
|
37
|
+
})[]];
|
|
38
|
+
readonly text: string;
|
|
39
|
+
readonly type: "text";
|
|
40
|
+
}, ...({
|
|
41
|
+
readonly attrs: {
|
|
42
|
+
readonly latex: string;
|
|
43
|
+
};
|
|
44
|
+
readonly type: "mathInline";
|
|
45
|
+
} | {
|
|
46
|
+
readonly marks?: readonly [{
|
|
47
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
48
|
+
} | {
|
|
49
|
+
readonly attrs: {
|
|
50
|
+
readonly href: string;
|
|
51
|
+
};
|
|
52
|
+
readonly type: "link";
|
|
53
|
+
} | {
|
|
54
|
+
readonly attrs: {
|
|
55
|
+
readonly variant: "success" | "warning" | null;
|
|
56
|
+
};
|
|
57
|
+
readonly type: "highlight";
|
|
58
|
+
}, ...({
|
|
59
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
60
|
+
} | {
|
|
61
|
+
readonly attrs: {
|
|
62
|
+
readonly href: string;
|
|
63
|
+
};
|
|
64
|
+
readonly type: "link";
|
|
65
|
+
} | {
|
|
66
|
+
readonly attrs: {
|
|
67
|
+
readonly variant: "success" | "warning" | null;
|
|
68
|
+
};
|
|
69
|
+
readonly type: "highlight";
|
|
70
|
+
})[]];
|
|
71
|
+
readonly text: string;
|
|
72
|
+
readonly type: "text";
|
|
73
|
+
})[]], E, never, never>>;
|
|
74
|
+
readonly title: RichSlot<E>;
|
|
75
|
+
readonly labels: Schema.Struct<{
|
|
76
|
+
readonly clumped: RichSlot<E>;
|
|
77
|
+
readonly group: Schema.optionalKey<RichSlot<E>>;
|
|
78
|
+
readonly groups: Schema.optionalKey<Schema.$Record<Schema.Literals<readonly ["A", "B", "AB", "O"]>, RichSlot<E>>>;
|
|
79
|
+
readonly sample: Schema.Trimmed;
|
|
80
|
+
readonly sera: Schema.$Record<Schema.Literals<readonly ["a", "b", "d"]>, RichSlot<E>>;
|
|
81
|
+
readonly smooth: RichSlot<E>;
|
|
82
|
+
readonly time: RichSlot<E>;
|
|
83
|
+
readonly view: Schema.Trimmed;
|
|
84
|
+
}>;
|
|
85
|
+
readonly samples: Schema.NonEmptyArray<Schema.Struct<{
|
|
86
|
+
readonly group: Schema.Literals<readonly ["A", "B", "AB", "O"]>;
|
|
87
|
+
readonly name: Schema.Trimmed;
|
|
88
|
+
readonly rhesus: Schema.Literals<readonly ["positive", "negative"]>;
|
|
89
|
+
}>>;
|
|
90
|
+
}>, "figure">;
|
|
91
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Array as Arr, Schema } from "effect";
|
|
2
|
+
import { byIds, cardFields, TextSchema } from "#contracts/visual/card";
|
|
3
|
+
import { answerAt, figure } from "#contracts/visual/entry";
|
|
4
|
+
/** The ABO blood groups. */
|
|
5
|
+
const GROUPS = ["A", "B", "AB", "O"];
|
|
6
|
+
/**
|
|
7
|
+
* How many samples one grouping tile tests: its twelve cavities hold four
|
|
8
|
+
* rows of anti-A, anti-B and anti-D.
|
|
9
|
+
*/
|
|
10
|
+
const TILE_ROWS = 4;
|
|
11
|
+
/**
|
|
12
|
+
* One blood sample on the tile: its name, its ABO group, and whether its red
|
|
13
|
+
* cells carry the Rhesus D antigen. The tile shows only how each drop reacts
|
|
14
|
+
* with each antiserum, never the group by name.
|
|
15
|
+
*/
|
|
16
|
+
const SampleSchema = Schema.Struct({
|
|
17
|
+
group: Schema.Literals(GROUPS),
|
|
18
|
+
name: TextSchema,
|
|
19
|
+
rhesus: Schema.Literals(["positive", "negative"]),
|
|
20
|
+
});
|
|
21
|
+
/**
|
|
22
|
+
* The samples on one tile: one to four, each in its own row and named once,
|
|
23
|
+
* since the name labels its row and its choice in the toolbar.
|
|
24
|
+
*/
|
|
25
|
+
const SamplesSchema = Schema.NonEmptyArray(SampleSchema).check(Schema.isMaxLength(TILE_ROWS), Schema.makeFilter((samples) => Arr.dedupe(Arr.map(samples, (sample) => sample.name)).length ===
|
|
26
|
+
samples.length, { message: "Expected every sample to have its own name." }));
|
|
27
|
+
/**
|
|
28
|
+
* Props of `BloodTypingLab`: each sample tested with anti-A, anti-B and
|
|
29
|
+
* anti-D sera on a white porcelain tile, the slide test read a minute after
|
|
30
|
+
* mixing. `labels.time` names that minute's clock. Naming the group the drops
|
|
31
|
+
* point to is the result a question asks for, so `labels.group` and
|
|
32
|
+
* `labels.groups` are answer state.
|
|
33
|
+
*/
|
|
34
|
+
function bloodTypingLab(rich) {
|
|
35
|
+
return Schema.Struct({
|
|
36
|
+
...cardFields(rich),
|
|
37
|
+
labels: Schema.Struct({
|
|
38
|
+
clumped: rich,
|
|
39
|
+
group: Schema.optionalKey(rich),
|
|
40
|
+
groups: Schema.optionalKey(byIds(GROUPS, rich)),
|
|
41
|
+
sample: TextSchema,
|
|
42
|
+
sera: byIds(["a", "b", "d"], rich),
|
|
43
|
+
smooth: rich,
|
|
44
|
+
time: rich,
|
|
45
|
+
view: TextSchema,
|
|
46
|
+
}),
|
|
47
|
+
samples: SamplesSchema,
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
/** The blood labs. The named group is answer state. */
|
|
51
|
+
export function bloodVisuals(rich) {
|
|
52
|
+
return {
|
|
53
|
+
BloodTypingLab: figure(bloodTypingLab(rich), answerAt(["labels", "group"], ["labels", "groups"])),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import type { RichSlot } from "#contracts/visual/card";
|
|
3
|
+
/** The heart labs. Only the read-out results hold answer state. */
|
|
4
|
+
export declare function heartVisuals<E>(rich: RichSlot<E>): {
|
|
5
|
+
HeartCycleLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
6
|
+
readonly description: RichSlot<E>;
|
|
7
|
+
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
8
|
+
readonly attrs: {
|
|
9
|
+
readonly latex: string;
|
|
10
|
+
};
|
|
11
|
+
readonly type: "mathInline";
|
|
12
|
+
} | {
|
|
13
|
+
readonly marks?: readonly [{
|
|
14
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
15
|
+
} | {
|
|
16
|
+
readonly attrs: {
|
|
17
|
+
readonly href: string;
|
|
18
|
+
};
|
|
19
|
+
readonly type: "link";
|
|
20
|
+
} | {
|
|
21
|
+
readonly attrs: {
|
|
22
|
+
readonly variant: "success" | "warning" | null;
|
|
23
|
+
};
|
|
24
|
+
readonly type: "highlight";
|
|
25
|
+
}, ...({
|
|
26
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
27
|
+
} | {
|
|
28
|
+
readonly attrs: {
|
|
29
|
+
readonly href: string;
|
|
30
|
+
};
|
|
31
|
+
readonly type: "link";
|
|
32
|
+
} | {
|
|
33
|
+
readonly attrs: {
|
|
34
|
+
readonly variant: "success" | "warning" | null;
|
|
35
|
+
};
|
|
36
|
+
readonly type: "highlight";
|
|
37
|
+
})[]];
|
|
38
|
+
readonly text: string;
|
|
39
|
+
readonly type: "text";
|
|
40
|
+
}, ...({
|
|
41
|
+
readonly attrs: {
|
|
42
|
+
readonly latex: string;
|
|
43
|
+
};
|
|
44
|
+
readonly type: "mathInline";
|
|
45
|
+
} | {
|
|
46
|
+
readonly marks?: readonly [{
|
|
47
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
48
|
+
} | {
|
|
49
|
+
readonly attrs: {
|
|
50
|
+
readonly href: string;
|
|
51
|
+
};
|
|
52
|
+
readonly type: "link";
|
|
53
|
+
} | {
|
|
54
|
+
readonly attrs: {
|
|
55
|
+
readonly variant: "success" | "warning" | null;
|
|
56
|
+
};
|
|
57
|
+
readonly type: "highlight";
|
|
58
|
+
}, ...({
|
|
59
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
60
|
+
} | {
|
|
61
|
+
readonly attrs: {
|
|
62
|
+
readonly href: string;
|
|
63
|
+
};
|
|
64
|
+
readonly type: "link";
|
|
65
|
+
} | {
|
|
66
|
+
readonly attrs: {
|
|
67
|
+
readonly variant: "success" | "warning" | null;
|
|
68
|
+
};
|
|
69
|
+
readonly type: "highlight";
|
|
70
|
+
})[]];
|
|
71
|
+
readonly text: string;
|
|
72
|
+
readonly type: "text";
|
|
73
|
+
})[]], E, never, never>>;
|
|
74
|
+
readonly title: RichSlot<E>;
|
|
75
|
+
readonly labels: Schema.Struct<{
|
|
76
|
+
readonly aorta: RichSlot<E>;
|
|
77
|
+
readonly output: Schema.optionalKey<RichSlot<E>>;
|
|
78
|
+
readonly phase: RichSlot<E>;
|
|
79
|
+
readonly phases: Schema.$Record<Schema.Literals<readonly ["atrial", "ventricular", "diastole"]>, RichSlot<E>>;
|
|
80
|
+
readonly pressure: RichSlot<E>;
|
|
81
|
+
readonly rate: Schema.Trimmed;
|
|
82
|
+
readonly stroke: Schema.optionalKey<RichSlot<E>>;
|
|
83
|
+
readonly view: Schema.Trimmed;
|
|
84
|
+
readonly volume: RichSlot<E>;
|
|
85
|
+
}>;
|
|
86
|
+
readonly rate: Schema.Finite;
|
|
87
|
+
readonly volumes: Schema.Struct<{
|
|
88
|
+
readonly endDiastolic: Schema.Finite;
|
|
89
|
+
readonly endSystolic: Schema.Finite;
|
|
90
|
+
}>;
|
|
91
|
+
}>, "figure">;
|
|
92
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import { byIds, cardFields, TextSchema } from "#contracts/visual/card";
|
|
3
|
+
import { answerAt, figure } from "#contracts/visual/entry";
|
|
4
|
+
/** A volume of blood: a finite number of millilitres above zero. */
|
|
5
|
+
const PositiveSchema = Schema.Finite.check(Schema.isGreaterThan(0));
|
|
6
|
+
/**
|
|
7
|
+
* A heart rate the lab's slider reaches, in beats a minute: from the slow
|
|
8
|
+
* resting rate of a trained athlete up to the 200 a young adult reaches at
|
|
9
|
+
* most (OpenStax Anatomy and Physiology 2e, 19.4).
|
|
10
|
+
*/
|
|
11
|
+
const RateSchema = Schema.Finite.check(Schema.isBetween({ maximum: 200, minimum: 40 }));
|
|
12
|
+
/**
|
|
13
|
+
* The left ventricle's volumes: it fills to `endDiastolic` and keeps
|
|
14
|
+
* `endSystolic`, so it must keep less than it filled with.
|
|
15
|
+
*/
|
|
16
|
+
const VolumesSchema = Schema.Struct({
|
|
17
|
+
endDiastolic: PositiveSchema,
|
|
18
|
+
endSystolic: PositiveSchema,
|
|
19
|
+
}).check(Schema.makeFilter(({ endDiastolic, endSystolic }) => endSystolic < endDiastolic, {
|
|
20
|
+
message: "Expected an end-systolic volume below the end-diastolic volume.",
|
|
21
|
+
}));
|
|
22
|
+
/**
|
|
23
|
+
* Props of `HeartCycleLab`: a human heart cut open from the front, beating
|
|
24
|
+
* through the cardiac cycle at `rate` beats a minute (the learner moves it
|
|
25
|
+
* with a slider labelled `labels.rate`). The left ventricle
|
|
26
|
+
* fills to `volumes.endDiastolic` and empties to `volumes.endSystolic`
|
|
27
|
+
* millilitres, so its stroke volume is their difference. The stroke volume
|
|
28
|
+
* and the cardiac output the lab reads out are results a question may ask
|
|
29
|
+
* for, so their labels are answer state.
|
|
30
|
+
*/
|
|
31
|
+
function heartCycleLab(rich) {
|
|
32
|
+
return Schema.Struct({
|
|
33
|
+
...cardFields(rich),
|
|
34
|
+
labels: Schema.Struct({
|
|
35
|
+
aorta: rich,
|
|
36
|
+
output: Schema.optionalKey(rich),
|
|
37
|
+
phase: rich,
|
|
38
|
+
phases: byIds(["atrial", "ventricular", "diastole"], rich),
|
|
39
|
+
pressure: rich,
|
|
40
|
+
rate: TextSchema,
|
|
41
|
+
stroke: Schema.optionalKey(rich),
|
|
42
|
+
view: TextSchema,
|
|
43
|
+
volume: rich,
|
|
44
|
+
}),
|
|
45
|
+
rate: RateSchema,
|
|
46
|
+
volumes: VolumesSchema,
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
/** The heart labs. Only the read-out results hold answer state. */
|
|
50
|
+
export function heartVisuals(rich) {
|
|
51
|
+
return {
|
|
52
|
+
HeartCycleLab: figure(heartCycleLab(rich), answerAt(["labels", "stroke"], ["labels", "output"])),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import type { RichSlot } from "#contracts/visual/card";
|
|
3
|
+
/** The visuals of this lab. */
|
|
4
|
+
export declare function mitochondrionVisuals<E>(rich: RichSlot<E>): {
|
|
5
|
+
MitochondrionLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
6
|
+
readonly description: RichSlot<E>;
|
|
7
|
+
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
8
|
+
readonly attrs: {
|
|
9
|
+
readonly latex: string;
|
|
10
|
+
};
|
|
11
|
+
readonly type: "mathInline";
|
|
12
|
+
} | {
|
|
13
|
+
readonly marks?: readonly [{
|
|
14
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
15
|
+
} | {
|
|
16
|
+
readonly attrs: {
|
|
17
|
+
readonly href: string;
|
|
18
|
+
};
|
|
19
|
+
readonly type: "link";
|
|
20
|
+
} | {
|
|
21
|
+
readonly attrs: {
|
|
22
|
+
readonly variant: "success" | "warning" | null;
|
|
23
|
+
};
|
|
24
|
+
readonly type: "highlight";
|
|
25
|
+
}, ...({
|
|
26
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
27
|
+
} | {
|
|
28
|
+
readonly attrs: {
|
|
29
|
+
readonly href: string;
|
|
30
|
+
};
|
|
31
|
+
readonly type: "link";
|
|
32
|
+
} | {
|
|
33
|
+
readonly attrs: {
|
|
34
|
+
readonly variant: "success" | "warning" | null;
|
|
35
|
+
};
|
|
36
|
+
readonly type: "highlight";
|
|
37
|
+
})[]];
|
|
38
|
+
readonly text: string;
|
|
39
|
+
readonly type: "text";
|
|
40
|
+
}, ...({
|
|
41
|
+
readonly attrs: {
|
|
42
|
+
readonly latex: string;
|
|
43
|
+
};
|
|
44
|
+
readonly type: "mathInline";
|
|
45
|
+
} | {
|
|
46
|
+
readonly marks?: readonly [{
|
|
47
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
48
|
+
} | {
|
|
49
|
+
readonly attrs: {
|
|
50
|
+
readonly href: string;
|
|
51
|
+
};
|
|
52
|
+
readonly type: "link";
|
|
53
|
+
} | {
|
|
54
|
+
readonly attrs: {
|
|
55
|
+
readonly variant: "success" | "warning" | null;
|
|
56
|
+
};
|
|
57
|
+
readonly type: "highlight";
|
|
58
|
+
}, ...({
|
|
59
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
60
|
+
} | {
|
|
61
|
+
readonly attrs: {
|
|
62
|
+
readonly href: string;
|
|
63
|
+
};
|
|
64
|
+
readonly type: "link";
|
|
65
|
+
} | {
|
|
66
|
+
readonly attrs: {
|
|
67
|
+
readonly variant: "success" | "warning" | null;
|
|
68
|
+
};
|
|
69
|
+
readonly type: "highlight";
|
|
70
|
+
})[]];
|
|
71
|
+
readonly text: string;
|
|
72
|
+
readonly type: "text";
|
|
73
|
+
})[]], E, never, never>>;
|
|
74
|
+
readonly title: RichSlot<E>;
|
|
75
|
+
readonly atp: Schema.Int;
|
|
76
|
+
readonly cells: Schema.NonEmptyArray<Schema.Literals<readonly ["muscle", "yeast"]>>;
|
|
77
|
+
readonly labels: Schema.Struct<{
|
|
78
|
+
readonly atp: RichSlot<E>;
|
|
79
|
+
readonly carbonDioxide: RichSlot<E>;
|
|
80
|
+
readonly cell: Schema.Trimmed;
|
|
81
|
+
readonly cells: Schema.$Record<Schema.Literals<readonly ["muscle", "yeast"]>, Schema.Trimmed>;
|
|
82
|
+
readonly energy: Schema.optionalKey<RichSlot<E>>;
|
|
83
|
+
readonly oxygen: Schema.Trimmed;
|
|
84
|
+
readonly oxygens: Schema.$Record<Schema.Literals<readonly ["present", "absent"]>, Schema.Trimmed>;
|
|
85
|
+
readonly parts: Schema.$Record<Schema.Literals<readonly ["cytoplasm", "outer", "inner", "cristae", "matrix"]>, Schema.Trimmed>;
|
|
86
|
+
readonly product: RichSlot<E>;
|
|
87
|
+
readonly products: Schema.$Record<Schema.Literals<readonly ["aerobic", "lactic", "alcoholic"]>, RichSlot<E>>;
|
|
88
|
+
readonly view: Schema.Trimmed;
|
|
89
|
+
}>;
|
|
90
|
+
}>, "figure">;
|
|
91
|
+
};
|