@tennac-booking/sdk 1.0.12 → 1.0.14
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/.openapi-generator/FILES +45 -6
- package/README.md +76 -43
- package/api.ts +4226 -2326
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +2665 -1290
- package/dist/api.js +2783 -1672
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +2665 -1290
- package/dist/esm/api.js +2657 -1604
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/ActiveClub.md +22 -0
- package/docs/ActiveClubListResponse.md +20 -0
- package/docs/AdminClubSlotsApi.md +62 -0
- package/docs/AdminClubsApi.md +108 -0
- package/docs/ApiErrorResponse.md +1 -1
- package/docs/BookingsApi.md +4 -60
- package/docs/ChangePasswordResponse.md +1 -1
- package/docs/{ClubSportsApi.md → ClubAnalyticsApi.md} +20 -27
- package/docs/ClubBookingsApi.md +59 -0
- package/docs/ClubInfoResponse.md +6 -6
- package/docs/ClubResponse.md +6 -6
- package/docs/ClubRoleResponse.md +6 -6
- package/docs/ClubRolesApi.md +8 -8
- package/docs/ClubSettings.md +7 -1
- package/docs/ClubSlotsApi.md +0 -172
- package/docs/ClubsApi.md +6 -379
- package/docs/ClubsResponse.md +22 -0
- package/docs/CourtResponse.md +7 -7
- package/docs/CourtStatus.md +5 -2
- package/docs/CreateClubRequest.md +12 -10
- package/docs/CreateClubSettingsRequest.md +28 -0
- package/docs/CreateCourtRequest.md +2 -0
- package/docs/CreatePriceRequest.md +4 -4
- package/docs/CreateSportRequest.md +4 -0
- package/docs/CreateSubscriptionPlanRequest.md +3 -3
- package/docs/DeleteClubSettingsRequest.md +20 -0
- package/docs/{DeleteClub200Response.md → DeleteSlotsResponse.md} +3 -3
- package/docs/{GenerateSlotsForNextThreeWeeks201Response.md → DeleteSport200Response.md} +3 -3
- package/docs/GenerateSlotsResponse.md +20 -0
- package/docs/GetActiveClubs200Response.md +20 -0
- package/docs/GetClubInfos200Response.md +30 -0
- package/docs/GetCourtsByClubAndSport200Response.md +26 -0
- package/docs/GetLastSixMonthsTurnover200ResponseInner.md +24 -0
- package/docs/GetNumberOfClubUsers200Response.md +20 -0
- package/docs/{GetUserRolesInClubs200Response.md → GetUserRolesResponse.md} +4 -4
- package/docs/GetUserRolesResponseRolesInner.md +26 -0
- package/docs/GetUserSubscriptionsResponse.md +22 -0
- package/docs/GoogleSignInRequestBody.md +20 -0
- package/docs/GoogleSignInResponse.md +24 -0
- package/docs/InitiateSubscriptionSessionRequestBody.md +26 -0
- package/docs/InitiateSubscriptionSessionResponse.md +22 -0
- package/docs/{ClubCourtsApi.md → ManagerClubCourtsApi.md} +5 -5
- package/docs/ManagerClubSlotsApi.md +125 -0
- package/docs/ManagerClubsApi.md +280 -0
- package/docs/PriceResponse.md +2 -8
- package/docs/RefreshTokenResponse.md +2 -6
- package/docs/SlotResponse.md +2 -8
- package/docs/SportResponse.md +0 -2
- package/docs/SportsApi.md +10 -120
- package/docs/StaffClubSettingsApi.md +62 -0
- package/docs/StaffSportsApi.md +62 -0
- package/docs/SubscribeToClubRequestBody.md +22 -0
- package/docs/SubscriptionPlanResponse.md +4 -8
- package/docs/SubscriptionResponse.md +36 -0
- package/docs/UpdateClubSettingsRequest.md +28 -0
- package/docs/UpdateCustomerRequestBody.md +26 -0
- package/docs/UpdateCustomerRequestBodyAddress.md +30 -0
- package/docs/UpdateCustomerResponse.md +22 -0
- package/docs/UpdateCustomerResponseCustomer.md +28 -0
- package/docs/UpdateSportRequest.md +4 -0
- package/docs/UpdateSubscriptionPlanRequest.md +3 -3
- package/docs/UpdateSubscriptionPlanResponse.md +2 -2
- package/docs/{ClubSettingsApi.md → UserAuthenticationApi.md} +54 -55
- package/docs/UserBookingsApi.md +63 -0
- package/docs/UserClubCourtsApi.md +64 -0
- package/docs/UserClubSlotsApi.md +60 -0
- package/docs/UserClubSportsApi.md +60 -0
- package/docs/UserClubsApi.md +53 -0
- package/docs/UserProfileApi.md +271 -0
- package/docs/UserResponse.md +8 -14
- package/docs/UserSubscriptionsApi.md +222 -0
- package/docs/UsersApi.md +22 -324
- package/docs/UsersResponse.md +22 -0
- package/index.ts +1 -1
- package/package.json +32 -1
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
# UserSubscriptionsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**cancelSubscription**](#cancelsubscription) | **DELETE** /api/users/me/subscriptions/{clubId}/{subscriptionId} | Annule un abonnement utilisateur|
|
|
8
|
+
|[**getUserSubscriptions**](#getusersubscriptions) | **GET** /api/users/me/subscriptions | Récupère les abonnements de l\'utilisateur connecté|
|
|
9
|
+
|[**initiateSubscriptionSession**](#initiatesubscriptionsession) | **POST** /api/users/me/subscription-session | Initie une session d\'abonnement Stripe|
|
|
10
|
+
|[**resumeSubscription**](#resumesubscription) | **POST** /api/users/me/subscriptions/{clubId}/{subscriptionId}/resume | Réactive un abonnement utilisateur|
|
|
11
|
+
|
|
12
|
+
# **cancelSubscription**
|
|
13
|
+
> SubscriptionResponse cancelSubscription()
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import {
|
|
20
|
+
UserSubscriptionsApi,
|
|
21
|
+
Configuration
|
|
22
|
+
} from '@tennac-booking/sdk';
|
|
23
|
+
|
|
24
|
+
const configuration = new Configuration();
|
|
25
|
+
const apiInstance = new UserSubscriptionsApi(configuration);
|
|
26
|
+
|
|
27
|
+
let clubId: string; //ID du club (default to undefined)
|
|
28
|
+
let subscriptionId: string; //ID de l\'abonnement à annuler (default to undefined)
|
|
29
|
+
|
|
30
|
+
const { status, data } = await apiInstance.cancelSubscription(
|
|
31
|
+
clubId,
|
|
32
|
+
subscriptionId
|
|
33
|
+
);
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Parameters
|
|
37
|
+
|
|
38
|
+
|Name | Type | Description | Notes|
|
|
39
|
+
|------------- | ------------- | ------------- | -------------|
|
|
40
|
+
| **clubId** | [**string**] | ID du club | defaults to undefined|
|
|
41
|
+
| **subscriptionId** | [**string**] | ID de l\'abonnement à annuler | defaults to undefined|
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
### Return type
|
|
45
|
+
|
|
46
|
+
**SubscriptionResponse**
|
|
47
|
+
|
|
48
|
+
### Authorization
|
|
49
|
+
|
|
50
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
51
|
+
|
|
52
|
+
### HTTP request headers
|
|
53
|
+
|
|
54
|
+
- **Content-Type**: Not defined
|
|
55
|
+
- **Accept**: application/json
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
### HTTP response details
|
|
59
|
+
| Status code | Description | Response headers |
|
|
60
|
+
|-------------|-------------|------------------|
|
|
61
|
+
|**200** | Abonnement annulé | - |
|
|
62
|
+
|**400** | Requête invalide | - |
|
|
63
|
+
|**401** | Non autorisé | - |
|
|
64
|
+
|**500** | Erreur serveur interne | - |
|
|
65
|
+
|
|
66
|
+
[[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)
|
|
67
|
+
|
|
68
|
+
# **getUserSubscriptions**
|
|
69
|
+
> GetUserSubscriptionsResponse getUserSubscriptions()
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
### Example
|
|
73
|
+
|
|
74
|
+
```typescript
|
|
75
|
+
import {
|
|
76
|
+
UserSubscriptionsApi,
|
|
77
|
+
Configuration
|
|
78
|
+
} from '@tennac-booking/sdk';
|
|
79
|
+
|
|
80
|
+
const configuration = new Configuration();
|
|
81
|
+
const apiInstance = new UserSubscriptionsApi(configuration);
|
|
82
|
+
|
|
83
|
+
const { status, data } = await apiInstance.getUserSubscriptions();
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### Parameters
|
|
87
|
+
This endpoint does not have any parameters.
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
### Return type
|
|
91
|
+
|
|
92
|
+
**GetUserSubscriptionsResponse**
|
|
93
|
+
|
|
94
|
+
### Authorization
|
|
95
|
+
|
|
96
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
97
|
+
|
|
98
|
+
### HTTP request headers
|
|
99
|
+
|
|
100
|
+
- **Content-Type**: Not defined
|
|
101
|
+
- **Accept**: application/json
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
### HTTP response details
|
|
105
|
+
| Status code | Description | Response headers |
|
|
106
|
+
|-------------|-------------|------------------|
|
|
107
|
+
|**200** | Liste des abonnements | - |
|
|
108
|
+
|**401** | Non autorisé | - |
|
|
109
|
+
|**500** | Erreur serveur interne | - |
|
|
110
|
+
|
|
111
|
+
[[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)
|
|
112
|
+
|
|
113
|
+
# **initiateSubscriptionSession**
|
|
114
|
+
> InitiateSubscriptionSessionResponse initiateSubscriptionSession(initiateSubscriptionSessionRequestBody)
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
### Example
|
|
118
|
+
|
|
119
|
+
```typescript
|
|
120
|
+
import {
|
|
121
|
+
UserSubscriptionsApi,
|
|
122
|
+
Configuration,
|
|
123
|
+
InitiateSubscriptionSessionRequestBody
|
|
124
|
+
} from '@tennac-booking/sdk';
|
|
125
|
+
|
|
126
|
+
const configuration = new Configuration();
|
|
127
|
+
const apiInstance = new UserSubscriptionsApi(configuration);
|
|
128
|
+
|
|
129
|
+
let initiateSubscriptionSessionRequestBody: InitiateSubscriptionSessionRequestBody; //
|
|
130
|
+
|
|
131
|
+
const { status, data } = await apiInstance.initiateSubscriptionSession(
|
|
132
|
+
initiateSubscriptionSessionRequestBody
|
|
133
|
+
);
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
### Parameters
|
|
137
|
+
|
|
138
|
+
|Name | Type | Description | Notes|
|
|
139
|
+
|------------- | ------------- | ------------- | -------------|
|
|
140
|
+
| **initiateSubscriptionSessionRequestBody** | **InitiateSubscriptionSessionRequestBody**| | |
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
### Return type
|
|
144
|
+
|
|
145
|
+
**InitiateSubscriptionSessionResponse**
|
|
146
|
+
|
|
147
|
+
### Authorization
|
|
148
|
+
|
|
149
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
150
|
+
|
|
151
|
+
### HTTP request headers
|
|
152
|
+
|
|
153
|
+
- **Content-Type**: application/json
|
|
154
|
+
- **Accept**: application/json
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
### HTTP response details
|
|
158
|
+
| Status code | Description | Response headers |
|
|
159
|
+
|-------------|-------------|------------------|
|
|
160
|
+
|**200** | Session d\'abonnement créée | - |
|
|
161
|
+
|**400** | Requête invalide | - |
|
|
162
|
+
|**401** | Non autorisé | - |
|
|
163
|
+
|**500** | Erreur serveur interne | - |
|
|
164
|
+
|
|
165
|
+
[[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)
|
|
166
|
+
|
|
167
|
+
# **resumeSubscription**
|
|
168
|
+
> SubscriptionResponse resumeSubscription()
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
### Example
|
|
172
|
+
|
|
173
|
+
```typescript
|
|
174
|
+
import {
|
|
175
|
+
UserSubscriptionsApi,
|
|
176
|
+
Configuration
|
|
177
|
+
} from '@tennac-booking/sdk';
|
|
178
|
+
|
|
179
|
+
const configuration = new Configuration();
|
|
180
|
+
const apiInstance = new UserSubscriptionsApi(configuration);
|
|
181
|
+
|
|
182
|
+
let clubId: string; //ID du club (default to undefined)
|
|
183
|
+
let subscriptionId: string; //ID de l\'abonnement à réactiver (default to undefined)
|
|
184
|
+
|
|
185
|
+
const { status, data } = await apiInstance.resumeSubscription(
|
|
186
|
+
clubId,
|
|
187
|
+
subscriptionId
|
|
188
|
+
);
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
### Parameters
|
|
192
|
+
|
|
193
|
+
|Name | Type | Description | Notes|
|
|
194
|
+
|------------- | ------------- | ------------- | -------------|
|
|
195
|
+
| **clubId** | [**string**] | ID du club | defaults to undefined|
|
|
196
|
+
| **subscriptionId** | [**string**] | ID de l\'abonnement à réactiver | defaults to undefined|
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
### Return type
|
|
200
|
+
|
|
201
|
+
**SubscriptionResponse**
|
|
202
|
+
|
|
203
|
+
### Authorization
|
|
204
|
+
|
|
205
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
206
|
+
|
|
207
|
+
### HTTP request headers
|
|
208
|
+
|
|
209
|
+
- **Content-Type**: Not defined
|
|
210
|
+
- **Accept**: application/json
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
### HTTP response details
|
|
214
|
+
| Status code | Description | Response headers |
|
|
215
|
+
|-------------|-------------|------------------|
|
|
216
|
+
|**200** | Abonnement réactivé | - |
|
|
217
|
+
|**400** | Requête invalide | - |
|
|
218
|
+
|**401** | Non autorisé | - |
|
|
219
|
+
|**500** | Erreur serveur interne | - |
|
|
220
|
+
|
|
221
|
+
[[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)
|
|
222
|
+
|
package/docs/UsersApi.md
CHANGED
|
@@ -4,17 +4,11 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**
|
|
8
|
-
|[**
|
|
9
|
-
|[**getUserInfo**](#getuserinfo) | **GET** /api/users/me | Récupère les informations de l\'utilisateur connecté|
|
|
10
|
-
|[**getUserRolesInClubs**](#getuserrolesinclubs) | **GET** /api/users/me/roles | Récupère les rôles de l\'utilisateur dans les clubs|
|
|
11
|
-
|[**login**](#login) | **POST** /api/users/login | Authentifie un utilisateur|
|
|
12
|
-
|[**refreshToken**](#refreshtoken) | **POST** /api/users/refresh-token | Rafraîchit le token d\'accès|
|
|
13
|
-
|[**register**](#register) | **POST** /api/users | Crée un nouvel utilisateur|
|
|
14
|
-
|[**updateUser**](#updateuser) | **PUT** /api/users/me | Met à jour les données de l\'utilisateur connecté|
|
|
7
|
+
|[**subscribeToClub**](#subscribetoclub) | **POST** /api/users/me/subscribe | Abonne l\'utilisateur connecté à un club|
|
|
8
|
+
|[**updateCustomer**](#updatecustomer) | **PUT** /api/users/me/customer | Met à jour le Customer Stripe de l\'utilisateur|
|
|
15
9
|
|
|
16
|
-
# **
|
|
17
|
-
>
|
|
10
|
+
# **subscribeToClub**
|
|
11
|
+
> SubscriptionResponse subscribeToClub(subscribeToClubRequestBody)
|
|
18
12
|
|
|
19
13
|
|
|
20
14
|
### Example
|
|
@@ -23,16 +17,16 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
23
17
|
import {
|
|
24
18
|
UsersApi,
|
|
25
19
|
Configuration,
|
|
26
|
-
|
|
20
|
+
SubscribeToClubRequestBody
|
|
27
21
|
} from '@tennac-booking/sdk';
|
|
28
22
|
|
|
29
23
|
const configuration = new Configuration();
|
|
30
24
|
const apiInstance = new UsersApi(configuration);
|
|
31
25
|
|
|
32
|
-
let
|
|
26
|
+
let subscribeToClubRequestBody: SubscribeToClubRequestBody; //
|
|
33
27
|
|
|
34
|
-
const { status, data } = await apiInstance.
|
|
35
|
-
|
|
28
|
+
const { status, data } = await apiInstance.subscribeToClub(
|
|
29
|
+
subscribeToClubRequestBody
|
|
36
30
|
);
|
|
37
31
|
```
|
|
38
32
|
|
|
@@ -40,12 +34,12 @@ const { status, data } = await apiInstance.changePassword(
|
|
|
40
34
|
|
|
41
35
|
|Name | Type | Description | Notes|
|
|
42
36
|
|------------- | ------------- | ------------- | -------------|
|
|
43
|
-
| **
|
|
37
|
+
| **subscribeToClubRequestBody** | **SubscribeToClubRequestBody**| | |
|
|
44
38
|
|
|
45
39
|
|
|
46
40
|
### Return type
|
|
47
41
|
|
|
48
|
-
**
|
|
42
|
+
**SubscriptionResponse**
|
|
49
43
|
|
|
50
44
|
### Authorization
|
|
51
45
|
|
|
@@ -60,313 +54,16 @@ const { status, data } = await apiInstance.changePassword(
|
|
|
60
54
|
### HTTP response details
|
|
61
55
|
| Status code | Description | Response headers |
|
|
62
56
|
|-------------|-------------|------------------|
|
|
63
|
-
|**
|
|
57
|
+
|**201** | Abonnement créé | - |
|
|
64
58
|
|**400** | Requête invalide | - |
|
|
65
59
|
|**401** | Non autorisé | - |
|
|
60
|
+
|**404** | Ressource non trouvée | - |
|
|
66
61
|
|**500** | Erreur serveur interne | - |
|
|
67
62
|
|
|
68
63
|
[[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)
|
|
69
64
|
|
|
70
|
-
# **
|
|
71
|
-
>
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
### Example
|
|
75
|
-
|
|
76
|
-
```typescript
|
|
77
|
-
import {
|
|
78
|
-
UsersApi,
|
|
79
|
-
Configuration
|
|
80
|
-
} from '@tennac-booking/sdk';
|
|
81
|
-
|
|
82
|
-
const configuration = new Configuration();
|
|
83
|
-
const apiInstance = new UsersApi(configuration);
|
|
84
|
-
|
|
85
|
-
const { status, data } = await apiInstance.getAllUsers();
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
### Parameters
|
|
89
|
-
This endpoint does not have any parameters.
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
### Return type
|
|
93
|
-
|
|
94
|
-
**Array<UserResponse>**
|
|
95
|
-
|
|
96
|
-
### Authorization
|
|
97
|
-
|
|
98
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
99
|
-
|
|
100
|
-
### HTTP request headers
|
|
101
|
-
|
|
102
|
-
- **Content-Type**: Not defined
|
|
103
|
-
- **Accept**: application/json
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
### HTTP response details
|
|
107
|
-
| Status code | Description | Response headers |
|
|
108
|
-
|-------------|-------------|------------------|
|
|
109
|
-
|**200** | Liste des utilisateurs | - |
|
|
110
|
-
|**401** | Non autorisé | - |
|
|
111
|
-
|**500** | Erreur serveur interne | - |
|
|
112
|
-
|
|
113
|
-
[[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)
|
|
114
|
-
|
|
115
|
-
# **getUserInfo**
|
|
116
|
-
> UserResponse getUserInfo()
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
### Example
|
|
120
|
-
|
|
121
|
-
```typescript
|
|
122
|
-
import {
|
|
123
|
-
UsersApi,
|
|
124
|
-
Configuration
|
|
125
|
-
} from '@tennac-booking/sdk';
|
|
126
|
-
|
|
127
|
-
const configuration = new Configuration();
|
|
128
|
-
const apiInstance = new UsersApi(configuration);
|
|
129
|
-
|
|
130
|
-
const { status, data } = await apiInstance.getUserInfo();
|
|
131
|
-
```
|
|
132
|
-
|
|
133
|
-
### Parameters
|
|
134
|
-
This endpoint does not have any parameters.
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
### Return type
|
|
138
|
-
|
|
139
|
-
**UserResponse**
|
|
140
|
-
|
|
141
|
-
### Authorization
|
|
142
|
-
|
|
143
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
144
|
-
|
|
145
|
-
### HTTP request headers
|
|
146
|
-
|
|
147
|
-
- **Content-Type**: Not defined
|
|
148
|
-
- **Accept**: application/json
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
### HTTP response details
|
|
152
|
-
| Status code | Description | Response headers |
|
|
153
|
-
|-------------|-------------|------------------|
|
|
154
|
-
|**200** | Informations de l\'utilisateur | - |
|
|
155
|
-
|**401** | Non autorisé | - |
|
|
156
|
-
|**500** | Erreur serveur interne | - |
|
|
157
|
-
|
|
158
|
-
[[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)
|
|
159
|
-
|
|
160
|
-
# **getUserRolesInClubs**
|
|
161
|
-
> GetUserRolesInClubs200Response getUserRolesInClubs()
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
### Example
|
|
165
|
-
|
|
166
|
-
```typescript
|
|
167
|
-
import {
|
|
168
|
-
UsersApi,
|
|
169
|
-
Configuration
|
|
170
|
-
} from '@tennac-booking/sdk';
|
|
171
|
-
|
|
172
|
-
const configuration = new Configuration();
|
|
173
|
-
const apiInstance = new UsersApi(configuration);
|
|
174
|
-
|
|
175
|
-
const { status, data } = await apiInstance.getUserRolesInClubs();
|
|
176
|
-
```
|
|
177
|
-
|
|
178
|
-
### Parameters
|
|
179
|
-
This endpoint does not have any parameters.
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
### Return type
|
|
183
|
-
|
|
184
|
-
**GetUserRolesInClubs200Response**
|
|
185
|
-
|
|
186
|
-
### Authorization
|
|
187
|
-
|
|
188
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
189
|
-
|
|
190
|
-
### HTTP request headers
|
|
191
|
-
|
|
192
|
-
- **Content-Type**: Not defined
|
|
193
|
-
- **Accept**: application/json
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
### HTTP response details
|
|
197
|
-
| Status code | Description | Response headers |
|
|
198
|
-
|-------------|-------------|------------------|
|
|
199
|
-
|**200** | Liste des rôles dans les clubs | - |
|
|
200
|
-
|**400** | Requête invalide | - |
|
|
201
|
-
|**401** | Non autorisé | - |
|
|
202
|
-
|**500** | Erreur serveur interne | - |
|
|
203
|
-
|
|
204
|
-
[[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)
|
|
205
|
-
|
|
206
|
-
# **login**
|
|
207
|
-
> LoginResponse login(loginRequestBody)
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
### Example
|
|
211
|
-
|
|
212
|
-
```typescript
|
|
213
|
-
import {
|
|
214
|
-
UsersApi,
|
|
215
|
-
Configuration,
|
|
216
|
-
LoginRequestBody
|
|
217
|
-
} from '@tennac-booking/sdk';
|
|
218
|
-
|
|
219
|
-
const configuration = new Configuration();
|
|
220
|
-
const apiInstance = new UsersApi(configuration);
|
|
221
|
-
|
|
222
|
-
let loginRequestBody: LoginRequestBody; //
|
|
223
|
-
|
|
224
|
-
const { status, data } = await apiInstance.login(
|
|
225
|
-
loginRequestBody
|
|
226
|
-
);
|
|
227
|
-
```
|
|
228
|
-
|
|
229
|
-
### Parameters
|
|
230
|
-
|
|
231
|
-
|Name | Type | Description | Notes|
|
|
232
|
-
|------------- | ------------- | ------------- | -------------|
|
|
233
|
-
| **loginRequestBody** | **LoginRequestBody**| | |
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
### Return type
|
|
237
|
-
|
|
238
|
-
**LoginResponse**
|
|
239
|
-
|
|
240
|
-
### Authorization
|
|
241
|
-
|
|
242
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
243
|
-
|
|
244
|
-
### HTTP request headers
|
|
245
|
-
|
|
246
|
-
- **Content-Type**: application/json
|
|
247
|
-
- **Accept**: application/json
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
### HTTP response details
|
|
251
|
-
| Status code | Description | Response headers |
|
|
252
|
-
|-------------|-------------|------------------|
|
|
253
|
-
|**200** | Authentification réussie | - |
|
|
254
|
-
|**400** | Requête invalide | - |
|
|
255
|
-
|**401** | Non autorisé | - |
|
|
256
|
-
|**500** | Erreur serveur interne | - |
|
|
257
|
-
|
|
258
|
-
[[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)
|
|
259
|
-
|
|
260
|
-
# **refreshToken**
|
|
261
|
-
> RefreshTokenResponse refreshToken(refreshTokenRequestBody)
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
### Example
|
|
265
|
-
|
|
266
|
-
```typescript
|
|
267
|
-
import {
|
|
268
|
-
UsersApi,
|
|
269
|
-
Configuration,
|
|
270
|
-
RefreshTokenRequestBody
|
|
271
|
-
} from '@tennac-booking/sdk';
|
|
272
|
-
|
|
273
|
-
const configuration = new Configuration();
|
|
274
|
-
const apiInstance = new UsersApi(configuration);
|
|
275
|
-
|
|
276
|
-
let refreshTokenRequestBody: RefreshTokenRequestBody; //
|
|
277
|
-
|
|
278
|
-
const { status, data } = await apiInstance.refreshToken(
|
|
279
|
-
refreshTokenRequestBody
|
|
280
|
-
);
|
|
281
|
-
```
|
|
282
|
-
|
|
283
|
-
### Parameters
|
|
284
|
-
|
|
285
|
-
|Name | Type | Description | Notes|
|
|
286
|
-
|------------- | ------------- | ------------- | -------------|
|
|
287
|
-
| **refreshTokenRequestBody** | **RefreshTokenRequestBody**| | |
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
### Return type
|
|
291
|
-
|
|
292
|
-
**RefreshTokenResponse**
|
|
293
|
-
|
|
294
|
-
### Authorization
|
|
295
|
-
|
|
296
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
297
|
-
|
|
298
|
-
### HTTP request headers
|
|
299
|
-
|
|
300
|
-
- **Content-Type**: application/json
|
|
301
|
-
- **Accept**: application/json
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
### HTTP response details
|
|
305
|
-
| Status code | Description | Response headers |
|
|
306
|
-
|-------------|-------------|------------------|
|
|
307
|
-
|**200** | Nouveaux tokens | - |
|
|
308
|
-
|**400** | Requête invalide | - |
|
|
309
|
-
|**401** | Non autorisé | - |
|
|
310
|
-
|**500** | Erreur serveur interne | - |
|
|
311
|
-
|
|
312
|
-
[[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)
|
|
313
|
-
|
|
314
|
-
# **register**
|
|
315
|
-
> UserResponse register(registerRequestBody)
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
### Example
|
|
319
|
-
|
|
320
|
-
```typescript
|
|
321
|
-
import {
|
|
322
|
-
UsersApi,
|
|
323
|
-
Configuration,
|
|
324
|
-
RegisterRequestBody
|
|
325
|
-
} from '@tennac-booking/sdk';
|
|
326
|
-
|
|
327
|
-
const configuration = new Configuration();
|
|
328
|
-
const apiInstance = new UsersApi(configuration);
|
|
329
|
-
|
|
330
|
-
let registerRequestBody: RegisterRequestBody; //
|
|
331
|
-
|
|
332
|
-
const { status, data } = await apiInstance.register(
|
|
333
|
-
registerRequestBody
|
|
334
|
-
);
|
|
335
|
-
```
|
|
336
|
-
|
|
337
|
-
### Parameters
|
|
338
|
-
|
|
339
|
-
|Name | Type | Description | Notes|
|
|
340
|
-
|------------- | ------------- | ------------- | -------------|
|
|
341
|
-
| **registerRequestBody** | **RegisterRequestBody**| | |
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
### Return type
|
|
345
|
-
|
|
346
|
-
**UserResponse**
|
|
347
|
-
|
|
348
|
-
### Authorization
|
|
349
|
-
|
|
350
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
351
|
-
|
|
352
|
-
### HTTP request headers
|
|
353
|
-
|
|
354
|
-
- **Content-Type**: application/json
|
|
355
|
-
- **Accept**: application/json
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
### HTTP response details
|
|
359
|
-
| Status code | Description | Response headers |
|
|
360
|
-
|-------------|-------------|------------------|
|
|
361
|
-
|**201** | Utilisateur créé | - |
|
|
362
|
-
|**400** | Requête invalide | - |
|
|
363
|
-
|**409** | Email déjà utilisé | - |
|
|
364
|
-
|**500** | Erreur serveur interne | - |
|
|
365
|
-
|
|
366
|
-
[[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)
|
|
367
|
-
|
|
368
|
-
# **updateUser**
|
|
369
|
-
> UserResponse updateUser(updateUserRequestBody)
|
|
65
|
+
# **updateCustomer**
|
|
66
|
+
> UpdateCustomerResponse updateCustomer(updateCustomerRequestBody)
|
|
370
67
|
|
|
371
68
|
|
|
372
69
|
### Example
|
|
@@ -375,16 +72,16 @@ const { status, data } = await apiInstance.register(
|
|
|
375
72
|
import {
|
|
376
73
|
UsersApi,
|
|
377
74
|
Configuration,
|
|
378
|
-
|
|
75
|
+
UpdateCustomerRequestBody
|
|
379
76
|
} from '@tennac-booking/sdk';
|
|
380
77
|
|
|
381
78
|
const configuration = new Configuration();
|
|
382
79
|
const apiInstance = new UsersApi(configuration);
|
|
383
80
|
|
|
384
|
-
let
|
|
81
|
+
let updateCustomerRequestBody: UpdateCustomerRequestBody; //
|
|
385
82
|
|
|
386
|
-
const { status, data } = await apiInstance.
|
|
387
|
-
|
|
83
|
+
const { status, data } = await apiInstance.updateCustomer(
|
|
84
|
+
updateCustomerRequestBody
|
|
388
85
|
);
|
|
389
86
|
```
|
|
390
87
|
|
|
@@ -392,12 +89,12 @@ const { status, data } = await apiInstance.updateUser(
|
|
|
392
89
|
|
|
393
90
|
|Name | Type | Description | Notes|
|
|
394
91
|
|------------- | ------------- | ------------- | -------------|
|
|
395
|
-
| **
|
|
92
|
+
| **updateCustomerRequestBody** | **UpdateCustomerRequestBody**| | |
|
|
396
93
|
|
|
397
94
|
|
|
398
95
|
### Return type
|
|
399
96
|
|
|
400
|
-
**
|
|
97
|
+
**UpdateCustomerResponse**
|
|
401
98
|
|
|
402
99
|
### Authorization
|
|
403
100
|
|
|
@@ -412,9 +109,10 @@ const { status, data } = await apiInstance.updateUser(
|
|
|
412
109
|
### HTTP response details
|
|
413
110
|
| Status code | Description | Response headers |
|
|
414
111
|
|-------------|-------------|------------------|
|
|
415
|
-
|**200** |
|
|
112
|
+
|**200** | Customer mis à jour | - |
|
|
416
113
|
|**400** | Requête invalide | - |
|
|
417
114
|
|**401** | Non autorisé | - |
|
|
115
|
+
|**404** | Ressource non trouvée | - |
|
|
418
116
|
|**500** | Erreur serveur interne | - |
|
|
419
117
|
|
|
420
118
|
[[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)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# UsersResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**users** | [**Array<UserResponse>**](UserResponse.md) | | [optional] [default to undefined]
|
|
9
|
+
**total** | **number** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { UsersResponse } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: UsersResponse = {
|
|
17
|
+
users,
|
|
18
|
+
total,
|
|
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)
|
package/index.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pickle Ball API
|
|
5
5
|
* API for managing pickle ball games and players
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.14
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/package.json
CHANGED
|
@@ -1 +1,32 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"name": "@tennac-booking/sdk",
|
|
3
|
+
"version": "1.0.14",
|
|
4
|
+
"description": "OpenAPI client for @tennac-booking/sdk",
|
|
5
|
+
"author": "OpenAPI-Generator Contributors",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
9
|
+
"keywords": [
|
|
10
|
+
"axios",
|
|
11
|
+
"typescript",
|
|
12
|
+
"openapi-client",
|
|
13
|
+
"openapi-generator",
|
|
14
|
+
"@tennac-booking/sdk"
|
|
15
|
+
],
|
|
16
|
+
"license": "Unlicense",
|
|
17
|
+
"main": "./dist/index.js",
|
|
18
|
+
"typings": "./dist/index.d.ts",
|
|
19
|
+
"module": "./dist/esm/index.js",
|
|
20
|
+
"sideEffects": false,
|
|
21
|
+
"scripts": {
|
|
22
|
+
"build": "tsc && tsc -p tsconfig.esm.json",
|
|
23
|
+
"prepare": "npm run build"
|
|
24
|
+
},
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"axios": "^1.6.1"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@types/node": "12.11.5 - 12.20.42",
|
|
30
|
+
"typescript": "^4.0 || ^5.0"
|
|
31
|
+
}
|
|
32
|
+
}
|