mirror of
https://github.com/pterodactyl/panel.git
synced 2026-11-30 11:25:52 -05:00
Co-authored-by: Anthony <anthony@infraly.co> Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
35 lines
984 B
TypeScript
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,
|
|
},
|
|
],
|
|
});
|