@tennac-booking/sdk 1.0.13 → 1.0.15
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 +35 -12
- package/README.md +69 -60
- package/api.ts +3550 -3065
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +2164 -1751
- package/dist/api.js +2523 -2150
- 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 +2164 -1751
- package/dist/esm/api.js +2429 -2109
- 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/AdminClubSlotsApi.md +62 -0
- package/docs/AdminClubsApi.md +108 -0
- package/docs/ApiErrorResponse.md +1 -1
- package/docs/ChangePasswordResponse.md +1 -1
- package/docs/ClubInfoResponse.md +6 -6
- package/docs/ClubResponse.md +6 -6
- package/docs/ClubRoleResponse.md +6 -6
- package/docs/ClubSettings.md +7 -1
- 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/GetClubInfos200Response.md +30 -0
- package/docs/GetCourtsByClubAndSport200Response.md +26 -0
- package/docs/GetLastSixMonthsTurnover200ResponseInner.md +24 -0
- package/docs/GetNumberOfClubUsers200Response.md +20 -0
- package/docs/GetUserRolesResponseRolesInner.md +4 -6
- package/docs/GoogleSignInRequestBody.md +2 -2
- package/docs/GoogleSignInResponse.md +2 -8
- package/docs/{ClubCourtsApi.md → ManagerClubCourtsApi.md} +5 -5
- package/docs/{ClubRolesApi.md → ManagerClubRolesApi.md} +19 -19
- package/docs/ManagerClubSlotsApi.md +125 -0
- package/docs/{ClubSubscriptionsApi.md → ManagerClubSubscriptionsApi.md} +15 -15
- package/docs/{ClubsApi.md → ManagerClubsApi.md} +11 -209
- package/docs/ManagerSportsApi.md +119 -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/{ClubSportsApi.md → StaffClubAnalyticsApi.md} +20 -27
- package/docs/StaffClubBookingsApi.md +59 -0
- package/docs/StaffClubSettingsApi.md +62 -0
- package/docs/StaffClubsApi.md +59 -0
- package/docs/StaffProfileApi.md +54 -0
- package/docs/StaffSportsApi.md +62 -0
- package/docs/SubscriptionPlanResponse.md +4 -8
- package/docs/UpdateClubSettingsRequest.md +28 -0
- package/docs/UpdateSportRequest.md +4 -0
- package/docs/UpdateSubscriptionPlanRequest.md +3 -3
- package/docs/UpdateSubscriptionPlanResponse.md +2 -2
- package/docs/UserApi.md +119 -0
- package/docs/{SportsApi.md → UserAuthenticationApi.md} +54 -57
- package/docs/{BookingsApi.md → UserBookingsApi.md} +32 -32
- package/docs/UserClubCourtsApi.md +64 -0
- package/docs/UserClubSlotsApi.md +181 -0
- package/docs/UserClubSportsApi.md +60 -0
- package/docs/UserClubsApi.md +53 -0
- package/docs/{ClubSettingsApi.md → UserProfileApi.md} +59 -62
- package/docs/UserResponse.md +8 -14
- package/docs/UserSubscriptionsApi.md +222 -0
- package/docs/UsersResponse.md +22 -0
- package/index.ts +1 -1
- package/package.json +32 -1
- package/docs/ClubSlotsApi.md +0 -353
- package/docs/UsersApi.md +0 -844
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# UserClubSportsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getSportsByClub**](#getsportsbyclub) | **GET** /api/clubs/{id}/sports | Récupérer tous les sports pour un club|
|
|
8
|
+
|
|
9
|
+
# **getSportsByClub**
|
|
10
|
+
> SportsResponse getSportsByClub()
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import {
|
|
17
|
+
UserClubSportsApi,
|
|
18
|
+
Configuration
|
|
19
|
+
} from '@tennac-booking/sdk';
|
|
20
|
+
|
|
21
|
+
const configuration = new Configuration();
|
|
22
|
+
const apiInstance = new UserClubSportsApi(configuration);
|
|
23
|
+
|
|
24
|
+
let id: string; //ID du club (default to undefined)
|
|
25
|
+
|
|
26
|
+
const { status, data } = await apiInstance.getSportsByClub(
|
|
27
|
+
id
|
|
28
|
+
);
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Parameters
|
|
32
|
+
|
|
33
|
+
|Name | Type | Description | Notes|
|
|
34
|
+
|------------- | ------------- | ------------- | -------------|
|
|
35
|
+
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### Return type
|
|
39
|
+
|
|
40
|
+
**SportsResponse**
|
|
41
|
+
|
|
42
|
+
### Authorization
|
|
43
|
+
|
|
44
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
45
|
+
|
|
46
|
+
### HTTP request headers
|
|
47
|
+
|
|
48
|
+
- **Content-Type**: Not defined
|
|
49
|
+
- **Accept**: application/json
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
### HTTP response details
|
|
53
|
+
| Status code | Description | Response headers |
|
|
54
|
+
|-------------|-------------|------------------|
|
|
55
|
+
|**200** | Liste des sports du club | - |
|
|
56
|
+
|**400** | Requête invalide | - |
|
|
57
|
+
|**500** | Erreur serveur interne | - |
|
|
58
|
+
|
|
59
|
+
[[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)
|
|
60
|
+
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# UserClubsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getActiveClubs**](#getactiveclubs) | **GET** /api/clubs/activeClubs | Obtenir la liste des clubs actifs (seulement id et nom)|
|
|
8
|
+
|
|
9
|
+
# **getActiveClubs**
|
|
10
|
+
> GetActiveClubs200Response getActiveClubs()
|
|
11
|
+
|
|
12
|
+
Retourne une liste des clubs dont la propriété `isActive` est `true`. Chaque club contient uniquement son `id` et son `name`.
|
|
13
|
+
|
|
14
|
+
### Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import {
|
|
18
|
+
UserClubsApi,
|
|
19
|
+
Configuration
|
|
20
|
+
} from '@tennac-booking/sdk';
|
|
21
|
+
|
|
22
|
+
const configuration = new Configuration();
|
|
23
|
+
const apiInstance = new UserClubsApi(configuration);
|
|
24
|
+
|
|
25
|
+
const { status, data } = await apiInstance.getActiveClubs();
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Parameters
|
|
29
|
+
This endpoint does not have any parameters.
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Return type
|
|
33
|
+
|
|
34
|
+
**GetActiveClubs200Response**
|
|
35
|
+
|
|
36
|
+
### Authorization
|
|
37
|
+
|
|
38
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
39
|
+
|
|
40
|
+
### HTTP request headers
|
|
41
|
+
|
|
42
|
+
- **Content-Type**: Not defined
|
|
43
|
+
- **Accept**: application/json
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### HTTP response details
|
|
47
|
+
| Status code | Description | Response headers |
|
|
48
|
+
|-------------|-------------|------------------|
|
|
49
|
+
|**200** | Liste des clubs actifs | - |
|
|
50
|
+
|**500** | Erreur serveur interne | - |
|
|
51
|
+
|
|
52
|
+
[[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)
|
|
53
|
+
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
#
|
|
1
|
+
# UserProfileApi
|
|
2
2
|
|
|
3
3
|
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**
|
|
8
|
-
|[**
|
|
9
|
-
|[**
|
|
10
|
-
|[**
|
|
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 avec filtres et pagination|
|
|
9
|
+
|[**getUserInfo**](#getuserinfo) | **GET** /api/users/me | Récupère les informations de l\'utilisateur connecté|
|
|
10
|
+
|[**updateUser**](#updateuser) | **PUT** /api/users/me | Met à jour les données de l\'utilisateur connecté|
|
|
11
11
|
|
|
12
|
-
# **
|
|
13
|
-
>
|
|
12
|
+
# **changePassword**
|
|
13
|
+
> ChangePasswordResponse changePassword(changePasswordRequestBody)
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
### Example
|
|
17
17
|
|
|
18
18
|
```typescript
|
|
19
19
|
import {
|
|
20
|
-
|
|
20
|
+
UserProfileApi,
|
|
21
21
|
Configuration,
|
|
22
|
-
|
|
22
|
+
ChangePasswordRequestBody
|
|
23
23
|
} from '@tennac-booking/sdk';
|
|
24
24
|
|
|
25
25
|
const configuration = new Configuration();
|
|
26
|
-
const apiInstance = new
|
|
26
|
+
const apiInstance = new UserProfileApi(configuration);
|
|
27
27
|
|
|
28
|
-
let
|
|
28
|
+
let changePasswordRequestBody: ChangePasswordRequestBody; //
|
|
29
29
|
|
|
30
|
-
const { status, data } = await apiInstance.
|
|
31
|
-
|
|
30
|
+
const { status, data } = await apiInstance.changePassword(
|
|
31
|
+
changePasswordRequestBody
|
|
32
32
|
);
|
|
33
33
|
```
|
|
34
34
|
|
|
@@ -36,12 +36,12 @@ const { status, data } = await apiInstance.createClubSettings(
|
|
|
36
36
|
|
|
37
37
|
|Name | Type | Description | Notes|
|
|
38
38
|
|------------- | ------------- | ------------- | -------------|
|
|
39
|
-
| **
|
|
39
|
+
| **changePasswordRequestBody** | **ChangePasswordRequestBody**| | |
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
### Return type
|
|
43
43
|
|
|
44
|
-
**
|
|
44
|
+
**ChangePasswordResponse**
|
|
45
45
|
|
|
46
46
|
### Authorization
|
|
47
47
|
|
|
@@ -56,33 +56,37 @@ const { status, data } = await apiInstance.createClubSettings(
|
|
|
56
56
|
### HTTP response details
|
|
57
57
|
| Status code | Description | Response headers |
|
|
58
58
|
|-------------|-------------|------------------|
|
|
59
|
-
|**
|
|
59
|
+
|**200** | Mot de passe modifié | - |
|
|
60
|
+
|**400** | Requête invalide | - |
|
|
60
61
|
|**401** | Non autorisé | - |
|
|
61
|
-
|**
|
|
62
|
+
|**404** | Ressource non trouvée | - |
|
|
62
63
|
|**500** | Erreur serveur interne | - |
|
|
63
64
|
|
|
64
65
|
[[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)
|
|
65
66
|
|
|
66
|
-
# **
|
|
67
|
-
>
|
|
67
|
+
# **getAllUsers**
|
|
68
|
+
> Array<UserResponse> getAllUsers()
|
|
68
69
|
|
|
69
70
|
|
|
70
71
|
### Example
|
|
71
72
|
|
|
72
73
|
```typescript
|
|
73
74
|
import {
|
|
74
|
-
|
|
75
|
-
Configuration
|
|
76
|
-
GetClubSettingsRequest
|
|
75
|
+
UserProfileApi,
|
|
76
|
+
Configuration
|
|
77
77
|
} from '@tennac-booking/sdk';
|
|
78
78
|
|
|
79
79
|
const configuration = new Configuration();
|
|
80
|
-
const apiInstance = new
|
|
80
|
+
const apiInstance = new UserProfileApi(configuration);
|
|
81
81
|
|
|
82
|
-
let
|
|
82
|
+
let limit: number; //Nombre maximum d\'utilisateurs à retourner (optional) (default to 20)
|
|
83
|
+
let skip: number; //Nombre d\'utilisateurs à ignorer (pagination) (optional) (default to 0)
|
|
84
|
+
let search: string; //Recherche dans firstName, lastName, email (optional) (default to undefined)
|
|
83
85
|
|
|
84
|
-
const { status, data } = await apiInstance.
|
|
85
|
-
|
|
86
|
+
const { status, data } = await apiInstance.getAllUsers(
|
|
87
|
+
limit,
|
|
88
|
+
skip,
|
|
89
|
+
search
|
|
86
90
|
);
|
|
87
91
|
```
|
|
88
92
|
|
|
@@ -90,12 +94,14 @@ const { status, data } = await apiInstance.deleteClubSettings(
|
|
|
90
94
|
|
|
91
95
|
|Name | Type | Description | Notes|
|
|
92
96
|
|------------- | ------------- | ------------- | -------------|
|
|
93
|
-
| **
|
|
97
|
+
| **limit** | [**number**] | Nombre maximum d\'utilisateurs à retourner | (optional) defaults to 20|
|
|
98
|
+
| **skip** | [**number**] | Nombre d\'utilisateurs à ignorer (pagination) | (optional) defaults to 0|
|
|
99
|
+
| **search** | [**string**] | Recherche dans firstName, lastName, email | (optional) defaults to undefined|
|
|
94
100
|
|
|
95
101
|
|
|
96
102
|
### Return type
|
|
97
103
|
|
|
98
|
-
|
|
104
|
+
**Array<UserResponse>**
|
|
99
105
|
|
|
100
106
|
### Authorization
|
|
101
107
|
|
|
@@ -103,53 +109,44 @@ void (empty response body)
|
|
|
103
109
|
|
|
104
110
|
### HTTP request headers
|
|
105
111
|
|
|
106
|
-
- **Content-Type**:
|
|
112
|
+
- **Content-Type**: Not defined
|
|
107
113
|
- **Accept**: application/json
|
|
108
114
|
|
|
109
115
|
|
|
110
116
|
### HTTP response details
|
|
111
117
|
| Status code | Description | Response headers |
|
|
112
118
|
|-------------|-------------|------------------|
|
|
113
|
-
|**200** |
|
|
119
|
+
|**200** | Liste des utilisateurs | - |
|
|
114
120
|
|**401** | Non autorisé | - |
|
|
115
|
-
|**404** | Paramètres non trouvés | - |
|
|
116
121
|
|**500** | Erreur serveur interne | - |
|
|
117
122
|
|
|
118
123
|
[[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)
|
|
119
124
|
|
|
120
|
-
# **
|
|
121
|
-
>
|
|
125
|
+
# **getUserInfo**
|
|
126
|
+
> UserResponse getUserInfo()
|
|
122
127
|
|
|
123
128
|
|
|
124
129
|
### Example
|
|
125
130
|
|
|
126
131
|
```typescript
|
|
127
132
|
import {
|
|
128
|
-
|
|
129
|
-
Configuration
|
|
130
|
-
GetClubSettingsRequest
|
|
133
|
+
UserProfileApi,
|
|
134
|
+
Configuration
|
|
131
135
|
} from '@tennac-booking/sdk';
|
|
132
136
|
|
|
133
137
|
const configuration = new Configuration();
|
|
134
|
-
const apiInstance = new
|
|
138
|
+
const apiInstance = new UserProfileApi(configuration);
|
|
135
139
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
const { status, data } = await apiInstance.getClubSettings(
|
|
139
|
-
getClubSettingsRequest
|
|
140
|
-
);
|
|
140
|
+
const { status, data } = await apiInstance.getUserInfo();
|
|
141
141
|
```
|
|
142
142
|
|
|
143
143
|
### Parameters
|
|
144
|
-
|
|
145
|
-
|Name | Type | Description | Notes|
|
|
146
|
-
|------------- | ------------- | ------------- | -------------|
|
|
147
|
-
| **getClubSettingsRequest** | **GetClubSettingsRequest**| | |
|
|
144
|
+
This endpoint does not have any parameters.
|
|
148
145
|
|
|
149
146
|
|
|
150
147
|
### Return type
|
|
151
148
|
|
|
152
|
-
**
|
|
149
|
+
**UserResponse**
|
|
153
150
|
|
|
154
151
|
### Authorization
|
|
155
152
|
|
|
@@ -157,40 +154,40 @@ const { status, data } = await apiInstance.getClubSettings(
|
|
|
157
154
|
|
|
158
155
|
### HTTP request headers
|
|
159
156
|
|
|
160
|
-
- **Content-Type**:
|
|
157
|
+
- **Content-Type**: Not defined
|
|
161
158
|
- **Accept**: application/json
|
|
162
159
|
|
|
163
160
|
|
|
164
161
|
### HTTP response details
|
|
165
162
|
| Status code | Description | Response headers |
|
|
166
163
|
|-------------|-------------|------------------|
|
|
167
|
-
|**200** |
|
|
164
|
+
|**200** | Informations de l\'utilisateur | - |
|
|
168
165
|
|**401** | Non autorisé | - |
|
|
169
|
-
|**404** |
|
|
166
|
+
|**404** | Ressource non trouvée | - |
|
|
170
167
|
|**500** | Erreur serveur interne | - |
|
|
171
168
|
|
|
172
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)
|
|
173
170
|
|
|
174
|
-
# **
|
|
175
|
-
>
|
|
171
|
+
# **updateUser**
|
|
172
|
+
> UserResponse updateUser(updateUserRequestBody)
|
|
176
173
|
|
|
177
174
|
|
|
178
175
|
### Example
|
|
179
176
|
|
|
180
177
|
```typescript
|
|
181
178
|
import {
|
|
182
|
-
|
|
179
|
+
UserProfileApi,
|
|
183
180
|
Configuration,
|
|
184
|
-
|
|
181
|
+
UpdateUserRequestBody
|
|
185
182
|
} from '@tennac-booking/sdk';
|
|
186
183
|
|
|
187
184
|
const configuration = new Configuration();
|
|
188
|
-
const apiInstance = new
|
|
185
|
+
const apiInstance = new UserProfileApi(configuration);
|
|
189
186
|
|
|
190
|
-
let
|
|
187
|
+
let updateUserRequestBody: UpdateUserRequestBody; //
|
|
191
188
|
|
|
192
|
-
const { status, data } = await apiInstance.
|
|
193
|
-
|
|
189
|
+
const { status, data } = await apiInstance.updateUser(
|
|
190
|
+
updateUserRequestBody
|
|
194
191
|
);
|
|
195
192
|
```
|
|
196
193
|
|
|
@@ -198,12 +195,12 @@ const { status, data } = await apiInstance.updateClubSettings(
|
|
|
198
195
|
|
|
199
196
|
|Name | Type | Description | Notes|
|
|
200
197
|
|------------- | ------------- | ------------- | -------------|
|
|
201
|
-
| **
|
|
198
|
+
| **updateUserRequestBody** | **UpdateUserRequestBody**| | |
|
|
202
199
|
|
|
203
200
|
|
|
204
201
|
### Return type
|
|
205
202
|
|
|
206
|
-
**
|
|
203
|
+
**UserResponse**
|
|
207
204
|
|
|
208
205
|
### Authorization
|
|
209
206
|
|
|
@@ -218,9 +215,9 @@ const { status, data } = await apiInstance.updateClubSettings(
|
|
|
218
215
|
### HTTP response details
|
|
219
216
|
| Status code | Description | Response headers |
|
|
220
217
|
|-------------|-------------|------------------|
|
|
221
|
-
|**200** |
|
|
218
|
+
|**200** | Utilisateur mis à jour | - |
|
|
219
|
+
|**400** | Requête invalide | - |
|
|
222
220
|
|**401** | Non autorisé | - |
|
|
223
|
-
|**404** | Paramètres non trouvés | - |
|
|
224
221
|
|**500** | Erreur serveur interne | - |
|
|
225
222
|
|
|
226
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)
|
package/docs/UserResponse.md
CHANGED
|
@@ -5,19 +5,16 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**id** | **string** | | [default to undefined]
|
|
8
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
9
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]
|
|
10
|
+
**firstName** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**lastName** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**email** | **string** | | [optional] [default to undefined]
|
|
16
13
|
**phone** | **string** | | [optional] [default to undefined]
|
|
17
14
|
**profilePicture** | **string** | | [optional] [default to undefined]
|
|
18
|
-
**
|
|
19
|
-
**createdAt** | **string** | | [default to undefined]
|
|
20
|
-
**updatedAt** | **string** | | [default to undefined]
|
|
15
|
+
**level** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**createdAt** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**updatedAt** | **string** | | [optional] [default to undefined]
|
|
21
18
|
|
|
22
19
|
## Example
|
|
23
20
|
|
|
@@ -30,12 +27,9 @@ const instance: UserResponse = {
|
|
|
30
27
|
firstName,
|
|
31
28
|
lastName,
|
|
32
29
|
email,
|
|
33
|
-
isAccountVerified,
|
|
34
|
-
level,
|
|
35
|
-
stripeCustomerId,
|
|
36
30
|
phone,
|
|
37
31
|
profilePicture,
|
|
38
|
-
|
|
32
|
+
level,
|
|
39
33
|
createdAt,
|
|
40
34
|
updatedAt,
|
|
41
35
|
};
|
|
@@ -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
|
+
|
|
@@ -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).
|