@tennac-booking/sdk 1.0.8 → 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.
@@ -0,0 +1,36 @@
1
+ # RegisterRequestBody
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **username** | **string** | | [optional] [default to undefined]
9
+ **firstName** | **string** | | [default to undefined]
10
+ **lastName** | **string** | | [default to undefined]
11
+ **email** | **string** | | [default to undefined]
12
+ **password** | **string** | | [default to undefined]
13
+ **level** | **string** | | [optional] [default to undefined]
14
+ **stripeCustomerId** | **string** | | [optional] [default to undefined]
15
+ **phone** | **string** | | [optional] [default to undefined]
16
+ **profilePicture** | **string** | | [optional] [default to undefined]
17
+
18
+ ## Example
19
+
20
+ ```typescript
21
+ import { RegisterRequestBody } from '@tennac-booking/sdk';
22
+
23
+ const instance: RegisterRequestBody = {
24
+ username,
25
+ firstName,
26
+ lastName,
27
+ email,
28
+ password,
29
+ level,
30
+ stripeCustomerId,
31
+ phone,
32
+ profilePicture,
33
+ };
34
+ ```
35
+
36
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,32 @@
1
+ # UpdateUserRequestBody
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **username** | **string** | | [optional] [default to undefined]
9
+ **firstName** | **string** | | [optional] [default to undefined]
10
+ **lastName** | **string** | | [optional] [default to undefined]
11
+ **email** | **string** | | [optional] [default to undefined]
12
+ **phone** | **string** | | [optional] [default to undefined]
13
+ **profilePicture** | **string** | | [optional] [default to undefined]
14
+ **level** | **string** | | [optional] [default to undefined]
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import { UpdateUserRequestBody } from '@tennac-booking/sdk';
20
+
21
+ const instance: UpdateUserRequestBody = {
22
+ username,
23
+ firstName,
24
+ lastName,
25
+ email,
26
+ phone,
27
+ profilePicture,
28
+ level,
29
+ };
30
+ ```
31
+
32
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,44 @@
1
+ # UserResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [default to undefined]
9
+ **username** | **string** | | [optional] [default to undefined]
10
+ **firstName** | **string** | | [default to undefined]
11
+ **lastName** | **string** | | [default to undefined]
12
+ **email** | **string** | | [default to undefined]
13
+ **isAccountVerified** | **boolean** | | [default to undefined]
14
+ **level** | **string** | | [optional] [default to undefined]
15
+ **stripeCustomerId** | **string** | | [optional] [default to undefined]
16
+ **phone** | **string** | | [optional] [default to undefined]
17
+ **profilePicture** | **string** | | [optional] [default to undefined]
18
+ **isAdmin** | **boolean** | | [default to undefined]
19
+ **createdAt** | **string** | | [default to undefined]
20
+ **updatedAt** | **string** | | [default to undefined]
21
+
22
+ ## Example
23
+
24
+ ```typescript
25
+ import { UserResponse } from '@tennac-booking/sdk';
26
+
27
+ const instance: UserResponse = {
28
+ id,
29
+ username,
30
+ firstName,
31
+ lastName,
32
+ email,
33
+ isAccountVerified,
34
+ level,
35
+ stripeCustomerId,
36
+ phone,
37
+ profilePicture,
38
+ isAdmin,
39
+ createdAt,
40
+ updatedAt,
41
+ };
42
+ ```
43
+
44
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/docs/UsersApi.md CHANGED
@@ -4,10 +4,70 @@ All URIs are relative to *https://api.mon-domaine.com*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
- |[**getAllUsers**](#getallusers) | **GET** /api/users | Retrieve all users|
7
+ |[**changePassword**](#changepassword) | **PUT** /api/users/me/password | Modifie le mot de passe de l\'utilisateur connecté|
8
+ |[**getAllUsers**](#getallusers) | **GET** /api/users | Récupère la liste des utilisateurs|
9
+ |[**getUserInfo**](#getuserinfo) | **GET** /api/users/me | Récupère les informations de l\'utilisateur connecté|
10
+ |[**login**](#login) | **POST** /api/users/login | Authentifie un utilisateur|
11
+ |[**refreshToken**](#refreshtoken) | **POST** /api/users/refresh-token | Rafraîchit le token d\'accès|
12
+ |[**register**](#register) | **POST** /api/users | Crée un nouvel utilisateur|
13
+ |[**updateUser**](#updateuser) | **PUT** /api/users/me | Met à jour les données de l\'utilisateur connecté|
14
+
15
+ # **changePassword**
16
+ > ChangePasswordResponse changePassword(changePasswordRequestBody)
17
+
18
+
19
+ ### Example
20
+
21
+ ```typescript
22
+ import {
23
+ UsersApi,
24
+ Configuration,
25
+ ChangePasswordRequestBody
26
+ } from '@tennac-booking/sdk';
27
+
28
+ const configuration = new Configuration();
29
+ const apiInstance = new UsersApi(configuration);
30
+
31
+ let changePasswordRequestBody: ChangePasswordRequestBody; //
32
+
33
+ const { status, data } = await apiInstance.changePassword(
34
+ changePasswordRequestBody
35
+ );
36
+ ```
37
+
38
+ ### Parameters
39
+
40
+ |Name | Type | Description | Notes|
41
+ |------------- | ------------- | ------------- | -------------|
42
+ | **changePasswordRequestBody** | **ChangePasswordRequestBody**| | |
43
+
44
+
45
+ ### Return type
46
+
47
+ **ChangePasswordResponse**
48
+
49
+ ### Authorization
50
+
51
+ [bearerAuth](../README.md#bearerAuth)
52
+
53
+ ### HTTP request headers
54
+
55
+ - **Content-Type**: application/json
56
+ - **Accept**: application/json
57
+
58
+
59
+ ### HTTP response details
60
+ | Status code | Description | Response headers |
61
+ |-------------|-------------|------------------|
62
+ |**200** | Mot de passe modifié | - |
63
+ |**400** | | - |
64
+ |**401** | | - |
65
+ |**500** | | - |
66
+
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)
8
68
 
9
69
  # **getAllUsers**
10
- > Array<User> getAllUsers()
70
+ > Array<UserResponse> getAllUsers()
11
71
 
12
72
 
13
73
  ### Example
@@ -30,11 +90,11 @@ This endpoint does not have any parameters.
30
90
 
31
91
  ### Return type
32
92
 
33
- **Array<User>**
93
+ **Array<UserResponse>**
34
94
 
35
95
  ### Authorization
36
96
 
37
- No authorization required
97
+ [bearerAuth](../README.md#bearerAuth)
38
98
 
39
99
  ### HTTP request headers
40
100
 
@@ -45,7 +105,270 @@ No authorization required
45
105
  ### HTTP response details
46
106
  | Status code | Description | Response headers |
47
107
  |-------------|-------------|------------------|
48
- |**200** | A list of users | - |
108
+ |**200** | Liste des utilisateurs | - |
109
+ |**401** | | - |
110
+ |**500** | | - |
111
+
112
+ [[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)
113
+
114
+ # **getUserInfo**
115
+ > UserResponse getUserInfo()
116
+
117
+
118
+ ### Example
119
+
120
+ ```typescript
121
+ import {
122
+ UsersApi,
123
+ Configuration
124
+ } from '@tennac-booking/sdk';
125
+
126
+ const configuration = new Configuration();
127
+ const apiInstance = new UsersApi(configuration);
128
+
129
+ const { status, data } = await apiInstance.getUserInfo();
130
+ ```
131
+
132
+ ### Parameters
133
+ This endpoint does not have any parameters.
134
+
135
+
136
+ ### Return type
137
+
138
+ **UserResponse**
139
+
140
+ ### Authorization
141
+
142
+ [bearerAuth](../README.md#bearerAuth)
143
+
144
+ ### HTTP request headers
145
+
146
+ - **Content-Type**: Not defined
147
+ - **Accept**: application/json
148
+
149
+
150
+ ### HTTP response details
151
+ | Status code | Description | Response headers |
152
+ |-------------|-------------|------------------|
153
+ |**200** | Informations de l\&#39;utilisateur | - |
154
+ |**401** | | - |
155
+ |**500** | | - |
156
+
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)
158
+
159
+ # **login**
160
+ > LoginResponse login(loginRequestBody)
161
+
162
+
163
+ ### Example
164
+
165
+ ```typescript
166
+ import {
167
+ UsersApi,
168
+ Configuration,
169
+ LoginRequestBody
170
+ } from '@tennac-booking/sdk';
171
+
172
+ const configuration = new Configuration();
173
+ const apiInstance = new UsersApi(configuration);
174
+
175
+ let loginRequestBody: LoginRequestBody; //
176
+
177
+ const { status, data } = await apiInstance.login(
178
+ loginRequestBody
179
+ );
180
+ ```
181
+
182
+ ### Parameters
183
+
184
+ |Name | Type | Description | Notes|
185
+ |------------- | ------------- | ------------- | -------------|
186
+ | **loginRequestBody** | **LoginRequestBody**| | |
187
+
188
+
189
+ ### Return type
190
+
191
+ **LoginResponse**
192
+
193
+ ### Authorization
194
+
195
+ [bearerAuth](../README.md#bearerAuth)
196
+
197
+ ### HTTP request headers
198
+
199
+ - **Content-Type**: application/json
200
+ - **Accept**: application/json
201
+
202
+
203
+ ### HTTP response details
204
+ | Status code | Description | Response headers |
205
+ |-------------|-------------|------------------|
206
+ |**200** | Authentification réussie | - |
207
+ |**400** | | - |
208
+ |**401** | | - |
209
+ |**500** | | - |
210
+
211
+ [[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)
212
+
213
+ # **refreshToken**
214
+ > RefreshTokenResponse refreshToken(refreshTokenRequestBody)
215
+
216
+
217
+ ### Example
218
+
219
+ ```typescript
220
+ import {
221
+ UsersApi,
222
+ Configuration,
223
+ RefreshTokenRequestBody
224
+ } from '@tennac-booking/sdk';
225
+
226
+ const configuration = new Configuration();
227
+ const apiInstance = new UsersApi(configuration);
228
+
229
+ let refreshTokenRequestBody: RefreshTokenRequestBody; //
230
+
231
+ const { status, data } = await apiInstance.refreshToken(
232
+ refreshTokenRequestBody
233
+ );
234
+ ```
235
+
236
+ ### Parameters
237
+
238
+ |Name | Type | Description | Notes|
239
+ |------------- | ------------- | ------------- | -------------|
240
+ | **refreshTokenRequestBody** | **RefreshTokenRequestBody**| | |
241
+
242
+
243
+ ### Return type
244
+
245
+ **RefreshTokenResponse**
246
+
247
+ ### Authorization
248
+
249
+ [bearerAuth](../README.md#bearerAuth)
250
+
251
+ ### HTTP request headers
252
+
253
+ - **Content-Type**: application/json
254
+ - **Accept**: application/json
255
+
256
+
257
+ ### HTTP response details
258
+ | Status code | Description | Response headers |
259
+ |-------------|-------------|------------------|
260
+ |**200** | Nouveaux tokens | - |
261
+ |**400** | | - |
262
+ |**401** | | - |
263
+ |**500** | | - |
264
+
265
+ [[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)
266
+
267
+ # **register**
268
+ > UserResponse register(registerRequestBody)
269
+
270
+
271
+ ### Example
272
+
273
+ ```typescript
274
+ import {
275
+ UsersApi,
276
+ Configuration,
277
+ RegisterRequestBody
278
+ } from '@tennac-booking/sdk';
279
+
280
+ const configuration = new Configuration();
281
+ const apiInstance = new UsersApi(configuration);
282
+
283
+ let registerRequestBody: RegisterRequestBody; //
284
+
285
+ const { status, data } = await apiInstance.register(
286
+ registerRequestBody
287
+ );
288
+ ```
289
+
290
+ ### Parameters
291
+
292
+ |Name | Type | Description | Notes|
293
+ |------------- | ------------- | ------------- | -------------|
294
+ | **registerRequestBody** | **RegisterRequestBody**| | |
295
+
296
+
297
+ ### Return type
298
+
299
+ **UserResponse**
300
+
301
+ ### Authorization
302
+
303
+ [bearerAuth](../README.md#bearerAuth)
304
+
305
+ ### HTTP request headers
306
+
307
+ - **Content-Type**: application/json
308
+ - **Accept**: application/json
309
+
310
+
311
+ ### HTTP response details
312
+ | Status code | Description | Response headers |
313
+ |-------------|-------------|------------------|
314
+ |**201** | Utilisateur créé | - |
315
+ |**400** | | - |
316
+ |**409** | Email déjà utilisé | - |
317
+ |**500** | | - |
318
+
319
+ [[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)
320
+
321
+ # **updateUser**
322
+ > UserResponse updateUser(updateUserRequestBody)
323
+
324
+
325
+ ### Example
326
+
327
+ ```typescript
328
+ import {
329
+ UsersApi,
330
+ Configuration,
331
+ UpdateUserRequestBody
332
+ } from '@tennac-booking/sdk';
333
+
334
+ const configuration = new Configuration();
335
+ const apiInstance = new UsersApi(configuration);
336
+
337
+ let updateUserRequestBody: UpdateUserRequestBody; //
338
+
339
+ const { status, data } = await apiInstance.updateUser(
340
+ updateUserRequestBody
341
+ );
342
+ ```
343
+
344
+ ### Parameters
345
+
346
+ |Name | Type | Description | Notes|
347
+ |------------- | ------------- | ------------- | -------------|
348
+ | **updateUserRequestBody** | **UpdateUserRequestBody**| | |
349
+
350
+
351
+ ### Return type
352
+
353
+ **UserResponse**
354
+
355
+ ### Authorization
356
+
357
+ [bearerAuth](../README.md#bearerAuth)
358
+
359
+ ### HTTP request headers
360
+
361
+ - **Content-Type**: application/json
362
+ - **Accept**: application/json
363
+
364
+
365
+ ### HTTP response details
366
+ | Status code | Description | Response headers |
367
+ |-------------|-------------|------------------|
368
+ |**200** | Utilisateur mis à jour | - |
369
+ |**400** | | - |
370
+ |**401** | | - |
371
+ |**500** | | - |
49
372
 
50
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)
51
374
 
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@tennac-booking/sdk",
3
- "version": "1.0.8",
3
+ "version": "1.0.11",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
- "publishConfig": {
7
- "access": "public"
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
8
9
  },
9
10
  "keywords": [
10
11
  "axios",