@gobodo/gobodo-api-heyapi 0.0.0-stage → 1.0.0

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.
Files changed (74) hide show
  1. package/README.md +40 -2
  2. package/dist/client/@tanstack/react-query.gen.d.ts +12087 -0
  3. package/dist/client/@tanstack/react-query.gen.d.ts.map +1 -0
  4. package/dist/client/@tanstack/react-query.gen.js +16889 -0
  5. package/dist/client/@tanstack/react-query.gen.js.map +1 -0
  6. package/dist/client/client/client.gen.d.ts +3 -0
  7. package/dist/client/client/client.gen.d.ts.map +1 -0
  8. package/dist/client/client/client.gen.js +236 -0
  9. package/dist/client/client/client.gen.js.map +1 -0
  10. package/dist/client/client/index.d.ts +9 -0
  11. package/dist/client/client/index.d.ts.map +1 -0
  12. package/dist/client/client/index.js +7 -0
  13. package/dist/client/client/index.js.map +1 -0
  14. package/dist/client/client/types.gen.d.ts +118 -0
  15. package/dist/client/client/types.gen.d.ts.map +1 -0
  16. package/dist/client/client/types.gen.js +3 -0
  17. package/dist/client/client/types.gen.js.map +1 -0
  18. package/dist/client/client/utils.gen.d.ts +34 -0
  19. package/dist/client/client/utils.gen.d.ts.map +1 -0
  20. package/dist/client/client/utils.gen.js +231 -0
  21. package/dist/client/client/utils.gen.js.map +1 -0
  22. package/dist/client/client.gen.d.ts +13 -0
  23. package/dist/client/client.gen.d.ts.map +1 -0
  24. package/dist/client/client.gen.js +4 -0
  25. package/dist/client/client.gen.js.map +1 -0
  26. package/dist/client/core/auth.gen.d.ts +19 -0
  27. package/dist/client/core/auth.gen.d.ts.map +1 -0
  28. package/dist/client/core/auth.gen.js +15 -0
  29. package/dist/client/core/auth.gen.js.map +1 -0
  30. package/dist/client/core/bodySerializer.gen.d.ts +26 -0
  31. package/dist/client/core/bodySerializer.gen.d.ts.map +1 -0
  32. package/dist/client/core/bodySerializer.gen.js +58 -0
  33. package/dist/client/core/bodySerializer.gen.js.map +1 -0
  34. package/dist/client/core/params.gen.d.ts +44 -0
  35. package/dist/client/core/params.gen.d.ts.map +1 -0
  36. package/dist/client/core/params.gen.js +101 -0
  37. package/dist/client/core/params.gen.js.map +1 -0
  38. package/dist/client/core/pathSerializer.gen.d.ts +34 -0
  39. package/dist/client/core/pathSerializer.gen.d.ts.map +1 -0
  40. package/dist/client/core/pathSerializer.gen.js +107 -0
  41. package/dist/client/core/pathSerializer.gen.js.map +1 -0
  42. package/dist/client/core/queryKeySerializer.gen.d.ts +19 -0
  43. package/dist/client/core/queryKeySerializer.gen.d.ts.map +1 -0
  44. package/dist/client/core/queryKeySerializer.gen.js +93 -0
  45. package/dist/client/core/queryKeySerializer.gen.js.map +1 -0
  46. package/dist/client/core/serverSentEvents.gen.d.ts +72 -0
  47. package/dist/client/core/serverSentEvents.gen.d.ts.map +1 -0
  48. package/dist/client/core/serverSentEvents.gen.js +134 -0
  49. package/dist/client/core/serverSentEvents.gen.js.map +1 -0
  50. package/dist/client/core/types.gen.d.ts +79 -0
  51. package/dist/client/core/types.gen.d.ts.map +1 -0
  52. package/dist/client/core/types.gen.js +3 -0
  53. package/dist/client/core/types.gen.js.map +1 -0
  54. package/dist/client/core/utils.gen.d.ts +20 -0
  55. package/dist/client/core/utils.gen.d.ts.map +1 -0
  56. package/dist/client/core/utils.gen.js +88 -0
  57. package/dist/client/core/utils.gen.js.map +1 -0
  58. package/dist/client/index.d.ts +3 -0
  59. package/dist/client/index.d.ts.map +1 -0
  60. package/dist/client/index.js +3 -0
  61. package/dist/client/index.js.map +1 -0
  62. package/dist/client/sdk.gen.d.ts +2316 -0
  63. package/dist/client/sdk.gen.d.ts.map +1 -0
  64. package/dist/client/sdk.gen.js +9000 -0
  65. package/dist/client/sdk.gen.js.map +1 -0
  66. package/dist/client/types.gen.d.ts +79754 -0
  67. package/dist/client/types.gen.d.ts.map +1 -0
  68. package/dist/client/types.gen.js +3 -0
  69. package/dist/client/types.gen.js.map +1 -0
  70. package/dist/index.d.ts +2 -0
  71. package/dist/index.d.ts.map +1 -0
  72. package/dist/index.js +2 -0
  73. package/dist/index.js.map +1 -0
  74. package/package.json +46 -4
package/README.md CHANGED
@@ -1,3 +1,41 @@
1
- # Temporary Holding Version
1
+ # gobodo-api-heyapi
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
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
+ ```