Skip to content

Commit a2e3f07

Browse files
committed
refactor: use generated client
1 parent 5449d9e commit a2e3f07

File tree

14 files changed

+931
-191
lines changed

14 files changed

+931
-191
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ jobs:
2626
id: upload-json-openapi-spec
2727
uses: ./
2828
with:
29-
dry-run: true
29+
# dry-run: true
3030
hey-api-token: ${{ secrets.HEY_API_TOKEN }}
3131
path-to-openapi: ./openapi.json
3232

3333
- name: Upload YAML OpenAPI spec
3434
id: upload-yaml-openapi-spec
3535
uses: ./
3636
with:
37-
dry-run: true
37+
# dry-run: true
3838
hey-api-token: ${{ secrets.HEY_API_TOKEN }}
3939
path-to-openapi: ./openapi.yaml

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
engine-strict=true
2+
save-exact=true

dist/index.js

Lines changed: 144 additions & 83 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/licenses.txt

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi-ts.config.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { defineConfig } from '@hey-api/openapi-ts'
2+
3+
export default defineConfig({
4+
input: {
5+
path: `https://api.heyapi.dev/v1/get/hey-api/backend?api_key=${process.env.HEY_API_USER_TOKEN}`,
6+
include:
7+
'^(#/paths/v1/specifications/post|#/components/schemas/Specification)$'
8+
},
9+
output: './src/client',
10+
plugins: [
11+
{
12+
exportFromIndex: true,
13+
name: '@hey-api/client-fetch'
14+
},
15+
'@hey-api/typescript',
16+
'@hey-api/sdk'
17+
]
18+
})

0 commit comments

Comments
 (0)