types.ts 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  1. /* eslint-disable */
  2. // @ts-ignore
  3. export type ApiResponse = {
  4. code?: number;
  5. type?: string;
  6. message?: string;
  7. };
  8. export type Category = {
  9. id?: number;
  10. name?: string;
  11. };
  12. export type Order = {
  13. id?: number;
  14. petId?: number;
  15. quantity?: number;
  16. shipDate?: string;
  17. /** Order Status */
  18. status?: 'placed' | 'approved' | 'delivered';
  19. complete?: boolean;
  20. };
  21. export type Pet = {
  22. id?: number;
  23. category?: Category;
  24. name: string;
  25. photoUrls: string[];
  26. tags?: Tag[];
  27. /** pet status in the store */
  28. status?: 'available' | 'pending' | 'sold';
  29. };
  30. export type PetFindByStatusUsingGetParams = {
  31. /** Status values that need to be considered for filter */
  32. status: ('available' | 'pending' | 'sold')[];
  33. };
  34. export type PetFindByStatusUsingGetResponses = {
  35. /**
  36. * successful operation
  37. */
  38. 200: Pet[];
  39. /**
  40. * Invalid status value
  41. */
  42. 400: unknown;
  43. };
  44. export type PetFindByTagsUsingGetParams = {
  45. /** Tags to filter by */
  46. tags: string[];
  47. };
  48. export type PetFindByTagsUsingGetResponses = {
  49. /**
  50. * successful operation
  51. */
  52. 200: Pet[];
  53. /**
  54. * Invalid tag value
  55. */
  56. 400: unknown;
  57. };
  58. export type PetPetIdUploadImageUsingPostBody = {
  59. /** Additional data to pass to server */
  60. additionalMetadata?: string;
  61. /** file to upload */
  62. file?: string;
  63. };
  64. export type PetPetIdUploadImageUsingPostParams = {
  65. /** ID of pet to update */
  66. petId: number;
  67. };
  68. export type PetPetIdUploadImageUsingPostResponses = {
  69. /**
  70. * successful operation
  71. */
  72. 200: ApiResponse;
  73. };
  74. export type PetPetIdUsingDeleteParams = {
  75. /** Pet id to delete */
  76. petId: number;
  77. };
  78. export type PetPetIdUsingDeleteResponses = {
  79. /**
  80. * Invalid ID supplied
  81. */
  82. 400: unknown;
  83. /**
  84. * Pet not found
  85. */
  86. 404: unknown;
  87. };
  88. export type PetPetIdUsingGetParams = {
  89. /** ID of pet to return */
  90. petId: number;
  91. };
  92. export type PetPetIdUsingGetResponses = {
  93. /**
  94. * successful operation
  95. */
  96. 200: Pet;
  97. /**
  98. * Invalid ID supplied
  99. */
  100. 400: unknown;
  101. /**
  102. * Pet not found
  103. */
  104. 404: unknown;
  105. };
  106. export type PetPetIdUsingPostBody = {
  107. /** Updated name of the pet */
  108. name?: string;
  109. /** Updated status of the pet */
  110. status?: string;
  111. };
  112. export type PetPetIdUsingPostParams = {
  113. /** ID of pet that needs to be updated */
  114. petId: number;
  115. };
  116. export type PetPetIdUsingPostResponses = {
  117. /**
  118. * Invalid input
  119. */
  120. 405: unknown;
  121. };
  122. export type PetUsingPostResponses = {
  123. /**
  124. * Invalid input
  125. */
  126. 405: unknown;
  127. };
  128. export type PetUsingPutResponses = {
  129. /**
  130. * Invalid ID supplied
  131. */
  132. 400: unknown;
  133. /**
  134. * Pet not found
  135. */
  136. 404: unknown;
  137. /**
  138. * Validation exception
  139. */
  140. 405: unknown;
  141. };
  142. export enum StatusEnum {
  143. 'available' = 'available',
  144. 'pending' = 'pending',
  145. 'sold' = 'sold',
  146. }
  147. export type IStatusEnum = keyof typeof StatusEnum;
  148. export enum StatusEnum2 {
  149. 'placed' = 'placed',
  150. 'approved' = 'approved',
  151. 'delivered' = 'delivered',
  152. }
  153. export type IStatusEnum2 = keyof typeof StatusEnum2;
  154. export type StoreInventoryUsingGetResponses = {
  155. /**
  156. * successful operation
  157. */
  158. 200: Record<string, number>;
  159. };
  160. export type StoreOrderOrderIdUsingDeleteParams = {
  161. /** ID of the order that needs to be deleted */
  162. orderId: number;
  163. };
  164. export type StoreOrderOrderIdUsingDeleteResponses = {
  165. /**
  166. * Invalid ID supplied
  167. */
  168. 400: unknown;
  169. /**
  170. * Order not found
  171. */
  172. 404: unknown;
  173. };
  174. export type StoreOrderOrderIdUsingGetParams = {
  175. /** ID of pet that needs to be fetched */
  176. orderId: number;
  177. };
  178. export type StoreOrderOrderIdUsingGetResponses = {
  179. /**
  180. * successful operation
  181. */
  182. 200: Order;
  183. /**
  184. * Invalid ID supplied
  185. */
  186. 400: unknown;
  187. /**
  188. * Order not found
  189. */
  190. 404: unknown;
  191. };
  192. export type StoreOrderUsingPostResponses = {
  193. /**
  194. * successful operation
  195. */
  196. 200: Order;
  197. /**
  198. * Invalid Order
  199. */
  200. 400: unknown;
  201. };
  202. export type Tag = {
  203. id?: number;
  204. name?: string;
  205. };
  206. export type User = {
  207. id?: number;
  208. username?: string;
  209. firstName?: string;
  210. lastName?: string;
  211. email?: string;
  212. password?: string;
  213. phone?: string;
  214. /** User Status */
  215. userStatus?: number;
  216. };
  217. export type UserCreateWithArrayUsingPostBody = User[];
  218. export type UserCreateWithArrayUsingPostResponses = {
  219. /**
  220. * successful operation
  221. */
  222. default: unknown;
  223. };
  224. export type UserCreateWithListUsingPostBody = User[];
  225. export type UserCreateWithListUsingPostResponses = {
  226. /**
  227. * successful operation
  228. */
  229. default: unknown;
  230. };
  231. export type UserLoginUsingGetParams = {
  232. /** The user name for login */
  233. username: string;
  234. /** The password for login in clear text */
  235. password: string;
  236. };
  237. export type UserLoginUsingGetResponses = {
  238. /**
  239. * successful operation
  240. */
  241. 200: string;
  242. /**
  243. * Invalid username/password supplied
  244. */
  245. 400: unknown;
  246. };
  247. export type UserLogoutUsingGetResponses = {
  248. /**
  249. * successful operation
  250. */
  251. default: unknown;
  252. };
  253. export type UserUsernameUsingDeleteParams = {
  254. /** The name that needs to be deleted */
  255. username: string;
  256. };
  257. export type UserUsernameUsingDeleteResponses = {
  258. /**
  259. * Invalid username supplied
  260. */
  261. 400: unknown;
  262. /**
  263. * User not found
  264. */
  265. 404: unknown;
  266. };
  267. export type UserUsernameUsingGetParams = {
  268. /** The name that needs to be fetched. Use user1 for testing. */
  269. username: string;
  270. };
  271. export type UserUsernameUsingGetResponses = {
  272. /**
  273. * successful operation
  274. */
  275. 200: User;
  276. /**
  277. * Invalid username supplied
  278. */
  279. 400: unknown;
  280. /**
  281. * User not found
  282. */
  283. 404: unknown;
  284. };
  285. export type UserUsernameUsingPutParams = {
  286. /** name that need to be updated */
  287. username: string;
  288. };
  289. export type UserUsernameUsingPutResponses = {
  290. /**
  291. * Invalid user supplied
  292. */
  293. 400: unknown;
  294. /**
  295. * User not found
  296. */
  297. 404: unknown;
  298. };
  299. export type UserUsingPostResponses = {
  300. /**
  301. * successful operation
  302. */
  303. default: unknown;
  304. };