Skip to content

feat(template): add template getMany and get methods [DX-898] [DX-899]#2967

Open
Michael Pham (michaelphamcf) wants to merge 4 commits intofeat/dx-897-scaffold-template-entityfrom
feat/dx-898-899-template-getmany-get
Open

feat(template): add template getMany and get methods [DX-898] [DX-899]#2967
Michael Pham (michaelphamcf) wants to merge 4 commits intofeat/dx-897-scaffold-template-entityfrom
feat/dx-898-899-template-getmany-get

Conversation

@michaelphamcf
Copy link
Copy Markdown
Contributor

@michaelphamcf Michael Pham (michaelphamcf) commented Apr 6, 2026

Summary

  • Adds getMany and get methods for the Template entity (DX-898, DX-899)
  • Sets up all structural wiring for the Template entity in the SDK type system (DX-898)

Description

DX-898 — getMany:

  • Creates lib/adapters/REST/endpoints/template.ts with getMany (GET /templates)
  • Registers Template in lib/adapters/REST/endpoints/index.ts
  • Adds Template MRActions block and MakeRequest overloads to lib/common-types.ts
  • Creates lib/plain/entities/template.ts with TemplatePlainClientAPI
  • Wires template.getMany in lib/plain/plain-client.ts and lib/plain/plain-client-types.ts
  • 3 unit tests

DX-899 — get:

  • Adds get to the adapter (GET /templates/:templateId)
  • Extends TemplatePlainClientAPI, MRActions, MakeRequest overloads, and plain-client.ts
  • 1 unit test

This branch is based on feat/exo with feat/dx-897-scaffold-template-entity merged in.

PR Checklist

  • I have read the CONTRIBUTING.md file
  • All commits follow conventional commits
  • Documentation is updated (if necessary)
  • PR doesn't contain any sensitive information
  • There are no breaking changes

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@bito-code-review
Copy link
Copy Markdown

bito-code-review bot commented Apr 6, 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.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@michaelphamcf Michael Pham (michaelphamcf) marked this pull request as ready for review April 6, 2026 21:41
@michaelphamcf Michael Pham (michaelphamcf) requested a review from a team as a code owner April 6, 2026 21:41
@michaelphamcf Michael Pham (michaelphamcf) changed the base branch from feat/exo to feat/dx-897-scaffold-template-entity April 6, 2026 22:07
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.

1 participant