@cloudhal/core-contracts 0.7.3 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -48,7 +48,9 @@
48
48
 
49
49
 
50
50
 
51
-
51
+
52
+
53
+
52
54
  /**
53
55
  * The field's key in ContentEntry.fields: lower camelCase, a JavaScript identifier. Unique in its collection; built-in entry property names are reserved (checked in code).
54
56
  *
@@ -56,6 +58,22 @@
56
58
  * via the `definition` "FieldKey".
57
59
  */
58
60
 
61
+ /**
62
+ * RFC-0045: one sub-field of a repeater item, discriminated by `type`. Only types whose value is a scalar: no datetime, no multiple select or reference, no repeater. No localized and no migration: the repeater's apply.
63
+ *
64
+ * This interface was referenced by `Site`'s JSON-Schema
65
+ * via the `definition` "SubFieldDefinition".
66
+ */
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
59
77
  /**
60
78
  * RFC-0042: where one JSON-LD property's value comes from, discriminated by `kind`.
61
79
  *
@@ -365,8 +383,22 @@
365
383
 
366
384
 
367
385
 
368
-
386
+
387
+
388
+
389
+
390
+
391
+
392
+
393
+
394
+
395
+
396
+
369
397
 
398
+
399
+
400
+
401
+
370
402
 
371
403
  /**
372
404
  * Cloudhal Markdown v1 (ADR-0028), at most 50 000 characters.
@@ -535,361 +567,65 @@
535
567
 
536
568
 
537
569
  /**
538
- * RFC-0042: a time gate every entry derives from one of its date or datetime fields, checked at render time like Availability.until. A date ends at the start of the next day in the site's time zone.
539
- *
540
- * This interface was referenced by `Site`'s JSON-Schema
541
- * via the `definition` "CollectionExpiry".
570
+ * RFC-0045: entries of other (or this) collections of the same site, by translation group id (entry_…): the id of the group's original, which every language version and edition carries in translation.group.
542
571
  */
543
-
544
-
545
-
546
-
572
+
573
+
574
+
575
+
547
576
 
548
-
577
+
549
578
 
550
-
579
+
551
580
 
552
-
553
-
554
- /**
555
- * RFC-0042: the JSON-LD type an entry page emits in place of BlogPosting, with its properties mapped to value sources. Paths, fitting field types and required properties are a closed table in code (@cloudhal/core-ts/structured-data).
556
- *
557
- * This interface was referenced by `Site`'s JSON-Schema
558
- * via the `definition` "StructuredDataPreset".
559
- */
560
-
561
-
581
+
562
582
 
563
-
583
+
584
+
564
585
 
565
-
566
-
586
+
567
587
 
568
-
569
- /**
570
- * A typed field of this collection, converted by its type.
571
- */
572
-
573
-
574
-
575
-
576
- /**
577
- * A built-in property of the entry.
578
- */
579
-
580
-
581
-
582
-
583
- /**
584
- * A property of the site.
585
- */
586
-
587
-
588
-
589
-
590
- /**
591
- * A plain-text constant: no control characters, no markup meaning; vocabulary-checked on enum paths (in code).
592
- */
593
-
594
-
595
588
 
596
-
597
- /**
598
- * Theme (a.k.a. Experience) applied by the renderer. Config is theme-defined and validated by the theme's own schema, not here.
599
- *
600
- * This interface was referenced by `Site`'s JSON-Schema
601
- * via the `definition` "ThemeRef".
602
- */
603
-
604
-
605
-
606
-
607
-
608
-
609
-
610
- /**
611
- * The site's design rules for people and agents (RFC-0021): Markdown that agents read with the theme's DESIGN.md before they build. Guidance only: it changes neither rendering nor permissions.
612
- *
613
- * This interface was referenced by `Site`'s JSON-Schema
614
- * via the `definition` "Design".
615
- */
616
-
617
-
618
-
619
- /**
620
- * The site's logo and social links (RFC-0025 §1), shared by the header, the footer and SEO.
621
- *
622
- * This interface was referenced by `Site`'s JSON-Schema
623
- * via the `definition` "Brand".
624
- */
625
-
626
-
627
-
628
-
629
-
630
589
 
631
590
 
632
-
633
-
634
-
635
-
636
-
637
-
638
-
639
-
640
-
641
-
642
-
643
-
644
-
645
-
646
-
647
-
648
-
649
-
650
-
651
-
652
- /**
653
- * Reference to an image. With `assetId` the image is an Asset node (RFC-0004): the store writes its media URL into `src`, and its size into `width` and `height`, as a fallback for readers that do not resolve assets. Without it, `src` is a relative path or an absolute URL, as before.
654
- *
655
- * This interface was referenced by `Site`'s JSON-Schema
656
- * via the `definition` "ImageRef".
657
- */
658
-
659
-
660
-
661
-
662
-
663
591
 
664
-
665
-
592
+
666
593
 
667
-
668
- /**
669
- * This interface was referenced by `Site`'s JSON-Schema
670
- * via the `definition` "SocialLink".
671
- */
672
-
673
-
674
-
675
-
676
-
677
-
678
-
679
-
680
-
681
-
682
-
683
-
684
-
685
-
686
-
687
-
688
- /**
689
- * The site's header, footer and bars as data (RFC-0025): enums, menu keys and short texts; the theme renders them with landmarks, focus and contrast guaranteed.
690
- *
691
- * This interface was referenced by `Site`'s JSON-Schema
692
- * via the `definition` "Chrome".
693
- */
694
-
695
-
696
594
 
697
595
 
698
-
699
-
700
- /**
701
- * This interface was referenced by `Site`'s JSON-Schema
702
- * via the `definition` "ChromeHeader".
703
- */
704
-
705
-
706
-
707
-
708
596
 
709
-
710
-
711
-
712
-
713
597
 
714
-
598
+
715
599
 
716
-
600
+
717
601
 
718
-
602
+
719
603
 
720
-
604
+
721
605
 
606
+
607
+
722
608
 
723
-
724
-
725
-
726
-
727
- /**
728
- * This interface was referenced by `Site`'s JSON-Schema
729
- * via the `definition` "HeaderAction".
730
- */
731
-
732
-
733
-
734
609
 
735
-
610
+
611
+
612
+
613
+
614
+
615
+
736
616
 
737
617
  /**
618
+ * RFC-0042: one condition on a typed field of the listed collection. `value` is read by the field's type: a number, YYYY-MM-DD, an RFC 3339 instant, true/false, an option value, or `now`. `values` only with `in`.
619
+ *
738
620
  * This interface was referenced by `Site`'s JSON-Schema
739
- * via the `definition` "ChromeFooter".
621
+ * via the `definition` "FieldCondition".
740
622
  */
741
-
742
-
743
-
744
-
745
-
746
-
747
-
748
-
749
-
750
-
751
-
752
-
753
-
754
-
755
-
756
-
757
-
758
-
623
+
759
624
 
760
625
 
761
626
 
762
-
763
-
764
-
765
-
766
-
767
-
768
-
769
-
770
-
771
-
772
-
773
-
774
-
775
-
776
-
777
-
778
-
779
-
780
-
781
-
782
- /**
783
- * This interface was referenced by `Site`'s JSON-Schema
784
- * via the `definition` "FooterColumn".
785
- */
786
-
787
-
788
-
789
-
790
-
791
-
792
-
793
-
794
-
795
-
796
-
797
-
798
-
799
-
800
-
801
- /**
802
- * This interface was referenced by `Site`'s JSON-Schema
803
- * via the `definition` "Link".
804
- */
805
-
806
-
807
-
808
-
809
-
810
-
811
-
812
-
813
-
814
-
815
-
816
-
817
-
818
- /**
819
- * One top-level block of a markdown body in the store's index (RFC-0014 §3). Written by the store only: a client's values are replaced on every write. `by`, `via` and `at` say who last changed the block's content, through which channel and when; they are absent for content written before the index existed.
820
- *
821
- * This interface was referenced by `Site`'s JSON-Schema
822
- * via the `definition` "BodyBlock".
823
- */
824
-
825
-
826
-
827
-
828
-
829
-
830
-
831
-
832
-
833
-
834
-
835
-
836
-
837
-
838
-
839
-
840
- /**
841
- * This interface was referenced by `Site`'s JSON-Schema
842
- * via the `definition` "Actor".
843
- */
844
-
845
-
846
-
847
-
848
-
849
-
850
-
851
-
852
-
853
-
854
-
855
- /**
856
- * Renders the newest entries of a content collection (e.g. blog posts).
857
- */
858
-
859
-
860
-
861
-
862
-
863
-
864
-
865
-
866
-
867
-
868
-
869
-
870
-
871
-
872
-
873
-
874
-
875
-
876
-
877
-
878
-
879
-
880
-
881
- /**
882
- * RFC-0042: one condition on a typed field of the listed collection. `value` is read by the field's type: a number, YYYY-MM-DD, an RFC 3339 instant, true/false, an option value, or `now`. `values` only with `in`.
883
- *
884
- * This interface was referenced by `Site`'s JSON-Schema
885
- * via the `definition` "FieldCondition".
886
- */
887
-
888
-
889
-
890
-
891
-
892
-
627
+
628
+
893
629
 
894
630
 
895
631
 
@@ -1069,6 +805,551 @@
1069
805
 
1070
806
 
1071
807
 
808
+
809
+ /**
810
+ * RFC-0045: an ordered list of items, each a flat object of sub-fields. A repeater cannot contain a repeater.
811
+ */
812
+
813
+
814
+
815
+
816
+
817
+
818
+
819
+
820
+
821
+
822
+
823
+
824
+
825
+
826
+
827
+
828
+
829
+
830
+
831
+
832
+
833
+
834
+
835
+
836
+
837
+
838
+
839
+
840
+
841
+
842
+
843
+
844
+
845
+
846
+
847
+
848
+
849
+
850
+
851
+
852
+
853
+
854
+
855
+
856
+
857
+
858
+
859
+
860
+
861
+
862
+
863
+
864
+
865
+
866
+
867
+
868
+
869
+
870
+
871
+
872
+
873
+
874
+
875
+
876
+
877
+
878
+
879
+
880
+
881
+
882
+
883
+
884
+
885
+
886
+
887
+
888
+
889
+
890
+
891
+
892
+
893
+
894
+
895
+
896
+
897
+
898
+
899
+
900
+
901
+
902
+
903
+
904
+
905
+
906
+
907
+
908
+
909
+
910
+
911
+
912
+
913
+
914
+
915
+
916
+
917
+
918
+
919
+
920
+
921
+
922
+
923
+
924
+
925
+
926
+
927
+
928
+
929
+
930
+
931
+
932
+
933
+
934
+
935
+
936
+
937
+
938
+
939
+
940
+
941
+
942
+
943
+
944
+
945
+
946
+
947
+
948
+
949
+
950
+
951
+
952
+
953
+
954
+
955
+
956
+
957
+
958
+
959
+
960
+
961
+
962
+
963
+
964
+
965
+
966
+
967
+
968
+
969
+
970
+
971
+
972
+
973
+
974
+
975
+
976
+
977
+
978
+
979
+
980
+
981
+
982
+
983
+
984
+
985
+
986
+
987
+
988
+
989
+
990
+
991
+
992
+
993
+
994
+
995
+
996
+
997
+
998
+
999
+
1000
+
1001
+
1002
+
1003
+
1004
+
1005
+
1006
+
1007
+
1008
+
1009
+
1010
+ /**
1011
+ * RFC-0042: a time gate every entry derives from one of its date or datetime fields, checked at render time like Availability.until. A date ends at the start of the next day in the site's time zone.
1012
+ *
1013
+ * This interface was referenced by `Site`'s JSON-Schema
1014
+ * via the `definition` "CollectionExpiry".
1015
+ */
1016
+
1017
+
1018
+
1019
+
1020
+
1021
+
1022
+
1023
+
1024
+
1025
+
1026
+
1027
+ /**
1028
+ * RFC-0042: the JSON-LD type an entry page emits in place of BlogPosting, with its properties mapped to value sources. Paths, fitting field types and required properties are a closed table in code (@cloudhal/core-ts/structured-data).
1029
+ *
1030
+ * This interface was referenced by `Site`'s JSON-Schema
1031
+ * via the `definition` "StructuredDataPreset".
1032
+ */
1033
+
1034
+
1035
+
1036
+
1037
+
1038
+
1039
+
1040
+
1041
+
1042
+ /**
1043
+ * A typed field of this collection, converted by its type.
1044
+ */
1045
+
1046
+
1047
+
1048
+
1049
+ /**
1050
+ * A built-in property of the entry.
1051
+ */
1052
+
1053
+
1054
+
1055
+
1056
+ /**
1057
+ * A property of the site.
1058
+ */
1059
+
1060
+
1061
+
1062
+
1063
+ /**
1064
+ * A plain-text constant: no control characters, no markup meaning; vocabulary-checked on enum paths (in code).
1065
+ */
1066
+
1067
+
1068
+
1069
+
1070
+ /**
1071
+ * Theme (a.k.a. Experience) applied by the renderer. Config is theme-defined and validated by the theme's own schema, not here.
1072
+ *
1073
+ * This interface was referenced by `Site`'s JSON-Schema
1074
+ * via the `definition` "ThemeRef".
1075
+ */
1076
+
1077
+
1078
+
1079
+
1080
+
1081
+
1082
+
1083
+ /**
1084
+ * The site's design rules for people and agents (RFC-0021): Markdown that agents read with the theme's DESIGN.md before they build. Guidance only: it changes neither rendering nor permissions.
1085
+ *
1086
+ * This interface was referenced by `Site`'s JSON-Schema
1087
+ * via the `definition` "Design".
1088
+ */
1089
+
1090
+
1091
+
1092
+ /**
1093
+ * The site's logo and social links (RFC-0025 §1), shared by the header, the footer and SEO.
1094
+ *
1095
+ * This interface was referenced by `Site`'s JSON-Schema
1096
+ * via the `definition` "Brand".
1097
+ */
1098
+
1099
+
1100
+
1101
+
1102
+
1103
+
1104
+
1105
+
1106
+
1107
+
1108
+
1109
+
1110
+
1111
+
1112
+
1113
+
1114
+
1115
+
1116
+
1117
+
1118
+
1119
+
1120
+
1121
+
1122
+
1123
+
1124
+
1125
+ /**
1126
+ * Reference to an image. With `assetId` the image is an Asset node (RFC-0004): the store writes its media URL into `src`, and its size into `width` and `height`, as a fallback for readers that do not resolve assets. Without it, `src` is a relative path or an absolute URL, as before.
1127
+ *
1128
+ * This interface was referenced by `Site`'s JSON-Schema
1129
+ * via the `definition` "ImageRef".
1130
+ */
1131
+
1132
+
1133
+
1134
+
1135
+
1136
+
1137
+
1138
+
1139
+
1140
+
1141
+ /**
1142
+ * This interface was referenced by `Site`'s JSON-Schema
1143
+ * via the `definition` "SocialLink".
1144
+ */
1145
+
1146
+
1147
+
1148
+
1149
+
1150
+
1151
+
1152
+
1153
+
1154
+
1155
+
1156
+
1157
+
1158
+
1159
+
1160
+
1161
+ /**
1162
+ * The site's header, footer and bars as data (RFC-0025): enums, menu keys and short texts; the theme renders them with landmarks, focus and contrast guaranteed.
1163
+ *
1164
+ * This interface was referenced by `Site`'s JSON-Schema
1165
+ * via the `definition` "Chrome".
1166
+ */
1167
+
1168
+
1169
+
1170
+
1171
+
1172
+
1173
+ /**
1174
+ * This interface was referenced by `Site`'s JSON-Schema
1175
+ * via the `definition` "ChromeHeader".
1176
+ */
1177
+
1178
+
1179
+
1180
+
1181
+
1182
+
1183
+
1184
+
1185
+
1186
+
1187
+
1188
+
1189
+
1190
+
1191
+
1192
+
1193
+
1194
+
1195
+
1196
+
1197
+
1198
+
1199
+
1200
+ /**
1201
+ * This interface was referenced by `Site`'s JSON-Schema
1202
+ * via the `definition` "HeaderAction".
1203
+ */
1204
+
1205
+
1206
+
1207
+
1208
+
1209
+
1210
+ /**
1211
+ * This interface was referenced by `Site`'s JSON-Schema
1212
+ * via the `definition` "ChromeFooter".
1213
+ */
1214
+
1215
+
1216
+
1217
+
1218
+
1219
+
1220
+
1221
+
1222
+
1223
+
1224
+
1225
+
1226
+
1227
+
1228
+
1229
+
1230
+
1231
+
1232
+
1233
+
1234
+
1235
+
1236
+
1237
+
1238
+
1239
+
1240
+
1241
+
1242
+
1243
+
1244
+
1245
+
1246
+
1247
+
1248
+
1249
+
1250
+
1251
+
1252
+
1253
+
1254
+
1255
+ /**
1256
+ * This interface was referenced by `Site`'s JSON-Schema
1257
+ * via the `definition` "FooterColumn".
1258
+ */
1259
+
1260
+
1261
+
1262
+
1263
+
1264
+
1265
+
1266
+
1267
+
1268
+
1269
+
1270
+
1271
+
1272
+
1273
+
1274
+ /**
1275
+ * This interface was referenced by `Site`'s JSON-Schema
1276
+ * via the `definition` "Link".
1277
+ */
1278
+
1279
+
1280
+
1281
+
1282
+
1283
+
1284
+
1285
+
1286
+
1287
+
1288
+
1289
+
1290
+
1291
+ /**
1292
+ * One top-level block of a markdown body in the store's index (RFC-0014 §3). Written by the store only: a client's values are replaced on every write. `by`, `via` and `at` say who last changed the block's content, through which channel and when; they are absent for content written before the index existed.
1293
+ *
1294
+ * This interface was referenced by `Site`'s JSON-Schema
1295
+ * via the `definition` "BodyBlock".
1296
+ */
1297
+
1298
+
1299
+
1300
+
1301
+
1302
+
1303
+
1304
+
1305
+
1306
+
1307
+
1308
+
1309
+
1310
+
1311
+
1312
+
1313
+ /**
1314
+ * This interface was referenced by `Site`'s JSON-Schema
1315
+ * via the `definition` "Actor".
1316
+ */
1317
+
1318
+
1319
+
1320
+
1321
+
1322
+
1323
+
1324
+
1325
+
1326
+
1327
+
1328
+ /**
1329
+ * Renders the newest entries of a content collection (e.g. blog posts).
1330
+ */
1331
+
1332
+
1333
+
1334
+
1335
+
1336
+
1337
+
1338
+
1339
+
1340
+
1341
+
1342
+
1343
+
1344
+
1345
+
1346
+
1347
+
1348
+
1349
+
1350
+
1351
+
1352
+
1072
1353
 
1073
1354
  /**
1074
1355
  * RFC-0042: order a listing by a number, date or datetime field. Entries without a value sort last.