GroupAggregate: Codec<
| { kind: "group"; name: string; properties: readonly [string, string] }
| { kind: "max"; name: string; property: string }
| { kind: "min"; name: string; property: string }
| {
kind: "items";
limit?: number;
name: string;
order?: readonly (
| { direction: "asc"
| "desc"; kind: "natural" }
| { direction: "asc" | "desc"; kind: "property"; property: string }
| { direction: "asc" | "desc"; kind: "rank" }
| {
direction: "asc" | "desc";
field: "createdAt" | "updatedAt";
kind: "timestamp";
}
| {
direction: "asc"
| "desc";
key: string;
kind: "annotation";
path?: readonly string[];
}
)[];
}
| { kind: "count"; name: string }
| { kind: "type"; name: string }
| {
field: "createdAt" | "updatedAt";
kind: "timestamp";
name: string;
unit: "day" | "hour";
}
| { kind: "time"; name: string; property: string; unit: "day"
| "hour" }
| { kind: "sum"; name: string; property: string },
| {
kind: "group";
name: string;
properties: readonly [string, string];
}
| { kind: "max"; name: string; property: string }
| { kind: "min"; name: string; property: string }
| {
kind: "items";
limit?: number;
name: string;
order?: readonly (
| { direction: "asc"
| "desc"; kind: "natural" }
| { direction: "asc" | "desc"; kind: "property"; property: string }
| { direction: "asc" | "desc"; kind: "rank" }
| {
direction: "asc" | "desc";
field: "createdAt" | "updatedAt";
kind: "timestamp";
}
| {
direction: "asc"
| "desc";
key: string;
kind: "annotation";
path?: readonly string[];
}
)[];
}
| { kind: "count"; name: string }
| { kind: "type"; name: string }
| {
field: "createdAt" | "updatedAt";
kind: "timestamp";
name: string;
unit: "day" | "hour";
}
| { kind: "time"; name: string; property: string; unit: "day"
| "hour" }
| { kind: "sum"; name: string; property: string },
never,
never,
>