@cloudhal/core-contracts 0.5.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.
@@ -3,7 +3,7 @@
3
3
  * Source: packages/core-contracts/schemas/*.schema.json (run `pnpm gen`)
4
4
  */
5
5
  export type { SchemaVersion, Id, Slug, Revision, Timestamp, Project, Metadata } from "./project.js";
6
- export type { Locale, FieldDefinition, FieldKey, Section, BodyProfile, ActorKind, BodyBlocks, SurfaceComponentId, Path, Section1, TimeZone, Site, Domain, Localization, CollectionSettings, CollectionLabel, TextField, FieldLabels, FieldLabel, FieldMigration, RichTextField, NumberField, BooleanField, DateField, DateTimeField, UrlField, ImageField, SelectField, FieldOption, ThemeRef, Design, Brand, ImageRef, SocialLink, Chrome, ChromeHeader, HeaderAction, ChromeFooter, FooterColumn, HeroSection, Link, RichTextSection, BodyBlock, Actor, ImageSection, ContentListSection, ComponentSection, SurfaceSection, SurfaceComponent, Announcement, Consent } from "./site.js";
6
+ export type { Locale, FieldDefinition, FieldKey, StructuredDataSource, EntryValueProperty, SiteValueProperty, Section, BodyProfile, ActorKind, BodyBlocks, SurfaceComponentId, Path, Section1, TimeZone, Site, Domain, Localization, CollectionSettings, CollectionLabel, TextField, FieldLabels, FieldLabel, FieldMigration, RichTextField, NumberField, BooleanField, DateField, DateTimeField, UrlField, ImageField, SelectField, FieldOption, CollectionExpiry, StructuredDataPreset, FieldValueSource, EntryValueSource, SiteValueSource, ConstantValueSource, ThemeRef, Design, Brand, ImageRef, SocialLink, Chrome, ChromeHeader, HeaderAction, ChromeFooter, FooterColumn, HeroSection, Link, RichTextSection, BodyBlock, Actor, ImageSection, ContentListSection, FieldCondition, FieldOrder, ComponentSection, SurfaceSection, SurfaceComponent, Announcement, Consent } from "./site.js";
7
7
  export type { PublishStatus, TranslationMethod, MotionLevel, Page, Seo, Availability, Translation } from "./page.js";
8
8
  export type { ContentEntry, Body, TermAssignment, Correction } from "./content-entry.js";
9
9
  export type { Snapshot, NodeRef, ChangeSummary } from "./snapshot.js";
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
 
9
-
9
+
10
10
 
11
11
 
12
12
 
@@ -227,6 +227,199 @@ export interface ContentListSection {
227
227
  * Filter expression over term assignments (RFC-0002), e.g. 'category:news+tag:ai' or 'category:news>*'.
228
228
  */
229
229
  filter?: string;
230
+ /**
231
+ * RFC-0042: conditions on the collection's list fields, ANDed.
232
+ *
233
+ * @minItems 1
234
+ * @maxItems 4
235
+ */
236
+ where?: [FieldCondition] | [FieldCondition, FieldCondition] | [FieldCondition, FieldCondition, FieldCondition] | [FieldCondition, FieldCondition, FieldCondition, FieldCondition];
237
+ orderBy?: FieldOrder;
238
+ }
239
+ /**
240
+ * 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`.
241
+ *
242
+ * This interface was referenced by `Page`'s JSON-Schema
243
+ * via the `definition` "FieldCondition".
244
+ */
245
+ export interface FieldCondition {
246
+ /**
247
+ * A field key (site.schema.json FieldKey's pattern, repeated).
248
+ */
249
+ field: string;
250
+ op: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "set" | "unset";
251
+ value?: string;
252
+ /**
253
+ * @minItems 1
254
+ * @maxItems 20
255
+ */
256
+ 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] | [
257
+ string,
258
+ string,
259
+ string,
260
+ string,
261
+ string,
262
+ string,
263
+ string,
264
+ string,
265
+ string,
266
+ string,
267
+ string,
268
+ string
269
+ ] | [
270
+ string,
271
+ string,
272
+ string,
273
+ string,
274
+ string,
275
+ string,
276
+ string,
277
+ string,
278
+ string,
279
+ string,
280
+ string,
281
+ string,
282
+ string
283
+ ] | [
284
+ string,
285
+ string,
286
+ string,
287
+ string,
288
+ string,
289
+ string,
290
+ string,
291
+ string,
292
+ string,
293
+ string,
294
+ string,
295
+ string,
296
+ string,
297
+ string
298
+ ] | [
299
+ string,
300
+ string,
301
+ string,
302
+ string,
303
+ string,
304
+ string,
305
+ string,
306
+ string,
307
+ string,
308
+ string,
309
+ string,
310
+ string,
311
+ string,
312
+ string,
313
+ string
314
+ ] | [
315
+ string,
316
+ string,
317
+ string,
318
+ string,
319
+ string,
320
+ string,
321
+ string,
322
+ string,
323
+ string,
324
+ string,
325
+ string,
326
+ string,
327
+ string,
328
+ string,
329
+ string,
330
+ string
331
+ ] | [
332
+ string,
333
+ string,
334
+ string,
335
+ string,
336
+ string,
337
+ string,
338
+ string,
339
+ string,
340
+ string,
341
+ string,
342
+ string,
343
+ string,
344
+ string,
345
+ string,
346
+ string,
347
+ string,
348
+ string
349
+ ] | [
350
+ string,
351
+ string,
352
+ string,
353
+ string,
354
+ string,
355
+ string,
356
+ string,
357
+ string,
358
+ string,
359
+ string,
360
+ string,
361
+ string,
362
+ string,
363
+ string,
364
+ string,
365
+ string,
366
+ string,
367
+ string
368
+ ] | [
369
+ string,
370
+ string,
371
+ string,
372
+ string,
373
+ string,
374
+ string,
375
+ string,
376
+ string,
377
+ string,
378
+ string,
379
+ string,
380
+ string,
381
+ string,
382
+ string,
383
+ string,
384
+ string,
385
+ string,
386
+ string,
387
+ string
388
+ ] | [
389
+ string,
390
+ string,
391
+ string,
392
+ string,
393
+ string,
394
+ string,
395
+ string,
396
+ string,
397
+ string,
398
+ string,
399
+ string,
400
+ string,
401
+ string,
402
+ string,
403
+ string,
404
+ string,
405
+ string,
406
+ string,
407
+ string,
408
+ string
409
+ ];
410
+ }
411
+ /**
412
+ * RFC-0042: order a listing by a number, date or datetime field. Entries without a value sort last.
413
+ *
414
+ * This interface was referenced by `Page`'s JSON-Schema
415
+ * via the `definition` "FieldOrder".
416
+ */
417
+ export interface FieldOrder {
418
+ /**
419
+ * A field key (site.schema.json FieldKey's pattern, repeated).
420
+ */
421
+ field: string;
422
+ direction: "asc" | "desc";
230
423
  }
231
424
  /**
232
425
  * 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.
@@ -237,6 +237,223 @@
237
237
 
238
238
 
239
239
 
240
+
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+
249
+
250
+
251
+
252
+
253
+ /**
254
+ * 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`.
255
+ *
256
+ * This interface was referenced by `Page`'s JSON-Schema
257
+ * via the `definition` "FieldCondition".
258
+ */
259
+
260
+
261
+
262
+
263
+
264
+
265
+
266
+
267
+
268
+
269
+
270
+
271
+
272
+
273
+
274
+
275
+
276
+
277
+
278
+
279
+
280
+
281
+
282
+
283
+
284
+
285
+
286
+
287
+
288
+
289
+
290
+
291
+
292
+
293
+
294
+
295
+
296
+
297
+
298
+
299
+
300
+
301
+
302
+
303
+
304
+
305
+
306
+
307
+
308
+
309
+
310
+
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
+
340
+
341
+
342
+
343
+
344
+
345
+
346
+
347
+
348
+
349
+
350
+
351
+
352
+
353
+
354
+
355
+
356
+
357
+
358
+
359
+
360
+
361
+
362
+
363
+
364
+
365
+
366
+
367
+
368
+
369
+
370
+
371
+
372
+
373
+
374
+
375
+
376
+
377
+
378
+
379
+
380
+
381
+
382
+
383
+
384
+
385
+
386
+
387
+
388
+
389
+
390
+
391
+
392
+
393
+
394
+
395
+
396
+
397
+
398
+
399
+
400
+
401
+
402
+
403
+
404
+
405
+
406
+
407
+
408
+
409
+
410
+
411
+
412
+
413
+
414
+
415
+
416
+
417
+
418
+
419
+
420
+
421
+
422
+
423
+
424
+
425
+
426
+
427
+
428
+
429
+
430
+
431
+
432
+
433
+
434
+
435
+
436
+
437
+
438
+
439
+
440
+
441
+
442
+
443
+
444
+
445
+ /**
446
+ * RFC-0042: order a listing by a number, date or datetime field. Entries without a value sort last.
447
+ *
448
+ * This interface was referenced by `Page`'s JSON-Schema
449
+ * via the `definition` "FieldOrder".
450
+ */
451
+
452
+
453
+
454
+
455
+
456
+
240
457
 
241
458
  /**
242
459
  * 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.