Repository navigation
Edit Etsy shop settings, sections and return policies (shops_w) - #2002
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Etsy sellers asked to change their shop from the AI client: title, announcement, policies and sections. The Etsy connector only read them, because it did not ask for Etsy's
shops_wscope. This adds the scope and seven tools on Etsy's documented endpoints (updateShop, create/update/deleteShopSection, create/update/deleteShopReturnPolicy).Changes
etsy.json: scopes gainshops_w. The previous list is appended topreviousOAuthScopes, so existing connectors get the new list the next time someone clicks Authorize with Provider (same mechanism aslistings_win October).etsy_edit_shop(title, announcement, sale messages,policy_additionalfor EU shops only),etsy_add_shop_section,etsy_rename_shop_section,etsy_delete_shop_section,etsy_add_return_policy,etsy_edit_return_policy,etsy_delete_return_policy. Both deletes install switched off, like the other Etsy deletes. Bodies are form-urlencoded as Etsy's OpenAPI spec says; path ids are encoded.etsy_update_shopandetsy_create_shop_section: customers already created tools with those names on their own Etsy connectors, and a catalog tool with the same name would show up as an update to their tool.Existing connectors: every current tool keeps working with the old token. Only the new tools answer "Access token lacks scope" until the connector is authorized again. Same in Cloud and self-hosted (catalog adapter, no deployment-specific code).
Type
Testing
Commands run in
packages/backend(afternpm ciandprisma generate):npx jest --maxWorkers=3 src/adapters/intl/etsy src/connectors/oauth-authorize-settings src/connectors/connectors.controller src/connectors/catalog-resync src/adapters/catalog: 24306 passed, 0 failed.npx eslinton the four changed specs: clean.From the repository root:
node scripts/validate-adapters.mjs --warn: 996 passed, 0 failed, 1438 warnings, the same count as on main (none for Etsy).node scripts/regenerate-catalog.mjs: no diff.node scripts/adapter-count.mjs --check: OK.node scripts/generate-llms-txt.mjs: no diff.Not run against a live Etsy shop: the request shapes follow Etsy's OpenAPI spec (
https://www.etsy.com/openapi/generated/oas/3.0.0.json).Checklist
docs/catalog/connectors/etsy.mdis generated from the website repository.