@protobase/schema 0.22.1 → 0.22.2

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.
Files changed (2) hide show
  1. package/dist/model.d.ts +4 -1
  2. package/package.json +1 -1
package/dist/model.d.ts CHANGED
@@ -603,6 +603,7 @@ export type FilterWidgetModel = {
603
603
  /**
604
604
  * Records of another resource on the record page: those whose `field` holds this record's key or, with `through`,
605
605
  * those whose `field` holds one of the `key` values of the `through` records that point at this record (a join table).
606
+ * With `from`, those whose `field` holds the value of that field of this record.
606
607
  * See [Related records](website/src/content/docs/reference/ui-config.mdx#related-records).
607
608
  */
608
609
  export type RelatedModel = {
@@ -614,8 +615,10 @@ export type RelatedModel = {
614
615
  help?: string;
615
616
  /** The resource whose records it lists. */
616
617
  resource: string;
617
- /** The filterable field of `resource` matched against this record's key, or with `through` against the join records' keys. */
618
+ /** The filterable field of `resource` matched against this record's key, or with `through` against the join records' keys, or with `from` against that field's value. */
618
619
  field: string;
620
+ /** A field of this record whose value `field` is matched against instead of its key; not with `through`. */
621
+ from?: string;
619
622
  /** The join records between this record and the listed ones. */
620
623
  through?: {
621
624
  /** The join resource. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@protobase/schema",
3
- "version": "0.22.1",
3
+ "version": "0.22.2",
4
4
  "description": "Resource, field, view and access definitions for Protobase configs.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {