@gobodo/gobodo-api-heyapi 0.0.0-stage → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -2
- package/dist/client/@tanstack/react-query.gen.d.ts +12130 -0
- package/dist/client/@tanstack/react-query.gen.d.ts.map +1 -0
- package/dist/client/@tanstack/react-query.gen.js +16985 -0
- package/dist/client/@tanstack/react-query.gen.js.map +1 -0
- package/dist/client/client/client.gen.d.ts +3 -0
- package/dist/client/client/client.gen.d.ts.map +1 -0
- package/dist/client/client/client.gen.js +236 -0
- package/dist/client/client/client.gen.js.map +1 -0
- package/dist/client/client/index.d.ts +9 -0
- package/dist/client/client/index.d.ts.map +1 -0
- package/dist/client/client/index.js +7 -0
- package/dist/client/client/index.js.map +1 -0
- package/dist/client/client/types.gen.d.ts +118 -0
- package/dist/client/client/types.gen.d.ts.map +1 -0
- package/dist/client/client/types.gen.js +3 -0
- package/dist/client/client/types.gen.js.map +1 -0
- package/dist/client/client/utils.gen.d.ts +34 -0
- package/dist/client/client/utils.gen.d.ts.map +1 -0
- package/dist/client/client/utils.gen.js +231 -0
- package/dist/client/client/utils.gen.js.map +1 -0
- package/dist/client/client.gen.d.ts +13 -0
- package/dist/client/client.gen.d.ts.map +1 -0
- package/dist/client/client.gen.js +4 -0
- package/dist/client/client.gen.js.map +1 -0
- package/dist/client/core/auth.gen.d.ts +19 -0
- package/dist/client/core/auth.gen.d.ts.map +1 -0
- package/dist/client/core/auth.gen.js +15 -0
- package/dist/client/core/auth.gen.js.map +1 -0
- package/dist/client/core/bodySerializer.gen.d.ts +26 -0
- package/dist/client/core/bodySerializer.gen.d.ts.map +1 -0
- package/dist/client/core/bodySerializer.gen.js +58 -0
- package/dist/client/core/bodySerializer.gen.js.map +1 -0
- package/dist/client/core/params.gen.d.ts +44 -0
- package/dist/client/core/params.gen.d.ts.map +1 -0
- package/dist/client/core/params.gen.js +101 -0
- package/dist/client/core/params.gen.js.map +1 -0
- package/dist/client/core/pathSerializer.gen.d.ts +34 -0
- package/dist/client/core/pathSerializer.gen.d.ts.map +1 -0
- package/dist/client/core/pathSerializer.gen.js +107 -0
- package/dist/client/core/pathSerializer.gen.js.map +1 -0
- package/dist/client/core/queryKeySerializer.gen.d.ts +19 -0
- package/dist/client/core/queryKeySerializer.gen.d.ts.map +1 -0
- package/dist/client/core/queryKeySerializer.gen.js +93 -0
- package/dist/client/core/queryKeySerializer.gen.js.map +1 -0
- package/dist/client/core/serverSentEvents.gen.d.ts +72 -0
- package/dist/client/core/serverSentEvents.gen.d.ts.map +1 -0
- package/dist/client/core/serverSentEvents.gen.js +134 -0
- package/dist/client/core/serverSentEvents.gen.js.map +1 -0
- package/dist/client/core/types.gen.d.ts +79 -0
- package/dist/client/core/types.gen.d.ts.map +1 -0
- package/dist/client/core/types.gen.js +3 -0
- package/dist/client/core/types.gen.js.map +1 -0
- package/dist/client/core/utils.gen.d.ts +20 -0
- package/dist/client/core/utils.gen.d.ts.map +1 -0
- package/dist/client/core/utils.gen.js +88 -0
- package/dist/client/core/utils.gen.js.map +1 -0
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +3 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/sdk.gen.d.ts +2340 -0
- package/dist/client/sdk.gen.d.ts.map +1 -0
- package/dist/client/sdk.gen.js +9048 -0
- package/dist/client/sdk.gen.js.map +1 -0
- package/dist/client/types.gen.d.ts +80143 -0
- package/dist/client/types.gen.d.ts.map +1 -0
- package/dist/client/types.gen.js +3 -0
- package/dist/client/types.gen.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/package.json +46 -4
package/README.md
CHANGED
|
@@ -1,3 +1,41 @@
|
|
|
1
|
-
#
|
|
1
|
+
# gobodo-api-heyapi
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
TypeScript client for the Gobodo graph API, generated from the **Spring Boot v1** OpenAPI spec (`/graph/api/v1/api-docs`) with [`@hey-api/openapi-ts`](https://heyapi.dev). Emits typed SDK calls on `@hey-api/client-fetch` plus optional TanStack Query `queryOptions`/`mutationOptions` wrappers.
|
|
4
|
+
|
|
5
|
+
For the legacy `/graph/data` surface use `@gobodo/gobodo-api` / `@gobodo/gobodo-api-promise` (JavaScript clients); `@gobodo/gobodo-api-ts` is the `typescript-fetch` sibling for the same v1 spec.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @gobodo/gobodo-api-heyapi
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
import { createClient } from '@gobodo/gobodo-api-heyapi/client';
|
|
17
|
+
import { createObject } from '@gobodo/gobodo-api-heyapi/client/sdk.gen';
|
|
18
|
+
|
|
19
|
+
const client = createClient({ baseUrl: 'https://your-host/graph/api/v1' });
|
|
20
|
+
// TanStack Query helpers are generated too (optional peer: @tanstack/react-query).
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Regenerating
|
|
24
|
+
|
|
25
|
+
Requires a running backend (local `run/run-app.sh` from `gobodo-core`, or a remote host via `OPENAPI_HOST`). See `gobodo-docs/standards/ai-assisted-development/api-client-generation.md` for the full convention (release branches, commits, PRs).
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
make openapi-generate # localhost:8080
|
|
29
|
+
make openapi-generate OPENAPI_HOST=https://… # remote backend
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
`src/client` is wiped before each run so stale generated files can't linger.
|
|
33
|
+
|
|
34
|
+
## Publishing
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
make build
|
|
38
|
+
make publish # public npm
|
|
39
|
+
make publish-all # CodeArtifact (gobodo) + npm
|
|
40
|
+
make publish-codeartifact-private # gobodo-private (set NPM_PUBLISH_TAG for prereleases)
|
|
41
|
+
```
|