@tennac-booking/sdk 1.0.149 → 1.0.151
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/.openapi-generator/FILES +4 -1
- package/README.md +10 -2
- package/api.ts +472 -16
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +308 -16
- package/dist/api.js +257 -1
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +308 -16
- package/dist/esm/api.js +257 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/BookingsApi.md +158 -0
- package/docs/CreateGuestBookingRequest.md +32 -0
- package/docs/EventsApi.md +54 -0
- package/docs/GetGuestBookingPrice200Response.md +20 -0
- package/docs/GetGuestBookingPriceRequest.md +20 -0
- package/docs/GetOpenEventBookingJoinPrice200Response.md +22 -0
- package/docs/IUserAttributes.md +7 -5
- package/docs/StaffUserProfileResponse.md +7 -5
- package/docs/UpdateUserRequestBody.md +4 -0
- package/docs/UserProfileResponse.md +7 -5
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.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.
|
|
8
|
+
* The version of the OpenAPI document: 1.0.151
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -404,6 +404,35 @@ exports.WeekdayKey = {
|
|
|
404
404
|
*/
|
|
405
405
|
const BookingsApiAxiosParamCreator = function (configuration) {
|
|
406
406
|
return {
|
|
407
|
+
/**
|
|
408
|
+
* Créer une réservation en tant qu\'invité (guest)
|
|
409
|
+
* @param {CreateGuestBookingRequest} createGuestBookingRequest
|
|
410
|
+
* @param {*} [options] Override http request option.
|
|
411
|
+
* @throws {RequiredError}
|
|
412
|
+
*/
|
|
413
|
+
createGuestBooking: (createGuestBookingRequest_1, ...args_1) => __awaiter(this, [createGuestBookingRequest_1, ...args_1], void 0, function* (createGuestBookingRequest, options = {}) {
|
|
414
|
+
// verify required parameter 'createGuestBookingRequest' is not null or undefined
|
|
415
|
+
(0, common_1.assertParamExists)('createGuestBooking', 'createGuestBookingRequest', createGuestBookingRequest);
|
|
416
|
+
const localVarPath = `/api/bookings/guest`;
|
|
417
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
418
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
419
|
+
let baseOptions;
|
|
420
|
+
if (configuration) {
|
|
421
|
+
baseOptions = configuration.baseOptions;
|
|
422
|
+
}
|
|
423
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
424
|
+
const localVarHeaderParameter = {};
|
|
425
|
+
const localVarQueryParameter = {};
|
|
426
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
427
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
428
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
429
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
430
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createGuestBookingRequest, localVarRequestOptions, configuration);
|
|
431
|
+
return {
|
|
432
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
433
|
+
options: localVarRequestOptions,
|
|
434
|
+
};
|
|
435
|
+
}),
|
|
407
436
|
/**
|
|
408
437
|
* Estimer le prix pour rejoindre une réservation ouverte
|
|
409
438
|
* @param {string} bookingId
|
|
@@ -502,6 +531,66 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
502
531
|
options: localVarRequestOptions,
|
|
503
532
|
};
|
|
504
533
|
}),
|
|
534
|
+
/**
|
|
535
|
+
* Calculer le prix d\'une réservation pour un invité (sans authentification)
|
|
536
|
+
* @param {GetGuestBookingPriceRequest} getGuestBookingPriceRequest
|
|
537
|
+
* @param {*} [options] Override http request option.
|
|
538
|
+
* @throws {RequiredError}
|
|
539
|
+
*/
|
|
540
|
+
getGuestBookingPrice: (getGuestBookingPriceRequest_1, ...args_1) => __awaiter(this, [getGuestBookingPriceRequest_1, ...args_1], void 0, function* (getGuestBookingPriceRequest, options = {}) {
|
|
541
|
+
// verify required parameter 'getGuestBookingPriceRequest' is not null or undefined
|
|
542
|
+
(0, common_1.assertParamExists)('getGuestBookingPrice', 'getGuestBookingPriceRequest', getGuestBookingPriceRequest);
|
|
543
|
+
const localVarPath = `/api/bookings/guest/booking-price`;
|
|
544
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
545
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
546
|
+
let baseOptions;
|
|
547
|
+
if (configuration) {
|
|
548
|
+
baseOptions = configuration.baseOptions;
|
|
549
|
+
}
|
|
550
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
551
|
+
const localVarHeaderParameter = {};
|
|
552
|
+
const localVarQueryParameter = {};
|
|
553
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
554
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
555
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
556
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
557
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(getGuestBookingPriceRequest, localVarRequestOptions, configuration);
|
|
558
|
+
return {
|
|
559
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
560
|
+
options: localVarRequestOptions,
|
|
561
|
+
};
|
|
562
|
+
}),
|
|
563
|
+
/**
|
|
564
|
+
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
565
|
+
* @param {string} bookingId
|
|
566
|
+
* @param {*} [options] Override http request option.
|
|
567
|
+
* @throws {RequiredError}
|
|
568
|
+
*/
|
|
569
|
+
getOpenBookingJoinPrice: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
|
|
570
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
571
|
+
(0, common_1.assertParamExists)('getOpenBookingJoinPrice', 'bookingId', bookingId);
|
|
572
|
+
const localVarPath = `/api/bookings/{bookingId}/open/join-price`
|
|
573
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
574
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
575
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
576
|
+
let baseOptions;
|
|
577
|
+
if (configuration) {
|
|
578
|
+
baseOptions = configuration.baseOptions;
|
|
579
|
+
}
|
|
580
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
581
|
+
const localVarHeaderParameter = {};
|
|
582
|
+
const localVarQueryParameter = {};
|
|
583
|
+
// authentication bearerAuth required
|
|
584
|
+
// http bearer authentication required
|
|
585
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
586
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
587
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
588
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
589
|
+
return {
|
|
590
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
591
|
+
options: localVarRequestOptions,
|
|
592
|
+
};
|
|
593
|
+
}),
|
|
505
594
|
/**
|
|
506
595
|
*
|
|
507
596
|
* @param {string} [clubId]
|
|
@@ -678,6 +767,21 @@ exports.BookingsApiAxiosParamCreator = BookingsApiAxiosParamCreator;
|
|
|
678
767
|
const BookingsApiFp = function (configuration) {
|
|
679
768
|
const localVarAxiosParamCreator = (0, exports.BookingsApiAxiosParamCreator)(configuration);
|
|
680
769
|
return {
|
|
770
|
+
/**
|
|
771
|
+
* Créer une réservation en tant qu\'invité (guest)
|
|
772
|
+
* @param {CreateGuestBookingRequest} createGuestBookingRequest
|
|
773
|
+
* @param {*} [options] Override http request option.
|
|
774
|
+
* @throws {RequiredError}
|
|
775
|
+
*/
|
|
776
|
+
createGuestBooking(createGuestBookingRequest, options) {
|
|
777
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
778
|
+
var _a, _b, _c;
|
|
779
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createGuestBooking(createGuestBookingRequest, options);
|
|
780
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
781
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.createGuestBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
782
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
783
|
+
});
|
|
784
|
+
},
|
|
681
785
|
/**
|
|
682
786
|
* Estimer le prix pour rejoindre une réservation ouverte
|
|
683
787
|
* @param {string} bookingId
|
|
@@ -724,6 +828,36 @@ const BookingsApiFp = function (configuration) {
|
|
|
724
828
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
725
829
|
});
|
|
726
830
|
},
|
|
831
|
+
/**
|
|
832
|
+
* Calculer le prix d\'une réservation pour un invité (sans authentification)
|
|
833
|
+
* @param {GetGuestBookingPriceRequest} getGuestBookingPriceRequest
|
|
834
|
+
* @param {*} [options] Override http request option.
|
|
835
|
+
* @throws {RequiredError}
|
|
836
|
+
*/
|
|
837
|
+
getGuestBookingPrice(getGuestBookingPriceRequest, options) {
|
|
838
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
839
|
+
var _a, _b, _c;
|
|
840
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getGuestBookingPrice(getGuestBookingPriceRequest, options);
|
|
841
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
842
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.getGuestBookingPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
843
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
844
|
+
});
|
|
845
|
+
},
|
|
846
|
+
/**
|
|
847
|
+
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
848
|
+
* @param {string} bookingId
|
|
849
|
+
* @param {*} [options] Override http request option.
|
|
850
|
+
* @throws {RequiredError}
|
|
851
|
+
*/
|
|
852
|
+
getOpenBookingJoinPrice(bookingId, options) {
|
|
853
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
854
|
+
var _a, _b, _c;
|
|
855
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenBookingJoinPrice(bookingId, options);
|
|
856
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
857
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.getOpenBookingJoinPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
858
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
859
|
+
});
|
|
860
|
+
},
|
|
727
861
|
/**
|
|
728
862
|
*
|
|
729
863
|
* @param {string} [clubId]
|
|
@@ -805,6 +939,15 @@ exports.BookingsApiFp = BookingsApiFp;
|
|
|
805
939
|
const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
806
940
|
const localVarFp = (0, exports.BookingsApiFp)(configuration);
|
|
807
941
|
return {
|
|
942
|
+
/**
|
|
943
|
+
* Créer une réservation en tant qu\'invité (guest)
|
|
944
|
+
* @param {BookingsApiCreateGuestBookingRequest} requestParameters Request parameters.
|
|
945
|
+
* @param {*} [options] Override http request option.
|
|
946
|
+
* @throws {RequiredError}
|
|
947
|
+
*/
|
|
948
|
+
createGuestBooking(requestParameters, options) {
|
|
949
|
+
return localVarFp.createGuestBooking(requestParameters.createGuestBookingRequest, options).then((request) => request(axios, basePath));
|
|
950
|
+
},
|
|
808
951
|
/**
|
|
809
952
|
* Estimer le prix pour rejoindre une réservation ouverte
|
|
810
953
|
* @param {BookingsApiEstimateOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
@@ -832,6 +975,24 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
832
975
|
getBookingPrice(requestParameters, options) {
|
|
833
976
|
return localVarFp.getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(axios, basePath));
|
|
834
977
|
},
|
|
978
|
+
/**
|
|
979
|
+
* Calculer le prix d\'une réservation pour un invité (sans authentification)
|
|
980
|
+
* @param {BookingsApiGetGuestBookingPriceRequest} requestParameters Request parameters.
|
|
981
|
+
* @param {*} [options] Override http request option.
|
|
982
|
+
* @throws {RequiredError}
|
|
983
|
+
*/
|
|
984
|
+
getGuestBookingPrice(requestParameters, options) {
|
|
985
|
+
return localVarFp.getGuestBookingPrice(requestParameters.getGuestBookingPriceRequest, options).then((request) => request(axios, basePath));
|
|
986
|
+
},
|
|
987
|
+
/**
|
|
988
|
+
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
989
|
+
* @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
990
|
+
* @param {*} [options] Override http request option.
|
|
991
|
+
* @throws {RequiredError}
|
|
992
|
+
*/
|
|
993
|
+
getOpenBookingJoinPrice(requestParameters, options) {
|
|
994
|
+
return localVarFp.getOpenBookingJoinPrice(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
995
|
+
},
|
|
835
996
|
/**
|
|
836
997
|
*
|
|
837
998
|
* @param {BookingsApiGetOpenBookingsRequest} requestParameters Request parameters.
|
|
@@ -878,6 +1039,16 @@ exports.BookingsApiFactory = BookingsApiFactory;
|
|
|
878
1039
|
* @extends {BaseAPI}
|
|
879
1040
|
*/
|
|
880
1041
|
class BookingsApi extends base_1.BaseAPI {
|
|
1042
|
+
/**
|
|
1043
|
+
* Créer une réservation en tant qu\'invité (guest)
|
|
1044
|
+
* @param {BookingsApiCreateGuestBookingRequest} requestParameters Request parameters.
|
|
1045
|
+
* @param {*} [options] Override http request option.
|
|
1046
|
+
* @throws {RequiredError}
|
|
1047
|
+
* @memberof BookingsApi
|
|
1048
|
+
*/
|
|
1049
|
+
createGuestBooking(requestParameters, options) {
|
|
1050
|
+
return (0, exports.BookingsApiFp)(this.configuration).createGuestBooking(requestParameters.createGuestBookingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1051
|
+
}
|
|
881
1052
|
/**
|
|
882
1053
|
* Estimer le prix pour rejoindre une réservation ouverte
|
|
883
1054
|
* @param {BookingsApiEstimateOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
@@ -908,6 +1079,26 @@ class BookingsApi extends base_1.BaseAPI {
|
|
|
908
1079
|
getBookingPrice(requestParameters, options) {
|
|
909
1080
|
return (0, exports.BookingsApiFp)(this.configuration).getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(this.axios, this.basePath));
|
|
910
1081
|
}
|
|
1082
|
+
/**
|
|
1083
|
+
* Calculer le prix d\'une réservation pour un invité (sans authentification)
|
|
1084
|
+
* @param {BookingsApiGetGuestBookingPriceRequest} requestParameters Request parameters.
|
|
1085
|
+
* @param {*} [options] Override http request option.
|
|
1086
|
+
* @throws {RequiredError}
|
|
1087
|
+
* @memberof BookingsApi
|
|
1088
|
+
*/
|
|
1089
|
+
getGuestBookingPrice(requestParameters, options) {
|
|
1090
|
+
return (0, exports.BookingsApiFp)(this.configuration).getGuestBookingPrice(requestParameters.getGuestBookingPriceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1091
|
+
}
|
|
1092
|
+
/**
|
|
1093
|
+
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
1094
|
+
* @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
1095
|
+
* @param {*} [options] Override http request option.
|
|
1096
|
+
* @throws {RequiredError}
|
|
1097
|
+
* @memberof BookingsApi
|
|
1098
|
+
*/
|
|
1099
|
+
getOpenBookingJoinPrice(requestParameters, options) {
|
|
1100
|
+
return (0, exports.BookingsApiFp)(this.configuration).getOpenBookingJoinPrice(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
1101
|
+
}
|
|
911
1102
|
/**
|
|
912
1103
|
*
|
|
913
1104
|
* @param {BookingsApiGetOpenBookingsRequest} requestParameters Request parameters.
|
|
@@ -8876,6 +9067,37 @@ const EventsApiAxiosParamCreator = function (configuration) {
|
|
|
8876
9067
|
options: localVarRequestOptions,
|
|
8877
9068
|
};
|
|
8878
9069
|
}),
|
|
9070
|
+
/**
|
|
9071
|
+
* Estimer simplement le prix à payer pour rejoindre un événement ouvert
|
|
9072
|
+
* @param {string} eventBookingId
|
|
9073
|
+
* @param {*} [options] Override http request option.
|
|
9074
|
+
* @throws {RequiredError}
|
|
9075
|
+
*/
|
|
9076
|
+
getOpenEventBookingJoinPrice: (eventBookingId_1, ...args_1) => __awaiter(this, [eventBookingId_1, ...args_1], void 0, function* (eventBookingId, options = {}) {
|
|
9077
|
+
// verify required parameter 'eventBookingId' is not null or undefined
|
|
9078
|
+
(0, common_1.assertParamExists)('getOpenEventBookingJoinPrice', 'eventBookingId', eventBookingId);
|
|
9079
|
+
const localVarPath = `/api/events/{eventBookingId}/open/join-price`
|
|
9080
|
+
.replace(`{${"eventBookingId"}}`, encodeURIComponent(String(eventBookingId)));
|
|
9081
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9082
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9083
|
+
let baseOptions;
|
|
9084
|
+
if (configuration) {
|
|
9085
|
+
baseOptions = configuration.baseOptions;
|
|
9086
|
+
}
|
|
9087
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
9088
|
+
const localVarHeaderParameter = {};
|
|
9089
|
+
const localVarQueryParameter = {};
|
|
9090
|
+
// authentication bearerAuth required
|
|
9091
|
+
// http bearer authentication required
|
|
9092
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
9093
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9094
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9095
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9096
|
+
return {
|
|
9097
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
9098
|
+
options: localVarRequestOptions,
|
|
9099
|
+
};
|
|
9100
|
+
}),
|
|
8879
9101
|
/**
|
|
8880
9102
|
*
|
|
8881
9103
|
* @param {string} [clubId]
|
|
@@ -9156,6 +9378,21 @@ const EventsApiFp = function (configuration) {
|
|
|
9156
9378
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9157
9379
|
});
|
|
9158
9380
|
},
|
|
9381
|
+
/**
|
|
9382
|
+
* Estimer simplement le prix à payer pour rejoindre un événement ouvert
|
|
9383
|
+
* @param {string} eventBookingId
|
|
9384
|
+
* @param {*} [options] Override http request option.
|
|
9385
|
+
* @throws {RequiredError}
|
|
9386
|
+
*/
|
|
9387
|
+
getOpenEventBookingJoinPrice(eventBookingId, options) {
|
|
9388
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9389
|
+
var _a, _b, _c;
|
|
9390
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenEventBookingJoinPrice(eventBookingId, options);
|
|
9391
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9392
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsApi.getOpenEventBookingJoinPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9393
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9394
|
+
});
|
|
9395
|
+
},
|
|
9159
9396
|
/**
|
|
9160
9397
|
*
|
|
9161
9398
|
* @param {string} [clubId]
|
|
@@ -9298,6 +9535,15 @@ const EventsApiFactory = function (configuration, basePath, axios) {
|
|
|
9298
9535
|
getEventById(requestParameters, options) {
|
|
9299
9536
|
return localVarFp.getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
9300
9537
|
},
|
|
9538
|
+
/**
|
|
9539
|
+
* Estimer simplement le prix à payer pour rejoindre un événement ouvert
|
|
9540
|
+
* @param {EventsApiGetOpenEventBookingJoinPriceRequest} requestParameters Request parameters.
|
|
9541
|
+
* @param {*} [options] Override http request option.
|
|
9542
|
+
* @throws {RequiredError}
|
|
9543
|
+
*/
|
|
9544
|
+
getOpenEventBookingJoinPrice(requestParameters, options) {
|
|
9545
|
+
return localVarFp.getOpenEventBookingJoinPrice(requestParameters.eventBookingId, options).then((request) => request(axios, basePath));
|
|
9546
|
+
},
|
|
9301
9547
|
/**
|
|
9302
9548
|
*
|
|
9303
9549
|
* @param {EventsApiGetOpenEventBookingsRequest} requestParameters Request parameters.
|
|
@@ -9402,6 +9648,16 @@ class EventsApi extends base_1.BaseAPI {
|
|
|
9402
9648
|
getEventById(requestParameters, options) {
|
|
9403
9649
|
return (0, exports.EventsApiFp)(this.configuration).getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
9404
9650
|
}
|
|
9651
|
+
/**
|
|
9652
|
+
* Estimer simplement le prix à payer pour rejoindre un événement ouvert
|
|
9653
|
+
* @param {EventsApiGetOpenEventBookingJoinPriceRequest} requestParameters Request parameters.
|
|
9654
|
+
* @param {*} [options] Override http request option.
|
|
9655
|
+
* @throws {RequiredError}
|
|
9656
|
+
* @memberof EventsApi
|
|
9657
|
+
*/
|
|
9658
|
+
getOpenEventBookingJoinPrice(requestParameters, options) {
|
|
9659
|
+
return (0, exports.EventsApiFp)(this.configuration).getOpenEventBookingJoinPrice(requestParameters.eventBookingId, options).then((request) => request(this.axios, this.basePath));
|
|
9660
|
+
}
|
|
9405
9661
|
/**
|
|
9406
9662
|
*
|
|
9407
9663
|
* @param {EventsApiGetOpenEventBookingsRequest} requestParameters Request parameters.
|
package/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
package/dist/common.d.ts
CHANGED
package/dist/common.js
CHANGED
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED