@tennac-booking/sdk 1.0.6 → 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.
Files changed (140) hide show
  1. package/.openapi-generator/FILES +10 -1
  2. package/README.md +17 -2
  3. package/api.ts +831 -224
  4. package/dist/api.d.ts +589 -109
  5. package/dist/api.js +394 -148
  6. package/dist/esm/api.d.ts +589 -109
  7. package/dist/esm/api.js +394 -144
  8. package/docs/ApiErrorResponse.md +22 -0
  9. package/docs/ChangePasswordRequestBody.md +22 -0
  10. package/docs/ChangePasswordResponse.md +20 -0
  11. package/docs/LoginRequestBody.md +22 -0
  12. package/docs/LoginResponse.md +26 -0
  13. package/docs/RefreshTokenRequestBody.md +20 -0
  14. package/docs/RefreshTokenResponse.md +26 -0
  15. package/docs/RegisterRequestBody.md +36 -0
  16. package/docs/UpdateUserRequestBody.md +32 -0
  17. package/docs/UserResponse.md +44 -0
  18. package/docs/UsersApi.md +345 -6
  19. package/package.json +1 -4
  20. package/apis/AuthApi.ts +0 -157
  21. package/apis/UsersApi.ts +0 -56
  22. package/apis/index.ts +0 -4
  23. package/dist/apis/AuthApi.d.ts +0 -39
  24. package/dist/apis/AuthApi.js +0 -117
  25. package/dist/apis/UsersApi.d.ts +0 -26
  26. package/dist/apis/UsersApi.js +0 -58
  27. package/dist/apis/index.d.ts +0 -2
  28. package/dist/apis/index.js +0 -20
  29. package/dist/esm/apis/AuthApi.d.ts +0 -39
  30. package/dist/esm/apis/AuthApi.js +0 -113
  31. package/dist/esm/apis/UsersApi.d.ts +0 -26
  32. package/dist/esm/apis/UsersApi.js +0 -54
  33. package/dist/esm/apis/index.d.ts +0 -2
  34. package/dist/esm/apis/index.js +0 -4
  35. package/dist/esm/models/Booking.d.ts +0 -87
  36. package/dist/esm/models/Booking.js +0 -82
  37. package/dist/esm/models/Court.d.ts +0 -76
  38. package/dist/esm/models/Court.js +0 -72
  39. package/dist/esm/models/Slot.d.ts +0 -44
  40. package/dist/esm/models/Slot.js +0 -51
  41. package/dist/esm/models/SlotException.d.ts +0 -50
  42. package/dist/esm/models/SlotException.js +0 -55
  43. package/dist/esm/models/User.d.ts +0 -92
  44. package/dist/esm/models/User.js +0 -69
  45. package/dist/esm/models/index.d.ts +0 -5
  46. package/dist/esm/models/index.js +0 -7
  47. package/dist/esm/runtime.d.ts +0 -184
  48. package/dist/esm/runtime.js +0 -334
  49. package/dist/esm/src/apis/AuthApi.d.ts +0 -39
  50. package/dist/esm/src/apis/AuthApi.js +0 -113
  51. package/dist/esm/src/apis/UsersApi.d.ts +0 -26
  52. package/dist/esm/src/apis/UsersApi.js +0 -54
  53. package/dist/esm/src/apis/index.d.ts +0 -2
  54. package/dist/esm/src/apis/index.js +0 -4
  55. package/dist/esm/src/index.d.ts +0 -3
  56. package/dist/esm/src/index.js +0 -5
  57. package/dist/esm/src/models/Booking.d.ts +0 -87
  58. package/dist/esm/src/models/Booking.js +0 -82
  59. package/dist/esm/src/models/BookingStatus.d.ts +0 -25
  60. package/dist/esm/src/models/BookingStatus.js +0 -43
  61. package/dist/esm/src/models/Court.d.ts +0 -76
  62. package/dist/esm/src/models/Court.js +0 -72
  63. package/dist/esm/src/models/CourtStatus.d.ts +0 -25
  64. package/dist/esm/src/models/CourtStatus.js +0 -43
  65. package/dist/esm/src/models/Slot.d.ts +0 -44
  66. package/dist/esm/src/models/Slot.js +0 -51
  67. package/dist/esm/src/models/SlotException.d.ts +0 -50
  68. package/dist/esm/src/models/SlotException.js +0 -55
  69. package/dist/esm/src/models/StripeStatus.d.ts +0 -28
  70. package/dist/esm/src/models/StripeStatus.js +0 -46
  71. package/dist/esm/src/models/User.d.ts +0 -92
  72. package/dist/esm/src/models/User.js +0 -69
  73. package/dist/esm/src/models/index.d.ts +0 -5
  74. package/dist/esm/src/models/index.js +0 -7
  75. package/dist/esm/src/runtime.d.ts +0 -184
  76. package/dist/esm/src/runtime.js +0 -334
  77. package/dist/models/Booking.d.ts +0 -87
  78. package/dist/models/Booking.js +0 -90
  79. package/dist/models/Court.d.ts +0 -76
  80. package/dist/models/Court.js +0 -80
  81. package/dist/models/Slot.d.ts +0 -44
  82. package/dist/models/Slot.js +0 -58
  83. package/dist/models/SlotException.d.ts +0 -50
  84. package/dist/models/SlotException.js +0 -62
  85. package/dist/models/User.d.ts +0 -92
  86. package/dist/models/User.js +0 -76
  87. package/dist/models/index.d.ts +0 -5
  88. package/dist/models/index.js +0 -23
  89. package/dist/runtime.d.ts +0 -184
  90. package/dist/runtime.js +0 -350
  91. package/dist/src/apis/AuthApi.d.ts +0 -39
  92. package/dist/src/apis/AuthApi.js +0 -117
  93. package/dist/src/apis/UsersApi.d.ts +0 -26
  94. package/dist/src/apis/UsersApi.js +0 -58
  95. package/dist/src/apis/index.d.ts +0 -2
  96. package/dist/src/apis/index.js +0 -20
  97. package/dist/src/index.d.ts +0 -3
  98. package/dist/src/index.js +0 -21
  99. package/dist/src/models/Booking.d.ts +0 -87
  100. package/dist/src/models/Booking.js +0 -90
  101. package/dist/src/models/BookingStatus.d.ts +0 -25
  102. package/dist/src/models/BookingStatus.js +0 -51
  103. package/dist/src/models/Court.d.ts +0 -76
  104. package/dist/src/models/Court.js +0 -80
  105. package/dist/src/models/CourtStatus.d.ts +0 -25
  106. package/dist/src/models/CourtStatus.js +0 -51
  107. package/dist/src/models/Slot.d.ts +0 -44
  108. package/dist/src/models/Slot.js +0 -58
  109. package/dist/src/models/SlotException.d.ts +0 -50
  110. package/dist/src/models/SlotException.js +0 -62
  111. package/dist/src/models/StripeStatus.d.ts +0 -28
  112. package/dist/src/models/StripeStatus.js +0 -54
  113. package/dist/src/models/User.d.ts +0 -92
  114. package/dist/src/models/User.js +0 -76
  115. package/dist/src/models/index.d.ts +0 -5
  116. package/dist/src/models/index.js +0 -23
  117. package/dist/src/runtime.d.ts +0 -184
  118. package/dist/src/runtime.js +0 -350
  119. package/docs/AuthApi.md +0 -88
  120. package/models/Booking.ts +0 -142
  121. package/models/Court.ts +0 -130
  122. package/models/Slot.ts +0 -84
  123. package/models/SlotException.ts +0 -93
  124. package/models/User.ts +0 -149
  125. package/models/index.ts +0 -7
  126. package/runtime.ts +0 -432
  127. package/src/apis/AuthApi.ts +0 -157
  128. package/src/apis/UsersApi.ts +0 -56
  129. package/src/apis/index.ts +0 -4
  130. package/src/index.ts +0 -5
  131. package/src/models/Booking.ts +0 -142
  132. package/src/models/BookingStatus.ts +0 -53
  133. package/src/models/Court.ts +0 -130
  134. package/src/models/CourtStatus.ts +0 -53
  135. package/src/models/Slot.ts +0 -84
  136. package/src/models/SlotException.ts +0 -93
  137. package/src/models/StripeStatus.ts +0 -56
  138. package/src/models/User.ts +0 -149
  139. package/src/models/index.ts +0 -7
  140. package/src/runtime.ts +0 -432
@@ -0,0 +1,22 @@
1
+ # ApiErrorResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **message** | **string** | | [default to undefined]
9
+ **error** | **string** | | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ApiErrorResponse } from '@tennac-booking/sdk';
15
+
16
+ const instance: ApiErrorResponse = {
17
+ message,
18
+ error,
19
+ };
20
+ ```
21
+
22
+ [[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,22 @@
1
+ # ChangePasswordRequestBody
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **currentPassword** | **string** | | [default to undefined]
9
+ **newPassword** | **string** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ChangePasswordRequestBody } from '@tennac-booking/sdk';
15
+
16
+ const instance: ChangePasswordRequestBody = {
17
+ currentPassword,
18
+ newPassword,
19
+ };
20
+ ```
21
+
22
+ [[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,20 @@
1
+ # ChangePasswordResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **message** | **string** | | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { ChangePasswordResponse } from '@tennac-booking/sdk';
14
+
15
+ const instance: ChangePasswordResponse = {
16
+ message,
17
+ };
18
+ ```
19
+
20
+ [[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,22 @@
1
+ # LoginRequestBody
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **email** | **string** | | [default to undefined]
9
+ **password** | **string** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { LoginRequestBody } from '@tennac-booking/sdk';
15
+
16
+ const instance: LoginRequestBody = {
17
+ email,
18
+ password,
19
+ };
20
+ ```
21
+
22
+ [[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,26 @@
1
+ # LoginResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **token** | **string** | | [default to undefined]
9
+ **refreshToken** | **string** | | [default to undefined]
10
+ **sessionDuration** | **number** | | [default to undefined]
11
+ **sessionEnd** | **number** | | [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { LoginResponse } from '@tennac-booking/sdk';
17
+
18
+ const instance: LoginResponse = {
19
+ token,
20
+ refreshToken,
21
+ sessionDuration,
22
+ sessionEnd,
23
+ };
24
+ ```
25
+
26
+ [[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,20 @@
1
+ # RefreshTokenRequestBody
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **refreshToken** | **string** | | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { RefreshTokenRequestBody } from '@tennac-booking/sdk';
14
+
15
+ const instance: RefreshTokenRequestBody = {
16
+ refreshToken,
17
+ };
18
+ ```
19
+
20
+ [[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,26 @@
1
+ # RefreshTokenResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **token** | **string** | | [default to undefined]
9
+ **refreshToken** | **string** | | [default to undefined]
10
+ **sessionDuration** | **number** | | [default to undefined]
11
+ **sessionEnd** | **number** | | [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { RefreshTokenResponse } from '@tennac-booking/sdk';
17
+
18
+ const instance: RefreshTokenResponse = {
19
+ token,
20
+ refreshToken,
21
+ sessionDuration,
22
+ sessionEnd,
23
+ };
24
+ ```
25
+
26
+ [[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,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,74 @@ All URIs are relative to *https://api.mon-domaine.com*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
- |[**apiUsersGet**](#apiusersget) | **GET** /api/users | Retrieve all users|
7
+ |[**changePassword**](#changepassword) | **PUT** /api/users/{id}/password | Modifie le mot de passe d\'un utilisateur|
8
+ |[**getAllUsers**](#getallusers) | **GET** /api/users | Récupère la liste des utilisateurs|
9
+ |[**getUserInfo**](#getuserinfo) | **GET** /api/users/{id} | Récupère un utilisateur par ID|
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/{id} | Met à jour un utilisateur|
8
14
 
9
- # **apiUsersGet**
10
- > Array<User> apiUsersGet()
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 id: string; //ID de l\'utilisateur (default to undefined)
32
+ let changePasswordRequestBody: ChangePasswordRequestBody; //
33
+
34
+ const { status, data } = await apiInstance.changePassword(
35
+ id,
36
+ changePasswordRequestBody
37
+ );
38
+ ```
39
+
40
+ ### Parameters
41
+
42
+ |Name | Type | Description | Notes|
43
+ |------------- | ------------- | ------------- | -------------|
44
+ | **changePasswordRequestBody** | **ChangePasswordRequestBody**| | |
45
+ | **id** | [**string**] | ID de l\&#39;utilisateur | defaults to undefined|
46
+
47
+
48
+ ### Return type
49
+
50
+ **ChangePasswordResponse**
51
+
52
+ ### Authorization
53
+
54
+ No authorization required
55
+
56
+ ### HTTP request headers
57
+
58
+ - **Content-Type**: application/json
59
+ - **Accept**: application/json
60
+
61
+
62
+ ### HTTP response details
63
+ | Status code | Description | Response headers |
64
+ |-------------|-------------|------------------|
65
+ |**200** | Mot de passe modifié | - |
66
+ |**400** | | - |
67
+ |**401** | | - |
68
+ |**404** | | - |
69
+ |**500** | | - |
70
+
71
+ [[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)
72
+
73
+ # **getAllUsers**
74
+ > Array<UserResponse> getAllUsers()
11
75
 
12
76
 
13
77
  ### Example
@@ -21,7 +85,7 @@ import {
21
85
  const configuration = new Configuration();
22
86
  const apiInstance = new UsersApi(configuration);
23
87
 
24
- const { status, data } = await apiInstance.apiUsersGet();
88
+ const { status, data } = await apiInstance.getAllUsers();
25
89
  ```
26
90
 
27
91
  ### Parameters
@@ -30,7 +94,59 @@ This endpoint does not have any parameters.
30
94
 
31
95
  ### Return type
32
96
 
33
- **Array<User>**
97
+ **Array<UserResponse>**
98
+
99
+ ### Authorization
100
+
101
+ No authorization required
102
+
103
+ ### HTTP request headers
104
+
105
+ - **Content-Type**: Not defined
106
+ - **Accept**: application/json
107
+
108
+
109
+ ### HTTP response details
110
+ | Status code | Description | Response headers |
111
+ |-------------|-------------|------------------|
112
+ |**200** | Liste des utilisateurs | - |
113
+ |**401** | | - |
114
+ |**500** | | - |
115
+
116
+ [[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)
117
+
118
+ # **getUserInfo**
119
+ > UserResponse getUserInfo()
120
+
121
+
122
+ ### Example
123
+
124
+ ```typescript
125
+ import {
126
+ UsersApi,
127
+ Configuration
128
+ } from '@tennac-booking/sdk';
129
+
130
+ const configuration = new Configuration();
131
+ const apiInstance = new UsersApi(configuration);
132
+
133
+ let id: string; //ID de l\'utilisateur (default to undefined)
134
+
135
+ const { status, data } = await apiInstance.getUserInfo(
136
+ id
137
+ );
138
+ ```
139
+
140
+ ### Parameters
141
+
142
+ |Name | Type | Description | Notes|
143
+ |------------- | ------------- | ------------- | -------------|
144
+ | **id** | [**string**] | ID de l\&#39;utilisateur | defaults to undefined|
145
+
146
+
147
+ ### Return type
148
+
149
+ **UserResponse**
34
150
 
35
151
  ### Authorization
36
152
 
@@ -45,7 +161,230 @@ No authorization required
45
161
  ### HTTP response details
46
162
  | Status code | Description | Response headers |
47
163
  |-------------|-------------|------------------|
48
- |**200** | A list of users | - |
164
+ |**200** | Informations de l\&#39;utilisateur | - |
165
+ |**401** | | - |
166
+ |**404** | | - |
167
+ |**500** | | - |
168
+
169
+ [[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)
170
+
171
+ # **login**
172
+ > LoginResponse login(loginRequestBody)
173
+
174
+
175
+ ### Example
176
+
177
+ ```typescript
178
+ import {
179
+ UsersApi,
180
+ Configuration,
181
+ LoginRequestBody
182
+ } from '@tennac-booking/sdk';
183
+
184
+ const configuration = new Configuration();
185
+ const apiInstance = new UsersApi(configuration);
186
+
187
+ let loginRequestBody: LoginRequestBody; //
188
+
189
+ const { status, data } = await apiInstance.login(
190
+ loginRequestBody
191
+ );
192
+ ```
193
+
194
+ ### Parameters
195
+
196
+ |Name | Type | Description | Notes|
197
+ |------------- | ------------- | ------------- | -------------|
198
+ | **loginRequestBody** | **LoginRequestBody**| | |
199
+
200
+
201
+ ### Return type
202
+
203
+ **LoginResponse**
204
+
205
+ ### Authorization
206
+
207
+ No authorization required
208
+
209
+ ### HTTP request headers
210
+
211
+ - **Content-Type**: application/json
212
+ - **Accept**: application/json
213
+
214
+
215
+ ### HTTP response details
216
+ | Status code | Description | Response headers |
217
+ |-------------|-------------|------------------|
218
+ |**200** | Authentification réussie | - |
219
+ |**400** | | - |
220
+ |**401** | | - |
221
+ |**500** | | - |
222
+
223
+ [[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)
224
+
225
+ # **refreshToken**
226
+ > RefreshTokenResponse refreshToken(refreshTokenRequestBody)
227
+
228
+
229
+ ### Example
230
+
231
+ ```typescript
232
+ import {
233
+ UsersApi,
234
+ Configuration,
235
+ RefreshTokenRequestBody
236
+ } from '@tennac-booking/sdk';
237
+
238
+ const configuration = new Configuration();
239
+ const apiInstance = new UsersApi(configuration);
240
+
241
+ let refreshTokenRequestBody: RefreshTokenRequestBody; //
242
+
243
+ const { status, data } = await apiInstance.refreshToken(
244
+ refreshTokenRequestBody
245
+ );
246
+ ```
247
+
248
+ ### Parameters
249
+
250
+ |Name | Type | Description | Notes|
251
+ |------------- | ------------- | ------------- | -------------|
252
+ | **refreshTokenRequestBody** | **RefreshTokenRequestBody**| | |
253
+
254
+
255
+ ### Return type
256
+
257
+ **RefreshTokenResponse**
258
+
259
+ ### Authorization
260
+
261
+ No authorization required
262
+
263
+ ### HTTP request headers
264
+
265
+ - **Content-Type**: application/json
266
+ - **Accept**: application/json
267
+
268
+
269
+ ### HTTP response details
270
+ | Status code | Description | Response headers |
271
+ |-------------|-------------|------------------|
272
+ |**200** | Nouveaux tokens | - |
273
+ |**400** | | - |
274
+ |**401** | | - |
275
+ |**500** | | - |
276
+
277
+ [[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)
278
+
279
+ # **register**
280
+ > UserResponse register(registerRequestBody)
281
+
282
+
283
+ ### Example
284
+
285
+ ```typescript
286
+ import {
287
+ UsersApi,
288
+ Configuration,
289
+ RegisterRequestBody
290
+ } from '@tennac-booking/sdk';
291
+
292
+ const configuration = new Configuration();
293
+ const apiInstance = new UsersApi(configuration);
294
+
295
+ let registerRequestBody: RegisterRequestBody; //
296
+
297
+ const { status, data } = await apiInstance.register(
298
+ registerRequestBody
299
+ );
300
+ ```
301
+
302
+ ### Parameters
303
+
304
+ |Name | Type | Description | Notes|
305
+ |------------- | ------------- | ------------- | -------------|
306
+ | **registerRequestBody** | **RegisterRequestBody**| | |
307
+
308
+
309
+ ### Return type
310
+
311
+ **UserResponse**
312
+
313
+ ### Authorization
314
+
315
+ No authorization required
316
+
317
+ ### HTTP request headers
318
+
319
+ - **Content-Type**: application/json
320
+ - **Accept**: application/json
321
+
322
+
323
+ ### HTTP response details
324
+ | Status code | Description | Response headers |
325
+ |-------------|-------------|------------------|
326
+ |**201** | Utilisateur créé | - |
327
+ |**400** | | - |
328
+ |**409** | Email déjà utilisé | - |
329
+ |**500** | | - |
330
+
331
+ [[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)
332
+
333
+ # **updateUser**
334
+ > UserResponse updateUser(updateUserRequestBody)
335
+
336
+
337
+ ### Example
338
+
339
+ ```typescript
340
+ import {
341
+ UsersApi,
342
+ Configuration,
343
+ UpdateUserRequestBody
344
+ } from '@tennac-booking/sdk';
345
+
346
+ const configuration = new Configuration();
347
+ const apiInstance = new UsersApi(configuration);
348
+
349
+ let id: string; //ID de l\'utilisateur (default to undefined)
350
+ let updateUserRequestBody: UpdateUserRequestBody; //
351
+
352
+ const { status, data } = await apiInstance.updateUser(
353
+ id,
354
+ updateUserRequestBody
355
+ );
356
+ ```
357
+
358
+ ### Parameters
359
+
360
+ |Name | Type | Description | Notes|
361
+ |------------- | ------------- | ------------- | -------------|
362
+ | **updateUserRequestBody** | **UpdateUserRequestBody**| | |
363
+ | **id** | [**string**] | ID de l\&#39;utilisateur | defaults to undefined|
364
+
365
+
366
+ ### Return type
367
+
368
+ **UserResponse**
369
+
370
+ ### Authorization
371
+
372
+ No authorization required
373
+
374
+ ### HTTP request headers
375
+
376
+ - **Content-Type**: application/json
377
+ - **Accept**: application/json
378
+
379
+
380
+ ### HTTP response details
381
+ | Status code | Description | Response headers |
382
+ |-------------|-------------|------------------|
383
+ |**200** | Utilisateur mis à jour | - |
384
+ |**400** | | - |
385
+ |**401** | | - |
386
+ |**404** | | - |
387
+ |**500** | | - |
49
388
 
50
389
  [[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
390
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tennac-booking/sdk",
3
- "version": "1.0.6",
3
+ "version": "1.0.10",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -10,9 +10,6 @@
10
10
  "openapi-generator",
11
11
  "@tennac-booking/sdk"
12
12
  ],
13
- "publishConfig": {
14
- "access": "public"
15
- },
16
13
  "license": "Unlicense",
17
14
  "main": "./dist/index.js",
18
15
  "typings": "./dist/index.d.ts",