@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.
Files changed (90) hide show
  1. package/.openapi-generator/FILES +35 -12
  2. package/README.md +69 -60
  3. package/api.ts +3550 -3065
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +2164 -1751
  8. package/dist/api.js +2523 -2150
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +1 -1
  15. package/dist/esm/api.d.ts +2164 -1751
  16. package/dist/esm/api.js +2429 -2109
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +1 -1
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/AdminClubSlotsApi.md +62 -0
  28. package/docs/AdminClubsApi.md +108 -0
  29. package/docs/ApiErrorResponse.md +1 -1
  30. package/docs/ChangePasswordResponse.md +1 -1
  31. package/docs/ClubInfoResponse.md +6 -6
  32. package/docs/ClubResponse.md +6 -6
  33. package/docs/ClubRoleResponse.md +6 -6
  34. package/docs/ClubSettings.md +7 -1
  35. package/docs/ClubsResponse.md +22 -0
  36. package/docs/CourtResponse.md +7 -7
  37. package/docs/CourtStatus.md +5 -2
  38. package/docs/CreateClubRequest.md +12 -10
  39. package/docs/CreateClubSettingsRequest.md +28 -0
  40. package/docs/CreateCourtRequest.md +2 -0
  41. package/docs/CreatePriceRequest.md +4 -4
  42. package/docs/CreateSportRequest.md +4 -0
  43. package/docs/CreateSubscriptionPlanRequest.md +3 -3
  44. package/docs/DeleteClubSettingsRequest.md +20 -0
  45. package/docs/{DeleteClub200Response.md → DeleteSlotsResponse.md} +3 -3
  46. package/docs/{GenerateSlotsForNextThreeWeeks201Response.md → DeleteSport200Response.md} +3 -3
  47. package/docs/GenerateSlotsResponse.md +20 -0
  48. package/docs/GetClubInfos200Response.md +30 -0
  49. package/docs/GetCourtsByClubAndSport200Response.md +26 -0
  50. package/docs/GetLastSixMonthsTurnover200ResponseInner.md +24 -0
  51. package/docs/GetNumberOfClubUsers200Response.md +20 -0
  52. package/docs/GetUserRolesResponseRolesInner.md +4 -6
  53. package/docs/GoogleSignInRequestBody.md +2 -2
  54. package/docs/GoogleSignInResponse.md +2 -8
  55. package/docs/{ClubCourtsApi.md → ManagerClubCourtsApi.md} +5 -5
  56. package/docs/{ClubRolesApi.md → ManagerClubRolesApi.md} +19 -19
  57. package/docs/ManagerClubSlotsApi.md +125 -0
  58. package/docs/{ClubSubscriptionsApi.md → ManagerClubSubscriptionsApi.md} +15 -15
  59. package/docs/{ClubsApi.md → ManagerClubsApi.md} +11 -209
  60. package/docs/ManagerSportsApi.md +119 -0
  61. package/docs/PriceResponse.md +2 -8
  62. package/docs/RefreshTokenResponse.md +2 -6
  63. package/docs/SlotResponse.md +2 -8
  64. package/docs/SportResponse.md +0 -2
  65. package/docs/{ClubSportsApi.md → StaffClubAnalyticsApi.md} +20 -27
  66. package/docs/StaffClubBookingsApi.md +59 -0
  67. package/docs/StaffClubSettingsApi.md +62 -0
  68. package/docs/StaffClubsApi.md +59 -0
  69. package/docs/StaffProfileApi.md +54 -0
  70. package/docs/StaffSportsApi.md +62 -0
  71. package/docs/SubscriptionPlanResponse.md +4 -8
  72. package/docs/UpdateClubSettingsRequest.md +28 -0
  73. package/docs/UpdateSportRequest.md +4 -0
  74. package/docs/UpdateSubscriptionPlanRequest.md +3 -3
  75. package/docs/UpdateSubscriptionPlanResponse.md +2 -2
  76. package/docs/UserApi.md +119 -0
  77. package/docs/{SportsApi.md → UserAuthenticationApi.md} +54 -57
  78. package/docs/{BookingsApi.md → UserBookingsApi.md} +32 -32
  79. package/docs/UserClubCourtsApi.md +64 -0
  80. package/docs/UserClubSlotsApi.md +181 -0
  81. package/docs/UserClubSportsApi.md +60 -0
  82. package/docs/UserClubsApi.md +53 -0
  83. package/docs/{ClubSettingsApi.md → UserProfileApi.md} +59 -62
  84. package/docs/UserResponse.md +8 -14
  85. package/docs/UserSubscriptionsApi.md +222 -0
  86. package/docs/UsersResponse.md +22 -0
  87. package/index.ts +1 -1
  88. package/package.json +32 -1
  89. package/docs/ClubSlotsApi.md +0 -353
  90. 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
- # ClubSettingsApi
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
- |[**createClubSettings**](#createclubsettings) | **POST** /api/club-settings | Crée les paramètres d’un club|
8
- |[**deleteClubSettings**](#deleteclubsettings) | **DELETE** /api/club-settings | Supprime les paramètres d’un club|
9
- |[**getClubSettings**](#getclubsettings) | **GET** /api/club-settings | Récupère les paramètres d’un club|
10
- |[**updateClubSettings**](#updateclubsettings) | **PUT** /api/club-settings | Met à jour les paramètres d’un club|
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
- # **createClubSettings**
13
- > ClubSettings createClubSettings(clubSettings)
12
+ # **changePassword**
13
+ > ChangePasswordResponse changePassword(changePasswordRequestBody)
14
14
 
15
15
 
16
16
  ### Example
17
17
 
18
18
  ```typescript
19
19
  import {
20
- ClubSettingsApi,
20
+ UserProfileApi,
21
21
  Configuration,
22
- ClubSettings
22
+ ChangePasswordRequestBody
23
23
  } from '@tennac-booking/sdk';
24
24
 
25
25
  const configuration = new Configuration();
26
- const apiInstance = new ClubSettingsApi(configuration);
26
+ const apiInstance = new UserProfileApi(configuration);
27
27
 
28
- let clubSettings: ClubSettings; //
28
+ let changePasswordRequestBody: ChangePasswordRequestBody; //
29
29
 
30
- const { status, data } = await apiInstance.createClubSettings(
31
- clubSettings
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
- | **clubSettings** | **ClubSettings**| | |
39
+ | **changePasswordRequestBody** | **ChangePasswordRequestBody**| | |
40
40
 
41
41
 
42
42
  ### Return type
43
43
 
44
- **ClubSettings**
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
- |**201** | Paramètres créés | - |
59
+ |**200** | Mot de passe modifié | - |
60
+ |**400** | Requête invalide | - |
60
61
  |**401** | Non autorisé | - |
61
- |**409** | Paramètres déjà existants | - |
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
- # **deleteClubSettings**
67
- > deleteClubSettings(getClubSettingsRequest)
67
+ # **getAllUsers**
68
+ > Array<UserResponse> getAllUsers()
68
69
 
69
70
 
70
71
  ### Example
71
72
 
72
73
  ```typescript
73
74
  import {
74
- ClubSettingsApi,
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 ClubSettingsApi(configuration);
80
+ const apiInstance = new UserProfileApi(configuration);
81
81
 
82
- let getClubSettingsRequest: GetClubSettingsRequest; //
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.deleteClubSettings(
85
- getClubSettingsRequest
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
- | **getClubSettingsRequest** | **GetClubSettingsRequest**| | |
97
+ | **limit** | [**number**] | Nombre maximum d\&#39;utilisateurs à retourner | (optional) defaults to 20|
98
+ | **skip** | [**number**] | Nombre d\&#39;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
- void (empty response body)
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**: application/json
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** | Paramètres supprimés | - |
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
- # **getClubSettings**
121
- > ClubSettings getClubSettings(getClubSettingsRequest)
125
+ # **getUserInfo**
126
+ > UserResponse getUserInfo()
122
127
 
123
128
 
124
129
  ### Example
125
130
 
126
131
  ```typescript
127
132
  import {
128
- ClubSettingsApi,
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 ClubSettingsApi(configuration);
138
+ const apiInstance = new UserProfileApi(configuration);
135
139
 
136
- let getClubSettingsRequest: GetClubSettingsRequest; //
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
- **ClubSettings**
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**: application/json
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** | Paramètres du club | - |
164
+ |**200** | Informations de l\&#39;utilisateur | - |
168
165
  |**401** | Non autorisé | - |
169
- |**404** | Paramètres non trouvés | - |
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
- # **updateClubSettings**
175
- > ClubSettings updateClubSettings(clubSettings)
171
+ # **updateUser**
172
+ > UserResponse updateUser(updateUserRequestBody)
176
173
 
177
174
 
178
175
  ### Example
179
176
 
180
177
  ```typescript
181
178
  import {
182
- ClubSettingsApi,
179
+ UserProfileApi,
183
180
  Configuration,
184
- ClubSettings
181
+ UpdateUserRequestBody
185
182
  } from '@tennac-booking/sdk';
186
183
 
187
184
  const configuration = new Configuration();
188
- const apiInstance = new ClubSettingsApi(configuration);
185
+ const apiInstance = new UserProfileApi(configuration);
189
186
 
190
- let clubSettings: ClubSettings; //
187
+ let updateUserRequestBody: UpdateUserRequestBody; //
191
188
 
192
- const { status, data } = await apiInstance.updateClubSettings(
193
- clubSettings
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
- | **clubSettings** | **ClubSettings**| | |
198
+ | **updateUserRequestBody** | **UpdateUserRequestBody**| | |
202
199
 
203
200
 
204
201
  ### Return type
205
202
 
206
- **ClubSettings**
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** | Paramètres mis à jour | - |
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)
@@ -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
- **isAdmin** | **boolean** | | [default to undefined]
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
- isAdmin,
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\&#39;utilisateur connecté|
9
+ |[**initiateSubscriptionSession**](#initiatesubscriptionsession) | **POST** /api/users/me/subscription-session | Initie une session d\&#39;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\&#39;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\&#39;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\&#39;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&lt;UserResponse&gt;**](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.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).