Skip to content

feat: add buildRaw() to WasapiClient.Builder#35

Closed
Umutayb wants to merge 1 commit intomainfrom
feat/build-raw
Closed

feat: add buildRaw() to WasapiClient.Builder#35
Umutayb wants to merge 1 commit intomainfrom
feat/build-raw

Conversation

@Umutayb
Copy link
Copy Markdown
Owner

@Umutayb Umutayb commented Apr 6, 2026

Summary

  • Adds buildRaw() method to WasapiClient.Builder that returns a raw WasapiClient instance
  • Enables direct execute() calls without needing a decorated API class
  • Used by @civitas-cerebrum/singularity Steps API for generic HTTP methods

Why

The existing build(ApiClass) requires a decorated class with @GET/@POST methods. For singularity's steps.apiGet('/path') pattern, we need a raw client that can call execute() with arbitrary method/path/body.

Test plan

  • TypeScript compiles clean
  • Existing tests pass
  • Publish as 0.0.1 after merge

Powered by Civitas Cerebrum

Returns a raw WasapiClient instance for direct execute() calls
without needing a decorated API class. Used by singularity's
Steps API for generic HTTP methods.

Powered by Civitas Cerebrum
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 6, 2026

📊 API Coverage Report

API Coverage

Build Passed: 100% API Coverage!

🔍 View Detailed Coverage Breakdown

ApiCall: 6/6
[x] clone
[x] perform
[x] getResponse
[x] getResponsePair
[x] monitorResponseCode
[x] monitorFieldValue

ApiResponse: 3/3
[x] isSuccessful
[x] errorBody
[x] fromFetch

ResponsePair: 1/1
[x] isError

WasapiClient: 2/2
[x] execute
[x] build

Plain report generated by @civitas-cerebrum/test-coverage · 2026-04-06

@Umutayb Umutayb closed this Apr 6, 2026
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