@pipeline-builder/pipeline-data 3.4.58 → 3.4.59

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.
Files changed (2) hide show
  1. package/README.md +14 -10
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -7,23 +7,27 @@ Database layer for [Pipeline Builder](https://mwashburn160.github.io/pipeline-bu
7
7
  ## Key Exports
8
8
 
9
9
  ### Connection
10
- - `getConnection`, `db` — Shared PostgreSQL pool and Drizzle client
10
+ - `getConnection`, `db`, `closeConnection` — Shared PostgreSQL pool, Drizzle client, and lifecycle management
11
+ - `dbReplica` — Optional read-replica client for read-heavy queries (reporting, listings)
11
12
  - `ConnectionRetryStrategy` — Retry logic for transient connection failures
13
+ - `runMigrations` — Drizzle migration runner
12
14
 
13
15
  ### Schemas
14
- - `schema` — All Drizzle table definitions (pipeline, plugin, compliance, events, )
15
- - Entity types: `Pipeline`, `Plugin`, `ComplianceRule`, `PipelineEvent`, `Message`
16
+ - `schema` — All Drizzle table definitions: core pipeline/plugin/message tables, the pipeline deployment registry and execution-event log, observability dashboards and per-org alerting, plus the full compliance suite (policies, rules, exemptions, audit log, scans, reports)
17
+ - Entity types: `Pipeline`, `Plugin`, `Message`, `PipelineEvent`, `ComplianceRule`, and a matching `*Insert` / `*Update` type for each table
16
18
 
17
19
  ### CrudService
18
- - `CrudService<TEntity, TFilter, TInsert, TUpdate>` — Abstract base providing `find`, `findById`, `create`, `update`, `delete`, `findPaginated`, plus per-entity lifecycle hooks and multi-tenant access control
19
- - `FilterBuilder` Type-safe pagination/sort/filter builder
20
+ - `CrudService<TEntity, TFilter, TInsert, TUpdate>` — Abstract base providing `find`, `findById`, `findPaginated`, `count`, `create`, `update`, `delete` (soft delete), `setDefault`, and `updateMany`
21
+ - Built-in multi-tenant access control and pagination; subclasses implement `buildConditions` and a few column accessors and inherit the rest
22
+ - Optional per-entity lifecycle hooks fire after mutations (e.g. cache invalidation)
20
23
 
21
- ### Query Builders
22
- - `BaseQueryBuilder` — Generic insert/update/delete
23
- - `pipelineBuilder`, `pluginBuilder` — Entity-specific query helpers
24
+ ### Query Builders & Access Control
25
+ - `AccessControlQueryBuilder` — Row-level, org-scoped condition builder enforcing tenant isolation and `accessModifier` visibility
26
+ - `buildPipelineConditions`, `buildPluginConditions`, `buildMessageConditions`, and the compliance condition builders filter-to-SQL translators used by the services
27
+ - Tenancy helpers: `tenantContext`, `runWithTenantContext`, `withTenantTx` — `AsyncLocalStorage`-backed tenant scoping for transactions
24
28
 
25
- ### Helpers
26
- - `withTimestamps`, `softDelete` — Common column decorators
29
+ ### Reporting
30
+ - `ReportingService` / `reportingService` — Aggregate-query base for pipeline event ingestion and org-scoped reporting
27
31
 
28
32
  ## License
29
33
 
package/package.json CHANGED
@@ -24,7 +24,7 @@
24
24
  "dependencies": {
25
25
  "drizzle-orm": "0.45.1",
26
26
  "pg": "8.18.0",
27
- "@pipeline-builder/api-core": "3.4.57"
27
+ "@pipeline-builder/api-core": "3.4.58"
28
28
  },
29
29
  "keywords": [
30
30
  "aws",
@@ -68,7 +68,7 @@
68
68
  "access": "public",
69
69
  "registry": "https://registry.npmjs.org/"
70
70
  },
71
- "version": "3.4.58",
71
+ "version": "3.4.59",
72
72
  "bugs": {
73
73
  "url": "https://github.com/mwashburn160/pipeline-builder/issues"
74
74
  },