Skip to content

feat(contentstack-cda): add CDA plugin for content delivery queries - #14

Merged
prosdev merged 1 commit into
mainfrom
feat/contentstack-cda-plugin
Feb 22, 2026
Merged

prosdev merged 1 commit into
mainfrom
feat/contentstack-cda-plugin

Conversation

@prosdev

@prosdev prosdev commented Feb 22, 2026

Copy link
Copy Markdown
Contributor

Summary

  • New plugin @lytics/lio-client-contentstack-cda for querying Contentstack's Content Delivery API
  • Three methods: getContentTypes(), getEntries(uid, opts?), getEntry(uid, entryUid)
  • Uses plain fetch() (not SDK Kit transport) since CDA has header-based auth and a different response envelope

Details

  • Filters built_io_* system types from content type listings
  • Title search uses $regex with proper escaping to prevent injection
  • Descriptive errors for auth failures (401/403) and network errors
  • Smoke-tested against the Jade Leaf demo stack (5 content types, 36 entries)

Test plan

  • 8 unit tests passing (filtering, headers, defaults, regex escaping, single entry, auth error, network error, empty types)
  • pnpm build produces correct ESM + .d.ts output
  • pnpm typecheck passes across all 3 packages
  • Manual smoke test against live CDA with seeded content

New plugin `@lytics/lio-client-contentstack-cda` with three methods:
- getContentTypes() — lists user-defined content types (filters built_io_* system types)
- getEntries(uid, opts?) — list entries with optional title search and pagination
- getEntry(uid, entryUid) — single entry by UID

Uses plain fetch() instead of SDK Kit transport since CDA has
header-based auth and a different response envelope than the Lytics API.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@prosdev
prosdev merged commit c2c542d into main Feb 22, 2026
1 check passed
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