Skip to content

Add preference upload types and helpers to SDK#42

Merged
michaelfarrell76 merged 2 commits intomainfrom
bencmbrook/sdk-preference-format-types
Mar 31, 2026
Merged

Add preference upload types and helpers to SDK#42
michaelfarrell76 merged 2 commits intomainfrom
bencmbrook/sdk-preference-format-types

Conversation

@michaelfarrell76
Copy link
Copy Markdown
Member

@michaelfarrell76 michaelfarrell76 commented Mar 31, 2026

Summary

  • Adds FileFormatState codec — schema-only CSV column mapping type (identifiers, purposes, timestamps, metadata) without upload receipts
  • Adds RequestUploadReceipts codec — tracks upload progress, conflicts, failures, and successes
  • Adds loadReferenceData helper — fetches purposes, preference topics, and identifiers from the org in parallel
  • Adds getPreferenceIdentifiersFromRow — extracts identifiers from a CSV row given a column-to-identifier mapping
  • Adds getUniquePreferenceIdentifierNamesFromRow — extracts unique identifiers from a CSV row
  • Tests for both identifier helpers

Test plan

  • SDK builds cleanly
  • All SDK tests pass (16 tests)
  • Pre-commit and pre-push hooks pass

Made with Cursor

- FileFormatState codec (schema-only CSV column mapping)
- RequestUploadReceipts codec (upload progress tracking)
- loadReferenceData (fetches purposes, topics, identifiers in parallel)
- getPreferenceIdentifiersFromRow + getUniquePreferenceIdentifierNamesFromRow
- Tests for both identifier helpers

Made-with: Cursor
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Mar 31, 2026

Open in StackBlitz

@transcend-io/cli

pnpm add https://pkg.pr.new/transcend-io/tools/@transcend-io/cli@42
yarn add https://pkg.pr.new/transcend-io/tools/@transcend-io/cli@42.tgz

@transcend-io/privacy-types

pnpm add https://pkg.pr.new/transcend-io/tools/@transcend-io/privacy-types@42
yarn add https://pkg.pr.new/transcend-io/tools/@transcend-io/privacy-types@42.tgz

@transcend-io/sdk

pnpm add https://pkg.pr.new/transcend-io/tools/@transcend-io/sdk@42
yarn add https://pkg.pr.new/transcend-io/tools/@transcend-io/sdk@42.tgz

@transcend-io/utils

pnpm add https://pkg.pr.new/transcend-io/tools/@transcend-io/utils@42
yarn add https://pkg.pr.new/transcend-io/tools/@transcend-io/utils@42.tgz

commit: a5f8735

@michaelfarrell76 michaelfarrell76 requested review from a team and bencmbrook March 31, 2026 01:34
@michaelfarrell76 michaelfarrell76 added this pull request to the merge queue Mar 31, 2026
Merged via the queue into main with commit d777dd4 Mar 31, 2026
4 checks passed
@michaelfarrell76 michaelfarrell76 deleted the bencmbrook/sdk-preference-format-types branch March 31, 2026 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants