@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.
Files changed (81) hide show
  1. package/.openapi-generator/FILES +29 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +156 -0
  5. package/dist/apis/PetApi.d.ts +354 -0
  6. package/dist/apis/PetApi.js +423 -0
  7. package/dist/apis/StoreApi.d.ts +181 -0
  8. package/dist/apis/StoreApi.js +193 -0
  9. package/dist/apis/UserApi.d.ts +293 -0
  10. package/dist/apis/UserApi.js +318 -0
  11. package/dist/apis/index.d.ts +3 -0
  12. package/dist/apis/index.js +21 -0
  13. package/dist/esm/apis/PetApi.d.ts +354 -0
  14. package/dist/esm/apis/PetApi.js +419 -0
  15. package/dist/esm/apis/StoreApi.d.ts +181 -0
  16. package/dist/esm/apis/StoreApi.js +189 -0
  17. package/dist/esm/apis/UserApi.d.ts +293 -0
  18. package/dist/esm/apis/UserApi.js +314 -0
  19. package/dist/esm/apis/index.d.ts +3 -0
  20. package/dist/esm/apis/index.js +5 -0
  21. package/dist/esm/index.d.ts +3 -0
  22. package/dist/esm/index.js +5 -0
  23. package/dist/esm/models/Category.d.ts +38 -0
  24. package/dist/esm/models/Category.js +43 -0
  25. package/dist/esm/models/ModelApiResponse.d.ts +44 -0
  26. package/dist/esm/models/ModelApiResponse.js +45 -0
  27. package/dist/esm/models/Order.d.ts +71 -0
  28. package/dist/esm/models/Order.js +59 -0
  29. package/dist/esm/models/Pet.d.ts +73 -0
  30. package/dist/esm/models/Pet.js +65 -0
  31. package/dist/esm/models/Tag.d.ts +38 -0
  32. package/dist/esm/models/Tag.js +43 -0
  33. package/dist/esm/models/User.d.ts +74 -0
  34. package/dist/esm/models/User.js +55 -0
  35. package/dist/esm/models/index.d.ts +6 -0
  36. package/dist/esm/models/index.js +8 -0
  37. package/dist/esm/runtime.d.ts +184 -0
  38. package/dist/esm/runtime.js +334 -0
  39. package/dist/index.d.ts +3 -0
  40. package/dist/index.js +21 -0
  41. package/dist/models/Category.d.ts +38 -0
  42. package/dist/models/Category.js +50 -0
  43. package/dist/models/ModelApiResponse.d.ts +44 -0
  44. package/dist/models/ModelApiResponse.js +52 -0
  45. package/dist/models/Order.d.ts +71 -0
  46. package/dist/models/Order.js +67 -0
  47. package/dist/models/Pet.d.ts +73 -0
  48. package/dist/models/Pet.js +73 -0
  49. package/dist/models/Tag.d.ts +38 -0
  50. package/dist/models/Tag.js +50 -0
  51. package/dist/models/User.d.ts +74 -0
  52. package/dist/models/User.js +62 -0
  53. package/dist/models/index.d.ts +6 -0
  54. package/dist/models/index.js +24 -0
  55. package/dist/runtime.d.ts +184 -0
  56. package/dist/runtime.js +350 -0
  57. package/docs/Category.md +36 -0
  58. package/docs/ModelApiResponse.md +38 -0
  59. package/docs/Order.md +44 -0
  60. package/docs/Pet.md +44 -0
  61. package/docs/PetApi.md +622 -0
  62. package/docs/StoreApi.md +286 -0
  63. package/docs/Tag.md +36 -0
  64. package/docs/User.md +48 -0
  65. package/docs/UserApi.md +496 -0
  66. package/package.json +21 -0
  67. package/src/apis/PetApi.ts +739 -0
  68. package/src/apis/StoreApi.ts +323 -0
  69. package/src/apis/UserApi.ts +550 -0
  70. package/src/apis/index.ts +5 -0
  71. package/src/index.ts +5 -0
  72. package/src/models/Category.ts +73 -0
  73. package/src/models/ModelApiResponse.ts +81 -0
  74. package/src/models/Order.ts +117 -0
  75. package/src/models/Pet.ts +134 -0
  76. package/src/models/Tag.ts +73 -0
  77. package/src/models/User.ts +121 -0
  78. package/src/models/index.ts +8 -0
  79. package/src/runtime.ts +432 -0
  80. package/tsconfig.esm.json +7 -0
  81. package/tsconfig.json +16 -0
@@ -0,0 +1,189 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Swagger Petstore - OpenAPI 3.0
5
+ * 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)
6
+ *
7
+ * The version of the OpenAPI document: 1.0.27
8
+ * Contact: apiteam@swagger.io
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import * as runtime from '../runtime.js';
24
+ import { OrderFromJSON, OrderToJSON, } from '../models/index.js';
25
+ /**
26
+ *
27
+ */
28
+ export class StoreApi extends runtime.BaseAPI {
29
+ /**
30
+ * Creates request options for deleteOrder without sending the request
31
+ */
32
+ deleteOrderRequestOpts(requestParameters) {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ if (requestParameters['orderId'] == null) {
35
+ throw new runtime.RequiredError('orderId', 'Required parameter "orderId" was null or undefined when calling deleteOrder().');
36
+ }
37
+ const queryParameters = {};
38
+ const headerParameters = {};
39
+ let urlPath = `/store/order/{orderId}`;
40
+ urlPath = urlPath.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters['orderId'])));
41
+ return {
42
+ path: urlPath,
43
+ method: 'DELETE',
44
+ headers: headerParameters,
45
+ query: queryParameters,
46
+ };
47
+ });
48
+ }
49
+ /**
50
+ * For valid response try integer IDs with value < 1000. Anything above 1000 or non-integers will generate API errors.
51
+ * Delete purchase order by identifier.
52
+ */
53
+ deleteOrderRaw(requestParameters, initOverrides) {
54
+ return __awaiter(this, void 0, void 0, function* () {
55
+ const requestOptions = yield this.deleteOrderRequestOpts(requestParameters);
56
+ const response = yield this.request(requestOptions, initOverrides);
57
+ return new runtime.VoidApiResponse(response);
58
+ });
59
+ }
60
+ /**
61
+ * For valid response try integer IDs with value < 1000. Anything above 1000 or non-integers will generate API errors.
62
+ * Delete purchase order by identifier.
63
+ */
64
+ deleteOrder(requestParameters, initOverrides) {
65
+ return __awaiter(this, void 0, void 0, function* () {
66
+ yield this.deleteOrderRaw(requestParameters, initOverrides);
67
+ });
68
+ }
69
+ /**
70
+ * Creates request options for getInventory without sending the request
71
+ */
72
+ getInventoryRequestOpts() {
73
+ return __awaiter(this, void 0, void 0, function* () {
74
+ const queryParameters = {};
75
+ const headerParameters = {};
76
+ if (this.configuration && this.configuration.apiKey) {
77
+ headerParameters["api_key"] = yield this.configuration.apiKey("api_key"); // api_key authentication
78
+ }
79
+ let urlPath = `/store/inventory`;
80
+ return {
81
+ path: urlPath,
82
+ method: 'GET',
83
+ headers: headerParameters,
84
+ query: queryParameters,
85
+ };
86
+ });
87
+ }
88
+ /**
89
+ * Returns a map of status codes to quantities.
90
+ * Returns pet inventories by status.
91
+ */
92
+ getInventoryRaw(initOverrides) {
93
+ return __awaiter(this, void 0, void 0, function* () {
94
+ const requestOptions = yield this.getInventoryRequestOpts();
95
+ const response = yield this.request(requestOptions, initOverrides);
96
+ return new runtime.JSONApiResponse(response);
97
+ });
98
+ }
99
+ /**
100
+ * Returns a map of status codes to quantities.
101
+ * Returns pet inventories by status.
102
+ */
103
+ getInventory(initOverrides) {
104
+ return __awaiter(this, void 0, void 0, function* () {
105
+ const response = yield this.getInventoryRaw(initOverrides);
106
+ return yield response.value();
107
+ });
108
+ }
109
+ /**
110
+ * Creates request options for getOrderById without sending the request
111
+ */
112
+ getOrderByIdRequestOpts(requestParameters) {
113
+ return __awaiter(this, void 0, void 0, function* () {
114
+ if (requestParameters['orderId'] == null) {
115
+ throw new runtime.RequiredError('orderId', 'Required parameter "orderId" was null or undefined when calling getOrderById().');
116
+ }
117
+ const queryParameters = {};
118
+ const headerParameters = {};
119
+ let urlPath = `/store/order/{orderId}`;
120
+ urlPath = urlPath.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters['orderId'])));
121
+ return {
122
+ path: urlPath,
123
+ method: 'GET',
124
+ headers: headerParameters,
125
+ query: queryParameters,
126
+ };
127
+ });
128
+ }
129
+ /**
130
+ * For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions.
131
+ * Find purchase order by ID.
132
+ */
133
+ getOrderByIdRaw(requestParameters, initOverrides) {
134
+ return __awaiter(this, void 0, void 0, function* () {
135
+ const requestOptions = yield this.getOrderByIdRequestOpts(requestParameters);
136
+ const response = yield this.request(requestOptions, initOverrides);
137
+ return new runtime.JSONApiResponse(response, (jsonValue) => OrderFromJSON(jsonValue));
138
+ });
139
+ }
140
+ /**
141
+ * For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions.
142
+ * Find purchase order by ID.
143
+ */
144
+ getOrderById(requestParameters, initOverrides) {
145
+ return __awaiter(this, void 0, void 0, function* () {
146
+ const response = yield this.getOrderByIdRaw(requestParameters, initOverrides);
147
+ return yield response.value();
148
+ });
149
+ }
150
+ /**
151
+ * Creates request options for placeOrder without sending the request
152
+ */
153
+ placeOrderRequestOpts(requestParameters) {
154
+ return __awaiter(this, void 0, void 0, function* () {
155
+ const queryParameters = {};
156
+ const headerParameters = {};
157
+ headerParameters['Content-Type'] = 'application/json';
158
+ let urlPath = `/store/order`;
159
+ return {
160
+ path: urlPath,
161
+ method: 'POST',
162
+ headers: headerParameters,
163
+ query: queryParameters,
164
+ body: OrderToJSON(requestParameters['order']),
165
+ };
166
+ });
167
+ }
168
+ /**
169
+ * Place a new order in the store.
170
+ * Place an order for a pet.
171
+ */
172
+ placeOrderRaw(requestParameters, initOverrides) {
173
+ return __awaiter(this, void 0, void 0, function* () {
174
+ const requestOptions = yield this.placeOrderRequestOpts(requestParameters);
175
+ const response = yield this.request(requestOptions, initOverrides);
176
+ return new runtime.JSONApiResponse(response, (jsonValue) => OrderFromJSON(jsonValue));
177
+ });
178
+ }
179
+ /**
180
+ * Place a new order in the store.
181
+ * Place an order for a pet.
182
+ */
183
+ placeOrder() {
184
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
185
+ const response = yield this.placeOrderRaw(requestParameters, initOverrides);
186
+ return yield response.value();
187
+ });
188
+ }
189
+ }
@@ -0,0 +1,293 @@
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 { User } from '../models/index.js';
14
+ export interface CreateUserRequest {
15
+ user?: User;
16
+ }
17
+ export interface CreateUsersWithListInputRequest {
18
+ user?: Array<User>;
19
+ }
20
+ export interface DeleteUserRequest {
21
+ username: string;
22
+ }
23
+ export interface GetUserByNameRequest {
24
+ username: string;
25
+ }
26
+ export interface LoginUserRequest {
27
+ username?: string;
28
+ password?: string;
29
+ }
30
+ export interface UpdateUserRequest {
31
+ username: string;
32
+ user?: User;
33
+ }
34
+ /**
35
+ * UserApi - interface
36
+ *
37
+ * @export
38
+ * @interface UserApiInterface
39
+ */
40
+ export interface UserApiInterface {
41
+ /**
42
+ * Creates request options for createUser without sending the request
43
+ * @param {User} [user] Created user object
44
+ * @throws {RequiredError}
45
+ * @memberof UserApiInterface
46
+ */
47
+ createUserRequestOpts(requestParameters: CreateUserRequest): Promise<runtime.RequestOpts>;
48
+ /**
49
+ * This can only be done by the logged in user.
50
+ * @summary Create user.
51
+ * @param {User} [user] Created user object
52
+ * @param {*} [options] Override http request option.
53
+ * @throws {RequiredError}
54
+ * @memberof UserApiInterface
55
+ */
56
+ createUserRaw(requestParameters: CreateUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<User>>;
57
+ /**
58
+ * This can only be done by the logged in user.
59
+ * Create user.
60
+ */
61
+ createUser(requestParameters: CreateUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<User>;
62
+ /**
63
+ * Creates request options for createUsersWithListInput without sending the request
64
+ * @param {Array<User>} [user]
65
+ * @throws {RequiredError}
66
+ * @memberof UserApiInterface
67
+ */
68
+ createUsersWithListInputRequestOpts(requestParameters: CreateUsersWithListInputRequest): Promise<runtime.RequestOpts>;
69
+ /**
70
+ * Creates list of users with given input array.
71
+ * @summary Creates list of users with given input array.
72
+ * @param {Array<User>} [user]
73
+ * @param {*} [options] Override http request option.
74
+ * @throws {RequiredError}
75
+ * @memberof UserApiInterface
76
+ */
77
+ createUsersWithListInputRaw(requestParameters: CreateUsersWithListInputRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<User>>;
78
+ /**
79
+ * Creates list of users with given input array.
80
+ * Creates list of users with given input array.
81
+ */
82
+ createUsersWithListInput(requestParameters: CreateUsersWithListInputRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<User>;
83
+ /**
84
+ * Creates request options for deleteUser without sending the request
85
+ * @param {string} username The name that needs to be deleted
86
+ * @throws {RequiredError}
87
+ * @memberof UserApiInterface
88
+ */
89
+ deleteUserRequestOpts(requestParameters: DeleteUserRequest): Promise<runtime.RequestOpts>;
90
+ /**
91
+ * This can only be done by the logged in user.
92
+ * @summary Delete user resource.
93
+ * @param {string} username The name that needs to be deleted
94
+ * @param {*} [options] Override http request option.
95
+ * @throws {RequiredError}
96
+ * @memberof UserApiInterface
97
+ */
98
+ deleteUserRaw(requestParameters: DeleteUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
99
+ /**
100
+ * This can only be done by the logged in user.
101
+ * Delete user resource.
102
+ */
103
+ deleteUser(requestParameters: DeleteUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
104
+ /**
105
+ * Creates request options for getUserByName without sending the request
106
+ * @param {string} username The name that needs to be fetched. Use user1 for testing
107
+ * @throws {RequiredError}
108
+ * @memberof UserApiInterface
109
+ */
110
+ getUserByNameRequestOpts(requestParameters: GetUserByNameRequest): Promise<runtime.RequestOpts>;
111
+ /**
112
+ * Get user detail based on username.
113
+ * @summary Get user by user name.
114
+ * @param {string} username The name that needs to be fetched. Use user1 for testing
115
+ * @param {*} [options] Override http request option.
116
+ * @throws {RequiredError}
117
+ * @memberof UserApiInterface
118
+ */
119
+ getUserByNameRaw(requestParameters: GetUserByNameRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<User>>;
120
+ /**
121
+ * Get user detail based on username.
122
+ * Get user by user name.
123
+ */
124
+ getUserByName(requestParameters: GetUserByNameRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<User>;
125
+ /**
126
+ * Creates request options for loginUser without sending the request
127
+ * @param {string} [username] The user name for login
128
+ * @param {string} [password] The password for login in clear text
129
+ * @throws {RequiredError}
130
+ * @memberof UserApiInterface
131
+ */
132
+ loginUserRequestOpts(requestParameters: LoginUserRequest): Promise<runtime.RequestOpts>;
133
+ /**
134
+ * Log into the system.
135
+ * @summary Logs user into the system.
136
+ * @param {string} [username] The user name for login
137
+ * @param {string} [password] The password for login in clear text
138
+ * @param {*} [options] Override http request option.
139
+ * @throws {RequiredError}
140
+ * @memberof UserApiInterface
141
+ */
142
+ loginUserRaw(requestParameters: LoginUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
143
+ /**
144
+ * Log into the system.
145
+ * Logs user into the system.
146
+ */
147
+ loginUser(requestParameters: LoginUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
148
+ /**
149
+ * Creates request options for logoutUser without sending the request
150
+ * @throws {RequiredError}
151
+ * @memberof UserApiInterface
152
+ */
153
+ logoutUserRequestOpts(): Promise<runtime.RequestOpts>;
154
+ /**
155
+ * Log user out of the system.
156
+ * @summary Logs out current logged in user session.
157
+ * @param {*} [options] Override http request option.
158
+ * @throws {RequiredError}
159
+ * @memberof UserApiInterface
160
+ */
161
+ logoutUserRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
162
+ /**
163
+ * Log user out of the system.
164
+ * Logs out current logged in user session.
165
+ */
166
+ logoutUser(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
167
+ /**
168
+ * Creates request options for updateUser without sending the request
169
+ * @param {string} username name that need to be deleted
170
+ * @param {User} [user] Update an existent user in the store
171
+ * @throws {RequiredError}
172
+ * @memberof UserApiInterface
173
+ */
174
+ updateUserRequestOpts(requestParameters: UpdateUserRequest): Promise<runtime.RequestOpts>;
175
+ /**
176
+ * This can only be done by the logged in user.
177
+ * @summary Update user resource.
178
+ * @param {string} username name that need to be deleted
179
+ * @param {User} [user] Update an existent user in the store
180
+ * @param {*} [options] Override http request option.
181
+ * @throws {RequiredError}
182
+ * @memberof UserApiInterface
183
+ */
184
+ updateUserRaw(requestParameters: UpdateUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
185
+ /**
186
+ * This can only be done by the logged in user.
187
+ * Update user resource.
188
+ */
189
+ updateUser(requestParameters: UpdateUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
190
+ }
191
+ /**
192
+ *
193
+ */
194
+ export declare class UserApi extends runtime.BaseAPI implements UserApiInterface {
195
+ /**
196
+ * Creates request options for createUser without sending the request
197
+ */
198
+ createUserRequestOpts(requestParameters: CreateUserRequest): Promise<runtime.RequestOpts>;
199
+ /**
200
+ * This can only be done by the logged in user.
201
+ * Create user.
202
+ */
203
+ createUserRaw(requestParameters: CreateUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<User>>;
204
+ /**
205
+ * This can only be done by the logged in user.
206
+ * Create user.
207
+ */
208
+ createUser(requestParameters?: CreateUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<User>;
209
+ /**
210
+ * Creates request options for createUsersWithListInput without sending the request
211
+ */
212
+ createUsersWithListInputRequestOpts(requestParameters: CreateUsersWithListInputRequest): Promise<runtime.RequestOpts>;
213
+ /**
214
+ * Creates list of users with given input array.
215
+ * Creates list of users with given input array.
216
+ */
217
+ createUsersWithListInputRaw(requestParameters: CreateUsersWithListInputRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<User>>;
218
+ /**
219
+ * Creates list of users with given input array.
220
+ * Creates list of users with given input array.
221
+ */
222
+ createUsersWithListInput(requestParameters?: CreateUsersWithListInputRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<User>;
223
+ /**
224
+ * Creates request options for deleteUser without sending the request
225
+ */
226
+ deleteUserRequestOpts(requestParameters: DeleteUserRequest): Promise<runtime.RequestOpts>;
227
+ /**
228
+ * This can only be done by the logged in user.
229
+ * Delete user resource.
230
+ */
231
+ deleteUserRaw(requestParameters: DeleteUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
232
+ /**
233
+ * This can only be done by the logged in user.
234
+ * Delete user resource.
235
+ */
236
+ deleteUser(requestParameters: DeleteUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
237
+ /**
238
+ * Creates request options for getUserByName without sending the request
239
+ */
240
+ getUserByNameRequestOpts(requestParameters: GetUserByNameRequest): Promise<runtime.RequestOpts>;
241
+ /**
242
+ * Get user detail based on username.
243
+ * Get user by user name.
244
+ */
245
+ getUserByNameRaw(requestParameters: GetUserByNameRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<User>>;
246
+ /**
247
+ * Get user detail based on username.
248
+ * Get user by user name.
249
+ */
250
+ getUserByName(requestParameters: GetUserByNameRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<User>;
251
+ /**
252
+ * Creates request options for loginUser without sending the request
253
+ */
254
+ loginUserRequestOpts(requestParameters: LoginUserRequest): Promise<runtime.RequestOpts>;
255
+ /**
256
+ * Log into the system.
257
+ * Logs user into the system.
258
+ */
259
+ loginUserRaw(requestParameters: LoginUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
260
+ /**
261
+ * Log into the system.
262
+ * Logs user into the system.
263
+ */
264
+ loginUser(requestParameters?: LoginUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
265
+ /**
266
+ * Creates request options for logoutUser without sending the request
267
+ */
268
+ logoutUserRequestOpts(): Promise<runtime.RequestOpts>;
269
+ /**
270
+ * Log user out of the system.
271
+ * Logs out current logged in user session.
272
+ */
273
+ logoutUserRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
274
+ /**
275
+ * Log user out of the system.
276
+ * Logs out current logged in user session.
277
+ */
278
+ logoutUser(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
279
+ /**
280
+ * Creates request options for updateUser without sending the request
281
+ */
282
+ updateUserRequestOpts(requestParameters: UpdateUserRequest): Promise<runtime.RequestOpts>;
283
+ /**
284
+ * This can only be done by the logged in user.
285
+ * Update user resource.
286
+ */
287
+ updateUserRaw(requestParameters: UpdateUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
288
+ /**
289
+ * This can only be done by the logged in user.
290
+ * Update user resource.
291
+ */
292
+ updateUser(requestParameters: UpdateUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
293
+ }