@protobase/schema 0.43.2 → 0.44.1

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.
@@ -32,6 +32,6 @@ export type OrderByCheck = {
32
32
  export declare const parseOrderBy: (source: string) => OrderByParse;
33
33
  /** The order as text, as `parseOrderBy` reads it. */
34
34
  export declare const printOrderBy: (items: OrderByItem[]) => string;
35
- /** Validates against sortable fields; traversal is not supported yet. */
35
+ /** Validates against sortable fields. <gap>An order cannot sort on fields of related resources, as traversal is not supported yet.</gap> */
36
36
  export declare const checkOrderBy: (model: ResourceModel, items: OrderByItem[]) => OrderByCheck;
37
37
  //#endregion
@@ -32,7 +32,7 @@ const parseOrderBy$1 = (source) => {
32
32
  };
33
33
  /** The order as text, as `parseOrderBy` reads it. */
34
34
  const printOrderBy$1 = (items) => printOrderBy(generic(items));
35
- /** Validates against sortable fields; traversal is not supported yet. */
35
+ /** Validates against sortable fields. <gap>An order cannot sort on fields of related resources, as traversal is not supported yet.</gap> */
36
36
  const checkOrderBy$1 = (model, items) => {
37
37
  const traversal = items.filter((item) => item.path.path.length > 1).map((item) => filterError("unsupported-traversal", `Traversal into "${item.path.path.join(".")}" is not supported yet`, "Sort on fields of this resource only", item.path.span));
38
38
  if (traversal.length > 0) return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@protobase/schema",
3
- "version": "0.43.2",
3
+ "version": "0.44.1",
4
4
  "description": "Resource, field, view and access definitions for Protobase configs.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {