Files
pterodactyl-panel/openapi-ts.config.ts
T
6c0413e39b Start 2.0 development
Co-authored-by: Anthony <anthony@infraly.co>
Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
2026-10-05 18:10:18 -04:00

35 lines
984 B
TypeScript

import { defineConfig } from '@hey-api/openapi-ts';
export default defineConfig({
input: 'storage/app/private/scribe/openapi.yaml',
output: {
path: 'resources/scripts/api/generated',
clean: true,
header: [
'// Generated by @hey-api/openapi-ts.',
'// Do not edit this directory by hand; run npm run api:generate instead.',
],
},
plugins: [
'@hey-api/typescript',
{
name: '@hey-api/client-axios',
baseUrl: false,
runtimeConfigPath: './resources/scripts/api/hey-api-runtime',
throwOnError: true,
},
{
name: '@hey-api/sdk',
client: '@hey-api/client-axios',
paramsStructure: 'grouped',
},
{
name: '@tanstack/react-query',
queryKeys: true,
queryOptions: true,
mutationKeys: true,
mutationOptions: true,
},
],
});