@tennac-booking/sdk 1.0.21 → 1.0.23

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 (56) hide show
  1. package/.openapi-generator/FILES +11 -6
  2. package/README.md +54 -36
  3. package/api.ts +2620 -1296
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +1554 -818
  8. package/dist/api.js +1874 -932
  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 +1554 -818
  16. package/dist/esm/api.js +1854 -912
  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/ActiveClub.md +2 -0
  28. package/docs/AdminClubAnalyticsApi.md +249 -0
  29. package/docs/AdminClubSlotsApi.md +120 -0
  30. package/docs/AdminClubSubscriptionsApi.md +394 -0
  31. package/docs/AdminClubsApi.md +82 -20
  32. package/docs/BookingPopulated.md +28 -0
  33. package/docs/BookingPopulatedPaymentByPlayersStatusInner.md +22 -0
  34. package/docs/BookingPopulatedPaymentByPlayersStatusInnerInvoicesInner.md +24 -0
  35. package/docs/BookingPopulatedSlotId.md +26 -0
  36. package/docs/{CheckInPlayersRequest.md → BookingPopulatedSlotIdCourtId.md} +7 -5
  37. package/docs/BookingPopulatedUserId.md +24 -0
  38. package/docs/ClubAnalyticsApi.md +4 -16
  39. package/docs/{GetAllSportsRequest.md → DeleteClub200Response.md} +5 -5
  40. package/docs/{CancelBookingRequest.md → DeleteClubSettings200Response.md} +5 -5
  41. package/docs/GetLastSixMonthsTurnover200ResponseInner.md +3 -5
  42. package/docs/ManagerBookingsApi.md +0 -118
  43. package/docs/ManagerClubCourtsApi.md +4 -14
  44. package/docs/ManagerClubSettingsApi.md +172 -0
  45. package/docs/ManagerClubSlotsApi.md +2 -8
  46. package/docs/ManagerClubSubscriptionsApi.md +7 -28
  47. package/docs/ManagerClubsApi.md +14 -41
  48. package/docs/ManagerSportsApi.md +55 -0
  49. package/docs/StaffClubAnalyticsApi.md +14 -14
  50. package/docs/StaffClubBookingsApi.md +5 -12
  51. package/docs/StaffClubsApi.md +3 -10
  52. package/index.ts +1 -1
  53. package/package.json +1 -1
  54. package/docs/BookingsApi.md +0 -68
  55. package/docs/StaffClubSettingsApi.md +0 -54
  56. package/docs/StaffSportsApi.md +0 -62
@@ -0,0 +1,24 @@
1
+ # BookingPopulatedUserId
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [optional] [default to undefined]
9
+ **firstName** | **string** | | [optional] [default to undefined]
10
+ **lastName** | **string** | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { BookingPopulatedUserId } from '@tennac-booking/sdk';
16
+
17
+ const instance: BookingPopulatedUserId = {
18
+ id,
19
+ firstName,
20
+ lastName,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -4,10 +4,10 @@ All URIs are relative to *https://api.mon-domaine.com*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
- |[**getDailyTurnOver**](#getdailyturnover) | **GET** /api/clubs/{id}/turnover/daily | Chiffre d\'affaires quotidien|
8
- |[**getInvoices**](#getinvoices) | **GET** /api/clubs/{id}/invoices | Récupérer les factures du club|
9
- |[**getMonthlyTurnOver**](#getmonthlyturnover) | **GET** /api/clubs/{id}/turnover/monthly | Chiffre d\'affaires mensuel|
10
- |[**getYearlyTurnOver**](#getyearlyturnover) | **GET** /api/clubs/{id}/turnover/yearly | Chiffre d\'affaires annuel|
7
+ |[**getDailyTurnOver**](#getdailyturnover) | **GET** /api/analytics/dailyTurnover | Chiffre d\'affaires quotidien (club courant)|
8
+ |[**getInvoices**](#getinvoices) | **GET** /api/clubs/invoices | Récupérer les factures du club courant|
9
+ |[**getMonthlyTurnOver**](#getmonthlyturnover) | **GET** /api/analytics/monthlyTurnover | Chiffre d\'affaires mensuel (club courant)|
10
+ |[**getYearlyTurnOver**](#getyearlyturnover) | **GET** /api/analytics/yearlyTurnover | Chiffre d\'affaires annuel (club courant)|
11
11
 
12
12
  # **getDailyTurnOver**
13
13
  > DailyTurnoverResponse getDailyTurnOver()
@@ -24,11 +24,9 @@ import {
24
24
  const configuration = new Configuration();
25
25
  const apiInstance = new ClubAnalyticsApi(configuration);
26
26
 
27
- let id: string; //ID du club (default to undefined)
28
27
  let date: string; //Date (format YYYY-MM-DD) (default to undefined)
29
28
 
30
29
  const { status, data } = await apiInstance.getDailyTurnOver(
31
- id,
32
30
  date
33
31
  );
34
32
  ```
@@ -37,7 +35,6 @@ const { status, data } = await apiInstance.getDailyTurnOver(
37
35
 
38
36
  |Name | Type | Description | Notes|
39
37
  |------------- | ------------- | ------------- | -------------|
40
- | **id** | [**string**] | ID du club | defaults to undefined|
41
38
  | **date** | [**string**] | Date (format YYYY-MM-DD) | defaults to undefined|
42
39
 
43
40
 
@@ -81,7 +78,6 @@ import {
81
78
  const configuration = new Configuration();
82
79
  const apiInstance = new ClubAnalyticsApi(configuration);
83
80
 
84
- let id: string; //ID du club (default to undefined)
85
81
  let page: number; //Numéro de page (optional) (default to 1)
86
82
  let limit: number; //Nombre d\'éléments par page (optional) (default to 10)
87
83
  let status: 'pending' | 'paid' | 'failed' | 'authorized' | 'canceled' | 'expired'; //Filtrer par statut (optional) (default to undefined)
@@ -89,7 +85,6 @@ let startDate: string; //Date de début (ISO format) (optional) (default to unde
89
85
  let endDate: string; //Date de fin (ISO format) (optional) (default to undefined)
90
86
 
91
87
  const { status, data } = await apiInstance.getInvoices(
92
- id,
93
88
  page,
94
89
  limit,
95
90
  status,
@@ -102,7 +97,6 @@ const { status, data } = await apiInstance.getInvoices(
102
97
 
103
98
  |Name | Type | Description | Notes|
104
99
  |------------- | ------------- | ------------- | -------------|
105
- | **id** | [**string**] | ID du club | defaults to undefined|
106
100
  | **page** | [**number**] | Numéro de page | (optional) defaults to 1|
107
101
  | **limit** | [**number**] | Nombre d\'éléments par page | (optional) defaults to 10|
108
102
  | **status** | [**&#39;pending&#39; | &#39;paid&#39; | &#39;failed&#39; | &#39;authorized&#39; | &#39;canceled&#39; | &#39;expired&#39;**]**Array<&#39;pending&#39; &#124; &#39;paid&#39; &#124; &#39;failed&#39; &#124; &#39;authorized&#39; &#124; &#39;canceled&#39; &#124; &#39;expired&#39;>** | Filtrer par statut | (optional) defaults to undefined|
@@ -149,12 +143,10 @@ import {
149
143
  const configuration = new Configuration();
150
144
  const apiInstance = new ClubAnalyticsApi(configuration);
151
145
 
152
- let id: string; //ID du club (default to undefined)
153
146
  let year: number; //Année (default to undefined)
154
147
  let month: number; //Mois (1-12) (default to undefined)
155
148
 
156
149
  const { status, data } = await apiInstance.getMonthlyTurnOver(
157
- id,
158
150
  year,
159
151
  month
160
152
  );
@@ -164,7 +156,6 @@ const { status, data } = await apiInstance.getMonthlyTurnOver(
164
156
 
165
157
  |Name | Type | Description | Notes|
166
158
  |------------- | ------------- | ------------- | -------------|
167
- | **id** | [**string**] | ID du club | defaults to undefined|
168
159
  | **year** | [**number**] | Année | defaults to undefined|
169
160
  | **month** | [**number**] | Mois (1-12) | defaults to undefined|
170
161
 
@@ -209,11 +200,9 @@ import {
209
200
  const configuration = new Configuration();
210
201
  const apiInstance = new ClubAnalyticsApi(configuration);
211
202
 
212
- let id: string; //ID du club (default to undefined)
213
203
  let year: number; //Année (default to undefined)
214
204
 
215
205
  const { status, data } = await apiInstance.getYearlyTurnOver(
216
- id,
217
206
  year
218
207
  );
219
208
  ```
@@ -222,7 +211,6 @@ const { status, data } = await apiInstance.getYearlyTurnOver(
222
211
 
223
212
  |Name | Type | Description | Notes|
224
213
  |------------- | ------------- | ------------- | -------------|
225
- | **id** | [**string**] | ID du club | defaults to undefined|
226
214
  | **year** | [**number**] | Année | defaults to undefined|
227
215
 
228
216
 
@@ -1,19 +1,19 @@
1
- # GetAllSportsRequest
1
+ # DeleteClub200Response
2
2
 
3
3
 
4
4
  ## Properties
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **clubId** | **string** | | [optional] [default to undefined]
8
+ **message** | **string** | | [optional] [default to undefined]
9
9
 
10
10
  ## Example
11
11
 
12
12
  ```typescript
13
- import { GetAllSportsRequest } from '@tennac-booking/sdk';
13
+ import { DeleteClub200Response } from '@tennac-booking/sdk';
14
14
 
15
- const instance: GetAllSportsRequest = {
16
- clubId,
15
+ const instance: DeleteClub200Response = {
16
+ message,
17
17
  };
18
18
  ```
19
19
 
@@ -1,19 +1,19 @@
1
- # CancelBookingRequest
1
+ # DeleteClubSettings200Response
2
2
 
3
3
 
4
4
  ## Properties
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **userId** | **string** | ID de l\&#39;utilisateur créateur pour vérification | [default to undefined]
8
+ **message** | **string** | | [optional] [default to undefined]
9
9
 
10
10
  ## Example
11
11
 
12
12
  ```typescript
13
- import { CancelBookingRequest } from '@tennac-booking/sdk';
13
+ import { DeleteClubSettings200Response } from '@tennac-booking/sdk';
14
14
 
15
- const instance: CancelBookingRequest = {
16
- userId,
15
+ const instance: DeleteClubSettings200Response = {
16
+ message,
17
17
  };
18
18
  ```
19
19
 
@@ -5,9 +5,8 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **year** | **number** | | [optional] [default to undefined]
9
- **month** | **string** | | [optional] [default to undefined]
10
- **total** | **number** | | [optional] [default to undefined]
8
+ **month** | **string** | Month name (3-letter format) | [optional] [default to undefined]
9
+ **value** | **number** | Turnover amount for the month | [optional] [default to undefined]
11
10
 
12
11
  ## Example
13
12
 
@@ -15,9 +14,8 @@ Name | Type | Description | Notes
15
14
  import { GetLastSixMonthsTurnover200ResponseInner } from '@tennac-booking/sdk';
16
15
 
17
16
  const instance: GetLastSixMonthsTurnover200ResponseInner = {
18
- year,
19
17
  month,
20
- total,
18
+ value,
21
19
  };
22
20
  ```
23
21
 
@@ -5,8 +5,6 @@ All URIs are relative to *https://api.mon-domaine.com*
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
7
  |[**applyNoShowFee**](#applynoshowfee) | **POST** /api/bookings/{bookingId}/apply-noshow-fee | Appliquer les frais de no-show|
8
- |[**checkInPlayers**](#checkinplayers) | **POST** /api/bookings/{bookingId}/checkin-players | Enregistrer l\&#39;arrivée des joueurs|
9
- |[**getBookingPaymentStatus**](#getbookingpaymentstatus) | **GET** /api/bookings/{bookingId}/payment-status | Obtenir le statut des paiements d\&#39;une réservation|
10
8
  |[**managerCancelBooking**](#managercancelbooking) | **DELETE** /api/bookings/{bookingId}/manager-cancel | Annuler une réservation (gestionnaire)|
11
9
 
12
10
  # **applyNoShowFee**
@@ -65,122 +63,6 @@ const { status, data } = await apiInstance.applyNoShowFee(
65
63
 
66
64
  [[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
65
 
68
- # **checkInPlayers**
69
- > CheckInPlayersResponse checkInPlayers(checkInPlayersRequest)
70
-
71
- Enregistre l\'arrivée et le paiement des joueurs pour une réservation avec paiement sur place. Met à jour le statut des factures.
72
-
73
- ### Example
74
-
75
- ```typescript
76
- import {
77
- ManagerBookingsApi,
78
- Configuration,
79
- CheckInPlayersRequest
80
- } from '@tennac-booking/sdk';
81
-
82
- const configuration = new Configuration();
83
- const apiInstance = new ManagerBookingsApi(configuration);
84
-
85
- let bookingId: string; //ID MongoDB de la réservation (default to undefined)
86
- let checkInPlayersRequest: CheckInPlayersRequest; //
87
-
88
- const { status, data } = await apiInstance.checkInPlayers(
89
- bookingId,
90
- checkInPlayersRequest
91
- );
92
- ```
93
-
94
- ### Parameters
95
-
96
- |Name | Type | Description | Notes|
97
- |------------- | ------------- | ------------- | -------------|
98
- | **checkInPlayersRequest** | **CheckInPlayersRequest**| | |
99
- | **bookingId** | [**string**] | ID MongoDB de la réservation | defaults to undefined|
100
-
101
-
102
- ### Return type
103
-
104
- **CheckInPlayersResponse**
105
-
106
- ### Authorization
107
-
108
- [bearerAuth](../README.md#bearerAuth)
109
-
110
- ### HTTP request headers
111
-
112
- - **Content-Type**: application/json
113
- - **Accept**: application/json
114
-
115
-
116
- ### HTTP response details
117
- | Status code | Description | Response headers |
118
- |-------------|-------------|------------------|
119
- |**200** | Check-in effectué avec succès | - |
120
- |**400** | Requête invalide | - |
121
- |**401** | Non autorisé | - |
122
- |**403** | Accès interdit | - |
123
- |**404** | Réservation non trouvée | - |
124
- |**500** | Erreur serveur interne | - |
125
-
126
- [[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)
127
-
128
- # **getBookingPaymentStatus**
129
- > BookingPaymentStatusResponse getBookingPaymentStatus()
130
-
131
- Récupère le statut détaillé des paiements pour tous les joueurs d\'une réservation. Utile pour l\'interface de check-in.
132
-
133
- ### Example
134
-
135
- ```typescript
136
- import {
137
- ManagerBookingsApi,
138
- Configuration
139
- } from '@tennac-booking/sdk';
140
-
141
- const configuration = new Configuration();
142
- const apiInstance = new ManagerBookingsApi(configuration);
143
-
144
- let bookingId: string; //ID MongoDB de la réservation (default to undefined)
145
-
146
- const { status, data } = await apiInstance.getBookingPaymentStatus(
147
- bookingId
148
- );
149
- ```
150
-
151
- ### Parameters
152
-
153
- |Name | Type | Description | Notes|
154
- |------------- | ------------- | ------------- | -------------|
155
- | **bookingId** | [**string**] | ID MongoDB de la réservation | defaults to undefined|
156
-
157
-
158
- ### Return type
159
-
160
- **BookingPaymentStatusResponse**
161
-
162
- ### Authorization
163
-
164
- [bearerAuth](../README.md#bearerAuth)
165
-
166
- ### HTTP request headers
167
-
168
- - **Content-Type**: Not defined
169
- - **Accept**: application/json
170
-
171
-
172
- ### HTTP response details
173
- | Status code | Description | Response headers |
174
- |-------------|-------------|------------------|
175
- |**200** | Statut des paiements récupéré avec succès | - |
176
- |**400** | ID de réservation invalide | - |
177
- |**401** | Non autorisé | - |
178
- |**403** | Accès interdit | - |
179
- |**404** | Réservation non trouvée | - |
180
- |**500** | Erreur serveur interne | - |
181
-
182
- [[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)
183
-
184
66
  # **managerCancelBooking**
185
67
  > ManagerCancelBookingResponse managerCancelBooking(managerCancelBookingRequest)
186
68
 
@@ -4,8 +4,8 @@ All URIs are relative to *https://api.mon-domaine.com*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
- |[**createCourtForClub**](#createcourtforclub) | **POST** /api/clubs/{id}/courts | Créer un terrain pour un club|
8
- |[**getCourtsByClub**](#getcourtsbyclub) | **GET** /api/clubs/{id}/courts | Récupérer tous les terrains pour un club|
7
+ |[**createCourtForClub**](#createcourtforclub) | **POST** /api/clubs/courts | Créer un terrain pour le club courant|
8
+ |[**getCourtsByClub**](#getcourtsbyclub) | **GET** /api/clubs/courts | Récupérer tous les terrains du club courant|
9
9
 
10
10
  # **createCourtForClub**
11
11
  > CourtResponse createCourtForClub(createCourtRequest)
@@ -23,11 +23,9 @@ import {
23
23
  const configuration = new Configuration();
24
24
  const apiInstance = new ManagerClubCourtsApi(configuration);
25
25
 
26
- let id: string; //ID du club (default to undefined)
27
26
  let createCourtRequest: CreateCourtRequest; //
28
27
 
29
28
  const { status, data } = await apiInstance.createCourtForClub(
30
- id,
31
29
  createCourtRequest
32
30
  );
33
31
  ```
@@ -37,7 +35,6 @@ const { status, data } = await apiInstance.createCourtForClub(
37
35
  |Name | Type | Description | Notes|
38
36
  |------------- | ------------- | ------------- | -------------|
39
37
  | **createCourtRequest** | **CreateCourtRequest**| | |
40
- | **id** | [**string**] | ID du club | defaults to undefined|
41
38
 
42
39
 
43
40
  ### Return type
@@ -79,18 +76,11 @@ import {
79
76
  const configuration = new Configuration();
80
77
  const apiInstance = new ManagerClubCourtsApi(configuration);
81
78
 
82
- let id: string; //ID du club (default to undefined)
83
-
84
- const { status, data } = await apiInstance.getCourtsByClub(
85
- id
86
- );
79
+ const { status, data } = await apiInstance.getCourtsByClub();
87
80
  ```
88
81
 
89
82
  ### Parameters
90
-
91
- |Name | Type | Description | Notes|
92
- |------------- | ------------- | ------------- | -------------|
93
- | **id** | [**string**] | ID du club | defaults to undefined|
83
+ This endpoint does not have any parameters.
94
84
 
95
85
 
96
86
  ### Return type
@@ -0,0 +1,172 @@
1
+ # ManagerClubSettingsApi
2
+
3
+ All URIs are relative to *https://api.mon-domaine.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**createClubSettings**](#createclubsettings) | **POST** /api/club-settings | Créer les paramètres d\&#39;un club|
8
+ |[**deleteClubSettings**](#deleteclubsettings) | **DELETE** /api/club-settings | Supprimer les paramètres d\&#39;un club|
9
+ |[**updateClubSettings**](#updateclubsettings) | **PUT** /api/club-settings | Mettre à jour les paramètres d\&#39;un club|
10
+
11
+ # **createClubSettings**
12
+ > ClubSettings createClubSettings(createClubSettingsRequest)
13
+
14
+
15
+ ### Example
16
+
17
+ ```typescript
18
+ import {
19
+ ManagerClubSettingsApi,
20
+ Configuration,
21
+ CreateClubSettingsRequest
22
+ } from '@tennac-booking/sdk';
23
+
24
+ const configuration = new Configuration();
25
+ const apiInstance = new ManagerClubSettingsApi(configuration);
26
+
27
+ let createClubSettingsRequest: CreateClubSettingsRequest; //
28
+
29
+ const { status, data } = await apiInstance.createClubSettings(
30
+ createClubSettingsRequest
31
+ );
32
+ ```
33
+
34
+ ### Parameters
35
+
36
+ |Name | Type | Description | Notes|
37
+ |------------- | ------------- | ------------- | -------------|
38
+ | **createClubSettingsRequest** | **CreateClubSettingsRequest**| | |
39
+
40
+
41
+ ### Return type
42
+
43
+ **ClubSettings**
44
+
45
+ ### Authorization
46
+
47
+ [bearerAuth](../README.md#bearerAuth)
48
+
49
+ ### HTTP request headers
50
+
51
+ - **Content-Type**: application/json
52
+ - **Accept**: application/json
53
+
54
+
55
+ ### HTTP response details
56
+ | Status code | Description | Response headers |
57
+ |-------------|-------------|------------------|
58
+ |**201** | Paramètres créés avec succès | - |
59
+ |**401** | Non autorisé | - |
60
+ |**409** | Paramètres déjà existants | - |
61
+ |**500** | Erreur serveur interne | - |
62
+
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)
64
+
65
+ # **deleteClubSettings**
66
+ > DeleteClubSettings200Response deleteClubSettings(deleteClubSettingsRequest)
67
+
68
+
69
+ ### Example
70
+
71
+ ```typescript
72
+ import {
73
+ ManagerClubSettingsApi,
74
+ Configuration,
75
+ DeleteClubSettingsRequest
76
+ } from '@tennac-booking/sdk';
77
+
78
+ const configuration = new Configuration();
79
+ const apiInstance = new ManagerClubSettingsApi(configuration);
80
+
81
+ let deleteClubSettingsRequest: DeleteClubSettingsRequest; //
82
+
83
+ const { status, data } = await apiInstance.deleteClubSettings(
84
+ deleteClubSettingsRequest
85
+ );
86
+ ```
87
+
88
+ ### Parameters
89
+
90
+ |Name | Type | Description | Notes|
91
+ |------------- | ------------- | ------------- | -------------|
92
+ | **deleteClubSettingsRequest** | **DeleteClubSettingsRequest**| | |
93
+
94
+
95
+ ### Return type
96
+
97
+ **DeleteClubSettings200Response**
98
+
99
+ ### Authorization
100
+
101
+ [bearerAuth](../README.md#bearerAuth)
102
+
103
+ ### HTTP request headers
104
+
105
+ - **Content-Type**: application/json
106
+ - **Accept**: application/json
107
+
108
+
109
+ ### HTTP response details
110
+ | Status code | Description | Response headers |
111
+ |-------------|-------------|------------------|
112
+ |**200** | Paramètres supprimés avec succès | - |
113
+ |**401** | Non autorisé | - |
114
+ |**404** | Ressource non trouvée | - |
115
+ |**500** | Erreur serveur interne | - |
116
+
117
+ [[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)
118
+
119
+ # **updateClubSettings**
120
+ > ClubSettings updateClubSettings(updateClubSettingsRequest)
121
+
122
+
123
+ ### Example
124
+
125
+ ```typescript
126
+ import {
127
+ ManagerClubSettingsApi,
128
+ Configuration,
129
+ UpdateClubSettingsRequest
130
+ } from '@tennac-booking/sdk';
131
+
132
+ const configuration = new Configuration();
133
+ const apiInstance = new ManagerClubSettingsApi(configuration);
134
+
135
+ let updateClubSettingsRequest: UpdateClubSettingsRequest; //
136
+
137
+ const { status, data } = await apiInstance.updateClubSettings(
138
+ updateClubSettingsRequest
139
+ );
140
+ ```
141
+
142
+ ### Parameters
143
+
144
+ |Name | Type | Description | Notes|
145
+ |------------- | ------------- | ------------- | -------------|
146
+ | **updateClubSettingsRequest** | **UpdateClubSettingsRequest**| | |
147
+
148
+
149
+ ### Return type
150
+
151
+ **ClubSettings**
152
+
153
+ ### Authorization
154
+
155
+ [bearerAuth](../README.md#bearerAuth)
156
+
157
+ ### HTTP request headers
158
+
159
+ - **Content-Type**: application/json
160
+ - **Accept**: application/json
161
+
162
+
163
+ ### HTTP response details
164
+ | Status code | Description | Response headers |
165
+ |-------------|-------------|------------------|
166
+ |**200** | Paramètres mis à jour avec succès | - |
167
+ |**401** | Non autorisé | - |
168
+ |**404** | Ressource non trouvée | - |
169
+ |**500** | Erreur serveur interne | - |
170
+
171
+ [[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)
172
+
@@ -4,8 +4,8 @@ All URIs are relative to *https://api.mon-domaine.com*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
- |[**deleteSlotsByClubInRange**](#deleteslotsbyclubinrange) | **DELETE** /api/clubs/{id}/slots | Supprimer des créneaux pour un club sur une plage de dates|
8
- |[**getSlotsByClub**](#getslotsbyclub) | **GET** /api/clubs/{id}/slots | Récupérer tous les créneaux pour un club|
7
+ |[**deleteSlotsByClubInRange**](#deleteslotsbyclubinrange) | **DELETE** /api/clubs/slots | Supprimer des créneaux pour le club courant sur une plage de dates|
8
+ |[**getSlotsByClub**](#getslotsbyclub) | **GET** /api/clubs/slots | Récupérer tous les créneaux du club courant|
9
9
 
10
10
  # **deleteSlotsByClubInRange**
11
11
  > DeleteSlotsByClubInRange200Response deleteSlotsByClubInRange()
@@ -22,12 +22,10 @@ import {
22
22
  const configuration = new Configuration();
23
23
  const apiInstance = new ManagerClubSlotsApi(configuration);
24
24
 
25
- let id: string; //ID du club (default to undefined)
26
25
  let start: string; //Date de début (format ISO) (default to undefined)
27
26
  let end: string; //Date de fin (format ISO) (default to undefined)
28
27
 
29
28
  const { status, data } = await apiInstance.deleteSlotsByClubInRange(
30
- id,
31
29
  start,
32
30
  end
33
31
  );
@@ -37,7 +35,6 @@ const { status, data } = await apiInstance.deleteSlotsByClubInRange(
37
35
 
38
36
  |Name | Type | Description | Notes|
39
37
  |------------- | ------------- | ------------- | -------------|
40
- | **id** | [**string**] | ID du club | defaults to undefined|
41
38
  | **start** | [**string**] | Date de début (format ISO) | defaults to undefined|
42
39
  | **end** | [**string**] | Date de fin (format ISO) | defaults to undefined|
43
40
 
@@ -80,12 +77,10 @@ import {
80
77
  const configuration = new Configuration();
81
78
  const apiInstance = new ManagerClubSlotsApi(configuration);
82
79
 
83
- let id: string; //ID du club (default to undefined)
84
80
  let start: string; //Date de début (format ISO) (optional) (default to undefined)
85
81
  let end: string; //Date de fin (format ISO) (optional) (default to undefined)
86
82
 
87
83
  const { status, data } = await apiInstance.getSlotsByClub(
88
- id,
89
84
  start,
90
85
  end
91
86
  );
@@ -95,7 +90,6 @@ const { status, data } = await apiInstance.getSlotsByClub(
95
90
 
96
91
  |Name | Type | Description | Notes|
97
92
  |------------- | ------------- | ------------- | -------------|
98
- | **id** | [**string**] | ID du club | defaults to undefined|
99
93
  | **start** | [**string**] | Date de début (format ISO) | (optional) defaults to undefined|
100
94
  | **end** | [**string**] | Date de fin (format ISO) | (optional) defaults to undefined|
101
95