@platforma-open/milaboratories.software-ptabler.schema 1.3.0 → 1.5.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.
@@ -52,8 +52,8 @@ export interface AggregateStep {
52
52
  inputTable: string;
53
53
  /** The name to be assigned to the newly created aggregated table in the tablespace. */
54
54
  outputTable: string;
55
- /** An optional list of column names to group by before performing aggregations. */
56
- groupBy: string[];
55
+ /** An optional list of column names or expressions to group by before performing aggregations. */
56
+ groupBy: (string | Expression)[];
57
57
  /** An array of aggregation operations to apply to the input table. */
58
58
  aggregations: (StandardAggregationOperation | ByClauseAggregationOperation)[];
59
59
  }
package/dist/sort.d.ts CHANGED
@@ -1,10 +1,11 @@
1
+ import { Expression } from './expressions';
1
2
  /**
2
3
  * Defines a single sort instruction, specifying the column, sort order,
3
4
  * and null handling strategy.
4
5
  */
5
6
  export interface SortDirective {
6
- /** The name of the column to sort by. */
7
- column: string;
7
+ /** The expression to sort by. */
8
+ value: Expression;
8
9
  /**
9
10
  * Whether to sort in descending order for this column.
10
11
  * Defaults to false (ascending).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platforma-open/milaboratories.software-ptabler.schema",
3
- "version": "1.3.0",
3
+ "version": "1.5.0",
4
4
  "description": "Type definitions for PTabler",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",
package/src/aggregate.ts CHANGED
@@ -70,8 +70,8 @@ export interface AggregateStep {
70
70
  inputTable: string;
71
71
  /** The name to be assigned to the newly created aggregated table in the tablespace. */
72
72
  outputTable: string;
73
- /** An optional list of column names to group by before performing aggregations. */
74
- groupBy: string[];
73
+ /** An optional list of column names or expressions to group by before performing aggregations. */
74
+ groupBy: (string | Expression)[];
75
75
  /** An array of aggregation operations to apply to the input table. */
76
76
  aggregations: (StandardAggregationOperation | ByClauseAggregationOperation)[];
77
77
  }
package/src/sort.ts CHANGED
@@ -1,10 +1,12 @@
1
+ import type { Expression } from './expressions';
2
+
1
3
  /**
2
4
  * Defines a single sort instruction, specifying the column, sort order,
3
5
  * and null handling strategy.
4
6
  */
5
7
  export interface SortDirective {
6
- /** The name of the column to sort by. */
7
- column: string;
8
+ /** The expression to sort by. */
9
+ value: Expression;
8
10
 
9
11
  /**
10
12
  * Whether to sort in descending order for this column.