wip
This commit is contained in:
commit
f378eeb265
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
node_modules
|
1604
dist/index.cjs
vendored
Normal file
1604
dist/index.cjs
vendored
Normal file
File diff suppressed because it is too large
Load Diff
3428
dist/index.d.cts
vendored
Normal file
3428
dist/index.d.cts
vendored
Normal file
File diff suppressed because one or more lines are too long
3428
dist/index.d.mts
vendored
Normal file
3428
dist/index.d.mts
vendored
Normal file
File diff suppressed because one or more lines are too long
3428
dist/index.d.ts
vendored
Normal file
3428
dist/index.d.ts
vendored
Normal file
File diff suppressed because one or more lines are too long
1490
dist/index.mjs
vendored
Normal file
1490
dist/index.mjs
vendored
Normal file
File diff suppressed because it is too large
Load Diff
7
openapi-ts.config.ts
Normal file
7
openapi-ts.config.ts
Normal file
@ -0,0 +1,7 @@
|
||||
import { defineConfig } from '@hey-api/openapi-ts';
|
||||
|
||||
export default defineConfig({
|
||||
input: 'https://run.lauf-fuer-kaya.de/api/docs/openapi.json',
|
||||
output: 'src',
|
||||
plugins: ['@hey-api/client-fetch'],
|
||||
});
|
34
package.json
Normal file
34
package.json
Normal file
@ -0,0 +1,34 @@
|
||||
{
|
||||
"type": "module",
|
||||
"name": "@odit/lfk-client",
|
||||
"version": "0.0.1",
|
||||
"description": "",
|
||||
"scripts": {
|
||||
"build": "openapi-ts && unbuild"
|
||||
},
|
||||
"exports": {
|
||||
".": {
|
||||
"require": "./dist/index.cjs",
|
||||
"import": "./dist/index.mjs",
|
||||
"types": "./dist/index.d.ts"
|
||||
}
|
||||
},
|
||||
"main": "./dist/index.cjs",
|
||||
"module": "./dist/index.mjs",
|
||||
"types": "./dist/index.d.ts",
|
||||
"keywords": [],
|
||||
"files": [
|
||||
"./package.json",
|
||||
"./dist"
|
||||
],
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"packageManager": "pnpm@10.6.4",
|
||||
"dependencies": {
|
||||
"@hey-api/client-fetch": "^0.8.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@hey-api/openapi-ts": "^0.64.12",
|
||||
"unbuild": "^3.5.0"
|
||||
}
|
||||
}
|
2191
pnpm-lock.yaml
generated
Normal file
2191
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
18
src/client.gen.ts
Normal file
18
src/client.gen.ts
Normal file
@ -0,0 +1,18 @@
|
||||
// This file is auto-generated by @hey-api/openapi-ts
|
||||
|
||||
import type { ClientOptions } from './types.gen';
|
||||
import { type Config, type ClientOptions as DefaultClientOptions, createClient, createConfig } from '@hey-api/client-fetch';
|
||||
|
||||
/**
|
||||
* The `createClientConfig()` function will be called on client initialization
|
||||
* and the returned object will become the client's initial configuration.
|
||||
*
|
||||
* You may want to initialize your client this way instead of calling
|
||||
* `setConfig()`. This is useful for example if you're using Next.js
|
||||
* to ensure your client always has the correct values.
|
||||
*/
|
||||
export type CreateClientConfig<T extends DefaultClientOptions = ClientOptions> = (override?: Config<DefaultClientOptions & T>) => Config<Required<DefaultClientOptions> & T>;
|
||||
|
||||
export const client = createClient(createConfig<ClientOptions>({
|
||||
baseUrl: 'https://run.lauf-fuer-kaya.de'
|
||||
}));
|
3
src/index.ts
Normal file
3
src/index.ts
Normal file
@ -0,0 +1,3 @@
|
||||
// This file is auto-generated by @hey-api/openapi-ts
|
||||
export * from './types.gen';
|
||||
export * from './sdk.gen';
|
2070
src/sdk.gen.ts
Normal file
2070
src/sdk.gen.ts
Normal file
File diff suppressed because one or more lines are too long
3490
src/types.gen.ts
Normal file
3490
src/types.gen.ts
Normal file
File diff suppressed because it is too large
Load Diff
17
tsconfig.json
Normal file
17
tsconfig.json
Normal file
@ -0,0 +1,17 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"rootDir": ".",
|
||||
"target": "es2018",
|
||||
"module": "esnext",
|
||||
"lib": [
|
||||
"esnext"
|
||||
],
|
||||
"moduleResolution": "node",
|
||||
"esModuleInterop": true,
|
||||
"strict": true,
|
||||
"strictNullChecks": true,
|
||||
"resolveJsonModule": true,
|
||||
"skipLibCheck": true,
|
||||
"skipDefaultLibCheck": true
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user