@redhat-ecosystem-engineering/petstore-client-test 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +29 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +156 -0
- package/dist/apis/PetApi.d.ts +354 -0
- package/dist/apis/PetApi.js +423 -0
- package/dist/apis/StoreApi.d.ts +181 -0
- package/dist/apis/StoreApi.js +193 -0
- package/dist/apis/UserApi.d.ts +293 -0
- package/dist/apis/UserApi.js +318 -0
- package/dist/apis/index.d.ts +3 -0
- package/dist/apis/index.js +21 -0
- package/dist/esm/apis/PetApi.d.ts +354 -0
- package/dist/esm/apis/PetApi.js +419 -0
- package/dist/esm/apis/StoreApi.d.ts +181 -0
- package/dist/esm/apis/StoreApi.js +189 -0
- package/dist/esm/apis/UserApi.d.ts +293 -0
- package/dist/esm/apis/UserApi.js +314 -0
- package/dist/esm/apis/index.d.ts +3 -0
- package/dist/esm/apis/index.js +5 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/models/Category.d.ts +38 -0
- package/dist/esm/models/Category.js +43 -0
- package/dist/esm/models/ModelApiResponse.d.ts +44 -0
- package/dist/esm/models/ModelApiResponse.js +45 -0
- package/dist/esm/models/Order.d.ts +71 -0
- package/dist/esm/models/Order.js +59 -0
- package/dist/esm/models/Pet.d.ts +73 -0
- package/dist/esm/models/Pet.js +65 -0
- package/dist/esm/models/Tag.d.ts +38 -0
- package/dist/esm/models/Tag.js +43 -0
- package/dist/esm/models/User.d.ts +74 -0
- package/dist/esm/models/User.js +55 -0
- package/dist/esm/models/index.d.ts +6 -0
- package/dist/esm/models/index.js +8 -0
- package/dist/esm/runtime.d.ts +184 -0
- package/dist/esm/runtime.js +334 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/Category.d.ts +38 -0
- package/dist/models/Category.js +50 -0
- package/dist/models/ModelApiResponse.d.ts +44 -0
- package/dist/models/ModelApiResponse.js +52 -0
- package/dist/models/Order.d.ts +71 -0
- package/dist/models/Order.js +67 -0
- package/dist/models/Pet.d.ts +73 -0
- package/dist/models/Pet.js +73 -0
- package/dist/models/Tag.d.ts +38 -0
- package/dist/models/Tag.js +50 -0
- package/dist/models/User.d.ts +74 -0
- package/dist/models/User.js +62 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +24 -0
- package/dist/runtime.d.ts +184 -0
- package/dist/runtime.js +350 -0
- package/docs/Category.md +36 -0
- package/docs/ModelApiResponse.md +38 -0
- package/docs/Order.md +44 -0
- package/docs/Pet.md +44 -0
- package/docs/PetApi.md +622 -0
- package/docs/StoreApi.md +286 -0
- package/docs/Tag.md +36 -0
- package/docs/User.md +48 -0
- package/docs/UserApi.md +496 -0
- package/package.json +21 -0
- package/src/apis/PetApi.ts +739 -0
- package/src/apis/StoreApi.ts +323 -0
- package/src/apis/UserApi.ts +550 -0
- package/src/apis/index.ts +5 -0
- package/src/index.ts +5 -0
- package/src/models/Category.ts +73 -0
- package/src/models/ModelApiResponse.ts +81 -0
- package/src/models/Order.ts +117 -0
- package/src/models/Pet.ts +134 -0
- package/src/models/Tag.ts +73 -0
- package/src/models/User.ts +121 -0
- package/src/models/index.ts +8 -0
- package/src/runtime.ts +432 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +16 -0
|
@@ -0,0 +1,354 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Swagger Petstore - OpenAPI 3.0
|
|
3
|
+
* This is a sample Pet Store Server based on the OpenAPI 3.0 specification. You can find out more about Swagger at [https://swagger.io](https://swagger.io). In the third iteration of the pet store, we\'ve switched to the design first approach! You can now help us improve the API whether it\'s by making changes to the definition itself or to the code. That way, with time, we can improve the API in general, and expose some of the new features in OAS3. Some useful links: - [The Pet Store repository](https://github.com/swagger-api/swagger-petstore) - [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.27
|
|
6
|
+
* Contact: apiteam@swagger.io
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime.js';
|
|
13
|
+
import type { ModelApiResponse, Pet } from '../models/index.js';
|
|
14
|
+
export interface AddPetRequest {
|
|
15
|
+
pet: Pet;
|
|
16
|
+
}
|
|
17
|
+
export interface DeletePetRequest {
|
|
18
|
+
petId: number;
|
|
19
|
+
apiKey?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface FindPetsByStatusRequest {
|
|
22
|
+
status: FindPetsByStatusStatusEnum;
|
|
23
|
+
}
|
|
24
|
+
export interface FindPetsByTagsRequest {
|
|
25
|
+
tags: Array<string>;
|
|
26
|
+
}
|
|
27
|
+
export interface GetPetByIdRequest {
|
|
28
|
+
petId: number;
|
|
29
|
+
}
|
|
30
|
+
export interface UpdatePetRequest {
|
|
31
|
+
pet: Pet;
|
|
32
|
+
}
|
|
33
|
+
export interface UpdatePetWithFormRequest {
|
|
34
|
+
petId: number;
|
|
35
|
+
name?: string;
|
|
36
|
+
status?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface UploadFileRequest {
|
|
39
|
+
petId: number;
|
|
40
|
+
additionalMetadata?: string;
|
|
41
|
+
body?: Blob;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* PetApi - interface
|
|
45
|
+
*
|
|
46
|
+
* @export
|
|
47
|
+
* @interface PetApiInterface
|
|
48
|
+
*/
|
|
49
|
+
export interface PetApiInterface {
|
|
50
|
+
/**
|
|
51
|
+
* Creates request options for addPet without sending the request
|
|
52
|
+
* @param {Pet} pet Create a new pet in the store
|
|
53
|
+
* @throws {RequiredError}
|
|
54
|
+
* @memberof PetApiInterface
|
|
55
|
+
*/
|
|
56
|
+
addPetRequestOpts(requestParameters: AddPetRequest): Promise<runtime.RequestOpts>;
|
|
57
|
+
/**
|
|
58
|
+
* Add a new pet to the store.
|
|
59
|
+
* @summary Add a new pet to the store.
|
|
60
|
+
* @param {Pet} pet Create a new pet in the store
|
|
61
|
+
* @param {*} [options] Override http request option.
|
|
62
|
+
* @throws {RequiredError}
|
|
63
|
+
* @memberof PetApiInterface
|
|
64
|
+
*/
|
|
65
|
+
addPetRaw(requestParameters: AddPetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Pet>>;
|
|
66
|
+
/**
|
|
67
|
+
* Add a new pet to the store.
|
|
68
|
+
* Add a new pet to the store.
|
|
69
|
+
*/
|
|
70
|
+
addPet(requestParameters: AddPetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Pet>;
|
|
71
|
+
/**
|
|
72
|
+
* Creates request options for deletePet without sending the request
|
|
73
|
+
* @param {number} petId Pet id to delete
|
|
74
|
+
* @param {string} [apiKey]
|
|
75
|
+
* @throws {RequiredError}
|
|
76
|
+
* @memberof PetApiInterface
|
|
77
|
+
*/
|
|
78
|
+
deletePetRequestOpts(requestParameters: DeletePetRequest): Promise<runtime.RequestOpts>;
|
|
79
|
+
/**
|
|
80
|
+
* Delete a pet.
|
|
81
|
+
* @summary Deletes a pet.
|
|
82
|
+
* @param {number} petId Pet id to delete
|
|
83
|
+
* @param {string} [apiKey]
|
|
84
|
+
* @param {*} [options] Override http request option.
|
|
85
|
+
* @throws {RequiredError}
|
|
86
|
+
* @memberof PetApiInterface
|
|
87
|
+
*/
|
|
88
|
+
deletePetRaw(requestParameters: DeletePetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
89
|
+
/**
|
|
90
|
+
* Delete a pet.
|
|
91
|
+
* Deletes a pet.
|
|
92
|
+
*/
|
|
93
|
+
deletePet(requestParameters: DeletePetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
94
|
+
/**
|
|
95
|
+
* Creates request options for findPetsByStatus without sending the request
|
|
96
|
+
* @param {'available' | 'pending' | 'sold'} status Status values that need to be considered for filter
|
|
97
|
+
* @throws {RequiredError}
|
|
98
|
+
* @memberof PetApiInterface
|
|
99
|
+
*/
|
|
100
|
+
findPetsByStatusRequestOpts(requestParameters: FindPetsByStatusRequest): Promise<runtime.RequestOpts>;
|
|
101
|
+
/**
|
|
102
|
+
* Multiple status values can be provided with comma separated strings.
|
|
103
|
+
* @summary Finds Pets by status.
|
|
104
|
+
* @param {'available' | 'pending' | 'sold'} status Status values that need to be considered for filter
|
|
105
|
+
* @param {*} [options] Override http request option.
|
|
106
|
+
* @throws {RequiredError}
|
|
107
|
+
* @memberof PetApiInterface
|
|
108
|
+
*/
|
|
109
|
+
findPetsByStatusRaw(requestParameters: FindPetsByStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Pet>>>;
|
|
110
|
+
/**
|
|
111
|
+
* Multiple status values can be provided with comma separated strings.
|
|
112
|
+
* Finds Pets by status.
|
|
113
|
+
*/
|
|
114
|
+
findPetsByStatus(requestParameters: FindPetsByStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Pet>>;
|
|
115
|
+
/**
|
|
116
|
+
* Creates request options for findPetsByTags without sending the request
|
|
117
|
+
* @param {Array<string>} tags Tags to filter by
|
|
118
|
+
* @throws {RequiredError}
|
|
119
|
+
* @memberof PetApiInterface
|
|
120
|
+
*/
|
|
121
|
+
findPetsByTagsRequestOpts(requestParameters: FindPetsByTagsRequest): Promise<runtime.RequestOpts>;
|
|
122
|
+
/**
|
|
123
|
+
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
|
|
124
|
+
* @summary Finds Pets by tags.
|
|
125
|
+
* @param {Array<string>} tags Tags to filter by
|
|
126
|
+
* @param {*} [options] Override http request option.
|
|
127
|
+
* @throws {RequiredError}
|
|
128
|
+
* @memberof PetApiInterface
|
|
129
|
+
*/
|
|
130
|
+
findPetsByTagsRaw(requestParameters: FindPetsByTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Pet>>>;
|
|
131
|
+
/**
|
|
132
|
+
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
|
|
133
|
+
* Finds Pets by tags.
|
|
134
|
+
*/
|
|
135
|
+
findPetsByTags(requestParameters: FindPetsByTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Pet>>;
|
|
136
|
+
/**
|
|
137
|
+
* Creates request options for getPetById without sending the request
|
|
138
|
+
* @param {number} petId ID of pet to return
|
|
139
|
+
* @throws {RequiredError}
|
|
140
|
+
* @memberof PetApiInterface
|
|
141
|
+
*/
|
|
142
|
+
getPetByIdRequestOpts(requestParameters: GetPetByIdRequest): Promise<runtime.RequestOpts>;
|
|
143
|
+
/**
|
|
144
|
+
* Returns a single pet.
|
|
145
|
+
* @summary Find pet by ID.
|
|
146
|
+
* @param {number} petId ID of pet to return
|
|
147
|
+
* @param {*} [options] Override http request option.
|
|
148
|
+
* @throws {RequiredError}
|
|
149
|
+
* @memberof PetApiInterface
|
|
150
|
+
*/
|
|
151
|
+
getPetByIdRaw(requestParameters: GetPetByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Pet>>;
|
|
152
|
+
/**
|
|
153
|
+
* Returns a single pet.
|
|
154
|
+
* Find pet by ID.
|
|
155
|
+
*/
|
|
156
|
+
getPetById(requestParameters: GetPetByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Pet>;
|
|
157
|
+
/**
|
|
158
|
+
* Creates request options for updatePet without sending the request
|
|
159
|
+
* @param {Pet} pet Update an existent pet in the store
|
|
160
|
+
* @throws {RequiredError}
|
|
161
|
+
* @memberof PetApiInterface
|
|
162
|
+
*/
|
|
163
|
+
updatePetRequestOpts(requestParameters: UpdatePetRequest): Promise<runtime.RequestOpts>;
|
|
164
|
+
/**
|
|
165
|
+
* Update an existing pet by Id.
|
|
166
|
+
* @summary Update an existing pet.
|
|
167
|
+
* @param {Pet} pet Update an existent pet in the store
|
|
168
|
+
* @param {*} [options] Override http request option.
|
|
169
|
+
* @throws {RequiredError}
|
|
170
|
+
* @memberof PetApiInterface
|
|
171
|
+
*/
|
|
172
|
+
updatePetRaw(requestParameters: UpdatePetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Pet>>;
|
|
173
|
+
/**
|
|
174
|
+
* Update an existing pet by Id.
|
|
175
|
+
* Update an existing pet.
|
|
176
|
+
*/
|
|
177
|
+
updatePet(requestParameters: UpdatePetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Pet>;
|
|
178
|
+
/**
|
|
179
|
+
* Creates request options for updatePetWithForm without sending the request
|
|
180
|
+
* @param {number} petId ID of pet that needs to be updated
|
|
181
|
+
* @param {string} [name] Name of pet that needs to be updated
|
|
182
|
+
* @param {string} [status] Status of pet that needs to be updated
|
|
183
|
+
* @throws {RequiredError}
|
|
184
|
+
* @memberof PetApiInterface
|
|
185
|
+
*/
|
|
186
|
+
updatePetWithFormRequestOpts(requestParameters: UpdatePetWithFormRequest): Promise<runtime.RequestOpts>;
|
|
187
|
+
/**
|
|
188
|
+
* Updates a pet resource based on the form data.
|
|
189
|
+
* @summary Updates a pet in the store with form data.
|
|
190
|
+
* @param {number} petId ID of pet that needs to be updated
|
|
191
|
+
* @param {string} [name] Name of pet that needs to be updated
|
|
192
|
+
* @param {string} [status] Status of pet that needs to be updated
|
|
193
|
+
* @param {*} [options] Override http request option.
|
|
194
|
+
* @throws {RequiredError}
|
|
195
|
+
* @memberof PetApiInterface
|
|
196
|
+
*/
|
|
197
|
+
updatePetWithFormRaw(requestParameters: UpdatePetWithFormRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Pet>>;
|
|
198
|
+
/**
|
|
199
|
+
* Updates a pet resource based on the form data.
|
|
200
|
+
* Updates a pet in the store with form data.
|
|
201
|
+
*/
|
|
202
|
+
updatePetWithForm(requestParameters: UpdatePetWithFormRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Pet>;
|
|
203
|
+
/**
|
|
204
|
+
* Creates request options for uploadFile without sending the request
|
|
205
|
+
* @param {number} petId ID of pet to update
|
|
206
|
+
* @param {string} [additionalMetadata] Additional Metadata
|
|
207
|
+
* @param {Blob} [body]
|
|
208
|
+
* @throws {RequiredError}
|
|
209
|
+
* @memberof PetApiInterface
|
|
210
|
+
*/
|
|
211
|
+
uploadFileRequestOpts(requestParameters: UploadFileRequest): Promise<runtime.RequestOpts>;
|
|
212
|
+
/**
|
|
213
|
+
* Upload image of the pet.
|
|
214
|
+
* @summary Uploads an image.
|
|
215
|
+
* @param {number} petId ID of pet to update
|
|
216
|
+
* @param {string} [additionalMetadata] Additional Metadata
|
|
217
|
+
* @param {Blob} [body]
|
|
218
|
+
* @param {*} [options] Override http request option.
|
|
219
|
+
* @throws {RequiredError}
|
|
220
|
+
* @memberof PetApiInterface
|
|
221
|
+
*/
|
|
222
|
+
uploadFileRaw(requestParameters: UploadFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ModelApiResponse>>;
|
|
223
|
+
/**
|
|
224
|
+
* Upload image of the pet.
|
|
225
|
+
* Uploads an image.
|
|
226
|
+
*/
|
|
227
|
+
uploadFile(requestParameters: UploadFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ModelApiResponse>;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
*
|
|
231
|
+
*/
|
|
232
|
+
export declare class PetApi extends runtime.BaseAPI implements PetApiInterface {
|
|
233
|
+
/**
|
|
234
|
+
* Creates request options for addPet without sending the request
|
|
235
|
+
*/
|
|
236
|
+
addPetRequestOpts(requestParameters: AddPetRequest): Promise<runtime.RequestOpts>;
|
|
237
|
+
/**
|
|
238
|
+
* Add a new pet to the store.
|
|
239
|
+
* Add a new pet to the store.
|
|
240
|
+
*/
|
|
241
|
+
addPetRaw(requestParameters: AddPetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Pet>>;
|
|
242
|
+
/**
|
|
243
|
+
* Add a new pet to the store.
|
|
244
|
+
* Add a new pet to the store.
|
|
245
|
+
*/
|
|
246
|
+
addPet(requestParameters: AddPetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Pet>;
|
|
247
|
+
/**
|
|
248
|
+
* Creates request options for deletePet without sending the request
|
|
249
|
+
*/
|
|
250
|
+
deletePetRequestOpts(requestParameters: DeletePetRequest): Promise<runtime.RequestOpts>;
|
|
251
|
+
/**
|
|
252
|
+
* Delete a pet.
|
|
253
|
+
* Deletes a pet.
|
|
254
|
+
*/
|
|
255
|
+
deletePetRaw(requestParameters: DeletePetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
256
|
+
/**
|
|
257
|
+
* Delete a pet.
|
|
258
|
+
* Deletes a pet.
|
|
259
|
+
*/
|
|
260
|
+
deletePet(requestParameters: DeletePetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
261
|
+
/**
|
|
262
|
+
* Creates request options for findPetsByStatus without sending the request
|
|
263
|
+
*/
|
|
264
|
+
findPetsByStatusRequestOpts(requestParameters: FindPetsByStatusRequest): Promise<runtime.RequestOpts>;
|
|
265
|
+
/**
|
|
266
|
+
* Multiple status values can be provided with comma separated strings.
|
|
267
|
+
* Finds Pets by status.
|
|
268
|
+
*/
|
|
269
|
+
findPetsByStatusRaw(requestParameters: FindPetsByStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Pet>>>;
|
|
270
|
+
/**
|
|
271
|
+
* Multiple status values can be provided with comma separated strings.
|
|
272
|
+
* Finds Pets by status.
|
|
273
|
+
*/
|
|
274
|
+
findPetsByStatus(requestParameters: FindPetsByStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Pet>>;
|
|
275
|
+
/**
|
|
276
|
+
* Creates request options for findPetsByTags without sending the request
|
|
277
|
+
*/
|
|
278
|
+
findPetsByTagsRequestOpts(requestParameters: FindPetsByTagsRequest): Promise<runtime.RequestOpts>;
|
|
279
|
+
/**
|
|
280
|
+
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
|
|
281
|
+
* Finds Pets by tags.
|
|
282
|
+
*/
|
|
283
|
+
findPetsByTagsRaw(requestParameters: FindPetsByTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Pet>>>;
|
|
284
|
+
/**
|
|
285
|
+
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
|
|
286
|
+
* Finds Pets by tags.
|
|
287
|
+
*/
|
|
288
|
+
findPetsByTags(requestParameters: FindPetsByTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Pet>>;
|
|
289
|
+
/**
|
|
290
|
+
* Creates request options for getPetById without sending the request
|
|
291
|
+
*/
|
|
292
|
+
getPetByIdRequestOpts(requestParameters: GetPetByIdRequest): Promise<runtime.RequestOpts>;
|
|
293
|
+
/**
|
|
294
|
+
* Returns a single pet.
|
|
295
|
+
* Find pet by ID.
|
|
296
|
+
*/
|
|
297
|
+
getPetByIdRaw(requestParameters: GetPetByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Pet>>;
|
|
298
|
+
/**
|
|
299
|
+
* Returns a single pet.
|
|
300
|
+
* Find pet by ID.
|
|
301
|
+
*/
|
|
302
|
+
getPetById(requestParameters: GetPetByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Pet>;
|
|
303
|
+
/**
|
|
304
|
+
* Creates request options for updatePet without sending the request
|
|
305
|
+
*/
|
|
306
|
+
updatePetRequestOpts(requestParameters: UpdatePetRequest): Promise<runtime.RequestOpts>;
|
|
307
|
+
/**
|
|
308
|
+
* Update an existing pet by Id.
|
|
309
|
+
* Update an existing pet.
|
|
310
|
+
*/
|
|
311
|
+
updatePetRaw(requestParameters: UpdatePetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Pet>>;
|
|
312
|
+
/**
|
|
313
|
+
* Update an existing pet by Id.
|
|
314
|
+
* Update an existing pet.
|
|
315
|
+
*/
|
|
316
|
+
updatePet(requestParameters: UpdatePetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Pet>;
|
|
317
|
+
/**
|
|
318
|
+
* Creates request options for updatePetWithForm without sending the request
|
|
319
|
+
*/
|
|
320
|
+
updatePetWithFormRequestOpts(requestParameters: UpdatePetWithFormRequest): Promise<runtime.RequestOpts>;
|
|
321
|
+
/**
|
|
322
|
+
* Updates a pet resource based on the form data.
|
|
323
|
+
* Updates a pet in the store with form data.
|
|
324
|
+
*/
|
|
325
|
+
updatePetWithFormRaw(requestParameters: UpdatePetWithFormRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Pet>>;
|
|
326
|
+
/**
|
|
327
|
+
* Updates a pet resource based on the form data.
|
|
328
|
+
* Updates a pet in the store with form data.
|
|
329
|
+
*/
|
|
330
|
+
updatePetWithForm(requestParameters: UpdatePetWithFormRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Pet>;
|
|
331
|
+
/**
|
|
332
|
+
* Creates request options for uploadFile without sending the request
|
|
333
|
+
*/
|
|
334
|
+
uploadFileRequestOpts(requestParameters: UploadFileRequest): Promise<runtime.RequestOpts>;
|
|
335
|
+
/**
|
|
336
|
+
* Upload image of the pet.
|
|
337
|
+
* Uploads an image.
|
|
338
|
+
*/
|
|
339
|
+
uploadFileRaw(requestParameters: UploadFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ModelApiResponse>>;
|
|
340
|
+
/**
|
|
341
|
+
* Upload image of the pet.
|
|
342
|
+
* Uploads an image.
|
|
343
|
+
*/
|
|
344
|
+
uploadFile(requestParameters: UploadFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ModelApiResponse>;
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* @export
|
|
348
|
+
*/
|
|
349
|
+
export declare const FindPetsByStatusStatusEnum: {
|
|
350
|
+
readonly Available: "available";
|
|
351
|
+
readonly Pending: "pending";
|
|
352
|
+
readonly Sold: "sold";
|
|
353
|
+
};
|
|
354
|
+
export type FindPetsByStatusStatusEnum = typeof FindPetsByStatusStatusEnum[keyof typeof FindPetsByStatusStatusEnum];
|