luxiaotao1123
2024-06-21 569d2b6bc754b037ade5b4205a4d1cdb8339b26b
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
declare namespace API {
  type ApiResponse = {
    code?: number;
    type?: string;
    message?: string;
  };
 
  type Category = {
    id?: number;
    name?: string;
  };
 
  type deleteOrderParams = {
    /** ID of the order that needs to be deleted */
    orderId: number;
  };
 
  type deletePetParams = {
    api_key?: string;
    /** Pet id to delete */
    petId: number;
  };
 
  type deleteUserParams = {
    /** The name that needs to be deleted */
    username: string;
  };
 
  type findPetsByStatusParams = {
    /** Status values that need to be considered for filter */
    status: ('available' | 'pending' | 'sold')[];
  };
 
  type findPetsByTagsParams = {
    /** Tags to filter by */
    tags: string[];
  };
 
  type getOrderByIdParams = {
    /** ID of pet that needs to be fetched */
    orderId: number;
  };
 
  type getPetByIdParams = {
    /** ID of pet to return */
    petId: number;
  };
 
  type getUserByNameParams = {
    /** The name that needs to be fetched. Use user1 for testing.  */
    username: string;
  };
 
  type loginUserParams = {
    /** The user name for login */
    username: string;
    /** The password for login in clear text */
    password: string;
  };
 
  type Order = {
    id?: number;
    petId?: number;
    quantity?: number;
    shipDate?: string;
    /** Order Status */
    status?: 'placed' | 'approved' | 'delivered';
    complete?: boolean;
  };
 
  type Pet = {
    id?: number;
    category?: Category;
    name: string;
    photoUrls: string[];
    tags?: Tag[];
    /** pet status in the store */
    status?: 'available' | 'pending' | 'sold';
  };
 
  type Tag = {
    id?: number;
    name?: string;
  };
 
  type updatePetWithFormParams = {
    /** ID of pet that needs to be updated */
    petId: number;
  };
 
  type updateUserParams = {
    /** name that need to be updated */
    username: string;
  };
 
  type uploadFileParams = {
    /** ID of pet to update */
    petId: number;
  };
 
  type User = {
    id?: number;
    username?: string;
    firstName?: string;
    lastName?: string;
    email?: string;
    password?: string;
    phone?: string;
    /** User Status */
    userStatus?: number;
  };
}