@cloudhal/core-contracts 0.4.0 → 0.6.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.
@@ -33,6 +33,52 @@
33
33
  * via the `definition` "Locale".
34
34
  */
35
35
 
36
+ /**
37
+ * RFC-0041: one typed custom field of a collection, discriminated by `type`.
38
+ *
39
+ * This interface was referenced by `Site`'s JSON-Schema
40
+ * via the `definition` "FieldDefinition".
41
+ */
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+ /**
53
+ * 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
+ *
55
+ * This interface was referenced by `Site`'s JSON-Schema
56
+ * via the `definition` "FieldKey".
57
+ */
58
+
59
+ /**
60
+ * RFC-0042: where one JSON-LD property's value comes from, discriminated by `kind`.
61
+ *
62
+ * This interface was referenced by `Site`'s JSON-Schema
63
+ * via the `definition` "StructuredDataSource".
64
+ */
65
+
66
+
67
+ /**
68
+ * RFC-0042: entry properties a structured-data property may read.
69
+ *
70
+ * This interface was referenced by `Site`'s JSON-Schema
71
+ * via the `definition` "EntryValueProperty".
72
+ */
73
+
74
+
75
+ /**
76
+ * RFC-0042: site properties a structured-data property may read.
77
+ *
78
+ * This interface was referenced by `Site`'s JSON-Schema
79
+ * via the `definition` "SiteValueProperty".
80
+ */
81
+
36
82
  /**
37
83
  * RFC-0025 §2: one optional surface (kind `surface`) above the footer's columns, built and checked like any surface; the store refuses other section kinds.
38
84
  */
@@ -230,6 +276,26 @@
230
276
 
231
277
 
232
278
 
279
+
280
+
281
+
282
+
283
+
284
+
285
+
286
+
287
+
288
+
289
+
290
+
291
+
292
+
293
+
294
+
295
+
296
+
297
+
298
+
233
299
 
234
300
  /**
235
301
  * This interface was referenced by `Site`'s JSON-Schema
@@ -240,6 +306,294 @@
240
306
 
241
307
 
242
308
 
309
+ /**
310
+ * Plain text: a string of at most maxLength characters.
311
+ */
312
+
313
+
314
+
315
+
316
+
317
+
318
+
319
+
320
+
321
+
322
+
323
+
324
+
325
+
326
+
327
+
328
+
329
+
330
+
331
+
332
+
333
+
334
+
335
+
336
+
337
+
338
+ /**
339
+ * The field's label and help per locale. Missing a locale: the default locale's, then the key.
340
+ *
341
+ * This interface was referenced by `Site`'s JSON-Schema
342
+ * via the `definition` "FieldLabels".
343
+ */
344
+
345
+
346
+
347
+ /**
348
+ * This interface was referenced by `Site`'s JSON-Schema
349
+ * via the `definition` "FieldLabel".
350
+ */
351
+
352
+
353
+
354
+
355
+ /**
356
+ * RFC-0041 §6: present only while a field operation rewrites entries.
357
+ *
358
+ * This interface was referenced by `Site`'s JSON-Schema
359
+ * via the `definition` "FieldMigration".
360
+ */
361
+
362
+
363
+
364
+
365
+
366
+
367
+
368
+
369
+
370
+
371
+ /**
372
+ * Cloudhal Markdown v1 (ADR-0028), at most 50 000 characters.
373
+ */
374
+
375
+
376
+
377
+
378
+
379
+
380
+
381
+
382
+
383
+
384
+
385
+
386
+
387
+
388
+
389
+
390
+
391
+
392
+ /**
393
+ * A finite number.
394
+ */
395
+
396
+
397
+
398
+
399
+
400
+
401
+
402
+
403
+
404
+
405
+
406
+
407
+
408
+
409
+
410
+
411
+
412
+
413
+
414
+
415
+ /**
416
+ * true or false; absent reads as false, so it cannot be required to publish.
417
+ */
418
+
419
+
420
+
421
+
422
+
423
+
424
+
425
+
426
+
427
+
428
+ /**
429
+ * A calendar day without a zone (YYYY-MM-DD).
430
+ */
431
+
432
+
433
+
434
+
435
+
436
+
437
+
438
+
439
+
440
+
441
+
442
+
443
+
444
+
445
+ /**
446
+ * An instant with the zone it was entered in: {at, timeZone} (RFC-0008 §9.1).
447
+ */
448
+
449
+
450
+
451
+
452
+
453
+
454
+
455
+
456
+
457
+
458
+
459
+
460
+
461
+
462
+ /**
463
+ * A link: https, http, mailto, tel, a site-relative path or a #fragment; at most 2048 characters.
464
+ */
465
+
466
+
467
+
468
+
469
+
470
+
471
+
472
+
473
+
474
+
475
+
476
+
477
+
478
+
479
+ /**
480
+ * An image Asset of the same site, by id (asset_…).
481
+ */
482
+
483
+
484
+
485
+
486
+
487
+
488
+
489
+
490
+
491
+
492
+
493
+
494
+
495
+
496
+ /**
497
+ * One of a closed list of options, or several when multiple.
498
+ */
499
+
500
+
501
+
502
+
503
+
504
+
505
+
506
+
507
+
508
+
509
+
510
+
511
+
512
+
513
+
514
+
515
+
516
+
517
+
518
+
519
+
520
+
521
+
522
+ /**
523
+ * One option of a select field. Values are unique in the field (checked in code).
524
+ *
525
+ * This interface was referenced by `Site`'s JSON-Schema
526
+ * via the `definition` "FieldOption".
527
+ */
528
+
529
+
530
+
531
+
532
+
533
+
534
+
535
+
536
+
537
+ /**
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".
542
+ */
543
+
544
+
545
+
546
+
547
+
548
+
549
+
550
+
551
+
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
+
562
+
563
+
564
+
565
+
566
+
567
+
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
+
596
+
243
597
  /**
244
598
  * Theme (a.k.a. Experience) applied by the renderer. Config is theme-defined and validated by the theme's own schema, not here.
245
599
  *
@@ -511,6 +865,223 @@
511
865
 
512
866
 
513
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
+
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
+
1012
+
1013
+
1014
+
1015
+
1016
+
1017
+
1018
+
1019
+
1020
+
1021
+
1022
+
1023
+
1024
+
1025
+
1026
+
1027
+
1028
+
1029
+
1030
+
1031
+
1032
+
1033
+
1034
+
1035
+
1036
+
1037
+
1038
+
1039
+
1040
+
1041
+
1042
+
1043
+
1044
+
1045
+
1046
+
1047
+
1048
+
1049
+
1050
+
1051
+
1052
+
1053
+
1054
+
1055
+
1056
+
1057
+
1058
+
1059
+
1060
+
1061
+
1062
+
1063
+
1064
+
1065
+
1066
+
1067
+
1068
+
1069
+
1070
+
1071
+
1072
+
1073
+ /**
1074
+ * RFC-0042: order a listing by a number, date or datetime field. Entries without a value sort last.
1075
+ *
1076
+ * This interface was referenced by `Site`'s JSON-Schema
1077
+ * via the `definition` "FieldOrder".
1078
+ */
1079
+
1080
+
1081
+
1082
+
1083
+
1084
+
514
1085
 
515
1086
  /**
516
1087
  * A typed block from the block registry (RFC-0015): `type` names a registered block type (one global namespace of English names), `props` follow that type's props schema, which the store validates.