Skip to content

Add preference upload types and helpers to SDK - #42

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

michaelfarrell76 merged 2 commits into
mainfrom
bencmbrook/sdk-preference-format-types

Conversation

@michaelfarrell76

@michaelfarrell76 michaelfarrell76 commented Mar 31, 2026 •

Copy link
Copy Markdown
Member

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

pkg-pr-new Bot commented Mar 31, 2026 •

Copy link
Copy Markdown

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
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