@cosmicdrift/kumiko-types 0.339.0 → 0.340.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.
@@ -16,6 +16,8 @@ export type AggregateSpec = {
16
16
  readonly measure: AggregateMeasure;
17
17
  readonly groupBy?: readonly AggregateDimension[];
18
18
  readonly orderByValue?: "asc" | "desc";
19
+ /** Direction of the group-key ordering (default asc). orderByValue stays the primary key when set. */
20
+ readonly orderByKeys?: "asc" | "desc";
19
21
  readonly limit?: number;
20
22
  };
21
23
  export type AggregateKey = string | number | boolean | null;
package/dist/step.js CHANGED
@@ -1,4 +1,4 @@
1
- // Step-Vocabulary Types — see docs/plans/architecture/intern/step-vocabulary.md
1
+ // Step-Vocabulary Types — see kumiko-platform/docs/archive/plans/architecture/intern/step-vocabulary.md
2
2
  //
3
3
  // M.1 minimal scope:
4
4
  // - Steps execute against the existing HandlerContext (no per-step subset).
@@ -1,3 +1,8 @@
1
+ export type JsonTextMatch = {
2
+ /** Top-level keys, tried in order; the first non-null text value is compared (COALESCE). */
3
+ readonly keys: readonly [string, ...string[]];
4
+ readonly eq: string;
5
+ };
1
6
  export type WhereOperator = {
2
7
  readonly gt?: unknown;
3
8
  readonly gte?: unknown;
@@ -6,6 +11,8 @@ export type WhereOperator = {
6
11
  readonly ne?: unknown;
7
12
  readonly in?: readonly unknown[];
8
13
  readonly like?: string;
14
+ /** jsonb columns only; cannot be combined with other operators in the same object. */
15
+ readonly jsonText?: JsonTextMatch | readonly JsonTextMatch[];
9
16
  };
10
17
  export type WherePrimitive = string | number | boolean | bigint | Date | null | undefined;
11
18
  export type WhereValue = WherePrimitive | readonly WherePrimitive[] | WhereOperator;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmicdrift/kumiko-types",
3
- "version": "0.339.0",
3
+ "version": "0.340.0",
4
4
  "description": "Framework-Type-Definitions für Kumiko — FeatureDefinition, BootCheck-Types und die reinen Engine-Types. Erlaubt Downstream-Konsumenten, gegen die Type-Contracts zu bauen, ohne das ganze Framework-Package zu importieren. Enthaelt keine identitaets-sensitiven Runtime-Werte mehr (Error-Klassen leben seit #1629 in kumiko-framework, Brand-Symbole nutzen Symbol.for) und ist deshalb eine plain dependency, keine peerDependency.",
5
5
  "license": "BUSL-1.1",
6
6
  "author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
package/src/changes.json CHANGED
@@ -1,4 +1,11 @@
1
1
  [
2
+ {
3
+ "version": "0.340.0",
4
+ "type": "improvement",
5
+ "title": "Where clauses and aggregate options describe jsonb text matches and key ordering",
6
+ "detail": "`WhereOperator` gains `jsonText?: JsonTextMatch | readonly JsonTextMatch[]` with `JsonTextMatch = { keys: readonly [string, ...string[]]; eq: string }`, and the aggregate options gain `orderByKeys?: \"asc\" | \"desc\"`.",
7
+ "migration": "keine"
8
+ },
2
9
  {
3
10
  "version": "0.338.0",
4
11
  "type": "improvement",