@nanobpm/urban 0.81.0 → 0.82.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.
@@ -227,45 +227,76 @@ export type {
227
227
  // workers.ts) applies its managed VIEW. The `writer-source-inversion` task registers here.
228
228
  // • `projectionRegistry` — register a canonical engine-truth projection NAME usable in `exists(...)`.
229
229
  // The `canonical-projections` task registers `urban_open_user_tasks` / `urban_instance_state`.
230
+ // The GROUP-BY sibling `defineRollup` (ADR 0065, #468): a declare-once aggregate rollup compiled to
231
+ // BOTH a managed `*_counts` VIEW and a TS group-reduce (closed aggregate op set: `count`/`countWhere`/
232
+ // `max`/`minWhere`/`coalesce`/`add`), registered as a canonical projection via `rollupRegistry` and
233
+ // parity-guarded by `assertRollupParity`. `defineReadModel` gains a key-correlated rollup lookup
234
+ // (`ReadModelDecl.lookups` + `rcol`) so per-row derivations read a rollup's columns for the base row.
230
235
  export {
236
+ add,
231
237
  and,
232
238
  assertReadModelParity,
239
+ assertRollupParity,
233
240
  assertSqlIdentifier,
234
241
  caseWhen,
242
+ coalesce,
235
243
  col,
236
244
  compileToFn,
237
245
  compileToSqlSelect,
246
+ count,
247
+ countWhere,
238
248
  defineReadModel,
249
+ defineRollup,
239
250
  deriveReadModelViewDdl,
240
251
  eq,
241
252
  exists,
253
+ fromProjection,
254
+ fromRollup,
255
+ fromTable,
242
256
  gt,
243
257
  gte,
258
+ isNotNull,
259
+ isNull,
260
+ joinSource,
244
261
  lit,
245
262
  lt,
246
263
  lte,
264
+ max,
265
+ minWhere,
247
266
  neq,
248
267
  not,
249
268
  or,
250
269
  pcol,
251
270
  ProjectionRegistry,
252
271
  projectionRegistry,
272
+ rcol,
253
273
  ReadModelRegistry,
254
274
  readModelRegistry,
275
+ RollupRegistry,
276
+ rollupRegistry,
255
277
  when,
256
278
  } from "./core/read-model.ts";
257
279
  export type {
280
+ AddAgg,
281
+ AggExpr,
258
282
  AndExpr,
259
283
  BaseRow,
260
284
  CaseExpr,
261
285
  ColExpr,
286
+ CoalesceAgg,
262
287
  CompareExpr,
263
288
  CompareOp,
289
+ CountAgg,
290
+ CountWhereAgg,
264
291
  DerivationFn,
265
292
  ExistsExpr,
266
293
  Expr,
294
+ IsNullExpr,
267
295
  Literal,
268
296
  LitExpr,
297
+ LookupRows,
298
+ MaxAgg,
299
+ MinWhereAgg,
269
300
  NotExpr,
270
301
  OrExpr,
271
302
  ParityDb,
@@ -276,6 +307,18 @@ export type {
276
307
  ProjectionSource,
277
308
  ReadModel,
278
309
  ReadModelDecl,
310
+ RollupColExpr,
311
+ Rollup,
312
+ RollupDecl,
313
+ RollupInputs,
314
+ RollupJoinSource,
315
+ RollupLookupDecl,
316
+ RollupParityOptions,
317
+ RollupProjectionSource,
318
+ RollupRelation,
319
+ RollupRollupSource,
320
+ RollupSource,
321
+ RollupTableSource,
279
322
  SqlCompileOptions,
280
323
  WhenClause,
281
324
  } from "./core/read-model.ts";