chore(work): finish 01-pii-retention-type-primitives

This commit is contained in:
2026-05-18 20:29:17 +02:00
parent 0d4be0a4f4
commit fa1a10c88c
3 changed files with 20 additions and 35 deletions

View File

@@ -3,7 +3,7 @@ id: 01-pii-retention-type-primitives
epic: compliance-manifests-pii-retention-subprocessors
title: PII and retention type primitives in core-shared
type: technical-story
status: in-progress
status: done
feature: core-shared
depends-on: []
blocks:
@@ -15,7 +15,7 @@ blocks:
06-compliance-generator-scripts,
]
created: 2026-05-18T17:52:09Z
updated: 2026-05-18T18:06:15.725Z
updated: 2026-05-18T18:29:19.373Z
---
## Goal
@@ -52,4 +52,4 @@ All downstream stories need the type contracts before they can compile. Landing
## Tasks
- [ ] Add `pii-types.ts`, `retention-types.ts`, and `payload-custom-ambient.d.ts` to `packages/core-shared/src/payload/` — complete type contracts per the PRD, ambient Payload module augmentation, `PAYLOAD_AUTH_PII_DEFAULTS` constant with `null` for credential fields, vitest tests verifying shape and defaults, barrel exports — all gates pass on this commit.
- [x] Add `pii-types.ts`, `retention-types.ts`, and `payload-custom-ambient.d.ts` to `packages/core-shared/src/payload/` — complete type contracts per the PRD, ambient Payload module augmentation, `PAYLOAD_AUTH_PII_DEFAULTS` constant with `null` for credential fields, vitest tests verifying shape and defaults, barrel exports — all gates pass on this commit.

View File

@@ -7,7 +7,7 @@ status: in-progress
features:
[core-shared, core-eslint, auth, blog, media, marketing-pages, navigation]
created: 2026-05-18T17:52:09Z
updated: 2026-05-18T18:06:15.725Z
updated: 2026-05-18T18:29:19.373Z
---
## Goal
@@ -16,7 +16,7 @@ Ship the declarative compliance manifests + generators so downstream consumers g
## Stories
- [ ] [01 — PII and retention type primitives in core-shared](01-pii-retention-type-primitives/_story.md)
- [x] [01 — PII and retention type primitives in core-shared](01-pii-retention-type-primitives/_story.md)
- [ ] [02 — ESLint rule pii-declaration-must-be-complete](02-eslint-rule-pii-declaration-complete/_story.md)
- [ ] [03 — ADR-022 amendment and evaluate-library skill update](03-adr-022-amendment-and-evaluate-library-skill/_story.md)
- [ ] [04 — Background retention purge job in core-shared](04-retention-purge-job/_story.md)