@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.
- package/dist/src/generated/content-entry.d.ts +1 -1
- package/dist/src/generated/content-entry.js +1 -1
- package/dist/src/generated/index.d.ts +1 -1
- package/dist/src/generated/index.js +1 -1
- package/dist/src/generated/page.d.ts +193 -0
- package/dist/src/generated/page.js +217 -0
- package/dist/src/generated/schemas.d.ts +2351 -923
- package/dist/src/generated/schemas.js +944 -31
- package/dist/src/generated/section.d.ts +187 -0
- package/dist/src/generated/section.js +211 -0
- package/dist/src/generated/site.d.ts +531 -0
- package/dist/src/generated/site.js +571 -0
- package/dist/src/generated/validators.js +5852 -1661
- package/package.json +1 -1
- package/schemas/common.schema.json +50 -0
- package/schemas/content-entry.schema.json +1 -1
- package/schemas/section.schema.json +9 -1
- package/schemas/site.schema.json +553 -0
|
@@ -30,6 +30,41 @@ export type Slug = string;
|
|
|
30
30
|
* via the `definition` "Locale".
|
|
31
31
|
*/
|
|
32
32
|
export type Locale = string;
|
|
33
|
+
/**
|
|
34
|
+
* RFC-0041: one typed custom field of a collection, discriminated by `type`.
|
|
35
|
+
*
|
|
36
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
37
|
+
* via the `definition` "FieldDefinition".
|
|
38
|
+
*/
|
|
39
|
+
export type FieldDefinition = TextField | RichTextField | NumberField | BooleanField | DateField | DateTimeField | UrlField | ImageField | SelectField;
|
|
40
|
+
/**
|
|
41
|
+
* 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).
|
|
42
|
+
*
|
|
43
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
44
|
+
* via the `definition` "FieldKey".
|
|
45
|
+
*/
|
|
46
|
+
export type FieldKey = string;
|
|
47
|
+
/**
|
|
48
|
+
* RFC-0042: where one JSON-LD property's value comes from, discriminated by `kind`.
|
|
49
|
+
*
|
|
50
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
51
|
+
* via the `definition` "StructuredDataSource".
|
|
52
|
+
*/
|
|
53
|
+
export type StructuredDataSource = FieldValueSource | EntryValueSource | SiteValueSource | ConstantValueSource;
|
|
54
|
+
/**
|
|
55
|
+
* RFC-0042: entry properties a structured-data property may read.
|
|
56
|
+
*
|
|
57
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
58
|
+
* via the `definition` "EntryValueProperty".
|
|
59
|
+
*/
|
|
60
|
+
export type EntryValueProperty = "title" | "summary" | "body" | "coverImage" | "url" | "publishedAt" | "updatedAt";
|
|
61
|
+
/**
|
|
62
|
+
* RFC-0042: site properties a structured-data property may read.
|
|
63
|
+
*
|
|
64
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
65
|
+
* via the `definition` "SiteValueProperty".
|
|
66
|
+
*/
|
|
67
|
+
export type SiteValueProperty = "name" | "url" | "logo";
|
|
33
68
|
/**
|
|
34
69
|
* 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.
|
|
35
70
|
*/
|
|
@@ -214,6 +249,22 @@ export interface CollectionSettings {
|
|
|
214
249
|
* RFC-0040: default order where none is given (Studio's list, entry queries without sort, MCP list_entries). Absent: newest.
|
|
215
250
|
*/
|
|
216
251
|
sort?: "newest" | "oldest" | "title";
|
|
252
|
+
/**
|
|
253
|
+
* RFC-0041: the collection's typed custom fields, in form order. Values live in ContentEntry.fields under each key. At most 200 per site and unique keys (checked in code).
|
|
254
|
+
*
|
|
255
|
+
* @minItems 1
|
|
256
|
+
* @maxItems 30
|
|
257
|
+
*/
|
|
258
|
+
fields?: [FieldDefinition, ...FieldDefinition[]];
|
|
259
|
+
/**
|
|
260
|
+
* RFC-0042: fields that listings, queries, Studio columns and MCP may filter and sort by, in column order. Keys of this collection's fields (checked in code).
|
|
261
|
+
*
|
|
262
|
+
* @minItems 1
|
|
263
|
+
* @maxItems 4
|
|
264
|
+
*/
|
|
265
|
+
listFields?: [FieldKey] | [FieldKey, FieldKey] | [FieldKey, FieldKey, FieldKey] | [FieldKey, FieldKey, FieldKey, FieldKey];
|
|
266
|
+
expiry?: CollectionExpiry;
|
|
267
|
+
structuredData?: StructuredDataPreset;
|
|
217
268
|
}
|
|
218
269
|
/**
|
|
219
270
|
* This interface was referenced by `Site`'s JSON-Schema
|
|
@@ -224,6 +275,293 @@ export interface CollectionLabel {
|
|
|
224
275
|
plural: string;
|
|
225
276
|
description?: string;
|
|
226
277
|
}
|
|
278
|
+
/**
|
|
279
|
+
* Plain text: a string of at most maxLength characters.
|
|
280
|
+
*/
|
|
281
|
+
export interface TextField {
|
|
282
|
+
key: FieldKey;
|
|
283
|
+
type: "text";
|
|
284
|
+
labels: FieldLabels;
|
|
285
|
+
/**
|
|
286
|
+
* true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.
|
|
287
|
+
*/
|
|
288
|
+
localized: boolean;
|
|
289
|
+
/**
|
|
290
|
+
* An entry in review or published needs a value. Absent: false.
|
|
291
|
+
*/
|
|
292
|
+
requiredToPublish?: boolean;
|
|
293
|
+
migration?: FieldMigration;
|
|
294
|
+
/**
|
|
295
|
+
* Absent: 5000.
|
|
296
|
+
*/
|
|
297
|
+
maxLength?: number;
|
|
298
|
+
/**
|
|
299
|
+
* Line breaks allowed. Absent: false.
|
|
300
|
+
*/
|
|
301
|
+
multiline?: boolean;
|
|
302
|
+
/**
|
|
303
|
+
* Its words go into site search. Absent: false.
|
|
304
|
+
*/
|
|
305
|
+
searchable?: boolean;
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* The field's label and help per locale. Missing a locale: the default locale's, then the key.
|
|
309
|
+
*
|
|
310
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
311
|
+
* via the `definition` "FieldLabels".
|
|
312
|
+
*/
|
|
313
|
+
export interface FieldLabels {
|
|
314
|
+
[k: string]: FieldLabel | undefined;
|
|
315
|
+
}
|
|
316
|
+
/**
|
|
317
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
318
|
+
* via the `definition` "FieldLabel".
|
|
319
|
+
*/
|
|
320
|
+
export interface FieldLabel {
|
|
321
|
+
label: string;
|
|
322
|
+
help?: string;
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* RFC-0041 §6: present only while a field operation rewrites entries.
|
|
326
|
+
*
|
|
327
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
328
|
+
* via the `definition` "FieldMigration".
|
|
329
|
+
*/
|
|
330
|
+
export interface FieldMigration {
|
|
331
|
+
/**
|
|
332
|
+
* Prefixed, URL-safe identifier, e.g. site_01HZX8K3Q9. The prefix names the entity kind; agents and the MCP server pass these as opaque handles.
|
|
333
|
+
*/
|
|
334
|
+
id: string;
|
|
335
|
+
fromKey?: FieldKey;
|
|
336
|
+
fromType?: "text" | "richText" | "number" | "boolean" | "date" | "datetime" | "url" | "image" | "select";
|
|
337
|
+
fromLocalized?: boolean;
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* Cloudhal Markdown v1 (ADR-0028), at most 50 000 characters.
|
|
341
|
+
*/
|
|
342
|
+
export interface RichTextField {
|
|
343
|
+
key: FieldKey;
|
|
344
|
+
type: "richText";
|
|
345
|
+
labels: FieldLabels;
|
|
346
|
+
/**
|
|
347
|
+
* true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.
|
|
348
|
+
*/
|
|
349
|
+
localized: boolean;
|
|
350
|
+
/**
|
|
351
|
+
* An entry in review or published needs a value. Absent: false.
|
|
352
|
+
*/
|
|
353
|
+
requiredToPublish?: boolean;
|
|
354
|
+
migration?: FieldMigration;
|
|
355
|
+
/**
|
|
356
|
+
* Its words go into site search. Absent: false.
|
|
357
|
+
*/
|
|
358
|
+
searchable?: boolean;
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* A finite number.
|
|
362
|
+
*/
|
|
363
|
+
export interface NumberField {
|
|
364
|
+
key: FieldKey;
|
|
365
|
+
type: "number";
|
|
366
|
+
labels: FieldLabels;
|
|
367
|
+
/**
|
|
368
|
+
* true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.
|
|
369
|
+
*/
|
|
370
|
+
localized: boolean;
|
|
371
|
+
/**
|
|
372
|
+
* An entry in review or published needs a value. Absent: false.
|
|
373
|
+
*/
|
|
374
|
+
requiredToPublish?: boolean;
|
|
375
|
+
migration?: FieldMigration;
|
|
376
|
+
/**
|
|
377
|
+
* Whole numbers only. Absent: false.
|
|
378
|
+
*/
|
|
379
|
+
integer?: boolean;
|
|
380
|
+
minimum?: number;
|
|
381
|
+
maximum?: number;
|
|
382
|
+
}
|
|
383
|
+
/**
|
|
384
|
+
* true or false; absent reads as false, so it cannot be required to publish.
|
|
385
|
+
*/
|
|
386
|
+
export interface BooleanField {
|
|
387
|
+
key: FieldKey;
|
|
388
|
+
type: "boolean";
|
|
389
|
+
labels: FieldLabels;
|
|
390
|
+
/**
|
|
391
|
+
* true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.
|
|
392
|
+
*/
|
|
393
|
+
localized: boolean;
|
|
394
|
+
migration?: FieldMigration;
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
397
|
+
* A calendar day without a zone (YYYY-MM-DD).
|
|
398
|
+
*/
|
|
399
|
+
export interface DateField {
|
|
400
|
+
key: FieldKey;
|
|
401
|
+
type: "date";
|
|
402
|
+
labels: FieldLabels;
|
|
403
|
+
/**
|
|
404
|
+
* true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.
|
|
405
|
+
*/
|
|
406
|
+
localized: boolean;
|
|
407
|
+
/**
|
|
408
|
+
* An entry in review or published needs a value. Absent: false.
|
|
409
|
+
*/
|
|
410
|
+
requiredToPublish?: boolean;
|
|
411
|
+
migration?: FieldMigration;
|
|
412
|
+
}
|
|
413
|
+
/**
|
|
414
|
+
* An instant with the zone it was entered in: {at, timeZone} (RFC-0008 §9.1).
|
|
415
|
+
*/
|
|
416
|
+
export interface DateTimeField {
|
|
417
|
+
key: FieldKey;
|
|
418
|
+
type: "datetime";
|
|
419
|
+
labels: FieldLabels;
|
|
420
|
+
/**
|
|
421
|
+
* true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.
|
|
422
|
+
*/
|
|
423
|
+
localized: boolean;
|
|
424
|
+
/**
|
|
425
|
+
* An entry in review or published needs a value. Absent: false.
|
|
426
|
+
*/
|
|
427
|
+
requiredToPublish?: boolean;
|
|
428
|
+
migration?: FieldMigration;
|
|
429
|
+
}
|
|
430
|
+
/**
|
|
431
|
+
* A link: https, http, mailto, tel, a site-relative path or a #fragment; at most 2048 characters.
|
|
432
|
+
*/
|
|
433
|
+
export interface UrlField {
|
|
434
|
+
key: FieldKey;
|
|
435
|
+
type: "url";
|
|
436
|
+
labels: FieldLabels;
|
|
437
|
+
/**
|
|
438
|
+
* true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.
|
|
439
|
+
*/
|
|
440
|
+
localized: boolean;
|
|
441
|
+
/**
|
|
442
|
+
* An entry in review or published needs a value. Absent: false.
|
|
443
|
+
*/
|
|
444
|
+
requiredToPublish?: boolean;
|
|
445
|
+
migration?: FieldMigration;
|
|
446
|
+
}
|
|
447
|
+
/**
|
|
448
|
+
* An image Asset of the same site, by id (asset_…).
|
|
449
|
+
*/
|
|
450
|
+
export interface ImageField {
|
|
451
|
+
key: FieldKey;
|
|
452
|
+
type: "image";
|
|
453
|
+
labels: FieldLabels;
|
|
454
|
+
/**
|
|
455
|
+
* true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.
|
|
456
|
+
*/
|
|
457
|
+
localized: boolean;
|
|
458
|
+
/**
|
|
459
|
+
* An entry in review or published needs a value. Absent: false.
|
|
460
|
+
*/
|
|
461
|
+
requiredToPublish?: boolean;
|
|
462
|
+
migration?: FieldMigration;
|
|
463
|
+
}
|
|
464
|
+
/**
|
|
465
|
+
* One of a closed list of options, or several when multiple.
|
|
466
|
+
*/
|
|
467
|
+
export interface SelectField {
|
|
468
|
+
key: FieldKey;
|
|
469
|
+
type: "select";
|
|
470
|
+
labels: FieldLabels;
|
|
471
|
+
/**
|
|
472
|
+
* true: each language version has its own value (missing reads the original's); false: only the translation group's original holds it.
|
|
473
|
+
*/
|
|
474
|
+
localized: boolean;
|
|
475
|
+
/**
|
|
476
|
+
* An entry in review or published needs a value. Absent: false.
|
|
477
|
+
*/
|
|
478
|
+
requiredToPublish?: boolean;
|
|
479
|
+
migration?: FieldMigration;
|
|
480
|
+
/**
|
|
481
|
+
* @minItems 1
|
|
482
|
+
* @maxItems 50
|
|
483
|
+
*/
|
|
484
|
+
options: [FieldOption, ...FieldOption[]];
|
|
485
|
+
/**
|
|
486
|
+
* The value is a list of option values. Absent: false.
|
|
487
|
+
*/
|
|
488
|
+
multiple?: boolean;
|
|
489
|
+
}
|
|
490
|
+
/**
|
|
491
|
+
* One option of a select field. Values are unique in the field (checked in code).
|
|
492
|
+
*
|
|
493
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
494
|
+
* via the `definition` "FieldOption".
|
|
495
|
+
*/
|
|
496
|
+
export interface FieldOption {
|
|
497
|
+
/**
|
|
498
|
+
* Lower-case URL segment.
|
|
499
|
+
*/
|
|
500
|
+
value: string;
|
|
501
|
+
labels: {
|
|
502
|
+
[k: string]: string | undefined;
|
|
503
|
+
};
|
|
504
|
+
}
|
|
505
|
+
/**
|
|
506
|
+
* 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.
|
|
507
|
+
*
|
|
508
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
509
|
+
* via the `definition` "CollectionExpiry".
|
|
510
|
+
*/
|
|
511
|
+
export interface CollectionExpiry {
|
|
512
|
+
field: FieldKey;
|
|
513
|
+
/**
|
|
514
|
+
* unlist: the page stays, the entry leaves listings, feeds, the sitemap and search. hide: every public route answers 404.
|
|
515
|
+
*/
|
|
516
|
+
action: "unlist" | "hide";
|
|
517
|
+
/**
|
|
518
|
+
* Grace after the field's instant. Absent: 0.
|
|
519
|
+
*/
|
|
520
|
+
afterMinutes?: number;
|
|
521
|
+
}
|
|
522
|
+
/**
|
|
523
|
+
* 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).
|
|
524
|
+
*
|
|
525
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
526
|
+
* via the `definition` "StructuredDataPreset".
|
|
527
|
+
*/
|
|
528
|
+
export interface StructuredDataPreset {
|
|
529
|
+
type: "Event" | "JobPosting" | "Product" | "Recipe";
|
|
530
|
+
/**
|
|
531
|
+
* Keyed by property path, e.g. startDate or location.address.addressLocality.
|
|
532
|
+
*/
|
|
533
|
+
properties: {
|
|
534
|
+
[k: string]: StructuredDataSource | undefined;
|
|
535
|
+
};
|
|
536
|
+
}
|
|
537
|
+
/**
|
|
538
|
+
* A typed field of this collection, converted by its type.
|
|
539
|
+
*/
|
|
540
|
+
export interface FieldValueSource {
|
|
541
|
+
kind: "field";
|
|
542
|
+
field: FieldKey;
|
|
543
|
+
}
|
|
544
|
+
/**
|
|
545
|
+
* A built-in property of the entry.
|
|
546
|
+
*/
|
|
547
|
+
export interface EntryValueSource {
|
|
548
|
+
kind: "entry";
|
|
549
|
+
property: EntryValueProperty;
|
|
550
|
+
}
|
|
551
|
+
/**
|
|
552
|
+
* A property of the site.
|
|
553
|
+
*/
|
|
554
|
+
export interface SiteValueSource {
|
|
555
|
+
kind: "site";
|
|
556
|
+
property: SiteValueProperty;
|
|
557
|
+
}
|
|
558
|
+
/**
|
|
559
|
+
* A plain-text constant: no control characters, no markup meaning; vocabulary-checked on enum paths (in code).
|
|
560
|
+
*/
|
|
561
|
+
export interface ConstantValueSource {
|
|
562
|
+
kind: "constant";
|
|
563
|
+
value: string;
|
|
564
|
+
}
|
|
227
565
|
/**
|
|
228
566
|
* Theme (a.k.a. Experience) applied by the renderer. Config is theme-defined and validated by the theme's own schema, not here.
|
|
229
567
|
*
|
|
@@ -464,6 +802,199 @@ export interface ContentListSection {
|
|
|
464
802
|
* Filter expression over term assignments (RFC-0002), e.g. 'category:news+tag:ai' or 'category:news>*'.
|
|
465
803
|
*/
|
|
466
804
|
filter?: string;
|
|
805
|
+
/**
|
|
806
|
+
* RFC-0042: conditions on the collection's list fields, ANDed.
|
|
807
|
+
*
|
|
808
|
+
* @minItems 1
|
|
809
|
+
* @maxItems 4
|
|
810
|
+
*/
|
|
811
|
+
where?: [FieldCondition] | [FieldCondition, FieldCondition] | [FieldCondition, FieldCondition, FieldCondition] | [FieldCondition, FieldCondition, FieldCondition, FieldCondition];
|
|
812
|
+
orderBy?: FieldOrder;
|
|
813
|
+
}
|
|
814
|
+
/**
|
|
815
|
+
* 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`.
|
|
816
|
+
*
|
|
817
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
818
|
+
* via the `definition` "FieldCondition".
|
|
819
|
+
*/
|
|
820
|
+
export interface FieldCondition {
|
|
821
|
+
/**
|
|
822
|
+
* A field key (site.schema.json FieldKey's pattern, repeated).
|
|
823
|
+
*/
|
|
824
|
+
field: string;
|
|
825
|
+
op: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "set" | "unset";
|
|
826
|
+
value?: string;
|
|
827
|
+
/**
|
|
828
|
+
* @minItems 1
|
|
829
|
+
* @maxItems 20
|
|
830
|
+
*/
|
|
831
|
+
values?: [string] | [string, string] | [string, string, string] | [string, string, string, string] | [string, string, string, string, string] | [string, string, string, string, string, string] | [string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string, string] | [
|
|
832
|
+
string,
|
|
833
|
+
string,
|
|
834
|
+
string,
|
|
835
|
+
string,
|
|
836
|
+
string,
|
|
837
|
+
string,
|
|
838
|
+
string,
|
|
839
|
+
string,
|
|
840
|
+
string,
|
|
841
|
+
string,
|
|
842
|
+
string,
|
|
843
|
+
string
|
|
844
|
+
] | [
|
|
845
|
+
string,
|
|
846
|
+
string,
|
|
847
|
+
string,
|
|
848
|
+
string,
|
|
849
|
+
string,
|
|
850
|
+
string,
|
|
851
|
+
string,
|
|
852
|
+
string,
|
|
853
|
+
string,
|
|
854
|
+
string,
|
|
855
|
+
string,
|
|
856
|
+
string,
|
|
857
|
+
string
|
|
858
|
+
] | [
|
|
859
|
+
string,
|
|
860
|
+
string,
|
|
861
|
+
string,
|
|
862
|
+
string,
|
|
863
|
+
string,
|
|
864
|
+
string,
|
|
865
|
+
string,
|
|
866
|
+
string,
|
|
867
|
+
string,
|
|
868
|
+
string,
|
|
869
|
+
string,
|
|
870
|
+
string,
|
|
871
|
+
string,
|
|
872
|
+
string
|
|
873
|
+
] | [
|
|
874
|
+
string,
|
|
875
|
+
string,
|
|
876
|
+
string,
|
|
877
|
+
string,
|
|
878
|
+
string,
|
|
879
|
+
string,
|
|
880
|
+
string,
|
|
881
|
+
string,
|
|
882
|
+
string,
|
|
883
|
+
string,
|
|
884
|
+
string,
|
|
885
|
+
string,
|
|
886
|
+
string,
|
|
887
|
+
string,
|
|
888
|
+
string
|
|
889
|
+
] | [
|
|
890
|
+
string,
|
|
891
|
+
string,
|
|
892
|
+
string,
|
|
893
|
+
string,
|
|
894
|
+
string,
|
|
895
|
+
string,
|
|
896
|
+
string,
|
|
897
|
+
string,
|
|
898
|
+
string,
|
|
899
|
+
string,
|
|
900
|
+
string,
|
|
901
|
+
string,
|
|
902
|
+
string,
|
|
903
|
+
string,
|
|
904
|
+
string,
|
|
905
|
+
string
|
|
906
|
+
] | [
|
|
907
|
+
string,
|
|
908
|
+
string,
|
|
909
|
+
string,
|
|
910
|
+
string,
|
|
911
|
+
string,
|
|
912
|
+
string,
|
|
913
|
+
string,
|
|
914
|
+
string,
|
|
915
|
+
string,
|
|
916
|
+
string,
|
|
917
|
+
string,
|
|
918
|
+
string,
|
|
919
|
+
string,
|
|
920
|
+
string,
|
|
921
|
+
string,
|
|
922
|
+
string,
|
|
923
|
+
string
|
|
924
|
+
] | [
|
|
925
|
+
string,
|
|
926
|
+
string,
|
|
927
|
+
string,
|
|
928
|
+
string,
|
|
929
|
+
string,
|
|
930
|
+
string,
|
|
931
|
+
string,
|
|
932
|
+
string,
|
|
933
|
+
string,
|
|
934
|
+
string,
|
|
935
|
+
string,
|
|
936
|
+
string,
|
|
937
|
+
string,
|
|
938
|
+
string,
|
|
939
|
+
string,
|
|
940
|
+
string,
|
|
941
|
+
string,
|
|
942
|
+
string
|
|
943
|
+
] | [
|
|
944
|
+
string,
|
|
945
|
+
string,
|
|
946
|
+
string,
|
|
947
|
+
string,
|
|
948
|
+
string,
|
|
949
|
+
string,
|
|
950
|
+
string,
|
|
951
|
+
string,
|
|
952
|
+
string,
|
|
953
|
+
string,
|
|
954
|
+
string,
|
|
955
|
+
string,
|
|
956
|
+
string,
|
|
957
|
+
string,
|
|
958
|
+
string,
|
|
959
|
+
string,
|
|
960
|
+
string,
|
|
961
|
+
string,
|
|
962
|
+
string
|
|
963
|
+
] | [
|
|
964
|
+
string,
|
|
965
|
+
string,
|
|
966
|
+
string,
|
|
967
|
+
string,
|
|
968
|
+
string,
|
|
969
|
+
string,
|
|
970
|
+
string,
|
|
971
|
+
string,
|
|
972
|
+
string,
|
|
973
|
+
string,
|
|
974
|
+
string,
|
|
975
|
+
string,
|
|
976
|
+
string,
|
|
977
|
+
string,
|
|
978
|
+
string,
|
|
979
|
+
string,
|
|
980
|
+
string,
|
|
981
|
+
string,
|
|
982
|
+
string,
|
|
983
|
+
string
|
|
984
|
+
];
|
|
985
|
+
}
|
|
986
|
+
/**
|
|
987
|
+
* RFC-0042: order a listing by a number, date or datetime field. Entries without a value sort last.
|
|
988
|
+
*
|
|
989
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
990
|
+
* via the `definition` "FieldOrder".
|
|
991
|
+
*/
|
|
992
|
+
export interface FieldOrder {
|
|
993
|
+
/**
|
|
994
|
+
* A field key (site.schema.json FieldKey's pattern, repeated).
|
|
995
|
+
*/
|
|
996
|
+
field: string;
|
|
997
|
+
direction: "asc" | "desc";
|
|
467
998
|
}
|
|
468
999
|
/**
|
|
469
1000
|
* 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.
|