Skip to content

Commit 2d37958

Browse files
committed
restore types
1 parent 283dcda commit 2d37958

File tree

3 files changed

+579
-0
lines changed
  • packages/openapi-fetch/examples

3 files changed

+579
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,193 @@
1+
/**
2+
* This file was auto-generated by openapi-typescript.
3+
* Do not make direct changes to the file.
4+
*/
5+
6+
7+
export interface paths {
8+
"/breeds": {
9+
/**
10+
* Get a list of breeds
11+
* @description Returns a a list of breeds
12+
*/
13+
get: operations["getBreeds"];
14+
};
15+
"/fact": {
16+
/**
17+
* Get Random Fact
18+
* @description Returns a random fact
19+
*/
20+
get: operations["getRandomFact"];
21+
};
22+
"/facts": {
23+
/**
24+
* Get a list of facts
25+
* @description Returns a a list of facts
26+
*/
27+
get: operations["getFacts"];
28+
};
29+
}
30+
31+
export type webhooks = Record<string, never>;
32+
33+
export interface components {
34+
schemas: {
35+
/**
36+
* Breed model
37+
* @description Breed
38+
*/
39+
Breed: {
40+
/**
41+
* Breed
42+
* Format: string
43+
* @description Breed
44+
*/
45+
breed?: string;
46+
/**
47+
* Country
48+
* Format: string
49+
* @description Country
50+
*/
51+
country?: string;
52+
/**
53+
* Origin
54+
* Format: string
55+
* @description Origin
56+
*/
57+
origin?: string;
58+
/**
59+
* Coat
60+
* Format: string
61+
* @description Coat
62+
*/
63+
coat?: string;
64+
/**
65+
* Pattern
66+
* Format: string
67+
* @description Pattern
68+
*/
69+
pattern?: string;
70+
};
71+
/**
72+
* CatFact model
73+
* @description CatFact
74+
*/
75+
CatFact: {
76+
/**
77+
* Fact
78+
* Format: string
79+
* @description Fact
80+
*/
81+
fact?: string;
82+
/**
83+
* Length
84+
* Format: int32
85+
* @description Length
86+
*/
87+
length?: number;
88+
};
89+
Error: {
90+
code: number;
91+
message: string;
92+
};
93+
};
94+
responses: never;
95+
parameters: never;
96+
requestBodies: never;
97+
headers: never;
98+
pathItems: never;
99+
}
100+
101+
export type $defs = Record<string, never>;
102+
103+
export type external = Record<string, never>;
104+
105+
export interface operations {
106+
107+
/**
108+
* Get a list of breeds
109+
* @description Returns a a list of breeds
110+
*/
111+
getBreeds: {
112+
parameters: {
113+
query?: {
114+
/** @description limit the amount of results returned */
115+
limit?: number;
116+
};
117+
};
118+
responses: {
119+
/** @description successful operation */
120+
200: {
121+
content: {
122+
"application/json": components["schemas"]["Breed"][];
123+
};
124+
};
125+
/** @description error */
126+
default: {
127+
content: {
128+
"application/json": components["schemas"]["Error"];
129+
};
130+
};
131+
};
132+
};
133+
/**
134+
* Get Random Fact
135+
* @description Returns a random fact
136+
*/
137+
getRandomFact: {
138+
parameters: {
139+
query?: {
140+
/** @description maximum length of returned fact */
141+
max_length?: number;
142+
};
143+
};
144+
responses: {
145+
/** @description successful operation */
146+
200: {
147+
content: {
148+
"application/json": components["schemas"]["CatFact"];
149+
};
150+
};
151+
/** @description not found */
152+
404: {
153+
content: {
154+
"application/json": components["schemas"]["Error"];
155+
};
156+
};
157+
/** @description error */
158+
default: {
159+
content: {
160+
"application/json": components["schemas"]["Error"];
161+
};
162+
};
163+
};
164+
};
165+
/**
166+
* Get a list of facts
167+
* @description Returns a a list of facts
168+
*/
169+
getFacts: {
170+
parameters: {
171+
query?: {
172+
/** @description maximum length of returned fact */
173+
max_length?: number;
174+
/** @description limit the amount of results returned */
175+
limit?: number;
176+
};
177+
};
178+
responses: {
179+
/** @description successful operation */
180+
200: {
181+
content: {
182+
"application/json": components["schemas"]["CatFact"][];
183+
};
184+
};
185+
/** @description error */
186+
default: {
187+
content: {
188+
"application/json": components["schemas"]["Error"];
189+
};
190+
};
191+
};
192+
};
193+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,193 @@
1+
/**
2+
* This file was auto-generated by openapi-typescript.
3+
* Do not make direct changes to the file.
4+
*/
5+
6+
7+
export interface paths {
8+
"/breeds": {
9+
/**
10+
* Get a list of breeds
11+
* @description Returns a a list of breeds
12+
*/
13+
get: operations["getBreeds"];
14+
};
15+
"/fact": {
16+
/**
17+
* Get Random Fact
18+
* @description Returns a random fact
19+
*/
20+
get: operations["getRandomFact"];
21+
};
22+
"/facts": {
23+
/**
24+
* Get a list of facts
25+
* @description Returns a a list of facts
26+
*/
27+
get: operations["getFacts"];
28+
};
29+
}
30+
31+
export type webhooks = Record<string, never>;
32+
33+
export interface components {
34+
schemas: {
35+
/**
36+
* Breed model
37+
* @description Breed
38+
*/
39+
Breed: {
40+
/**
41+
* Breed
42+
* Format: string
43+
* @description Breed
44+
*/
45+
breed?: string;
46+
/**
47+
* Country
48+
* Format: string
49+
* @description Country
50+
*/
51+
country?: string;
52+
/**
53+
* Origin
54+
* Format: string
55+
* @description Origin
56+
*/
57+
origin?: string;
58+
/**
59+
* Coat
60+
* Format: string
61+
* @description Coat
62+
*/
63+
coat?: string;
64+
/**
65+
* Pattern
66+
* Format: string
67+
* @description Pattern
68+
*/
69+
pattern?: string;
70+
};
71+
/**
72+
* CatFact model
73+
* @description CatFact
74+
*/
75+
CatFact: {
76+
/**
77+
* Fact
78+
* Format: string
79+
* @description Fact
80+
*/
81+
fact?: string;
82+
/**
83+
* Length
84+
* Format: int32
85+
* @description Length
86+
*/
87+
length?: number;
88+
};
89+
Error: {
90+
code: number;
91+
message: string;
92+
};
93+
};
94+
responses: never;
95+
parameters: never;
96+
requestBodies: never;
97+
headers: never;
98+
pathItems: never;
99+
}
100+
101+
export type $defs = Record<string, never>;
102+
103+
export type external = Record<string, never>;
104+
105+
export interface operations {
106+
107+
/**
108+
* Get a list of breeds
109+
* @description Returns a a list of breeds
110+
*/
111+
getBreeds: {
112+
parameters: {
113+
query?: {
114+
/** @description limit the amount of results returned */
115+
limit?: number;
116+
};
117+
};
118+
responses: {
119+
/** @description successful operation */
120+
200: {
121+
content: {
122+
"application/json": components["schemas"]["Breed"][];
123+
};
124+
};
125+
/** @description error */
126+
default: {
127+
content: {
128+
"application/json": components["schemas"]["Error"];
129+
};
130+
};
131+
};
132+
};
133+
/**
134+
* Get Random Fact
135+
* @description Returns a random fact
136+
*/
137+
getRandomFact: {
138+
parameters: {
139+
query?: {
140+
/** @description maximum length of returned fact */
141+
max_length?: number;
142+
};
143+
};
144+
responses: {
145+
/** @description successful operation */
146+
200: {
147+
content: {
148+
"application/json": components["schemas"]["CatFact"];
149+
};
150+
};
151+
/** @description not found */
152+
404: {
153+
content: {
154+
"application/json": components["schemas"]["Error"];
155+
};
156+
};
157+
/** @description error */
158+
default: {
159+
content: {
160+
"application/json": components["schemas"]["Error"];
161+
};
162+
};
163+
};
164+
};
165+
/**
166+
* Get a list of facts
167+
* @description Returns a a list of facts
168+
*/
169+
getFacts: {
170+
parameters: {
171+
query?: {
172+
/** @description maximum length of returned fact */
173+
max_length?: number;
174+
/** @description limit the amount of results returned */
175+
limit?: number;
176+
};
177+
};
178+
responses: {
179+
/** @description successful operation */
180+
200: {
181+
content: {
182+
"application/json": components["schemas"]["CatFact"][];
183+
};
184+
};
185+
/** @description error */
186+
default: {
187+
content: {
188+
"application/json": components["schemas"]["Error"];
189+
};
190+
};
191+
};
192+
};
193+
}

0 commit comments

Comments
 (0)