| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351 |
- /* eslint-disable */
- // @ts-ignore
- export type ApiResponse = {
- code?: number;
- type?: string;
- message?: string;
- };
- export type Category = {
- id?: number;
- name?: string;
- };
- export type Order = {
- id?: number;
- petId?: number;
- quantity?: number;
- shipDate?: string;
- /** Order Status */
- status?: 'placed' | 'approved' | 'delivered';
- complete?: boolean;
- };
- export type Pet = {
- id?: number;
- category?: Category;
- name: string;
- photoUrls: string[];
- tags?: Tag[];
- /** pet status in the store */
- status?: 'available' | 'pending' | 'sold';
- };
- export type PetFindByStatusUsingGetParams = {
- /** Status values that need to be considered for filter */
- status: ('available' | 'pending' | 'sold')[];
- };
- export type PetFindByStatusUsingGetResponses = {
- /**
- * successful operation
- */
- 200: Pet[];
- /**
- * Invalid status value
- */
- 400: unknown;
- };
- export type PetFindByTagsUsingGetParams = {
- /** Tags to filter by */
- tags: string[];
- };
- export type PetFindByTagsUsingGetResponses = {
- /**
- * successful operation
- */
- 200: Pet[];
- /**
- * Invalid tag value
- */
- 400: unknown;
- };
- export type PetPetIdUploadImageUsingPostBody = {
- /** Additional data to pass to server */
- additionalMetadata?: string;
- /** file to upload */
- file?: string;
- };
- export type PetPetIdUploadImageUsingPostParams = {
- /** ID of pet to update */
- petId: number;
- };
- export type PetPetIdUploadImageUsingPostResponses = {
- /**
- * successful operation
- */
- 200: ApiResponse;
- };
- export type PetPetIdUsingDeleteParams = {
- /** Pet id to delete */
- petId: number;
- };
- export type PetPetIdUsingDeleteResponses = {
- /**
- * Invalid ID supplied
- */
- 400: unknown;
- /**
- * Pet not found
- */
- 404: unknown;
- };
- export type PetPetIdUsingGetParams = {
- /** ID of pet to return */
- petId: number;
- };
- export type PetPetIdUsingGetResponses = {
- /**
- * successful operation
- */
- 200: Pet;
- /**
- * Invalid ID supplied
- */
- 400: unknown;
- /**
- * Pet not found
- */
- 404: unknown;
- };
- export type PetPetIdUsingPostBody = {
- /** Updated name of the pet */
- name?: string;
- /** Updated status of the pet */
- status?: string;
- };
- export type PetPetIdUsingPostParams = {
- /** ID of pet that needs to be updated */
- petId: number;
- };
- export type PetPetIdUsingPostResponses = {
- /**
- * Invalid input
- */
- 405: unknown;
- };
- export type PetUsingPostResponses = {
- /**
- * Invalid input
- */
- 405: unknown;
- };
- export type PetUsingPutResponses = {
- /**
- * Invalid ID supplied
- */
- 400: unknown;
- /**
- * Pet not found
- */
- 404: unknown;
- /**
- * Validation exception
- */
- 405: unknown;
- };
- export enum StatusEnum {
- 'available' = 'available',
- 'pending' = 'pending',
- 'sold' = 'sold',
- }
- export type IStatusEnum = keyof typeof StatusEnum;
- export enum StatusEnum2 {
- 'placed' = 'placed',
- 'approved' = 'approved',
- 'delivered' = 'delivered',
- }
- export type IStatusEnum2 = keyof typeof StatusEnum2;
- export type StoreInventoryUsingGetResponses = {
- /**
- * successful operation
- */
- 200: Record<string, number>;
- };
- export type StoreOrderOrderIdUsingDeleteParams = {
- /** ID of the order that needs to be deleted */
- orderId: number;
- };
- export type StoreOrderOrderIdUsingDeleteResponses = {
- /**
- * Invalid ID supplied
- */
- 400: unknown;
- /**
- * Order not found
- */
- 404: unknown;
- };
- export type StoreOrderOrderIdUsingGetParams = {
- /** ID of pet that needs to be fetched */
- orderId: number;
- };
- export type StoreOrderOrderIdUsingGetResponses = {
- /**
- * successful operation
- */
- 200: Order;
- /**
- * Invalid ID supplied
- */
- 400: unknown;
- /**
- * Order not found
- */
- 404: unknown;
- };
- export type StoreOrderUsingPostResponses = {
- /**
- * successful operation
- */
- 200: Order;
- /**
- * Invalid Order
- */
- 400: unknown;
- };
- export type Tag = {
- id?: number;
- name?: string;
- };
- export type User = {
- id?: number;
- username?: string;
- firstName?: string;
- lastName?: string;
- email?: string;
- password?: string;
- phone?: string;
- /** User Status */
- userStatus?: number;
- };
- export type UserCreateWithArrayUsingPostBody = User[];
- export type UserCreateWithArrayUsingPostResponses = {
- /**
- * successful operation
- */
- default: unknown;
- };
- export type UserCreateWithListUsingPostBody = User[];
- export type UserCreateWithListUsingPostResponses = {
- /**
- * successful operation
- */
- default: unknown;
- };
- export type UserLoginUsingGetParams = {
- /** The user name for login */
- username: string;
- /** The password for login in clear text */
- password: string;
- };
- export type UserLoginUsingGetResponses = {
- /**
- * successful operation
- */
- 200: string;
- /**
- * Invalid username/password supplied
- */
- 400: unknown;
- };
- export type UserLogoutUsingGetResponses = {
- /**
- * successful operation
- */
- default: unknown;
- };
- export type UserUsernameUsingDeleteParams = {
- /** The name that needs to be deleted */
- username: string;
- };
- export type UserUsernameUsingDeleteResponses = {
- /**
- * Invalid username supplied
- */
- 400: unknown;
- /**
- * User not found
- */
- 404: unknown;
- };
- export type UserUsernameUsingGetParams = {
- /** The name that needs to be fetched. Use user1 for testing. */
- username: string;
- };
- export type UserUsernameUsingGetResponses = {
- /**
- * successful operation
- */
- 200: User;
- /**
- * Invalid username supplied
- */
- 400: unknown;
- /**
- * User not found
- */
- 404: unknown;
- };
- export type UserUsernameUsingPutParams = {
- /** name that need to be updated */
- username: string;
- };
- export type UserUsernameUsingPutResponses = {
- /**
- * Invalid user supplied
- */
- 400: unknown;
- /**
- * User not found
- */
- 404: unknown;
- };
- export type UserUsingPostResponses = {
- /**
- * successful operation
- */
- default: unknown;
- };
|