chore(work): finish 01-subject-linkage-types
This commit is contained in:
@@ -3,12 +3,12 @@ id: 01-subject-linkage-types
|
||||
epic: dsr-consent-and-cookie-banner
|
||||
title: Subject-linkage types in core-shared
|
||||
type: technical-story
|
||||
status: in-progress
|
||||
status: done
|
||||
feature: core-shared
|
||||
depends-on: []
|
||||
blocks: [02-audit-enum-amendment]
|
||||
created: 2026-05-19T12:00:00Z
|
||||
updated: 2026-05-19T09:55:07.020Z
|
||||
updated: 2026-05-19T10:13:17.502Z
|
||||
---
|
||||
|
||||
## Goal
|
||||
@@ -43,4 +43,4 @@ The DSR cascade (Epic B's `core-dsr`) walks `custom.subject` fields to discover
|
||||
|
||||
## Tasks
|
||||
|
||||
- [ ] Add `SubjectLink`, `SubjectLinkKind`, `CollectionSubject` types in `packages/core-shared/src/payload/subject-linkage-types.ts` + ambient declaration extending Payload `CollectionConfig.custom?` with `subject?: CollectionSubject | CollectionSubject[]` + extend `PAYLOAD_AUTH_PII_DEFAULTS` with `processingRestrictedAt` and `consentState` as excluded fields + export from `core-shared` payload barrel + add `custom.subject = { kind: "self", field: "id" }` to `packages/auth/`'s `users` collection config; all gates pass.
|
||||
- [x] Add `SubjectLink`, `SubjectLinkKind`, `CollectionSubject` types in `packages/core-shared/src/payload/subject-linkage-types.ts` + ambient declaration extending Payload `CollectionConfig.custom?` with `subject?: CollectionSubject | CollectionSubject[]` + extend `PAYLOAD_AUTH_PII_DEFAULTS` with `processingRestrictedAt` and `consentState` as excluded fields + export from `core-shared` payload barrel + add `custom.subject = { kind: "self", field: "id" }` to `packages/auth/`'s `users` collection config; all gates pass.
|
||||
|
||||
@@ -16,7 +16,7 @@ features:
|
||||
auth,
|
||||
]
|
||||
created: 2026-05-19T12:00:00Z
|
||||
updated: 2026-05-19T09:55:07.020Z
|
||||
updated: 2026-05-19T10:13:17.502Z
|
||||
---
|
||||
|
||||
## Goal
|
||||
@@ -29,7 +29,7 @@ Epic A delivered declarative PII inventory + retention + sub-processors. Epic B
|
||||
|
||||
## Stories
|
||||
|
||||
- [ ] [01 — Subject-linkage types in core-shared](01-subject-linkage-types/_story.md)
|
||||
- [x] [01 — Subject-linkage types in core-shared](01-subject-linkage-types/_story.md)
|
||||
- [ ] [02 — Audit action enum amendment (ADR-018)](02-audit-enum-amendment/_story.md)
|
||||
- [ ] [03 — core-consent foundation: types + brand + withConsent + conformance + ESLint rule](03-core-consent-foundation/_story.md)
|
||||
- [ ] [04 — core-consent implementation: Payload impl + DI + migration helpers + tRPC router](04-core-consent-implementation/_story.md)
|
||||
|
||||
Reference in New Issue
Block a user