@shoppexio/theme-control-client
v0.9.0
Published
Shared Shoppex theme control plane client
Maintainers
Readme
@shoppexio/theme-control-client
Small API client for Shoppex theme automation. It supports listing themes and reading or updating a theme's settings and ThemeDocument data.
Document-authoritative edit flow:
getThemeDocumentDraft(themeId)returns the complete document and its revision.- Modify the complete document locally.
saveDocument(themeId, document, revision)performs a revision-gated save.publishDocument(themeId, savedRevision)publishes exactly the revision returned by the save.
A 409 means another editor saved first: read the latest draft and reconcile. A 422 means the document is not valid or renderable and must be fixed before publishing.
Authentication uses a Shoppex developer API key.
