@tennac-booking/sdk 1.0.8 → 1.0.10

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/dist/api.js CHANGED
@@ -67,7 +67,41 @@ const UsersApiAxiosParamCreator = function (configuration) {
67
67
  return {
68
68
  /**
69
69
  *
70
- * @summary Retrieve all users
70
+ * @summary Modifie le mot de passe d\'un utilisateur
71
+ * @param {string} id ID de l\'utilisateur
72
+ * @param {ChangePasswordRequestBody} changePasswordRequestBody
73
+ * @param {*} [options] Override http request option.
74
+ * @throws {RequiredError}
75
+ */
76
+ changePassword: (id_1, changePasswordRequestBody_1, ...args_1) => __awaiter(this, [id_1, changePasswordRequestBody_1, ...args_1], void 0, function* (id, changePasswordRequestBody, options = {}) {
77
+ // verify required parameter 'id' is not null or undefined
78
+ (0, common_1.assertParamExists)('changePassword', 'id', id);
79
+ // verify required parameter 'changePasswordRequestBody' is not null or undefined
80
+ (0, common_1.assertParamExists)('changePassword', 'changePasswordRequestBody', changePasswordRequestBody);
81
+ const localVarPath = `/api/users/{id}/password`
82
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
83
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
84
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
85
+ let baseOptions;
86
+ if (configuration) {
87
+ baseOptions = configuration.baseOptions;
88
+ }
89
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
90
+ const localVarHeaderParameter = {};
91
+ const localVarQueryParameter = {};
92
+ localVarHeaderParameter['Content-Type'] = 'application/json';
93
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
94
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
95
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
96
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(changePasswordRequestBody, localVarRequestOptions, configuration);
97
+ return {
98
+ url: (0, common_1.toPathString)(localVarUrlObj),
99
+ options: localVarRequestOptions,
100
+ };
101
+ }),
102
+ /**
103
+ *
104
+ * @summary Récupère la liste des utilisateurs
71
105
  * @param {*} [options] Override http request option.
72
106
  * @throws {RequiredError}
73
107
  */
@@ -90,6 +124,159 @@ const UsersApiAxiosParamCreator = function (configuration) {
90
124
  options: localVarRequestOptions,
91
125
  };
92
126
  }),
127
+ /**
128
+ *
129
+ * @summary Récupère un utilisateur par ID
130
+ * @param {string} id ID de l\'utilisateur
131
+ * @param {*} [options] Override http request option.
132
+ * @throws {RequiredError}
133
+ */
134
+ getUserInfo: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
135
+ // verify required parameter 'id' is not null or undefined
136
+ (0, common_1.assertParamExists)('getUserInfo', 'id', id);
137
+ const localVarPath = `/api/users/{id}`
138
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
139
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
140
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
141
+ let baseOptions;
142
+ if (configuration) {
143
+ baseOptions = configuration.baseOptions;
144
+ }
145
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
146
+ const localVarHeaderParameter = {};
147
+ const localVarQueryParameter = {};
148
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
149
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
150
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
151
+ return {
152
+ url: (0, common_1.toPathString)(localVarUrlObj),
153
+ options: localVarRequestOptions,
154
+ };
155
+ }),
156
+ /**
157
+ *
158
+ * @summary Authentifie un utilisateur
159
+ * @param {LoginRequestBody} loginRequestBody
160
+ * @param {*} [options] Override http request option.
161
+ * @throws {RequiredError}
162
+ */
163
+ login: (loginRequestBody_1, ...args_1) => __awaiter(this, [loginRequestBody_1, ...args_1], void 0, function* (loginRequestBody, options = {}) {
164
+ // verify required parameter 'loginRequestBody' is not null or undefined
165
+ (0, common_1.assertParamExists)('login', 'loginRequestBody', loginRequestBody);
166
+ const localVarPath = `/api/users/login`;
167
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
168
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
169
+ let baseOptions;
170
+ if (configuration) {
171
+ baseOptions = configuration.baseOptions;
172
+ }
173
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
174
+ const localVarHeaderParameter = {};
175
+ const localVarQueryParameter = {};
176
+ localVarHeaderParameter['Content-Type'] = 'application/json';
177
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
178
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
179
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
180
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(loginRequestBody, localVarRequestOptions, configuration);
181
+ return {
182
+ url: (0, common_1.toPathString)(localVarUrlObj),
183
+ options: localVarRequestOptions,
184
+ };
185
+ }),
186
+ /**
187
+ *
188
+ * @summary Rafraîchit le token d\'accès
189
+ * @param {RefreshTokenRequestBody} refreshTokenRequestBody
190
+ * @param {*} [options] Override http request option.
191
+ * @throws {RequiredError}
192
+ */
193
+ refreshToken: (refreshTokenRequestBody_1, ...args_1) => __awaiter(this, [refreshTokenRequestBody_1, ...args_1], void 0, function* (refreshTokenRequestBody, options = {}) {
194
+ // verify required parameter 'refreshTokenRequestBody' is not null or undefined
195
+ (0, common_1.assertParamExists)('refreshToken', 'refreshTokenRequestBody', refreshTokenRequestBody);
196
+ const localVarPath = `/api/users/refresh-token`;
197
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
198
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
199
+ let baseOptions;
200
+ if (configuration) {
201
+ baseOptions = configuration.baseOptions;
202
+ }
203
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
204
+ const localVarHeaderParameter = {};
205
+ const localVarQueryParameter = {};
206
+ localVarHeaderParameter['Content-Type'] = 'application/json';
207
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
208
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
209
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
210
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(refreshTokenRequestBody, localVarRequestOptions, configuration);
211
+ return {
212
+ url: (0, common_1.toPathString)(localVarUrlObj),
213
+ options: localVarRequestOptions,
214
+ };
215
+ }),
216
+ /**
217
+ *
218
+ * @summary Crée un nouvel utilisateur
219
+ * @param {RegisterRequestBody} registerRequestBody
220
+ * @param {*} [options] Override http request option.
221
+ * @throws {RequiredError}
222
+ */
223
+ register: (registerRequestBody_1, ...args_1) => __awaiter(this, [registerRequestBody_1, ...args_1], void 0, function* (registerRequestBody, options = {}) {
224
+ // verify required parameter 'registerRequestBody' is not null or undefined
225
+ (0, common_1.assertParamExists)('register', 'registerRequestBody', registerRequestBody);
226
+ const localVarPath = `/api/users`;
227
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
228
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
229
+ let baseOptions;
230
+ if (configuration) {
231
+ baseOptions = configuration.baseOptions;
232
+ }
233
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
234
+ const localVarHeaderParameter = {};
235
+ const localVarQueryParameter = {};
236
+ localVarHeaderParameter['Content-Type'] = 'application/json';
237
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
238
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
239
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
240
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(registerRequestBody, localVarRequestOptions, configuration);
241
+ return {
242
+ url: (0, common_1.toPathString)(localVarUrlObj),
243
+ options: localVarRequestOptions,
244
+ };
245
+ }),
246
+ /**
247
+ *
248
+ * @summary Met à jour un utilisateur
249
+ * @param {string} id ID de l\'utilisateur
250
+ * @param {UpdateUserRequestBody} updateUserRequestBody
251
+ * @param {*} [options] Override http request option.
252
+ * @throws {RequiredError}
253
+ */
254
+ updateUser: (id_1, updateUserRequestBody_1, ...args_1) => __awaiter(this, [id_1, updateUserRequestBody_1, ...args_1], void 0, function* (id, updateUserRequestBody, options = {}) {
255
+ // verify required parameter 'id' is not null or undefined
256
+ (0, common_1.assertParamExists)('updateUser', 'id', id);
257
+ // verify required parameter 'updateUserRequestBody' is not null or undefined
258
+ (0, common_1.assertParamExists)('updateUser', 'updateUserRequestBody', updateUserRequestBody);
259
+ const localVarPath = `/api/users/{id}`
260
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
261
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
262
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
263
+ let baseOptions;
264
+ if (configuration) {
265
+ baseOptions = configuration.baseOptions;
266
+ }
267
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
268
+ const localVarHeaderParameter = {};
269
+ const localVarQueryParameter = {};
270
+ localVarHeaderParameter['Content-Type'] = 'application/json';
271
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
272
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
273
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
274
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateUserRequestBody, localVarRequestOptions, configuration);
275
+ return {
276
+ url: (0, common_1.toPathString)(localVarUrlObj),
277
+ options: localVarRequestOptions,
278
+ };
279
+ }),
93
280
  };
94
281
  };
95
282
  exports.UsersApiAxiosParamCreator = UsersApiAxiosParamCreator;
@@ -102,7 +289,24 @@ const UsersApiFp = function (configuration) {
102
289
  return {
103
290
  /**
104
291
  *
105
- * @summary Retrieve all users
292
+ * @summary Modifie le mot de passe d\'un utilisateur
293
+ * @param {string} id ID de l\'utilisateur
294
+ * @param {ChangePasswordRequestBody} changePasswordRequestBody
295
+ * @param {*} [options] Override http request option.
296
+ * @throws {RequiredError}
297
+ */
298
+ changePassword(id, changePasswordRequestBody, options) {
299
+ return __awaiter(this, void 0, void 0, function* () {
300
+ var _a, _b, _c;
301
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.changePassword(id, changePasswordRequestBody, options);
302
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
303
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.changePassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
304
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
305
+ });
306
+ },
307
+ /**
308
+ *
309
+ * @summary Récupère la liste des utilisateurs
106
310
  * @param {*} [options] Override http request option.
107
311
  * @throws {RequiredError}
108
312
  */
@@ -115,6 +319,87 @@ const UsersApiFp = function (configuration) {
115
319
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
116
320
  });
117
321
  },
322
+ /**
323
+ *
324
+ * @summary Récupère un utilisateur par ID
325
+ * @param {string} id ID de l\'utilisateur
326
+ * @param {*} [options] Override http request option.
327
+ * @throws {RequiredError}
328
+ */
329
+ getUserInfo(id, options) {
330
+ return __awaiter(this, void 0, void 0, function* () {
331
+ var _a, _b, _c;
332
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserInfo(id, options);
333
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
334
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.getUserInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
335
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
336
+ });
337
+ },
338
+ /**
339
+ *
340
+ * @summary Authentifie un utilisateur
341
+ * @param {LoginRequestBody} loginRequestBody
342
+ * @param {*} [options] Override http request option.
343
+ * @throws {RequiredError}
344
+ */
345
+ login(loginRequestBody, options) {
346
+ return __awaiter(this, void 0, void 0, function* () {
347
+ var _a, _b, _c;
348
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.login(loginRequestBody, options);
349
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
350
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.login']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
351
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
352
+ });
353
+ },
354
+ /**
355
+ *
356
+ * @summary Rafraîchit le token d\'accès
357
+ * @param {RefreshTokenRequestBody} refreshTokenRequestBody
358
+ * @param {*} [options] Override http request option.
359
+ * @throws {RequiredError}
360
+ */
361
+ refreshToken(refreshTokenRequestBody, options) {
362
+ return __awaiter(this, void 0, void 0, function* () {
363
+ var _a, _b, _c;
364
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.refreshToken(refreshTokenRequestBody, options);
365
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
366
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.refreshToken']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
367
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
368
+ });
369
+ },
370
+ /**
371
+ *
372
+ * @summary Crée un nouvel utilisateur
373
+ * @param {RegisterRequestBody} registerRequestBody
374
+ * @param {*} [options] Override http request option.
375
+ * @throws {RequiredError}
376
+ */
377
+ register(registerRequestBody, options) {
378
+ return __awaiter(this, void 0, void 0, function* () {
379
+ var _a, _b, _c;
380
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.register(registerRequestBody, options);
381
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
382
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.register']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
383
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
384
+ });
385
+ },
386
+ /**
387
+ *
388
+ * @summary Met à jour un utilisateur
389
+ * @param {string} id ID de l\'utilisateur
390
+ * @param {UpdateUserRequestBody} updateUserRequestBody
391
+ * @param {*} [options] Override http request option.
392
+ * @throws {RequiredError}
393
+ */
394
+ updateUser(id, updateUserRequestBody, options) {
395
+ return __awaiter(this, void 0, void 0, function* () {
396
+ var _a, _b, _c;
397
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUser(id, updateUserRequestBody, options);
398
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
399
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.updateUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
400
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
401
+ });
402
+ },
118
403
  };
119
404
  };
120
405
  exports.UsersApiFp = UsersApiFp;
@@ -127,13 +412,73 @@ const UsersApiFactory = function (configuration, basePath, axios) {
127
412
  return {
128
413
  /**
129
414
  *
130
- * @summary Retrieve all users
415
+ * @summary Modifie le mot de passe d\'un utilisateur
416
+ * @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
417
+ * @param {*} [options] Override http request option.
418
+ * @throws {RequiredError}
419
+ */
420
+ changePassword(requestParameters, options) {
421
+ return localVarFp.changePassword(requestParameters.id, requestParameters.changePasswordRequestBody, options).then((request) => request(axios, basePath));
422
+ },
423
+ /**
424
+ *
425
+ * @summary Récupère la liste des utilisateurs
131
426
  * @param {*} [options] Override http request option.
132
427
  * @throws {RequiredError}
133
428
  */
134
429
  getAllUsers(options) {
135
430
  return localVarFp.getAllUsers(options).then((request) => request(axios, basePath));
136
431
  },
432
+ /**
433
+ *
434
+ * @summary Récupère un utilisateur par ID
435
+ * @param {UsersApiGetUserInfoRequest} requestParameters Request parameters.
436
+ * @param {*} [options] Override http request option.
437
+ * @throws {RequiredError}
438
+ */
439
+ getUserInfo(requestParameters, options) {
440
+ return localVarFp.getUserInfo(requestParameters.id, options).then((request) => request(axios, basePath));
441
+ },
442
+ /**
443
+ *
444
+ * @summary Authentifie un utilisateur
445
+ * @param {UsersApiLoginRequest} requestParameters Request parameters.
446
+ * @param {*} [options] Override http request option.
447
+ * @throws {RequiredError}
448
+ */
449
+ login(requestParameters, options) {
450
+ return localVarFp.login(requestParameters.loginRequestBody, options).then((request) => request(axios, basePath));
451
+ },
452
+ /**
453
+ *
454
+ * @summary Rafraîchit le token d\'accès
455
+ * @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
456
+ * @param {*} [options] Override http request option.
457
+ * @throws {RequiredError}
458
+ */
459
+ refreshToken(requestParameters, options) {
460
+ return localVarFp.refreshToken(requestParameters.refreshTokenRequestBody, options).then((request) => request(axios, basePath));
461
+ },
462
+ /**
463
+ *
464
+ * @summary Crée un nouvel utilisateur
465
+ * @param {UsersApiRegisterRequest} requestParameters Request parameters.
466
+ * @param {*} [options] Override http request option.
467
+ * @throws {RequiredError}
468
+ */
469
+ register(requestParameters, options) {
470
+ return localVarFp.register(requestParameters.registerRequestBody, options).then((request) => request(axios, basePath));
471
+ },
472
+ /**
473
+ *
474
+ * @summary Met à jour un utilisateur
475
+ * @param {UsersApiUpdateUserRequest} requestParameters Request parameters.
476
+ * @param {*} [options] Override http request option.
477
+ * @throws {RequiredError}
478
+ */
479
+ updateUser(requestParameters, options) {
480
+ return localVarFp.updateUser(requestParameters.id, requestParameters.updateUserRequestBody, options).then((request) => request(axios, basePath));
481
+ },
137
482
  };
138
483
  };
139
484
  exports.UsersApiFactory = UsersApiFactory;
@@ -146,7 +491,18 @@ exports.UsersApiFactory = UsersApiFactory;
146
491
  class UsersApi extends base_1.BaseAPI {
147
492
  /**
148
493
  *
149
- * @summary Retrieve all users
494
+ * @summary Modifie le mot de passe d\'un utilisateur
495
+ * @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
496
+ * @param {*} [options] Override http request option.
497
+ * @throws {RequiredError}
498
+ * @memberof UsersApi
499
+ */
500
+ changePassword(requestParameters, options) {
501
+ return (0, exports.UsersApiFp)(this.configuration).changePassword(requestParameters.id, requestParameters.changePasswordRequestBody, options).then((request) => request(this.axios, this.basePath));
502
+ }
503
+ /**
504
+ *
505
+ * @summary Récupère la liste des utilisateurs
150
506
  * @param {*} [options] Override http request option.
151
507
  * @throws {RequiredError}
152
508
  * @memberof UsersApi
@@ -154,5 +510,60 @@ class UsersApi extends base_1.BaseAPI {
154
510
  getAllUsers(options) {
155
511
  return (0, exports.UsersApiFp)(this.configuration).getAllUsers(options).then((request) => request(this.axios, this.basePath));
156
512
  }
513
+ /**
514
+ *
515
+ * @summary Récupère un utilisateur par ID
516
+ * @param {UsersApiGetUserInfoRequest} requestParameters Request parameters.
517
+ * @param {*} [options] Override http request option.
518
+ * @throws {RequiredError}
519
+ * @memberof UsersApi
520
+ */
521
+ getUserInfo(requestParameters, options) {
522
+ return (0, exports.UsersApiFp)(this.configuration).getUserInfo(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
523
+ }
524
+ /**
525
+ *
526
+ * @summary Authentifie un utilisateur
527
+ * @param {UsersApiLoginRequest} requestParameters Request parameters.
528
+ * @param {*} [options] Override http request option.
529
+ * @throws {RequiredError}
530
+ * @memberof UsersApi
531
+ */
532
+ login(requestParameters, options) {
533
+ return (0, exports.UsersApiFp)(this.configuration).login(requestParameters.loginRequestBody, options).then((request) => request(this.axios, this.basePath));
534
+ }
535
+ /**
536
+ *
537
+ * @summary Rafraîchit le token d\'accès
538
+ * @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
539
+ * @param {*} [options] Override http request option.
540
+ * @throws {RequiredError}
541
+ * @memberof UsersApi
542
+ */
543
+ refreshToken(requestParameters, options) {
544
+ return (0, exports.UsersApiFp)(this.configuration).refreshToken(requestParameters.refreshTokenRequestBody, options).then((request) => request(this.axios, this.basePath));
545
+ }
546
+ /**
547
+ *
548
+ * @summary Crée un nouvel utilisateur
549
+ * @param {UsersApiRegisterRequest} requestParameters Request parameters.
550
+ * @param {*} [options] Override http request option.
551
+ * @throws {RequiredError}
552
+ * @memberof UsersApi
553
+ */
554
+ register(requestParameters, options) {
555
+ return (0, exports.UsersApiFp)(this.configuration).register(requestParameters.registerRequestBody, options).then((request) => request(this.axios, this.basePath));
556
+ }
557
+ /**
558
+ *
559
+ * @summary Met à jour un utilisateur
560
+ * @param {UsersApiUpdateUserRequest} requestParameters Request parameters.
561
+ * @param {*} [options] Override http request option.
562
+ * @throws {RequiredError}
563
+ * @memberof UsersApi
564
+ */
565
+ updateUser(requestParameters, options) {
566
+ return (0, exports.UsersApiFp)(this.configuration).updateUser(requestParameters.id, requestParameters.updateUserRequestBody, options).then((request) => request(this.axios, this.basePath));
567
+ }
157
568
  }
158
569
  exports.UsersApi = UsersApi;