@protobase/schema 0.22.1 → 0.22.3
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/model.d.ts +6 -3
- package/package.json +1 -1
package/dist/model.d.ts
CHANGED
|
@@ -560,8 +560,8 @@ export type RelatedColumnModel = {
|
|
|
560
560
|
/** The enum field of `resource` whose value colours each dot, by its view's `valueColors`. */
|
|
561
561
|
status: string;
|
|
562
562
|
};
|
|
563
|
-
/** A button of a date range filter: today, yesterday, the last 7, 30 or 90 days, or this month, quarter or year. */
|
|
564
|
-
export type DatePreset = 'today' | 'yesterday' | '7d' | '30d' | '90d' | 'month' | 'quarter' | 'year';
|
|
563
|
+
/** A button of a date range filter: today, yesterday, the last 24 hours, 7, 30 or 90 days, or this month, quarter or year. */
|
|
564
|
+
export type DatePreset = 'today' | 'yesterday' | '24h' | '7d' | '30d' | '90d' | 'month' | 'quarter' | 'year';
|
|
565
565
|
/**
|
|
566
566
|
* A filter widget above a list (`.filters((r, w) => ...)`), on a filterable field; see
|
|
567
567
|
* [Filters and the chart](website/src/content/docs/reference/ui-config.mdx#filters-and-the-chart).
|
|
@@ -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. */
|