38 lines
806 B
TypeScript
38 lines
806 B
TypeScript
import { defineConfig } from "orval";
|
|
|
|
export default defineConfig({
|
|
lincodex: {
|
|
input: {
|
|
target: "../../api/core/openapi.bundle.yml",
|
|
},
|
|
output: {
|
|
mode: "tags-split",
|
|
target: "../src/shared/api/endpoints",
|
|
indexFiles: true,
|
|
schemas: {
|
|
path: "../src/shared/api/schemas",
|
|
type: "zod",
|
|
splitByTags: true,
|
|
},
|
|
client: "react-query",
|
|
httpClient: "fetch",
|
|
mock: {
|
|
indexMockFiles: true,
|
|
generators: [{ type: "msw" }],
|
|
},
|
|
override: {
|
|
mutator: {
|
|
path: "../src/shared/api/client.ts",
|
|
name: "apiRequest",
|
|
},
|
|
fetch: {
|
|
includeHttpResponseReturnType: false,
|
|
},
|
|
query: {
|
|
signal: true,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
});
|