Skip to content

feat: support templateId in CreateExperienceProps for template-backed experiences [DX-982]#3006

Merged
Tyler Pina (tylerpina) merged 4 commits intofeat/exofrom
dx-982-templateid-create-experience-props
Apr 28, 2026
Merged

feat: support templateId in CreateExperienceProps for template-backed experiences [DX-982]#3006
Tyler Pina (tylerpina) merged 4 commits intofeat/exofrom
dx-982-templateid-create-experience-props

Conversation

@tylerpina
Copy link
Copy Markdown
Contributor

@tylerpina Tyler Pina (tylerpina) commented Apr 28, 2026

DX-982

Summary

  • Extends CreateExperienceProps to a discriminated union accepting either componentTypeId (component-type-backed) or templateId (template-backed), mirroring the upstream ExperienceConfigSchema
  • Fixes the update REST adapter to extract templateId from sys.template.sys.id when updating a template-backed experience (previously only componentTypeId was handled)
  • Updates the plain client create JSDoc example to document both creation paths

Test plan

  • tsc --noEmit passes on feat/exo
  • Unit test: create with templateId sends correct body
  • Unit test: update with sys.template sends templateId (not componentTypeId) in body
  • npm run test:unit — all 818 tests pass

Generated with Claude Code

@tylerpina Tyler Pina (tylerpina) requested a review from a team as a code owner April 28, 2026 16:52
@bito-code-review
Copy link
Copy Markdown

bito-code-review Bot commented Apr 28, 2026

Bito Automatic Review Skipped - Branch Excluded

Bito didn't auto-review because the source or target branch is excluded from automatic reviews.
No action is needed if you didn't intend for the agent to review it. Otherwise, to manually trigger a review, type /review in a comment and save.
You can change the branch exclusion settings here, or contact your Bito workspace admin at michael.pearce@contentful.com.

@tylerpina Tyler Pina (tylerpina) merged commit eabb521 into feat/exo Apr 28, 2026
16 checks passed
@tylerpina Tyler Pina (tylerpina) deleted the dx-982-templateid-create-experience-props branch April 28, 2026 18:36
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