@tennac-booking/sdk 1.0.224 → 1.0.226

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.
@@ -84,6 +84,7 @@ docs/ClubNewBookingsResponse.md
84
84
  docs/ClubNewSubscribersResponse.md
85
85
  docs/ClubPageResponse.md
86
86
  docs/ClubPageResponseClubCustomerStatus.md
87
+ docs/ClubPageResponseSportsIdsLookup.md
87
88
  docs/ClubPlayerBookingItem.md
88
89
  docs/ClubPlayerBookingsPagination.md
89
90
  docs/ClubPlayerBookingsResponse.md
package/README.md CHANGED
@@ -371,6 +371,7 @@ Class | Method | HTTP request | Description
371
371
  - [ClubNewSubscribersResponse](docs/ClubNewSubscribersResponse.md)
372
372
  - [ClubPageResponse](docs/ClubPageResponse.md)
373
373
  - [ClubPageResponseClubCustomerStatus](docs/ClubPageResponseClubCustomerStatus.md)
374
+ - [ClubPageResponseSportsIdsLookup](docs/ClubPageResponseSportsIdsLookup.md)
374
375
  - [ClubPlayerBookingItem](docs/ClubPlayerBookingItem.md)
375
376
  - [ClubPlayerBookingsPagination](docs/ClubPlayerBookingsPagination.md)
376
377
  - [ClubPlayerBookingsResponse](docs/ClubPlayerBookingsResponse.md)
package/api.ts CHANGED
@@ -2673,6 +2673,12 @@ export interface ClubPageResponse {
2673
2673
  * @memberof ClubPageResponse
2674
2674
  */
2675
2675
  'sports'?: Array<string>;
2676
+ /**
2677
+ *
2678
+ * @type {ClubPageResponseSportsIdsLookup}
2679
+ * @memberof ClubPageResponse
2680
+ */
2681
+ 'sportsIdsLookup'?: ClubPageResponseSportsIdsLookup;
2676
2682
  /**
2677
2683
  * Nombre total de terrains du club
2678
2684
  * @type {number}
@@ -2783,6 +2789,25 @@ export interface ClubPageResponseClubCustomerStatus {
2783
2789
  */
2784
2790
  'isBanned': boolean;
2785
2791
  }
2792
+ /**
2793
+ * Mapping des identifiants des sports disponibles (clé ou nom vers id)
2794
+ * @export
2795
+ * @interface ClubPageResponseSportsIdsLookup
2796
+ */
2797
+ export interface ClubPageResponseSportsIdsLookup {
2798
+ /**
2799
+ * Construct a type with a set of properties K of type T
2800
+ * @type {{ [key: string]: string; }}
2801
+ * @memberof ClubPageResponseSportsIdsLookup
2802
+ */
2803
+ 'byName': { [key: string]: string; };
2804
+ /**
2805
+ * Construct a type with a set of properties K of type T
2806
+ * @type {{ [key: string]: string; }}
2807
+ * @memberof ClubPageResponseSportsIdsLookup
2808
+ */
2809
+ 'byKey': { [key: string]: string; };
2810
+ }
2786
2811
  /**
2787
2812
  *
2788
2813
  * @export
@@ -15981,10 +16006,11 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
15981
16006
  /**
15982
16007
  *
15983
16008
  * @param {string} [clubId]
16009
+ * @param {string} [sportId]
15984
16010
  * @param {*} [options] Override http request option.
15985
16011
  * @throws {RequiredError}
15986
16012
  */
15987
- getOpenBookings: async (clubId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16013
+ getOpenBookings: async (clubId?: string, sportId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15988
16014
  const localVarPath = `/api/bookings/open`;
15989
16015
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15990
16016
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -16005,6 +16031,10 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
16005
16031
  localVarQueryParameter['clubId'] = clubId;
16006
16032
  }
16007
16033
 
16034
+ if (sportId !== undefined) {
16035
+ localVarQueryParameter['sportId'] = sportId;
16036
+ }
16037
+
16008
16038
 
16009
16039
 
16010
16040
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -16266,11 +16296,12 @@ export const BookingsApiFp = function(configuration?: Configuration) {
16266
16296
  /**
16267
16297
  *
16268
16298
  * @param {string} [clubId]
16299
+ * @param {string} [sportId]
16269
16300
  * @param {*} [options] Override http request option.
16270
16301
  * @throws {RequiredError}
16271
16302
  */
16272
- async getOpenBookings(clubId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OpenBookingsResponse>> {
16273
- const localVarAxiosArgs = await localVarAxiosParamCreator.getOpenBookings(clubId, options);
16303
+ async getOpenBookings(clubId?: string, sportId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OpenBookingsResponse>> {
16304
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOpenBookings(clubId, sportId, options);
16274
16305
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16275
16306
  const localVarOperationServerBasePath = operationServerMap['BookingsApi.getOpenBookings']?.[localVarOperationServerIndex]?.url;
16276
16307
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -16393,7 +16424,7 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
16393
16424
  * @throws {RequiredError}
16394
16425
  */
16395
16426
  getOpenBookings(requestParameters: BookingsApiGetOpenBookingsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<OpenBookingsResponse> {
16396
- return localVarFp.getOpenBookings(requestParameters.clubId, options).then((request) => request(axios, basePath));
16427
+ return localVarFp.getOpenBookings(requestParameters.clubId, requestParameters.sportId, options).then((request) => request(axios, basePath));
16397
16428
  },
16398
16429
  /**
16399
16430
  * Recherche des créneaux disponibles pour une réservation rapide
@@ -16528,6 +16559,13 @@ export interface BookingsApiGetOpenBookingsRequest {
16528
16559
  * @memberof BookingsApiGetOpenBookings
16529
16560
  */
16530
16561
  readonly clubId?: string
16562
+
16563
+ /**
16564
+ *
16565
+ * @type {string}
16566
+ * @memberof BookingsApiGetOpenBookings
16567
+ */
16568
+ readonly sportId?: string
16531
16569
  }
16532
16570
 
16533
16571
  /**
@@ -16730,7 +16768,7 @@ export class BookingsApi extends BaseAPI {
16730
16768
  * @memberof BookingsApi
16731
16769
  */
16732
16770
  public getOpenBookings(requestParameters: BookingsApiGetOpenBookingsRequest = {}, options?: RawAxiosRequestConfig) {
16733
- return BookingsApiFp(this.configuration).getOpenBookings(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
16771
+ return BookingsApiFp(this.configuration).getOpenBookings(requestParameters.clubId, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
16734
16772
  }
16735
16773
 
16736
16774
  /**
package/dist/api.d.ts CHANGED
@@ -2624,6 +2624,12 @@ export interface ClubPageResponse {
2624
2624
  * @memberof ClubPageResponse
2625
2625
  */
2626
2626
  'sports'?: Array<string>;
2627
+ /**
2628
+ *
2629
+ * @type {ClubPageResponseSportsIdsLookup}
2630
+ * @memberof ClubPageResponse
2631
+ */
2632
+ 'sportsIdsLookup'?: ClubPageResponseSportsIdsLookup;
2627
2633
  /**
2628
2634
  * Nombre total de terrains du club
2629
2635
  * @type {number}
@@ -2742,6 +2748,29 @@ export interface ClubPageResponseClubCustomerStatus {
2742
2748
  */
2743
2749
  'isBanned': boolean;
2744
2750
  }
2751
+ /**
2752
+ * Mapping des identifiants des sports disponibles (clé ou nom vers id)
2753
+ * @export
2754
+ * @interface ClubPageResponseSportsIdsLookup
2755
+ */
2756
+ export interface ClubPageResponseSportsIdsLookup {
2757
+ /**
2758
+ * Construct a type with a set of properties K of type T
2759
+ * @type {{ [key: string]: string; }}
2760
+ * @memberof ClubPageResponseSportsIdsLookup
2761
+ */
2762
+ 'byName': {
2763
+ [key: string]: string;
2764
+ };
2765
+ /**
2766
+ * Construct a type with a set of properties K of type T
2767
+ * @type {{ [key: string]: string; }}
2768
+ * @memberof ClubPageResponseSportsIdsLookup
2769
+ */
2770
+ 'byKey': {
2771
+ [key: string]: string;
2772
+ };
2773
+ }
2745
2774
  /**
2746
2775
  *
2747
2776
  * @export
@@ -15443,10 +15472,11 @@ export declare const BookingsApiAxiosParamCreator: (configuration?: Configuratio
15443
15472
  /**
15444
15473
  *
15445
15474
  * @param {string} [clubId]
15475
+ * @param {string} [sportId]
15446
15476
  * @param {*} [options] Override http request option.
15447
15477
  * @throws {RequiredError}
15448
15478
  */
15449
- getOpenBookings: (clubId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15479
+ getOpenBookings: (clubId?: string, sportId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15450
15480
  /**
15451
15481
  * Recherche des créneaux disponibles pour une réservation rapide
15452
15482
  * @param {number} [latitude]
@@ -15531,10 +15561,11 @@ export declare const BookingsApiFp: (configuration?: Configuration) => {
15531
15561
  /**
15532
15562
  *
15533
15563
  * @param {string} [clubId]
15564
+ * @param {string} [sportId]
15534
15565
  * @param {*} [options] Override http request option.
15535
15566
  * @throws {RequiredError}
15536
15567
  */
15537
- getOpenBookings(clubId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OpenBookingsResponse>>;
15568
+ getOpenBookings(clubId?: string, sportId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OpenBookingsResponse>>;
15538
15569
  /**
15539
15570
  * Recherche des créneaux disponibles pour une réservation rapide
15540
15571
  * @param {number} [latitude]
@@ -15740,6 +15771,12 @@ export interface BookingsApiGetOpenBookingsRequest {
15740
15771
  * @memberof BookingsApiGetOpenBookings
15741
15772
  */
15742
15773
  readonly clubId?: string;
15774
+ /**
15775
+ *
15776
+ * @type {string}
15777
+ * @memberof BookingsApiGetOpenBookings
15778
+ */
15779
+ readonly sportId?: string;
15743
15780
  }
15744
15781
  /**
15745
15782
  * Request parameters for getQuickReservationSlots operation in BookingsApi.
package/dist/api.js CHANGED
@@ -1044,15 +1044,16 @@ var BookingsApiAxiosParamCreator = function (configuration) {
1044
1044
  /**
1045
1045
  *
1046
1046
  * @param {string} [clubId]
1047
+ * @param {string} [sportId]
1047
1048
  * @param {*} [options] Override http request option.
1048
1049
  * @throws {RequiredError}
1049
1050
  */
1050
- getOpenBookings: function (clubId_1) {
1051
+ getOpenBookings: function (clubId_1, sportId_1) {
1051
1052
  var args_1 = [];
1052
- for (var _i = 1; _i < arguments.length; _i++) {
1053
- args_1[_i - 1] = arguments[_i];
1053
+ for (var _i = 2; _i < arguments.length; _i++) {
1054
+ args_1[_i - 2] = arguments[_i];
1054
1055
  }
1055
- return __awaiter(_this, __spreadArray([clubId_1], args_1, true), void 0, function (clubId, options) {
1056
+ return __awaiter(_this, __spreadArray([clubId_1, sportId_1], args_1, true), void 0, function (clubId, sportId, options) {
1056
1057
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1057
1058
  if (options === void 0) { options = {}; }
1058
1059
  return __generator(this, function (_a) {
@@ -1076,6 +1077,9 @@ var BookingsApiAxiosParamCreator = function (configuration) {
1076
1077
  if (clubId !== undefined) {
1077
1078
  localVarQueryParameter['clubId'] = clubId;
1078
1079
  }
1080
+ if (sportId !== undefined) {
1081
+ localVarQueryParameter['sportId'] = sportId;
1082
+ }
1079
1083
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1080
1084
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1081
1085
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -1406,16 +1410,17 @@ var BookingsApiFp = function (configuration) {
1406
1410
  /**
1407
1411
  *
1408
1412
  * @param {string} [clubId]
1413
+ * @param {string} [sportId]
1409
1414
  * @param {*} [options] Override http request option.
1410
1415
  * @throws {RequiredError}
1411
1416
  */
1412
- getOpenBookings: function (clubId, options) {
1417
+ getOpenBookings: function (clubId, sportId, options) {
1413
1418
  return __awaiter(this, void 0, void 0, function () {
1414
1419
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1415
1420
  var _a, _b, _c;
1416
1421
  return __generator(this, function (_d) {
1417
1422
  switch (_d.label) {
1418
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getOpenBookings(clubId, options)];
1423
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getOpenBookings(clubId, sportId, options)];
1419
1424
  case 1:
1420
1425
  localVarAxiosArgs = _d.sent();
1421
1426
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -1574,7 +1579,7 @@ var BookingsApiFactory = function (configuration, basePath, axios) {
1574
1579
  */
1575
1580
  getOpenBookings: function (requestParameters, options) {
1576
1581
  if (requestParameters === void 0) { requestParameters = {}; }
1577
- return localVarFp.getOpenBookings(requestParameters.clubId, options).then(function (request) { return request(axios, basePath); });
1582
+ return localVarFp.getOpenBookings(requestParameters.clubId, requestParameters.sportId, options).then(function (request) { return request(axios, basePath); });
1578
1583
  },
1579
1584
  /**
1580
1585
  * Recherche des créneaux disponibles pour une réservation rapide
@@ -1694,7 +1699,7 @@ var BookingsApi = /** @class */ (function (_super) {
1694
1699
  BookingsApi.prototype.getOpenBookings = function (requestParameters, options) {
1695
1700
  var _this = this;
1696
1701
  if (requestParameters === void 0) { requestParameters = {}; }
1697
- return (0, exports.BookingsApiFp)(this.configuration).getOpenBookings(requestParameters.clubId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1702
+ return (0, exports.BookingsApiFp)(this.configuration).getOpenBookings(requestParameters.clubId, requestParameters.sportId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1698
1703
  };
1699
1704
  /**
1700
1705
  * Recherche des créneaux disponibles pour une réservation rapide
@@ -343,9 +343,11 @@ const configuration = new Configuration();
343
343
  const apiInstance = new BookingsApi(configuration);
344
344
 
345
345
  let clubId: string; // (optional) (default to undefined)
346
+ let sportId: string; // (optional) (default to undefined)
346
347
 
347
348
  const { status, data } = await apiInstance.getOpenBookings(
348
- clubId
349
+ clubId,
350
+ sportId
349
351
  );
350
352
  ```
351
353
 
@@ -354,6 +356,7 @@ const { status, data } = await apiInstance.getOpenBookings(
354
356
  |Name | Type | Description | Notes|
355
357
  |------------- | ------------- | ------------- | -------------|
356
358
  | **clubId** | [**string**] | | (optional) defaults to undefined|
359
+ | **sportId** | [**string**] | | (optional) defaults to undefined|
357
360
 
358
361
 
359
362
  ### Return type
@@ -18,6 +18,7 @@ Name | Type | Description | Notes
18
18
  **isNoShowEnabled** | **boolean** | Indique si la fonctionnalité \&quot;no show\&quot; est activée | [optional] [default to undefined]
19
19
  **clubCustomerStatus** | [**ClubPageResponseClubCustomerStatus**](ClubPageResponseClubCustomerStatus.md) | | [optional] [default to undefined]
20
20
  **sports** | **Array&lt;string&gt;** | Liste des sports proposés par le club (identifiés par leur clé) | [optional] [default to undefined]
21
+ **sportsIdsLookup** | [**ClubPageResponseSportsIdsLookup**](ClubPageResponseSportsIdsLookup.md) | | [optional] [default to undefined]
21
22
  **courtsCount** | **number** | Nombre total de terrains du club | [optional] [default to undefined]
22
23
  **courtsCountBySport** | **{ [key: string]: number; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
23
24
  **surfacesBySport** | **{ [key: string]: Array&lt;SurfaceType&gt;; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
@@ -51,6 +52,7 @@ const instance: ClubPageResponse = {
51
52
  isNoShowEnabled,
52
53
  clubCustomerStatus,
53
54
  sports,
55
+ sportsIdsLookup,
54
56
  courtsCount,
55
57
  courtsCountBySport,
56
58
  surfacesBySport,
@@ -0,0 +1,23 @@
1
+ # ClubPageResponseSportsIdsLookup
2
+
3
+ Mapping des identifiants des sports disponibles (clé ou nom vers id)
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **byName** | **{ [key: string]: string; }** | Construct a type with a set of properties K of type T | [default to undefined]
10
+ **byKey** | **{ [key: string]: string; }** | Construct a type with a set of properties K of type T | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { ClubPageResponseSportsIdsLookup } from '@tennac-booking/sdk';
16
+
17
+ const instance: ClubPageResponseSportsIdsLookup = {
18
+ byName,
19
+ byKey,
20
+ };
21
+ ```
22
+
23
+ [[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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tennac-booking/sdk",
3
- "version": "1.0.224",
3
+ "version": "1.0.226",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {