@tennac-booking/sdk 1.0.10 → 1.0.11
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/README.md +9 -4
- package/api.ts +60 -77
- package/dist/api.d.ts +20 -53
- package/dist/api.js +53 -49
- package/dist/esm/api.d.ts +20 -53
- package/dist/esm/api.js +54 -50
- package/docs/UsersApi.md +12 -28
- package/package.json +5 -1
package/dist/esm/api.js
CHANGED
|
@@ -23,7 +23,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
23
23
|
import globalAxios from 'axios';
|
|
24
24
|
// Some imports not used depending on template conditions
|
|
25
25
|
// @ts-ignore
|
|
26
|
-
import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
26
|
+
import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
import { BASE_PATH, BaseAPI, operationServerMap } from './base';
|
|
29
29
|
/**
|
|
@@ -64,19 +64,15 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
64
64
|
return {
|
|
65
65
|
/**
|
|
66
66
|
*
|
|
67
|
-
* @summary Modifie le mot de passe
|
|
68
|
-
* @param {string} id ID de l\'utilisateur
|
|
67
|
+
* @summary Modifie le mot de passe de l\'utilisateur connecté
|
|
69
68
|
* @param {ChangePasswordRequestBody} changePasswordRequestBody
|
|
70
69
|
* @param {*} [options] Override http request option.
|
|
71
70
|
* @throws {RequiredError}
|
|
72
71
|
*/
|
|
73
|
-
changePassword: (
|
|
74
|
-
// verify required parameter 'id' is not null or undefined
|
|
75
|
-
assertParamExists('changePassword', 'id', id);
|
|
72
|
+
changePassword: (changePasswordRequestBody_1, ...args_1) => __awaiter(this, [changePasswordRequestBody_1, ...args_1], void 0, function* (changePasswordRequestBody, options = {}) {
|
|
76
73
|
// verify required parameter 'changePasswordRequestBody' is not null or undefined
|
|
77
74
|
assertParamExists('changePassword', 'changePasswordRequestBody', changePasswordRequestBody);
|
|
78
|
-
const localVarPath = `/api/users/
|
|
79
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
75
|
+
const localVarPath = `/api/users/me/password`;
|
|
80
76
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
81
77
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
82
78
|
let baseOptions;
|
|
@@ -86,6 +82,9 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
86
82
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
87
83
|
const localVarHeaderParameter = {};
|
|
88
84
|
const localVarQueryParameter = {};
|
|
85
|
+
// authentication bearerAuth required
|
|
86
|
+
// http bearer authentication required
|
|
87
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
89
88
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
90
89
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
91
90
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -113,6 +112,9 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
113
112
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
114
113
|
const localVarHeaderParameter = {};
|
|
115
114
|
const localVarQueryParameter = {};
|
|
115
|
+
// authentication bearerAuth required
|
|
116
|
+
// http bearer authentication required
|
|
117
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
116
118
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
117
119
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
118
120
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -123,16 +125,12 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
123
125
|
}),
|
|
124
126
|
/**
|
|
125
127
|
*
|
|
126
|
-
* @summary Récupère
|
|
127
|
-
* @param {string} id ID de l\'utilisateur
|
|
128
|
+
* @summary Récupère les informations de l\'utilisateur connecté
|
|
128
129
|
* @param {*} [options] Override http request option.
|
|
129
130
|
* @throws {RequiredError}
|
|
130
131
|
*/
|
|
131
|
-
getUserInfo: (
|
|
132
|
-
|
|
133
|
-
assertParamExists('getUserInfo', 'id', id);
|
|
134
|
-
const localVarPath = `/api/users/{id}`
|
|
135
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
132
|
+
getUserInfo: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
133
|
+
const localVarPath = `/api/users/me`;
|
|
136
134
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
137
135
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
138
136
|
let baseOptions;
|
|
@@ -142,6 +140,9 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
142
140
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
143
141
|
const localVarHeaderParameter = {};
|
|
144
142
|
const localVarQueryParameter = {};
|
|
143
|
+
// authentication bearerAuth required
|
|
144
|
+
// http bearer authentication required
|
|
145
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
145
146
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
146
147
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
147
148
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -170,6 +171,9 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
170
171
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
171
172
|
const localVarHeaderParameter = {};
|
|
172
173
|
const localVarQueryParameter = {};
|
|
174
|
+
// authentication bearerAuth required
|
|
175
|
+
// http bearer authentication required
|
|
176
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
173
177
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
174
178
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
175
179
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -200,6 +204,9 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
200
204
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
201
205
|
const localVarHeaderParameter = {};
|
|
202
206
|
const localVarQueryParameter = {};
|
|
207
|
+
// authentication bearerAuth required
|
|
208
|
+
// http bearer authentication required
|
|
209
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
203
210
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
204
211
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
205
212
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -230,6 +237,9 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
230
237
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
231
238
|
const localVarHeaderParameter = {};
|
|
232
239
|
const localVarQueryParameter = {};
|
|
240
|
+
// authentication bearerAuth required
|
|
241
|
+
// http bearer authentication required
|
|
242
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
233
243
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
234
244
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
235
245
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -242,19 +252,15 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
242
252
|
}),
|
|
243
253
|
/**
|
|
244
254
|
*
|
|
245
|
-
* @summary Met à jour
|
|
246
|
-
* @param {string} id ID de l\'utilisateur
|
|
255
|
+
* @summary Met à jour les données de l\'utilisateur connecté
|
|
247
256
|
* @param {UpdateUserRequestBody} updateUserRequestBody
|
|
248
257
|
* @param {*} [options] Override http request option.
|
|
249
258
|
* @throws {RequiredError}
|
|
250
259
|
*/
|
|
251
|
-
updateUser: (
|
|
252
|
-
// verify required parameter 'id' is not null or undefined
|
|
253
|
-
assertParamExists('updateUser', 'id', id);
|
|
260
|
+
updateUser: (updateUserRequestBody_1, ...args_1) => __awaiter(this, [updateUserRequestBody_1, ...args_1], void 0, function* (updateUserRequestBody, options = {}) {
|
|
254
261
|
// verify required parameter 'updateUserRequestBody' is not null or undefined
|
|
255
262
|
assertParamExists('updateUser', 'updateUserRequestBody', updateUserRequestBody);
|
|
256
|
-
const localVarPath = `/api/users/
|
|
257
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
263
|
+
const localVarPath = `/api/users/me`;
|
|
258
264
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
259
265
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
260
266
|
let baseOptions;
|
|
@@ -264,6 +270,9 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
264
270
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
265
271
|
const localVarHeaderParameter = {};
|
|
266
272
|
const localVarQueryParameter = {};
|
|
273
|
+
// authentication bearerAuth required
|
|
274
|
+
// http bearer authentication required
|
|
275
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
267
276
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
268
277
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
269
278
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -285,16 +294,15 @@ export const UsersApiFp = function (configuration) {
|
|
|
285
294
|
return {
|
|
286
295
|
/**
|
|
287
296
|
*
|
|
288
|
-
* @summary Modifie le mot de passe
|
|
289
|
-
* @param {string} id ID de l\'utilisateur
|
|
297
|
+
* @summary Modifie le mot de passe de l\'utilisateur connecté
|
|
290
298
|
* @param {ChangePasswordRequestBody} changePasswordRequestBody
|
|
291
299
|
* @param {*} [options] Override http request option.
|
|
292
300
|
* @throws {RequiredError}
|
|
293
301
|
*/
|
|
294
|
-
changePassword(
|
|
302
|
+
changePassword(changePasswordRequestBody, options) {
|
|
295
303
|
return __awaiter(this, void 0, void 0, function* () {
|
|
296
304
|
var _a, _b, _c;
|
|
297
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.changePassword(
|
|
305
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.changePassword(changePasswordRequestBody, options);
|
|
298
306
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
299
307
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.changePassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
300
308
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -317,15 +325,14 @@ export const UsersApiFp = function (configuration) {
|
|
|
317
325
|
},
|
|
318
326
|
/**
|
|
319
327
|
*
|
|
320
|
-
* @summary Récupère
|
|
321
|
-
* @param {string} id ID de l\'utilisateur
|
|
328
|
+
* @summary Récupère les informations de l\'utilisateur connecté
|
|
322
329
|
* @param {*} [options] Override http request option.
|
|
323
330
|
* @throws {RequiredError}
|
|
324
331
|
*/
|
|
325
|
-
getUserInfo(
|
|
332
|
+
getUserInfo(options) {
|
|
326
333
|
return __awaiter(this, void 0, void 0, function* () {
|
|
327
334
|
var _a, _b, _c;
|
|
328
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserInfo(
|
|
335
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserInfo(options);
|
|
329
336
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
330
337
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.getUserInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
331
338
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -381,16 +388,15 @@ export const UsersApiFp = function (configuration) {
|
|
|
381
388
|
},
|
|
382
389
|
/**
|
|
383
390
|
*
|
|
384
|
-
* @summary Met à jour
|
|
385
|
-
* @param {string} id ID de l\'utilisateur
|
|
391
|
+
* @summary Met à jour les données de l\'utilisateur connecté
|
|
386
392
|
* @param {UpdateUserRequestBody} updateUserRequestBody
|
|
387
393
|
* @param {*} [options] Override http request option.
|
|
388
394
|
* @throws {RequiredError}
|
|
389
395
|
*/
|
|
390
|
-
updateUser(
|
|
396
|
+
updateUser(updateUserRequestBody, options) {
|
|
391
397
|
return __awaiter(this, void 0, void 0, function* () {
|
|
392
398
|
var _a, _b, _c;
|
|
393
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUser(
|
|
399
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUser(updateUserRequestBody, options);
|
|
394
400
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
395
401
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.updateUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
396
402
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -407,13 +413,13 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
407
413
|
return {
|
|
408
414
|
/**
|
|
409
415
|
*
|
|
410
|
-
* @summary Modifie le mot de passe
|
|
416
|
+
* @summary Modifie le mot de passe de l\'utilisateur connecté
|
|
411
417
|
* @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
|
|
412
418
|
* @param {*} [options] Override http request option.
|
|
413
419
|
* @throws {RequiredError}
|
|
414
420
|
*/
|
|
415
421
|
changePassword(requestParameters, options) {
|
|
416
|
-
return localVarFp.changePassword(requestParameters.
|
|
422
|
+
return localVarFp.changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(axios, basePath));
|
|
417
423
|
},
|
|
418
424
|
/**
|
|
419
425
|
*
|
|
@@ -426,13 +432,12 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
426
432
|
},
|
|
427
433
|
/**
|
|
428
434
|
*
|
|
429
|
-
* @summary Récupère
|
|
430
|
-
* @param {UsersApiGetUserInfoRequest} requestParameters Request parameters.
|
|
435
|
+
* @summary Récupère les informations de l\'utilisateur connecté
|
|
431
436
|
* @param {*} [options] Override http request option.
|
|
432
437
|
* @throws {RequiredError}
|
|
433
438
|
*/
|
|
434
|
-
getUserInfo(
|
|
435
|
-
return localVarFp.getUserInfo(
|
|
439
|
+
getUserInfo(options) {
|
|
440
|
+
return localVarFp.getUserInfo(options).then((request) => request(axios, basePath));
|
|
436
441
|
},
|
|
437
442
|
/**
|
|
438
443
|
*
|
|
@@ -466,13 +471,13 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
466
471
|
},
|
|
467
472
|
/**
|
|
468
473
|
*
|
|
469
|
-
* @summary Met à jour
|
|
474
|
+
* @summary Met à jour les données de l\'utilisateur connecté
|
|
470
475
|
* @param {UsersApiUpdateUserRequest} requestParameters Request parameters.
|
|
471
476
|
* @param {*} [options] Override http request option.
|
|
472
477
|
* @throws {RequiredError}
|
|
473
478
|
*/
|
|
474
479
|
updateUser(requestParameters, options) {
|
|
475
|
-
return localVarFp.updateUser(requestParameters.
|
|
480
|
+
return localVarFp.updateUser(requestParameters.updateUserRequestBody, options).then((request) => request(axios, basePath));
|
|
476
481
|
},
|
|
477
482
|
};
|
|
478
483
|
};
|
|
@@ -485,14 +490,14 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
485
490
|
export class UsersApi extends BaseAPI {
|
|
486
491
|
/**
|
|
487
492
|
*
|
|
488
|
-
* @summary Modifie le mot de passe
|
|
493
|
+
* @summary Modifie le mot de passe de l\'utilisateur connecté
|
|
489
494
|
* @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
|
|
490
495
|
* @param {*} [options] Override http request option.
|
|
491
496
|
* @throws {RequiredError}
|
|
492
497
|
* @memberof UsersApi
|
|
493
498
|
*/
|
|
494
499
|
changePassword(requestParameters, options) {
|
|
495
|
-
return UsersApiFp(this.configuration).changePassword(requestParameters.
|
|
500
|
+
return UsersApiFp(this.configuration).changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
496
501
|
}
|
|
497
502
|
/**
|
|
498
503
|
*
|
|
@@ -506,14 +511,13 @@ export class UsersApi extends BaseAPI {
|
|
|
506
511
|
}
|
|
507
512
|
/**
|
|
508
513
|
*
|
|
509
|
-
* @summary Récupère
|
|
510
|
-
* @param {UsersApiGetUserInfoRequest} requestParameters Request parameters.
|
|
514
|
+
* @summary Récupère les informations de l\'utilisateur connecté
|
|
511
515
|
* @param {*} [options] Override http request option.
|
|
512
516
|
* @throws {RequiredError}
|
|
513
517
|
* @memberof UsersApi
|
|
514
518
|
*/
|
|
515
|
-
getUserInfo(
|
|
516
|
-
return UsersApiFp(this.configuration).getUserInfo(
|
|
519
|
+
getUserInfo(options) {
|
|
520
|
+
return UsersApiFp(this.configuration).getUserInfo(options).then((request) => request(this.axios, this.basePath));
|
|
517
521
|
}
|
|
518
522
|
/**
|
|
519
523
|
*
|
|
@@ -550,13 +554,13 @@ export class UsersApi extends BaseAPI {
|
|
|
550
554
|
}
|
|
551
555
|
/**
|
|
552
556
|
*
|
|
553
|
-
* @summary Met à jour
|
|
557
|
+
* @summary Met à jour les données de l\'utilisateur connecté
|
|
554
558
|
* @param {UsersApiUpdateUserRequest} requestParameters Request parameters.
|
|
555
559
|
* @param {*} [options] Override http request option.
|
|
556
560
|
* @throws {RequiredError}
|
|
557
561
|
* @memberof UsersApi
|
|
558
562
|
*/
|
|
559
563
|
updateUser(requestParameters, options) {
|
|
560
|
-
return UsersApiFp(this.configuration).updateUser(requestParameters.
|
|
564
|
+
return UsersApiFp(this.configuration).updateUser(requestParameters.updateUserRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
561
565
|
}
|
|
562
566
|
}
|
package/docs/UsersApi.md
CHANGED
|
@@ -4,13 +4,13 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**changePassword**](#changepassword) | **PUT** /api/users/
|
|
7
|
+
|[**changePassword**](#changepassword) | **PUT** /api/users/me/password | Modifie le mot de passe de l\'utilisateur connecté|
|
|
8
8
|
|[**getAllUsers**](#getallusers) | **GET** /api/users | Récupère la liste des utilisateurs|
|
|
9
|
-
|[**getUserInfo**](#getuserinfo) | **GET** /api/users/
|
|
9
|
+
|[**getUserInfo**](#getuserinfo) | **GET** /api/users/me | Récupère les informations de l\'utilisateur connecté|
|
|
10
10
|
|[**login**](#login) | **POST** /api/users/login | Authentifie un utilisateur|
|
|
11
11
|
|[**refreshToken**](#refreshtoken) | **POST** /api/users/refresh-token | Rafraîchit le token d\'accès|
|
|
12
12
|
|[**register**](#register) | **POST** /api/users | Crée un nouvel utilisateur|
|
|
13
|
-
|[**updateUser**](#updateuser) | **PUT** /api/users/
|
|
13
|
+
|[**updateUser**](#updateuser) | **PUT** /api/users/me | Met à jour les données de l\'utilisateur connecté|
|
|
14
14
|
|
|
15
15
|
# **changePassword**
|
|
16
16
|
> ChangePasswordResponse changePassword(changePasswordRequestBody)
|
|
@@ -28,11 +28,9 @@ import {
|
|
|
28
28
|
const configuration = new Configuration();
|
|
29
29
|
const apiInstance = new UsersApi(configuration);
|
|
30
30
|
|
|
31
|
-
let id: string; //ID de l\'utilisateur (default to undefined)
|
|
32
31
|
let changePasswordRequestBody: ChangePasswordRequestBody; //
|
|
33
32
|
|
|
34
33
|
const { status, data } = await apiInstance.changePassword(
|
|
35
|
-
id,
|
|
36
34
|
changePasswordRequestBody
|
|
37
35
|
);
|
|
38
36
|
```
|
|
@@ -42,7 +40,6 @@ const { status, data } = await apiInstance.changePassword(
|
|
|
42
40
|
|Name | Type | Description | Notes|
|
|
43
41
|
|------------- | ------------- | ------------- | -------------|
|
|
44
42
|
| **changePasswordRequestBody** | **ChangePasswordRequestBody**| | |
|
|
45
|
-
| **id** | [**string**] | ID de l\'utilisateur | defaults to undefined|
|
|
46
43
|
|
|
47
44
|
|
|
48
45
|
### Return type
|
|
@@ -51,7 +48,7 @@ const { status, data } = await apiInstance.changePassword(
|
|
|
51
48
|
|
|
52
49
|
### Authorization
|
|
53
50
|
|
|
54
|
-
|
|
51
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
55
52
|
|
|
56
53
|
### HTTP request headers
|
|
57
54
|
|
|
@@ -65,7 +62,6 @@ No authorization required
|
|
|
65
62
|
|**200** | Mot de passe modifié | - |
|
|
66
63
|
|**400** | | - |
|
|
67
64
|
|**401** | | - |
|
|
68
|
-
|**404** | | - |
|
|
69
65
|
|**500** | | - |
|
|
70
66
|
|
|
71
67
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
@@ -98,7 +94,7 @@ This endpoint does not have any parameters.
|
|
|
98
94
|
|
|
99
95
|
### Authorization
|
|
100
96
|
|
|
101
|
-
|
|
97
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
102
98
|
|
|
103
99
|
### HTTP request headers
|
|
104
100
|
|
|
@@ -130,18 +126,11 @@ import {
|
|
|
130
126
|
const configuration = new Configuration();
|
|
131
127
|
const apiInstance = new UsersApi(configuration);
|
|
132
128
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
const { status, data } = await apiInstance.getUserInfo(
|
|
136
|
-
id
|
|
137
|
-
);
|
|
129
|
+
const { status, data } = await apiInstance.getUserInfo();
|
|
138
130
|
```
|
|
139
131
|
|
|
140
132
|
### Parameters
|
|
141
|
-
|
|
142
|
-
|Name | Type | Description | Notes|
|
|
143
|
-
|------------- | ------------- | ------------- | -------------|
|
|
144
|
-
| **id** | [**string**] | ID de l\'utilisateur | defaults to undefined|
|
|
133
|
+
This endpoint does not have any parameters.
|
|
145
134
|
|
|
146
135
|
|
|
147
136
|
### Return type
|
|
@@ -150,7 +139,7 @@ const { status, data } = await apiInstance.getUserInfo(
|
|
|
150
139
|
|
|
151
140
|
### Authorization
|
|
152
141
|
|
|
153
|
-
|
|
142
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
154
143
|
|
|
155
144
|
### HTTP request headers
|
|
156
145
|
|
|
@@ -163,7 +152,6 @@ No authorization required
|
|
|
163
152
|
|-------------|-------------|------------------|
|
|
164
153
|
|**200** | Informations de l\'utilisateur | - |
|
|
165
154
|
|**401** | | - |
|
|
166
|
-
|**404** | | - |
|
|
167
155
|
|**500** | | - |
|
|
168
156
|
|
|
169
157
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
@@ -204,7 +192,7 @@ const { status, data } = await apiInstance.login(
|
|
|
204
192
|
|
|
205
193
|
### Authorization
|
|
206
194
|
|
|
207
|
-
|
|
195
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
208
196
|
|
|
209
197
|
### HTTP request headers
|
|
210
198
|
|
|
@@ -258,7 +246,7 @@ const { status, data } = await apiInstance.refreshToken(
|
|
|
258
246
|
|
|
259
247
|
### Authorization
|
|
260
248
|
|
|
261
|
-
|
|
249
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
262
250
|
|
|
263
251
|
### HTTP request headers
|
|
264
252
|
|
|
@@ -312,7 +300,7 @@ const { status, data } = await apiInstance.register(
|
|
|
312
300
|
|
|
313
301
|
### Authorization
|
|
314
302
|
|
|
315
|
-
|
|
303
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
316
304
|
|
|
317
305
|
### HTTP request headers
|
|
318
306
|
|
|
@@ -346,11 +334,9 @@ import {
|
|
|
346
334
|
const configuration = new Configuration();
|
|
347
335
|
const apiInstance = new UsersApi(configuration);
|
|
348
336
|
|
|
349
|
-
let id: string; //ID de l\'utilisateur (default to undefined)
|
|
350
337
|
let updateUserRequestBody: UpdateUserRequestBody; //
|
|
351
338
|
|
|
352
339
|
const { status, data } = await apiInstance.updateUser(
|
|
353
|
-
id,
|
|
354
340
|
updateUserRequestBody
|
|
355
341
|
);
|
|
356
342
|
```
|
|
@@ -360,7 +346,6 @@ const { status, data } = await apiInstance.updateUser(
|
|
|
360
346
|
|Name | Type | Description | Notes|
|
|
361
347
|
|------------- | ------------- | ------------- | -------------|
|
|
362
348
|
| **updateUserRequestBody** | **UpdateUserRequestBody**| | |
|
|
363
|
-
| **id** | [**string**] | ID de l\'utilisateur | defaults to undefined|
|
|
364
349
|
|
|
365
350
|
|
|
366
351
|
### Return type
|
|
@@ -369,7 +354,7 @@ const { status, data } = await apiInstance.updateUser(
|
|
|
369
354
|
|
|
370
355
|
### Authorization
|
|
371
356
|
|
|
372
|
-
|
|
357
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
373
358
|
|
|
374
359
|
### HTTP request headers
|
|
375
360
|
|
|
@@ -383,7 +368,6 @@ No authorization required
|
|
|
383
368
|
|**200** | Utilisateur mis à jour | - |
|
|
384
369
|
|**400** | | - |
|
|
385
370
|
|**401** | | - |
|
|
386
|
-
|**404** | | - |
|
|
387
371
|
|**500** | | - |
|
|
388
372
|
|
|
389
373
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
package/package.json
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tennac-booking/sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"description": "OpenAPI client for @tennac-booking/sdk",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
|
|
9
|
+
},
|
|
6
10
|
"keywords": [
|
|
7
11
|
"axios",
|
|
8
12
|
"typescript",
|