@tennac-booking/sdk 1.0.175 → 1.0.176

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/dist/esm/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.172
7
+ * The version of the OpenAPI document: 1.0.176
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2015,6 +2015,42 @@ export const BookingsUserApiAxiosParamCreator = function (configuration) {
2015
2015
  options: localVarRequestOptions,
2016
2016
  };
2017
2017
  }),
2018
+ /**
2019
+ * Mettre à jour une réservation ouverte (description et niveau minimal)
2020
+ * @param {string} bookingId
2021
+ * @param {UpdateOpenBookingRequest} updateOpenBookingRequest
2022
+ * @param {*} [options] Override http request option.
2023
+ * @throws {RequiredError}
2024
+ */
2025
+ updateOpenBooking: (bookingId_1, updateOpenBookingRequest_1, ...args_1) => __awaiter(this, [bookingId_1, updateOpenBookingRequest_1, ...args_1], void 0, function* (bookingId, updateOpenBookingRequest, options = {}) {
2026
+ // verify required parameter 'bookingId' is not null or undefined
2027
+ assertParamExists('updateOpenBooking', 'bookingId', bookingId);
2028
+ // verify required parameter 'updateOpenBookingRequest' is not null or undefined
2029
+ assertParamExists('updateOpenBooking', 'updateOpenBookingRequest', updateOpenBookingRequest);
2030
+ const localVarPath = `/api/bookings/{bookingId}/open`
2031
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
2032
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2033
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2034
+ let baseOptions;
2035
+ if (configuration) {
2036
+ baseOptions = configuration.baseOptions;
2037
+ }
2038
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
2039
+ const localVarHeaderParameter = {};
2040
+ const localVarQueryParameter = {};
2041
+ // authentication bearerAuth required
2042
+ // http bearer authentication required
2043
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2044
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2045
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2046
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2047
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2048
+ localVarRequestOptions.data = serializeDataIfNeeded(updateOpenBookingRequest, localVarRequestOptions, configuration);
2049
+ return {
2050
+ url: toPathString(localVarUrlObj),
2051
+ options: localVarRequestOptions,
2052
+ };
2053
+ }),
2018
2054
  };
2019
2055
  };
2020
2056
  /**
@@ -2069,6 +2105,22 @@ export const BookingsUserApiFp = function (configuration) {
2069
2105
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2070
2106
  });
2071
2107
  },
2108
+ /**
2109
+ * Mettre à jour une réservation ouverte (description et niveau minimal)
2110
+ * @param {string} bookingId
2111
+ * @param {UpdateOpenBookingRequest} updateOpenBookingRequest
2112
+ * @param {*} [options] Override http request option.
2113
+ * @throws {RequiredError}
2114
+ */
2115
+ updateOpenBooking(bookingId, updateOpenBookingRequest, options) {
2116
+ return __awaiter(this, void 0, void 0, function* () {
2117
+ var _a, _b, _c;
2118
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateOpenBooking(bookingId, updateOpenBookingRequest, options);
2119
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2120
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsUserApi.updateOpenBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2121
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2122
+ });
2123
+ },
2072
2124
  };
2073
2125
  };
2074
2126
  /**
@@ -2105,6 +2157,15 @@ export const BookingsUserApiFactory = function (configuration, basePath, axios)
2105
2157
  createOpenBooking(requestParameters, options) {
2106
2158
  return localVarFp.createOpenBooking(requestParameters.createOpenBookingRequest, options).then((request) => request(axios, basePath));
2107
2159
  },
2160
+ /**
2161
+ * Mettre à jour une réservation ouverte (description et niveau minimal)
2162
+ * @param {BookingsUserApiUpdateOpenBookingRequest} requestParameters Request parameters.
2163
+ * @param {*} [options] Override http request option.
2164
+ * @throws {RequiredError}
2165
+ */
2166
+ updateOpenBooking(requestParameters, options) {
2167
+ return localVarFp.updateOpenBooking(requestParameters.bookingId, requestParameters.updateOpenBookingRequest, options).then((request) => request(axios, basePath));
2168
+ },
2108
2169
  };
2109
2170
  };
2110
2171
  /**
@@ -2144,6 +2205,16 @@ export class BookingsUserApi extends BaseAPI {
2144
2205
  createOpenBooking(requestParameters, options) {
2145
2206
  return BookingsUserApiFp(this.configuration).createOpenBooking(requestParameters.createOpenBookingRequest, options).then((request) => request(this.axios, this.basePath));
2146
2207
  }
2208
+ /**
2209
+ * Mettre à jour une réservation ouverte (description et niveau minimal)
2210
+ * @param {BookingsUserApiUpdateOpenBookingRequest} requestParameters Request parameters.
2211
+ * @param {*} [options] Override http request option.
2212
+ * @throws {RequiredError}
2213
+ * @memberof BookingsUserApi
2214
+ */
2215
+ updateOpenBooking(requestParameters, options) {
2216
+ return BookingsUserApiFp(this.configuration).updateOpenBooking(requestParameters.bookingId, requestParameters.updateOpenBookingRequest, options).then((request) => request(this.axios, this.basePath));
2217
+ }
2147
2218
  }
2148
2219
  /**
2149
2220
  * ClientApi - axios parameter creator
@@ -13286,6 +13357,37 @@ export const UsersApiAxiosParamCreator = function (configuration) {
13286
13357
  options: localVarRequestOptions,
13287
13358
  };
13288
13359
  }),
13360
+ /**
13361
+ * Quitter une réservation
13362
+ * @param {string} bookingId
13363
+ * @param {*} [options] Override http request option.
13364
+ * @throws {RequiredError}
13365
+ */
13366
+ leaveBooking: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
13367
+ // verify required parameter 'bookingId' is not null or undefined
13368
+ assertParamExists('leaveBooking', 'bookingId', bookingId);
13369
+ const localVarPath = `/api/users/me/bookings/{bookingId}/leave`
13370
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
13371
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13372
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13373
+ let baseOptions;
13374
+ if (configuration) {
13375
+ baseOptions = configuration.baseOptions;
13376
+ }
13377
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
13378
+ const localVarHeaderParameter = {};
13379
+ const localVarQueryParameter = {};
13380
+ // authentication bearerAuth required
13381
+ // http bearer authentication required
13382
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
13383
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13384
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13385
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13386
+ return {
13387
+ url: toPathString(localVarUrlObj),
13388
+ options: localVarRequestOptions,
13389
+ };
13390
+ }),
13289
13391
  /**
13290
13392
  *
13291
13393
  * @param {PlayerCategoryId} [category]
@@ -14218,6 +14320,21 @@ export const UsersApiFp = function (configuration) {
14218
14320
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14219
14321
  });
14220
14322
  },
14323
+ /**
14324
+ * Quitter une réservation
14325
+ * @param {string} bookingId
14326
+ * @param {*} [options] Override http request option.
14327
+ * @throws {RequiredError}
14328
+ */
14329
+ leaveBooking(bookingId, options) {
14330
+ return __awaiter(this, void 0, void 0, function* () {
14331
+ var _a, _b, _c;
14332
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.leaveBooking(bookingId, options);
14333
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
14334
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.leaveBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
14335
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14336
+ });
14337
+ },
14221
14338
  /**
14222
14339
  *
14223
14340
  * @param {PlayerCategoryId} [category]
@@ -14701,6 +14818,15 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
14701
14818
  getUserProfileById(requestParameters, options) {
14702
14819
  return localVarFp.getUserProfileById(requestParameters.id, options).then((request) => request(axios, basePath));
14703
14820
  },
14821
+ /**
14822
+ * Quitter une réservation
14823
+ * @param {UsersApiLeaveBookingRequest} requestParameters Request parameters.
14824
+ * @param {*} [options] Override http request option.
14825
+ * @throws {RequiredError}
14826
+ */
14827
+ leaveBooking(requestParameters, options) {
14828
+ return localVarFp.leaveBooking(requestParameters.bookingId, options).then((request) => request(axios, basePath));
14829
+ },
14704
14830
  /**
14705
14831
  *
14706
14832
  * @param {UsersApiListPlayersRequest} requestParameters Request parameters.
@@ -15082,6 +15208,16 @@ export class UsersApi extends BaseAPI {
15082
15208
  getUserProfileById(requestParameters, options) {
15083
15209
  return UsersApiFp(this.configuration).getUserProfileById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
15084
15210
  }
15211
+ /**
15212
+ * Quitter une réservation
15213
+ * @param {UsersApiLeaveBookingRequest} requestParameters Request parameters.
15214
+ * @param {*} [options] Override http request option.
15215
+ * @throws {RequiredError}
15216
+ * @memberof UsersApi
15217
+ */
15218
+ leaveBooking(requestParameters, options) {
15219
+ return UsersApiFp(this.configuration).leaveBooking(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
15220
+ }
15085
15221
  /**
15086
15222
  *
15087
15223
  * @param {UsersApiListPlayersRequest} requestParameters Request parameters.
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.172
5
+ * The version of the OpenAPI document: 1.0.176
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/base.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.172
7
+ * The version of the OpenAPI document: 1.0.176
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.172
5
+ * The version of the OpenAPI document: 1.0.176
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.172
7
+ * The version of the OpenAPI document: 1.0.176
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.172
5
+ * The version of the OpenAPI document: 1.0.176
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.172
7
+ * The version of the OpenAPI document: 1.0.176
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.172
5
+ * The version of the OpenAPI document: 1.0.176
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.172
7
+ * The version of the OpenAPI document: 1.0.176
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.172
5
+ * The version of the OpenAPI document: 1.0.176
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * openapi.json
6
6
  * Pandook API Documentation
7
7
  *
8
- * The version of the OpenAPI document: 1.0.172
8
+ * The version of the OpenAPI document: 1.0.176
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -327,7 +327,7 @@ const { status, data } = await apiInstance.getOpenBookingJoinPrice(
327
327
  [[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)
328
328
 
329
329
  # **getOpenBookings**
330
- > GetOpenBookings200Response getOpenBookings()
330
+ > OpenBookingsResponse getOpenBookings()
331
331
 
332
332
 
333
333
  ### Example
@@ -357,7 +357,7 @@ const { status, data } = await apiInstance.getOpenBookings(
357
357
 
358
358
  ### Return type
359
359
 
360
- **GetOpenBookings200Response**
360
+ **OpenBookingsResponse**
361
361
 
362
362
  ### Authorization
363
363
 
@@ -7,6 +7,7 @@ All URIs are relative to *http://localhost*
7
7
  |[**cancelBooking**](#cancelbooking) | **DELETE** /api/bookings/{bookingId} | |
8
8
  |[**createBooking**](#createbooking) | **POST** /api/bookings | |
9
9
  |[**createOpenBooking**](#createopenbooking) | **POST** /api/bookings/open | |
10
+ |[**updateOpenBooking**](#updateopenbooking) | **PATCH** /api/bookings/{bookingId}/open | |
10
11
 
11
12
  # **cancelBooking**
12
13
  > CancelBookingResponse cancelBooking()
@@ -163,3 +164,58 @@ const { status, data } = await apiInstance.createOpenBooking(
163
164
 
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)
165
166
 
167
+ # **updateOpenBooking**
168
+ > UpdateOpenBooking200Response updateOpenBooking(updateOpenBookingRequest)
169
+
170
+ Mettre à jour une réservation ouverte (description et niveau minimal)
171
+
172
+ ### Example
173
+
174
+ ```typescript
175
+ import {
176
+ BookingsUserApi,
177
+ Configuration,
178
+ UpdateOpenBookingRequest
179
+ } from '@tennac-booking/sdk';
180
+
181
+ const configuration = new Configuration();
182
+ const apiInstance = new BookingsUserApi(configuration);
183
+
184
+ let bookingId: string; // (default to undefined)
185
+ let updateOpenBookingRequest: UpdateOpenBookingRequest; //
186
+
187
+ const { status, data } = await apiInstance.updateOpenBooking(
188
+ bookingId,
189
+ updateOpenBookingRequest
190
+ );
191
+ ```
192
+
193
+ ### Parameters
194
+
195
+ |Name | Type | Description | Notes|
196
+ |------------- | ------------- | ------------- | -------------|
197
+ | **updateOpenBookingRequest** | **UpdateOpenBookingRequest**| | |
198
+ | **bookingId** | [**string**] | | defaults to undefined|
199
+
200
+
201
+ ### Return type
202
+
203
+ **UpdateOpenBooking200Response**
204
+
205
+ ### Authorization
206
+
207
+ [bearerAuth](../README.md#bearerAuth)
208
+
209
+ ### HTTP request headers
210
+
211
+ - **Content-Type**: application/json
212
+ - **Accept**: application/json
213
+
214
+
215
+ ### HTTP response details
216
+ | Status code | Description | Response headers |
217
+ |-------------|-------------|------------------|
218
+ |**200** | Réservation ouverte mise à jour avec succès | - |
219
+
220
+ [[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)
221
+
@@ -10,6 +10,8 @@ Name | Type | Description | Notes
10
10
  **useDefaultPaymentMethod** | **boolean** | Indique si l\'utilisateur veut utiliser sa méthode de paiement par défaut | [optional] [default to undefined]
11
11
  **creditToUseInCents** | **number** | Crédit à utiliser en centimes | [optional] [default to undefined]
12
12
  **maxPlayers** | **number** | Nombre maximal de joueurs souhaités (incluant le créateur) | [default to undefined]
13
+ **description** | **string** | Description de la réservation ouverte | [optional] [default to undefined]
14
+ **minLevel** | **string** | Niveau minimal souhaité pour rejoindre | [optional] [default to undefined]
13
15
 
14
16
  ## Example
15
17
 
@@ -22,6 +24,8 @@ const instance: CreateOpenBookingRequest = {
22
24
  useDefaultPaymentMethod,
23
25
  creditToUseInCents,
24
26
  maxPlayers,
27
+ description,
28
+ minLevel,
25
29
  };
26
30
  ```
27
31
 
@@ -0,0 +1,48 @@
1
+ # OpenBookingInfo
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | ID de la réservation | [default to undefined]
9
+ **clubId** | **string** | ID du club | [default to undefined]
10
+ **userId** | **string** | ID de l\'utilisateur créateur | [default to undefined]
11
+ **players** | [**Array<OpenBookingPlayerInfo>**](OpenBookingPlayerInfo.md) | Liste des joueurs avec leurs infos | [default to undefined]
12
+ **status** | [**BookingStatus**](BookingStatus.md) | | [default to undefined]
13
+ **totalPrice** | **number** | Prix total en euros | [default to undefined]
14
+ **slots** | [**Array<OpenBookingSlotInfo>**](OpenBookingSlotInfo.md) | Informations des créneaux | [default to undefined]
15
+ **isCreatorPayingAll** | **boolean** | Indique si le créateur paie pour tous | [default to undefined]
16
+ **createdAt** | **string** | Date de création | [default to undefined]
17
+ **updatedAt** | **string** | Date de mise à jour | [default to undefined]
18
+ **sport** | [**OpenBookingSportInfo**](OpenBookingSportInfo.md) | | [optional] [default to undefined]
19
+ **minLevel** | **string** | Niveau minimal souhaité | [optional] [default to undefined]
20
+ **description** | **string** | Description de la réservation | [optional] [default to undefined]
21
+ **maxPlayers** | **number** | Nombre maximal de joueurs | [optional] [default to undefined]
22
+ **currentPlayersCount** | **number** | Nombre de joueurs actuels | [default to undefined]
23
+
24
+ ## Example
25
+
26
+ ```typescript
27
+ import { OpenBookingInfo } from '@tennac-booking/sdk';
28
+
29
+ const instance: OpenBookingInfo = {
30
+ id,
31
+ clubId,
32
+ userId,
33
+ players,
34
+ status,
35
+ totalPrice,
36
+ slots,
37
+ isCreatorPayingAll,
38
+ createdAt,
39
+ updatedAt,
40
+ sport,
41
+ minLevel,
42
+ description,
43
+ maxPlayers,
44
+ currentPlayersCount,
45
+ };
46
+ ```
47
+
48
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,26 @@
1
+ # OpenBookingPlayerInfo
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | ID du joueur | [default to undefined]
9
+ **firstName** | **string** | Prénom | [default to undefined]
10
+ **lastName** | **string** | Nom | [default to undefined]
11
+ **profilePicture** | **string** | Photo de profil | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { OpenBookingPlayerInfo } from '@tennac-booking/sdk';
17
+
18
+ const instance: OpenBookingPlayerInfo = {
19
+ id,
20
+ firstName,
21
+ lastName,
22
+ profilePicture,
23
+ };
24
+ ```
25
+
26
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,24 @@
1
+ # OpenBookingSlotInfo
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | ID du slot | [default to undefined]
9
+ **startDate** | **string** | Date de début ISO | [default to undefined]
10
+ **endDate** | **string** | Date de fin ISO | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { OpenBookingSlotInfo } from '@tennac-booking/sdk';
16
+
17
+ const instance: OpenBookingSlotInfo = {
18
+ id,
19
+ startDate,
20
+ endDate,
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)
@@ -0,0 +1,24 @@
1
+ # OpenBookingSportInfo
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | ID du sport | [default to undefined]
9
+ **key** | **string** | Clé du sport | [default to undefined]
10
+ **name** | **string** | Nom du sport | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { OpenBookingSportInfo } from '@tennac-booking/sdk';
16
+
17
+ const instance: OpenBookingSportInfo = {
18
+ id,
19
+ key,
20
+ name,
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)
@@ -1,18 +1,18 @@
1
- # GetOpenBookings200Response
1
+ # OpenBookingsResponse
2
2
 
3
3
 
4
4
  ## Properties
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **bookings** | [**Array<BookingInfo>**](BookingInfo.md) | | [default to undefined]
8
+ **bookings** | [**Array<OpenBookingInfo>**](OpenBookingInfo.md) | Liste des réservations ouvertes | [default to undefined]
9
9
 
10
10
  ## Example
11
11
 
12
12
  ```typescript
13
- import { GetOpenBookings200Response } from '@tennac-booking/sdk';
13
+ import { OpenBookingsResponse } from '@tennac-booking/sdk';
14
14
 
15
- const instance: GetOpenBookings200Response = {
15
+ const instance: OpenBookingsResponse = {
16
16
  bookings,
17
17
  };
18
18
  ```
@@ -0,0 +1,22 @@
1
+ # UpdateOpenBooking200Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **booking** | [**BookingInfo**](BookingInfo.md) | | [default to undefined]
9
+ **message** | **string** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { UpdateOpenBooking200Response } from '@tennac-booking/sdk';
15
+
16
+ const instance: UpdateOpenBooking200Response = {
17
+ booking,
18
+ message,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,22 @@
1
+ # UpdateOpenBookingRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **description** | **string** | Description de la réservation ouverte | [optional] [default to undefined]
9
+ **minLevel** | **string** | Niveau minimal souhaité pour rejoindre | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { UpdateOpenBookingRequest } from '@tennac-booking/sdk';
15
+
16
+ const instance: UpdateOpenBookingRequest = {
17
+ description,
18
+ minLevel,
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/docs/UsersApi.md CHANGED
@@ -25,6 +25,7 @@ All URIs are relative to *http://localhost*
25
25
  |[**getUserBookings**](#getuserbookings) | **GET** /api/users/me/bookings | |
26
26
  |[**getUserEvents**](#getuserevents) | **GET** /api/users/me/events | |
27
27
  |[**getUserProfileById**](#getuserprofilebyid) | **GET** /api/users/profile/{id} | |
28
+ |[**leaveBooking**](#leavebooking) | **DELETE** /api/users/me/bookings/{bookingId}/leave | |
28
29
  |[**listPlayers**](#listplayers) | **GET** /api/users/players | |
29
30
  |[**login**](#login) | **POST** /api/users/login | |
30
31
  |[**loginClubMember**](#loginclubmember) | **POST** /api/users/club-members/login | |
@@ -1076,6 +1077,60 @@ const { status, data } = await apiInstance.getUserProfileById(
1076
1077
 
1077
1078
  [[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)
1078
1079
 
1080
+ # **leaveBooking**
1081
+ > LeaveEventWaitList200Response leaveBooking()
1082
+
1083
+ Quitter une réservation
1084
+
1085
+ ### Example
1086
+
1087
+ ```typescript
1088
+ import {
1089
+ UsersApi,
1090
+ Configuration
1091
+ } from '@tennac-booking/sdk';
1092
+
1093
+ const configuration = new Configuration();
1094
+ const apiInstance = new UsersApi(configuration);
1095
+
1096
+ let bookingId: string; // (default to undefined)
1097
+
1098
+ const { status, data } = await apiInstance.leaveBooking(
1099
+ bookingId
1100
+ );
1101
+ ```
1102
+
1103
+ ### Parameters
1104
+
1105
+ |Name | Type | Description | Notes|
1106
+ |------------- | ------------- | ------------- | -------------|
1107
+ | **bookingId** | [**string**] | | defaults to undefined|
1108
+
1109
+
1110
+ ### Return type
1111
+
1112
+ **LeaveEventWaitList200Response**
1113
+
1114
+ ### Authorization
1115
+
1116
+ [bearerAuth](../README.md#bearerAuth)
1117
+
1118
+ ### HTTP request headers
1119
+
1120
+ - **Content-Type**: Not defined
1121
+ - **Accept**: application/json
1122
+
1123
+
1124
+ ### HTTP response details
1125
+ | Status code | Description | Response headers |
1126
+ |-------------|-------------|------------------|
1127
+ |**200** | Réservation quittée avec succès | - |
1128
+ |**400** | Requête invalide | - |
1129
+ |**404** | Réservation non trouvée | - |
1130
+ |**500** | Erreur serveur | - |
1131
+
1132
+ [[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)
1133
+
1079
1134
  # **listPlayers**
1080
1135
  > PlayerListResponse listPlayers()
1081
1136