-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem? Please describe.
Each block's SDK method wraps sdk.makeRequest with repetitive boilerplate code. The header merging pattern (...getApiHeaders(), ...headers, ...authorization) is copy-pasted across every method in every block. Additionally, the factory-that-returns-object-with-blocks-property pattern is non-obvious and adds complexity.
Describe the solution you'd like
Create a createBlockMethod helper function that handles:
- Header merging (combining
getApiHeaders(), custom headers, and authorization) - Params serialization
- Response typing
- Error wrapping
This helper should simplify SDK method creation and reduce boilerplate across all block SDKs.
Additional context (if applicable)
- Phase: 6 — Abstraction & Convenience
- Original priority: Medium-High effort, High impact
- Medium priority - SDK is usually built once per block, but such a convenience would be useful
- Will improve developer experience when creating new block SDKs
This repo is using Opire - what does it mean? 👇
💵 Everyone can add rewards for this issue commenting
/reward 100 (replace 100 with the amount).🕵️♂️ If someone starts working on this issue to earn the rewards, they can comment
/try to let everyone know!🙌 And when they open the PR, they can comment
/claim #770 either in the PR description or in a PR's comment.🪙 Also, everyone can tip any user commenting
/tip 20 @tomaszpacior (replace 20 with the amount, and @tomaszpacior with the user to tip).📖 If you want to learn more, check out our documentation.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Status
In progress