caelum0x 3037ff08f3 feat(product-analytics): close Mixpanel parity gaps -- groups, engage ops, import, lookup tables, data views
Closes all 5 open rows in docs/MIXPANEL-PARITY-CHECKLIST.md, each proven
against the real `mixpanel` npm client (test/qy/mixpanel-compat.test.ts) or
a direct library test (test/qy/lookup-tables-data-views.test.ts):

- /engage: $add/$append/$union/$remove now apply through the same
  PropertyOps/applyOps pipeline $set already used (src/persons/properties.ts).
- /groups: disambiguates Mixpanel's $group_key/$group_id (type/key) from
  this service's own $group_type/$group_key, and applies a full PropertyOps
  (set/set_once/unset/union/remove) instead of a flat jsonb merge.
- /import: new route sharing /track's normalizeEvents + CapturePipeline,
  differing only in auth (Basic or api_key/token query param, not a bare
  body token), retention (skips the window cutoff /track applies) and is
  idempotent via the existing uuid/$insert_id dedup.
- Lookup tables: CSV-backed pa.lookup_tables/pa.lookup_table_rows, joined
  into filters via a new "lookup" PropertyFilter and Joins.lookup(), reusing
  filters.ts's existing compareProperty.
- Data views: named, reusable filter sets (pa.data_views) merged into a
  query's own properties by id before any builder runs (runner.ts).

pnpm run test:all: 220 -> 225 tests, 216 -> 221 pass, 0 fail, 4 skipped
(unchanged, no cached Chromium). Fixed one pre-existing test
(test/a1/identity.test.ts) that constructed a raw PropertyOps literal
missing the new required fields.
2026-10-15 20:16:58 +03:00
..