@tennac-booking/sdk 1.0.69 → 1.0.70

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
@@ -26,7 +26,7 @@ import globalAxios from 'axios';
26
26
  import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
27
27
  // @ts-ignore
28
28
  import { BASE_PATH, BaseAPI, operationServerMap } from './base';
29
- export const BookingHistoryPerformedByTypeEnum = {
29
+ export const BookingHistoryPopulatedPerformedByTypeEnum = {
30
30
  User: 'user',
31
31
  Manager: 'manager',
32
32
  System: 'system'
@@ -40,7 +40,7 @@ export const BookingStatus = {
40
40
  Paid: 'paid',
41
41
  Active: 'active',
42
42
  Pending: 'pending',
43
- Expired: 'expired',
43
+ ActivePaymentsTimeout: 'active_payments_timeout',
44
44
  Canceled: 'canceled',
45
45
  NoShow: 'no-show'
46
46
  };
@@ -295,6 +295,70 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
295
295
  options: localVarRequestOptions,
296
296
  };
297
297
  }),
298
+ /**
299
+ * Recherche des créneaux disponibles pour une réservation rapide
300
+ * @param {number} [latitude]
301
+ * @param {number} [longitude]
302
+ * @param {number} [radiusInKm]
303
+ * @param {string} [date]
304
+ * @param {string} [sportId]
305
+ * @param {string} [startTime]
306
+ * @param {number} [priceMax]
307
+ * @param {string} [courtTypes]
308
+ * @param {number} [limitPerClub]
309
+ * @param {number} [maxClubs]
310
+ * @param {*} [options] Override http request option.
311
+ * @throws {RequiredError}
312
+ */
313
+ getQuickReservationSlots: (latitude_1, longitude_1, radiusInKm_1, date_1, sportId_1, startTime_1, priceMax_1, courtTypes_1, limitPerClub_1, maxClubs_1, ...args_1) => __awaiter(this, [latitude_1, longitude_1, radiusInKm_1, date_1, sportId_1, startTime_1, priceMax_1, courtTypes_1, limitPerClub_1, maxClubs_1, ...args_1], void 0, function* (latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options = {}) {
314
+ const localVarPath = `/api/bookings/quick-reservations`;
315
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
316
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
317
+ let baseOptions;
318
+ if (configuration) {
319
+ baseOptions = configuration.baseOptions;
320
+ }
321
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
322
+ const localVarHeaderParameter = {};
323
+ const localVarQueryParameter = {};
324
+ if (latitude !== undefined) {
325
+ localVarQueryParameter['latitude'] = latitude;
326
+ }
327
+ if (longitude !== undefined) {
328
+ localVarQueryParameter['longitude'] = longitude;
329
+ }
330
+ if (radiusInKm !== undefined) {
331
+ localVarQueryParameter['radiusInKm'] = radiusInKm;
332
+ }
333
+ if (date !== undefined) {
334
+ localVarQueryParameter['date'] = date;
335
+ }
336
+ if (sportId !== undefined) {
337
+ localVarQueryParameter['sportId'] = sportId;
338
+ }
339
+ if (startTime !== undefined) {
340
+ localVarQueryParameter['startTime'] = startTime;
341
+ }
342
+ if (priceMax !== undefined) {
343
+ localVarQueryParameter['priceMax'] = priceMax;
344
+ }
345
+ if (courtTypes !== undefined) {
346
+ localVarQueryParameter['courtTypes'] = courtTypes;
347
+ }
348
+ if (limitPerClub !== undefined) {
349
+ localVarQueryParameter['limitPerClub'] = limitPerClub;
350
+ }
351
+ if (maxClubs !== undefined) {
352
+ localVarQueryParameter['maxClubs'] = maxClubs;
353
+ }
354
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
355
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
356
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
357
+ return {
358
+ url: toPathString(localVarUrlObj),
359
+ options: localVarRequestOptions,
360
+ };
361
+ }),
298
362
  };
299
363
  };
300
364
  /**
@@ -319,6 +383,30 @@ export const BookingsApiFp = function (configuration) {
319
383
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
320
384
  });
321
385
  },
386
+ /**
387
+ * Recherche des créneaux disponibles pour une réservation rapide
388
+ * @param {number} [latitude]
389
+ * @param {number} [longitude]
390
+ * @param {number} [radiusInKm]
391
+ * @param {string} [date]
392
+ * @param {string} [sportId]
393
+ * @param {string} [startTime]
394
+ * @param {number} [priceMax]
395
+ * @param {string} [courtTypes]
396
+ * @param {number} [limitPerClub]
397
+ * @param {number} [maxClubs]
398
+ * @param {*} [options] Override http request option.
399
+ * @throws {RequiredError}
400
+ */
401
+ getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options) {
402
+ return __awaiter(this, void 0, void 0, function* () {
403
+ var _a, _b, _c;
404
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options);
405
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
406
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.getQuickReservationSlots']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
407
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
408
+ });
409
+ },
322
410
  };
323
411
  };
324
412
  /**
@@ -337,6 +425,15 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
337
425
  getBookingHistory(requestParameters, options) {
338
426
  return localVarFp.getBookingHistory(requestParameters.bookingId, options).then((request) => request(axios, basePath));
339
427
  },
428
+ /**
429
+ * Recherche des créneaux disponibles pour une réservation rapide
430
+ * @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
431
+ * @param {*} [options] Override http request option.
432
+ * @throws {RequiredError}
433
+ */
434
+ getQuickReservationSlots(requestParameters = {}, options) {
435
+ return localVarFp.getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(axios, basePath));
436
+ },
340
437
  };
341
438
  };
342
439
  /**
@@ -356,6 +453,16 @@ export class BookingsApi extends BaseAPI {
356
453
  getBookingHistory(requestParameters, options) {
357
454
  return BookingsApiFp(this.configuration).getBookingHistory(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
358
455
  }
456
+ /**
457
+ * Recherche des créneaux disponibles pour une réservation rapide
458
+ * @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
459
+ * @param {*} [options] Override http request option.
460
+ * @throws {RequiredError}
461
+ * @memberof BookingsApi
462
+ */
463
+ getQuickReservationSlots(requestParameters = {}, options) {
464
+ return BookingsApiFp(this.configuration).getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(this.axios, this.basePath));
465
+ }
359
466
  }
360
467
  /**
361
468
  * BookingsManagerApi - axios parameter creator
@@ -7463,14 +7570,13 @@ export const UsersApiAxiosParamCreator = function (configuration) {
7463
7570
  * @param {string} [sportLevels]
7464
7571
  * @param {number} [limit]
7465
7572
  * @param {number} [offset]
7466
- * @param {boolean} [useLocation]
7467
7573
  * @param {number} [latitude]
7468
7574
  * @param {number} [longitude]
7469
7575
  * @param {number} [radiusInKm]
7470
7576
  * @param {*} [options] Override http request option.
7471
7577
  * @throws {RequiredError}
7472
7578
  */
7473
- listPlayers: (category_1, search_1, gender_1, sharedClub_1, sportLevels_1, limit_1, offset_1, useLocation_1, latitude_1, longitude_1, radiusInKm_1, ...args_1) => __awaiter(this, [category_1, search_1, gender_1, sharedClub_1, sportLevels_1, limit_1, offset_1, useLocation_1, latitude_1, longitude_1, radiusInKm_1, ...args_1], void 0, function* (category, search, gender, sharedClub, sportLevels, limit, offset, useLocation, latitude, longitude, radiusInKm, options = {}) {
7579
+ listPlayers: (category_1, search_1, gender_1, sharedClub_1, sportLevels_1, limit_1, offset_1, latitude_1, longitude_1, radiusInKm_1, ...args_1) => __awaiter(this, [category_1, search_1, gender_1, sharedClub_1, sportLevels_1, limit_1, offset_1, latitude_1, longitude_1, radiusInKm_1, ...args_1], void 0, function* (category, search, gender, sharedClub, sportLevels, limit, offset, latitude, longitude, radiusInKm, options = {}) {
7474
7580
  const localVarPath = `/api/users/players`;
7475
7581
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7476
7582
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -7505,9 +7611,6 @@ export const UsersApiAxiosParamCreator = function (configuration) {
7505
7611
  if (offset !== undefined) {
7506
7612
  localVarQueryParameter['offset'] = offset;
7507
7613
  }
7508
- if (useLocation !== undefined) {
7509
- localVarQueryParameter['useLocation'] = useLocation;
7510
- }
7511
7614
  if (latitude !== undefined) {
7512
7615
  localVarQueryParameter['latitude'] = latitude;
7513
7616
  }
@@ -8358,17 +8461,16 @@ export const UsersApiFp = function (configuration) {
8358
8461
  * @param {string} [sportLevels]
8359
8462
  * @param {number} [limit]
8360
8463
  * @param {number} [offset]
8361
- * @param {boolean} [useLocation]
8362
8464
  * @param {number} [latitude]
8363
8465
  * @param {number} [longitude]
8364
8466
  * @param {number} [radiusInKm]
8365
8467
  * @param {*} [options] Override http request option.
8366
8468
  * @throws {RequiredError}
8367
8469
  */
8368
- listPlayers(category, search, gender, sharedClub, sportLevels, limit, offset, useLocation, latitude, longitude, radiusInKm, options) {
8470
+ listPlayers(category, search, gender, sharedClub, sportLevels, limit, offset, latitude, longitude, radiusInKm, options) {
8369
8471
  return __awaiter(this, void 0, void 0, function* () {
8370
8472
  var _a, _b, _c;
8371
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listPlayers(category, search, gender, sharedClub, sportLevels, limit, offset, useLocation, latitude, longitude, radiusInKm, options);
8473
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listPlayers(category, search, gender, sharedClub, sportLevels, limit, offset, latitude, longitude, radiusInKm, options);
8372
8474
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8373
8475
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.listPlayers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8374
8476
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -8817,7 +8919,7 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
8817
8919
  * @throws {RequiredError}
8818
8920
  */
8819
8921
  listPlayers(requestParameters = {}, options) {
8820
- return localVarFp.listPlayers(requestParameters.category, requestParameters.search, requestParameters.gender, requestParameters.sharedClub, requestParameters.sportLevels, requestParameters.limit, requestParameters.offset, requestParameters.useLocation, requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, options).then((request) => request(axios, basePath));
8922
+ return localVarFp.listPlayers(requestParameters.category, requestParameters.search, requestParameters.gender, requestParameters.sharedClub, requestParameters.sportLevels, requestParameters.limit, requestParameters.offset, requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, options).then((request) => request(axios, basePath));
8821
8923
  },
8822
8924
  /**
8823
8925
  *
@@ -9181,7 +9283,7 @@ export class UsersApi extends BaseAPI {
9181
9283
  * @memberof UsersApi
9182
9284
  */
9183
9285
  listPlayers(requestParameters = {}, options) {
9184
- return UsersApiFp(this.configuration).listPlayers(requestParameters.category, requestParameters.search, requestParameters.gender, requestParameters.sharedClub, requestParameters.sportLevels, requestParameters.limit, requestParameters.offset, requestParameters.useLocation, requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, options).then((request) => request(this.axios, this.basePath));
9286
+ return UsersApiFp(this.configuration).listPlayers(requestParameters.category, requestParameters.search, requestParameters.gender, requestParameters.sharedClub, requestParameters.sportLevels, requestParameters.limit, requestParameters.offset, requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, options).then((request) => request(this.axios, this.basePath));
9185
9287
  }
9186
9288
  /**
9187
9289
  *
@@ -17,7 +17,7 @@ Name | Type | Description | Notes
17
17
  **totalAmount** | **number** | | [default to undefined]
18
18
  **timeBeforeCancel** | **string** | | [optional] [default to undefined]
19
19
  **clubAddress** | [**BookingSummaryClubAddress**](BookingSummaryClubAddress.md) | | [optional] [default to undefined]
20
- **bookingHistory** | [**BookingSummaryBookingHistory**](BookingSummaryBookingHistory.md) | | [optional] [default to undefined]
20
+ **bookingHistory** | [**BookingHistoryPopulated**](BookingHistoryPopulated.md) | | [optional] [default to undefined]
21
21
  **paymentStatus** | **Array<{ [key: string]: any; }>** | | [default to undefined]
22
22
 
23
23
  ## Example
@@ -1,4 +1,4 @@
1
- # BookingHistory
1
+ # BookingHistoryPopulated
2
2
 
3
3
 
4
4
  ## Properties
@@ -6,7 +6,7 @@
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **action** | **string** | | [default to undefined]
9
- **performedBy** | **string** | | [default to undefined]
9
+ **performedBy** | [**UserInfo**](UserInfo.md) | | [default to undefined]
10
10
  **performedByType** | **string** | | [default to undefined]
11
11
  **details** | **string** | | [default to undefined]
12
12
  **metadata** | **any** | | [optional] [default to undefined]
@@ -17,9 +17,9 @@ Name | Type | Description | Notes
17
17
  ## Example
18
18
 
19
19
  ```typescript
20
- import { BookingHistory } from '@tennac-booking/sdk';
20
+ import { BookingHistoryPopulated } from '@tennac-booking/sdk';
21
21
 
22
- const instance: BookingHistory = {
22
+ const instance: BookingHistoryPopulated = {
23
23
  action,
24
24
  performedBy,
25
25
  performedByType,
@@ -6,10 +6,20 @@
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **id** | **string** | ID de la réservation | [default to undefined]
9
- **status** | **string** | Statut | [default to undefined]
10
- **userId** | [**UserInfo**](UserInfo.md) | | [default to undefined]
11
- **slotId** | [**SlotInfo**](SlotInfo.md) | | [default to undefined]
12
- **paymentByPlayersStatus** | [**Array<PaymentByPlayerInfo>**](PaymentByPlayerInfo.md) | Statut des paiements par joueur | [default to undefined]
9
+ **clubId** | **string** | | [default to undefined]
10
+ **creator** | [**UserInfo**](UserInfo.md) | | [default to undefined]
11
+ **slotInfos** | [**SlotInfo**](SlotInfo.md) | | [default to undefined]
12
+ **paymentByPlayers** | [**Array<PaymentByPlayerInfo>**](PaymentByPlayerInfo.md) | Statut des paiements par joueur | [default to undefined]
13
+ **noShowChargeApplied** | **boolean** | | [optional] [default to undefined]
14
+ **noShowChargeAmount** | **number** | | [optional] [default to undefined]
15
+ **totalPrice** | **number** | | [default to undefined]
16
+ **isCreatorPayingAll** | **boolean** | | [default to undefined]
17
+ **playersIds** | **Array<string>** | | [default to undefined]
18
+ **history** | [**Array<BookingHistoryPopulated>**](BookingHistoryPopulated.md) | | [default to undefined]
19
+ **status** | [**BookingStatus**](BookingStatus.md) | | [default to undefined]
20
+ **cancelledByManager** | **boolean** | | [optional] [default to undefined]
21
+ **cancelledBy** | **string** | | [optional] [default to undefined]
22
+ **cancellationReason** | **string** | | [optional] [default to undefined]
13
23
 
14
24
  ## Example
15
25
 
@@ -18,10 +28,20 @@ import { BookingPopulated } from '@tennac-booking/sdk';
18
28
 
19
29
  const instance: BookingPopulated = {
20
30
  id,
31
+ clubId,
32
+ creator,
33
+ slotInfos,
34
+ paymentByPlayers,
35
+ noShowChargeApplied,
36
+ noShowChargeAmount,
37
+ totalPrice,
38
+ isCreatorPayingAll,
39
+ playersIds,
40
+ history,
21
41
  status,
22
- userId,
23
- slotId,
24
- paymentByPlayersStatus,
42
+ cancelledByManager,
43
+ cancelledBy,
44
+ cancellationReason,
25
45
  };
26
46
  ```
27
47
 
@@ -9,7 +9,7 @@
9
9
 
10
10
  * `Pending` (value: `'pending'`)
11
11
 
12
- * `Expired` (value: `'expired'`)
12
+ * `ActivePaymentsTimeout` (value: `'active_payments_timeout'`)
13
13
 
14
14
  * `Canceled` (value: `'canceled'`)
15
15
 
@@ -17,7 +17,7 @@ Name | Type | Description | Notes
17
17
  **totalAmount** | **number** | | [default to undefined]
18
18
  **timeBeforeCancel** | **string** | | [optional] [default to undefined]
19
19
  **clubAddress** | [**BookingSummaryClubAddress**](BookingSummaryClubAddress.md) | | [optional] [default to undefined]
20
- **bookingHistory** | [**BookingSummaryBookingHistory**](BookingSummaryBookingHistory.md) | | [optional] [default to undefined]
20
+ **bookingHistory** | [**BookingHistoryPopulated**](BookingHistoryPopulated.md) | | [optional] [default to undefined]
21
21
 
22
22
  ## Example
23
23
 
@@ -5,9 +5,10 @@ All URIs are relative to *http://localhost*
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
7
  |[**getBookingHistory**](#getbookinghistory) | **GET** /api/bookings/history/{bookingId} | |
8
+ |[**getQuickReservationSlots**](#getquickreservationslots) | **GET** /api/bookings/quick-reservations | |
8
9
 
9
10
  # **getBookingHistory**
10
- > BookingHistory getBookingHistory()
11
+ > BookingHistoryPopulated getBookingHistory()
11
12
 
12
13
  Obtenir l\'historique d\'une réservation par ID
13
14
 
@@ -38,7 +39,7 @@ const { status, data } = await apiInstance.getBookingHistory(
38
39
 
39
40
  ### Return type
40
41
 
41
- **BookingHistory**
42
+ **BookingHistoryPopulated**
42
43
 
43
44
  ### Authorization
44
45
 
@@ -57,3 +58,81 @@ const { status, data } = await apiInstance.getBookingHistory(
57
58
 
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)
59
60
 
61
+ # **getQuickReservationSlots**
62
+ > QuickReservationResponse getQuickReservationSlots()
63
+
64
+ Recherche des créneaux disponibles pour une réservation rapide
65
+
66
+ ### Example
67
+
68
+ ```typescript
69
+ import {
70
+ BookingsApi,
71
+ Configuration
72
+ } from '@tennac-booking/sdk';
73
+
74
+ const configuration = new Configuration();
75
+ const apiInstance = new BookingsApi(configuration);
76
+
77
+ let latitude: number; // (optional) (default to undefined)
78
+ let longitude: number; // (optional) (default to undefined)
79
+ let radiusInKm: number; // (optional) (default to undefined)
80
+ let date: string; // (optional) (default to undefined)
81
+ let sportId: string; // (optional) (default to undefined)
82
+ let startTime: string; // (optional) (default to undefined)
83
+ let priceMax: number; // (optional) (default to undefined)
84
+ let courtTypes: string; // (optional) (default to undefined)
85
+ let limitPerClub: number; // (optional) (default to undefined)
86
+ let maxClubs: number; // (optional) (default to undefined)
87
+
88
+ const { status, data } = await apiInstance.getQuickReservationSlots(
89
+ latitude,
90
+ longitude,
91
+ radiusInKm,
92
+ date,
93
+ sportId,
94
+ startTime,
95
+ priceMax,
96
+ courtTypes,
97
+ limitPerClub,
98
+ maxClubs
99
+ );
100
+ ```
101
+
102
+ ### Parameters
103
+
104
+ |Name | Type | Description | Notes|
105
+ |------------- | ------------- | ------------- | -------------|
106
+ | **latitude** | [**number**] | | (optional) defaults to undefined|
107
+ | **longitude** | [**number**] | | (optional) defaults to undefined|
108
+ | **radiusInKm** | [**number**] | | (optional) defaults to undefined|
109
+ | **date** | [**string**] | | (optional) defaults to undefined|
110
+ | **sportId** | [**string**] | | (optional) defaults to undefined|
111
+ | **startTime** | [**string**] | | (optional) defaults to undefined|
112
+ | **priceMax** | [**number**] | | (optional) defaults to undefined|
113
+ | **courtTypes** | [**string**] | | (optional) defaults to undefined|
114
+ | **limitPerClub** | [**number**] | | (optional) defaults to undefined|
115
+ | **maxClubs** | [**number**] | | (optional) defaults to undefined|
116
+
117
+
118
+ ### Return type
119
+
120
+ **QuickReservationResponse**
121
+
122
+ ### Authorization
123
+
124
+ No authorization required
125
+
126
+ ### HTTP request headers
127
+
128
+ - **Content-Type**: Not defined
129
+ - **Accept**: application/json
130
+
131
+
132
+ ### HTTP response details
133
+ | Status code | Description | Response headers |
134
+ |-------------|-------------|------------------|
135
+ |**200** | Créneaux disponibles pour réservation rapide | - |
136
+
137
+ [[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)
138
+
@@ -118,7 +118,7 @@ const { status, data } = await apiInstance.getBookingById(
118
118
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
119
119
 
120
120
  # **getBookingHistoryStaff**
121
- > BookingHistory getBookingHistoryStaff()
121
+ > BookingHistoryPopulated getBookingHistoryStaff()
122
122
 
123
123
  Obtenir l\'historique d\'une réservation par ID
124
124
 
@@ -149,7 +149,7 @@ const { status, data } = await apiInstance.getBookingHistoryStaff(
149
149
 
150
150
  ### Return type
151
151
 
152
- **BookingHistory**
152
+ **BookingHistoryPopulated**
153
153
 
154
154
  ### Authorization
155
155
 
@@ -0,0 +1,28 @@
1
+ # QuickReservationClubSummary
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **clubId** | **string** | ID du club | [default to undefined]
9
+ **clubName** | **string** | Nom du club | [default to undefined]
10
+ **distanceInMeters** | **number** | Distance par rapport à la recherche, en mètres | [default to undefined]
11
+ **location** | [**QuickReservationClubSummaryLocation**](QuickReservationClubSummaryLocation.md) | | [optional] [default to undefined]
12
+ **slots** | [**Array<QuickReservationSlotSummary>**](QuickReservationSlotSummary.md) | Créneaux disponibles correspondant aux filtres | [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { QuickReservationClubSummary } from '@tennac-booking/sdk';
18
+
19
+ const instance: QuickReservationClubSummary = {
20
+ clubId,
21
+ clubName,
22
+ distanceInMeters,
23
+ location,
24
+ slots,
25
+ };
26
+ ```
27
+
28
+ [[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,31 @@
1
+ # QuickReservationClubSummaryLocation
2
+
3
+ Localisation du club
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **country** | **string** | | [optional] [default to undefined]
10
+ **postalCode** | **string** | | [optional] [default to undefined]
11
+ **city** | **string** | | [optional] [default to undefined]
12
+ **address** | **string** | | [optional] [default to undefined]
13
+ **longitude** | **number** | | [optional] [default to undefined]
14
+ **latitude** | **number** | | [optional] [default to undefined]
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import { QuickReservationClubSummaryLocation } from '@tennac-booking/sdk';
20
+
21
+ const instance: QuickReservationClubSummaryLocation = {
22
+ country,
23
+ postalCode,
24
+ city,
25
+ address,
26
+ longitude,
27
+ latitude,
28
+ };
29
+ ```
30
+
31
+ [[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
+ # QuickReservationResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **totalClubs** | **number** | Nombre total de clubs contenant des créneaux disponibles | [default to undefined]
9
+ **clubs** | [**Array<QuickReservationClubSummary>**](QuickReservationClubSummary.md) | Liste des clubs et de leurs créneaux disponibles | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { QuickReservationResponse } from '@tennac-booking/sdk';
15
+
16
+ const instance: QuickReservationResponse = {
17
+ totalClubs,
18
+ clubs,
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,42 @@
1
+ # QuickReservationSlotSummary
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | ID du créneau | [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
+ **durationMinutes** | **number** | Durée du créneau en minutes | [default to undefined]
12
+ **courtId** | **string** | ID du terrain | [default to undefined]
13
+ **courtName** | **string** | Nom du terrain | [default to undefined]
14
+ **isIndoor** | **boolean** | Indique si le terrain est en intérieur | [default to undefined]
15
+ **surface** | **string** | Surface du terrain | [optional] [default to undefined]
16
+ **pricePerHour** | **number** | Prix horaire du terrain (en euros) | [optional] [default to undefined]
17
+ **totalPrice** | **number** | Prix total estimé pour le créneau (en euros) | [optional] [default to undefined]
18
+ **sportId** | **string** | ID du sport associé | [default to undefined]
19
+ **sportKey** | **string** | Clé du sport associé | [optional] [default to undefined]
20
+
21
+ ## Example
22
+
23
+ ```typescript
24
+ import { QuickReservationSlotSummary } from '@tennac-booking/sdk';
25
+
26
+ const instance: QuickReservationSlotSummary = {
27
+ id,
28
+ startDate,
29
+ endDate,
30
+ durationMinutes,
31
+ courtId,
32
+ courtName,
33
+ isIndoor,
34
+ surface,
35
+ pricePerHour,
36
+ totalPrice,
37
+ sportId,
38
+ sportKey,
39
+ };
40
+ ```
41
+
42
+ [[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/UserInfo.md CHANGED
@@ -8,6 +8,8 @@ Name | Type | Description | Notes
8
8
  **id** | **string** | ID de l\'utilisateur | [default to undefined]
9
9
  **firstName** | **string** | Prénom | [default to undefined]
10
10
  **lastName** | **string** | Nom | [default to undefined]
11
+ **email** | **string** | | [default to undefined]
12
+ **profilePictureUrl** | **string** | | [optional] [default to undefined]
11
13
 
12
14
  ## Example
13
15
 
@@ -18,6 +20,8 @@ const instance: UserInfo = {
18
20
  id,
19
21
  firstName,
20
22
  lastName,
23
+ email,
24
+ profilePictureUrl,
21
25
  };
22
26
  ```
23
27
 
package/docs/UsersApi.md CHANGED
@@ -1049,7 +1049,6 @@ let sharedClub: boolean; // (optional) (default to undefined)
1049
1049
  let sportLevels: string; // (optional) (default to undefined)
1050
1050
  let limit: number; // (optional) (default to undefined)
1051
1051
  let offset: number; // (optional) (default to undefined)
1052
- let useLocation: boolean; // (optional) (default to undefined)
1053
1052
  let latitude: number; // (optional) (default to undefined)
1054
1053
  let longitude: number; // (optional) (default to undefined)
1055
1054
  let radiusInKm: number; // (optional) (default to undefined)
@@ -1062,7 +1061,6 @@ const { status, data } = await apiInstance.listPlayers(
1062
1061
  sportLevels,
1063
1062
  limit,
1064
1063
  offset,
1065
- useLocation,
1066
1064
  latitude,
1067
1065
  longitude,
1068
1066
  radiusInKm
@@ -1080,7 +1078,6 @@ const { status, data } = await apiInstance.listPlayers(
1080
1078
  | **sportLevels** | [**string**] | | (optional) defaults to undefined|
1081
1079
  | **limit** | [**number**] | | (optional) defaults to undefined|
1082
1080
  | **offset** | [**number**] | | (optional) defaults to undefined|
1083
- | **useLocation** | [**boolean**] | | (optional) defaults to undefined|
1084
1081
  | **latitude** | [**number**] | | (optional) defaults to undefined|
1085
1082
  | **longitude** | [**number**] | | (optional) defaults to undefined|
1086
1083
  | **radiusInKm** | [**number**] | | (optional) defaults to undefined|
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tennac-booking/sdk",
3
- "version": "1.0.69",
3
+ "version": "1.0.70",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
@@ -1,18 +0,0 @@
1
- # BookingSummaryBookingHistory
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
-
9
- ## Example
10
-
11
- ```typescript
12
- import { BookingSummaryBookingHistory } from '@tennac-booking/sdk';
13
-
14
- const instance: BookingSummaryBookingHistory = {
15
- };
16
- ```
17
-
18
- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)