-
Notifications
You must be signed in to change notification settings - Fork 125
/
Copy pathorval.config.ts
39 lines (38 loc) · 958 Bytes
/
orval.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import { defineConfig } from "orval";
export default defineConfig({
api: {
input: "../proto/gen/rill/admin/v1/admin.swagger.yaml",
output: {
workspace: "./src/client/",
target: "gen/index.ts",
client: "svelte-query",
mode: "tags-split",
mock: false,
prettier: true,
override: {
mutator: {
path: "http-client.ts", // Relative to workspace path set above
name: "httpClient",
},
// Override queries and mutations here
operations: {
AdminService_GetDeploymentCredentials: {
query: {
useQuery: true,
},
},
AdminService_GenerateReportYAML: {
query: {
useQuery: true,
},
},
AdminService_GetBillingProjectCredentials: {
query: {
useQuery: true,
},
},
},
},
},
},
});