@tennac-booking/sdk 1.0.225 → 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.
- package/api.ts +18 -5
- package/dist/api.d.ts +10 -2
- package/dist/api.js +13 -8
- package/docs/BookingsApi.md +4 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -16006,10 +16006,11 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16006
16006
|
/**
|
|
16007
16007
|
*
|
|
16008
16008
|
* @param {string} [clubId]
|
|
16009
|
+
* @param {string} [sportId]
|
|
16009
16010
|
* @param {*} [options] Override http request option.
|
|
16010
16011
|
* @throws {RequiredError}
|
|
16011
16012
|
*/
|
|
16012
|
-
getOpenBookings: async (clubId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16013
|
+
getOpenBookings: async (clubId?: string, sportId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16013
16014
|
const localVarPath = `/api/bookings/open`;
|
|
16014
16015
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16015
16016
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -16030,6 +16031,10 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16030
16031
|
localVarQueryParameter['clubId'] = clubId;
|
|
16031
16032
|
}
|
|
16032
16033
|
|
|
16034
|
+
if (sportId !== undefined) {
|
|
16035
|
+
localVarQueryParameter['sportId'] = sportId;
|
|
16036
|
+
}
|
|
16037
|
+
|
|
16033
16038
|
|
|
16034
16039
|
|
|
16035
16040
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -16291,11 +16296,12 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
16291
16296
|
/**
|
|
16292
16297
|
*
|
|
16293
16298
|
* @param {string} [clubId]
|
|
16299
|
+
* @param {string} [sportId]
|
|
16294
16300
|
* @param {*} [options] Override http request option.
|
|
16295
16301
|
* @throws {RequiredError}
|
|
16296
16302
|
*/
|
|
16297
|
-
async getOpenBookings(clubId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OpenBookingsResponse>> {
|
|
16298
|
-
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);
|
|
16299
16305
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16300
16306
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getOpenBookings']?.[localVarOperationServerIndex]?.url;
|
|
16301
16307
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -16418,7 +16424,7 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
16418
16424
|
* @throws {RequiredError}
|
|
16419
16425
|
*/
|
|
16420
16426
|
getOpenBookings(requestParameters: BookingsApiGetOpenBookingsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<OpenBookingsResponse> {
|
|
16421
|
-
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));
|
|
16422
16428
|
},
|
|
16423
16429
|
/**
|
|
16424
16430
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
@@ -16553,6 +16559,13 @@ export interface BookingsApiGetOpenBookingsRequest {
|
|
|
16553
16559
|
* @memberof BookingsApiGetOpenBookings
|
|
16554
16560
|
*/
|
|
16555
16561
|
readonly clubId?: string
|
|
16562
|
+
|
|
16563
|
+
/**
|
|
16564
|
+
*
|
|
16565
|
+
* @type {string}
|
|
16566
|
+
* @memberof BookingsApiGetOpenBookings
|
|
16567
|
+
*/
|
|
16568
|
+
readonly sportId?: string
|
|
16556
16569
|
}
|
|
16557
16570
|
|
|
16558
16571
|
/**
|
|
@@ -16755,7 +16768,7 @@ export class BookingsApi extends BaseAPI {
|
|
|
16755
16768
|
* @memberof BookingsApi
|
|
16756
16769
|
*/
|
|
16757
16770
|
public getOpenBookings(requestParameters: BookingsApiGetOpenBookingsRequest = {}, options?: RawAxiosRequestConfig) {
|
|
16758
|
-
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));
|
|
16759
16772
|
}
|
|
16760
16773
|
|
|
16761
16774
|
/**
|
package/dist/api.d.ts
CHANGED
|
@@ -15472,10 +15472,11 @@ export declare const BookingsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
15472
15472
|
/**
|
|
15473
15473
|
*
|
|
15474
15474
|
* @param {string} [clubId]
|
|
15475
|
+
* @param {string} [sportId]
|
|
15475
15476
|
* @param {*} [options] Override http request option.
|
|
15476
15477
|
* @throws {RequiredError}
|
|
15477
15478
|
*/
|
|
15478
|
-
getOpenBookings: (clubId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15479
|
+
getOpenBookings: (clubId?: string, sportId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15479
15480
|
/**
|
|
15480
15481
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
15481
15482
|
* @param {number} [latitude]
|
|
@@ -15560,10 +15561,11 @@ export declare const BookingsApiFp: (configuration?: Configuration) => {
|
|
|
15560
15561
|
/**
|
|
15561
15562
|
*
|
|
15562
15563
|
* @param {string} [clubId]
|
|
15564
|
+
* @param {string} [sportId]
|
|
15563
15565
|
* @param {*} [options] Override http request option.
|
|
15564
15566
|
* @throws {RequiredError}
|
|
15565
15567
|
*/
|
|
15566
|
-
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>>;
|
|
15567
15569
|
/**
|
|
15568
15570
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
15569
15571
|
* @param {number} [latitude]
|
|
@@ -15769,6 +15771,12 @@ export interface BookingsApiGetOpenBookingsRequest {
|
|
|
15769
15771
|
* @memberof BookingsApiGetOpenBookings
|
|
15770
15772
|
*/
|
|
15771
15773
|
readonly clubId?: string;
|
|
15774
|
+
/**
|
|
15775
|
+
*
|
|
15776
|
+
* @type {string}
|
|
15777
|
+
* @memberof BookingsApiGetOpenBookings
|
|
15778
|
+
*/
|
|
15779
|
+
readonly sportId?: string;
|
|
15772
15780
|
}
|
|
15773
15781
|
/**
|
|
15774
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 =
|
|
1053
|
-
args_1[_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
|
package/docs/BookingsApi.md
CHANGED
|
@@ -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
|