This commit is contained in:
Philipp Dormann 2025-03-18 00:07:57 +01:00
commit f378eeb265
Signed by: philipp
GPG Key ID: 3BB9ADD52DCA4314
14 changed files with 21209 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
node_modules

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

File diff suppressed because one or more lines are too long

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

File diff suppressed because one or more lines are too long

1490
dist/index.mjs vendored Normal file

File diff suppressed because it is too large Load Diff

7
openapi-ts.config.ts Normal file
View 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
View 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

File diff suppressed because it is too large Load Diff

18
src/client.gen.ts Normal file
View 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
View 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

File diff suppressed because one or more lines are too long

3490
src/types.gen.ts Normal file

File diff suppressed because it is too large Load Diff

17
tsconfig.json Normal file
View 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
}
}