Skip to content

test(templates): clone returns the new copy's id - #64

Merged
Domantas merged 2 commits into
mainfrom
feat/template-clone-id
Oct 23, 2026
Merged

Domantas merged 2 commits into
mainfrom
feat/template-clone-id

Conversation

@Domantas

Copy link
Copy Markdown
Contributor

Template clone answers the new copy's id

The gateway (refactoringV2 dcacb2fd2, 650817c07) now answers IdResponse ({"id": "…"}) for CloneEmailTemplateRequest, CloneSmsTemplateRequest and ClonePushTemplateRequest (was EmptyResponse). Additive on the wire.

clone_email_template, clone_sms_template and clone_push_template (sync and async) already return whatever the Hub answers, so no code changes:

  • docs(templates): the six docstrings say the call answers {"id": "..."}; docs/hub/notifications.md gets a "Cloning a template" section with an example.
  • test(templates): tests/hub/test_template_clone.py — one test per clone method plus one async; a fake transport answers {"id": "tpl_copy"} and the caller gets it back.

No references/ folder (removed 2026-10-22), nothing to regenerate. Commit types are docs + test, so no release by design.

Tests: ruff clean, mypy clean, pytest 1168 passed.

Not in this PR (finding for a later Routine D): the gateway now also serves routes this SDK has no method for yet — DeletePushDevice (DELETE /{version}/notifications/push/devices/{Id}), GetEnvironmentAdminUrl / UpdateEnvironmentAdminUrl (GET / PATCH /{version}/account/projects/environments/{environmentName}/admin-url) and SendTestPasswordResetRequest (POST /{version}/membership/userauth/password/reset/test, Api).

🤖 Generated with Claude Code

Domantas and others added 2 commits October 23, 2026 18:31
clone_email_template, clone_sms_template and clone_push_template already
return whatever the Hub answers. The gateway now answers an IdResponse
({"id": "..."}) for the three clone requests, so the docstrings and the
notifications page say so, with an example.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One test per clone method (email, SMS, push) and one async: a fake
transport answers {"id": "tpl_copy"} and the caller gets it back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Domantas Domantas changed the title docs+test(templates): clone returns the new copy's id test(templates): clone returns the new copy's id Oct 23, 2026
@Domantas
Domantas merged commit 429f3b8 into main Oct 23, 2026
8 of 9 checks passed
@Domantas
Domantas deleted the feat/template-clone-id branch October 23, 2026 15: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.

1 participant