@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/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.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.151
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -398,6 +398,35 @@ export const WeekdayKey = {
|
|
|
398
398
|
*/
|
|
399
399
|
export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
400
400
|
return {
|
|
401
|
+
/**
|
|
402
|
+
* Créer une réservation en tant qu\'invité (guest)
|
|
403
|
+
* @param {CreateGuestBookingRequest} createGuestBookingRequest
|
|
404
|
+
* @param {*} [options] Override http request option.
|
|
405
|
+
* @throws {RequiredError}
|
|
406
|
+
*/
|
|
407
|
+
createGuestBooking: (createGuestBookingRequest_1, ...args_1) => __awaiter(this, [createGuestBookingRequest_1, ...args_1], void 0, function* (createGuestBookingRequest, options = {}) {
|
|
408
|
+
// verify required parameter 'createGuestBookingRequest' is not null or undefined
|
|
409
|
+
assertParamExists('createGuestBooking', 'createGuestBookingRequest', createGuestBookingRequest);
|
|
410
|
+
const localVarPath = `/api/bookings/guest`;
|
|
411
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
412
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
413
|
+
let baseOptions;
|
|
414
|
+
if (configuration) {
|
|
415
|
+
baseOptions = configuration.baseOptions;
|
|
416
|
+
}
|
|
417
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
418
|
+
const localVarHeaderParameter = {};
|
|
419
|
+
const localVarQueryParameter = {};
|
|
420
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
421
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
422
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
423
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
424
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createGuestBookingRequest, localVarRequestOptions, configuration);
|
|
425
|
+
return {
|
|
426
|
+
url: toPathString(localVarUrlObj),
|
|
427
|
+
options: localVarRequestOptions,
|
|
428
|
+
};
|
|
429
|
+
}),
|
|
401
430
|
/**
|
|
402
431
|
* Estimer le prix pour rejoindre une réservation ouverte
|
|
403
432
|
* @param {string} bookingId
|
|
@@ -496,6 +525,66 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
496
525
|
options: localVarRequestOptions,
|
|
497
526
|
};
|
|
498
527
|
}),
|
|
528
|
+
/**
|
|
529
|
+
* Calculer le prix d\'une réservation pour un invité (sans authentification)
|
|
530
|
+
* @param {GetGuestBookingPriceRequest} getGuestBookingPriceRequest
|
|
531
|
+
* @param {*} [options] Override http request option.
|
|
532
|
+
* @throws {RequiredError}
|
|
533
|
+
*/
|
|
534
|
+
getGuestBookingPrice: (getGuestBookingPriceRequest_1, ...args_1) => __awaiter(this, [getGuestBookingPriceRequest_1, ...args_1], void 0, function* (getGuestBookingPriceRequest, options = {}) {
|
|
535
|
+
// verify required parameter 'getGuestBookingPriceRequest' is not null or undefined
|
|
536
|
+
assertParamExists('getGuestBookingPrice', 'getGuestBookingPriceRequest', getGuestBookingPriceRequest);
|
|
537
|
+
const localVarPath = `/api/bookings/guest/booking-price`;
|
|
538
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
539
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
540
|
+
let baseOptions;
|
|
541
|
+
if (configuration) {
|
|
542
|
+
baseOptions = configuration.baseOptions;
|
|
543
|
+
}
|
|
544
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
545
|
+
const localVarHeaderParameter = {};
|
|
546
|
+
const localVarQueryParameter = {};
|
|
547
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
548
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
549
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
550
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
551
|
+
localVarRequestOptions.data = serializeDataIfNeeded(getGuestBookingPriceRequest, localVarRequestOptions, configuration);
|
|
552
|
+
return {
|
|
553
|
+
url: toPathString(localVarUrlObj),
|
|
554
|
+
options: localVarRequestOptions,
|
|
555
|
+
};
|
|
556
|
+
}),
|
|
557
|
+
/**
|
|
558
|
+
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
559
|
+
* @param {string} bookingId
|
|
560
|
+
* @param {*} [options] Override http request option.
|
|
561
|
+
* @throws {RequiredError}
|
|
562
|
+
*/
|
|
563
|
+
getOpenBookingJoinPrice: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
|
|
564
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
565
|
+
assertParamExists('getOpenBookingJoinPrice', 'bookingId', bookingId);
|
|
566
|
+
const localVarPath = `/api/bookings/{bookingId}/open/join-price`
|
|
567
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
568
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
569
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
570
|
+
let baseOptions;
|
|
571
|
+
if (configuration) {
|
|
572
|
+
baseOptions = configuration.baseOptions;
|
|
573
|
+
}
|
|
574
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
575
|
+
const localVarHeaderParameter = {};
|
|
576
|
+
const localVarQueryParameter = {};
|
|
577
|
+
// authentication bearerAuth required
|
|
578
|
+
// http bearer authentication required
|
|
579
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
580
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
581
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
582
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
583
|
+
return {
|
|
584
|
+
url: toPathString(localVarUrlObj),
|
|
585
|
+
options: localVarRequestOptions,
|
|
586
|
+
};
|
|
587
|
+
}),
|
|
499
588
|
/**
|
|
500
589
|
*
|
|
501
590
|
* @param {string} [clubId]
|
|
@@ -671,6 +760,21 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
671
760
|
export const BookingsApiFp = function (configuration) {
|
|
672
761
|
const localVarAxiosParamCreator = BookingsApiAxiosParamCreator(configuration);
|
|
673
762
|
return {
|
|
763
|
+
/**
|
|
764
|
+
* Créer une réservation en tant qu\'invité (guest)
|
|
765
|
+
* @param {CreateGuestBookingRequest} createGuestBookingRequest
|
|
766
|
+
* @param {*} [options] Override http request option.
|
|
767
|
+
* @throws {RequiredError}
|
|
768
|
+
*/
|
|
769
|
+
createGuestBooking(createGuestBookingRequest, options) {
|
|
770
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
771
|
+
var _a, _b, _c;
|
|
772
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createGuestBooking(createGuestBookingRequest, options);
|
|
773
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
774
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.createGuestBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
775
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
776
|
+
});
|
|
777
|
+
},
|
|
674
778
|
/**
|
|
675
779
|
* Estimer le prix pour rejoindre une réservation ouverte
|
|
676
780
|
* @param {string} bookingId
|
|
@@ -717,6 +821,36 @@ export const BookingsApiFp = function (configuration) {
|
|
|
717
821
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
718
822
|
});
|
|
719
823
|
},
|
|
824
|
+
/**
|
|
825
|
+
* Calculer le prix d\'une réservation pour un invité (sans authentification)
|
|
826
|
+
* @param {GetGuestBookingPriceRequest} getGuestBookingPriceRequest
|
|
827
|
+
* @param {*} [options] Override http request option.
|
|
828
|
+
* @throws {RequiredError}
|
|
829
|
+
*/
|
|
830
|
+
getGuestBookingPrice(getGuestBookingPriceRequest, options) {
|
|
831
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
832
|
+
var _a, _b, _c;
|
|
833
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getGuestBookingPrice(getGuestBookingPriceRequest, options);
|
|
834
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
835
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.getGuestBookingPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
836
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
837
|
+
});
|
|
838
|
+
},
|
|
839
|
+
/**
|
|
840
|
+
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
841
|
+
* @param {string} bookingId
|
|
842
|
+
* @param {*} [options] Override http request option.
|
|
843
|
+
* @throws {RequiredError}
|
|
844
|
+
*/
|
|
845
|
+
getOpenBookingJoinPrice(bookingId, options) {
|
|
846
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
847
|
+
var _a, _b, _c;
|
|
848
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenBookingJoinPrice(bookingId, options);
|
|
849
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
850
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.getOpenBookingJoinPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
851
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
852
|
+
});
|
|
853
|
+
},
|
|
720
854
|
/**
|
|
721
855
|
*
|
|
722
856
|
* @param {string} [clubId]
|
|
@@ -797,6 +931,15 @@ export const BookingsApiFp = function (configuration) {
|
|
|
797
931
|
export const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
798
932
|
const localVarFp = BookingsApiFp(configuration);
|
|
799
933
|
return {
|
|
934
|
+
/**
|
|
935
|
+
* Créer une réservation en tant qu\'invité (guest)
|
|
936
|
+
* @param {BookingsApiCreateGuestBookingRequest} requestParameters Request parameters.
|
|
937
|
+
* @param {*} [options] Override http request option.
|
|
938
|
+
* @throws {RequiredError}
|
|
939
|
+
*/
|
|
940
|
+
createGuestBooking(requestParameters, options) {
|
|
941
|
+
return localVarFp.createGuestBooking(requestParameters.createGuestBookingRequest, options).then((request) => request(axios, basePath));
|
|
942
|
+
},
|
|
800
943
|
/**
|
|
801
944
|
* Estimer le prix pour rejoindre une réservation ouverte
|
|
802
945
|
* @param {BookingsApiEstimateOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
@@ -824,6 +967,24 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
824
967
|
getBookingPrice(requestParameters, options) {
|
|
825
968
|
return localVarFp.getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(axios, basePath));
|
|
826
969
|
},
|
|
970
|
+
/**
|
|
971
|
+
* Calculer le prix d\'une réservation pour un invité (sans authentification)
|
|
972
|
+
* @param {BookingsApiGetGuestBookingPriceRequest} requestParameters Request parameters.
|
|
973
|
+
* @param {*} [options] Override http request option.
|
|
974
|
+
* @throws {RequiredError}
|
|
975
|
+
*/
|
|
976
|
+
getGuestBookingPrice(requestParameters, options) {
|
|
977
|
+
return localVarFp.getGuestBookingPrice(requestParameters.getGuestBookingPriceRequest, options).then((request) => request(axios, basePath));
|
|
978
|
+
},
|
|
979
|
+
/**
|
|
980
|
+
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
981
|
+
* @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
982
|
+
* @param {*} [options] Override http request option.
|
|
983
|
+
* @throws {RequiredError}
|
|
984
|
+
*/
|
|
985
|
+
getOpenBookingJoinPrice(requestParameters, options) {
|
|
986
|
+
return localVarFp.getOpenBookingJoinPrice(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
987
|
+
},
|
|
827
988
|
/**
|
|
828
989
|
*
|
|
829
990
|
* @param {BookingsApiGetOpenBookingsRequest} requestParameters Request parameters.
|
|
@@ -869,6 +1030,16 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
869
1030
|
* @extends {BaseAPI}
|
|
870
1031
|
*/
|
|
871
1032
|
export class BookingsApi extends BaseAPI {
|
|
1033
|
+
/**
|
|
1034
|
+
* Créer une réservation en tant qu\'invité (guest)
|
|
1035
|
+
* @param {BookingsApiCreateGuestBookingRequest} requestParameters Request parameters.
|
|
1036
|
+
* @param {*} [options] Override http request option.
|
|
1037
|
+
* @throws {RequiredError}
|
|
1038
|
+
* @memberof BookingsApi
|
|
1039
|
+
*/
|
|
1040
|
+
createGuestBooking(requestParameters, options) {
|
|
1041
|
+
return BookingsApiFp(this.configuration).createGuestBooking(requestParameters.createGuestBookingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1042
|
+
}
|
|
872
1043
|
/**
|
|
873
1044
|
* Estimer le prix pour rejoindre une réservation ouverte
|
|
874
1045
|
* @param {BookingsApiEstimateOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
@@ -899,6 +1070,26 @@ export class BookingsApi extends BaseAPI {
|
|
|
899
1070
|
getBookingPrice(requestParameters, options) {
|
|
900
1071
|
return BookingsApiFp(this.configuration).getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(this.axios, this.basePath));
|
|
901
1072
|
}
|
|
1073
|
+
/**
|
|
1074
|
+
* Calculer le prix d\'une réservation pour un invité (sans authentification)
|
|
1075
|
+
* @param {BookingsApiGetGuestBookingPriceRequest} requestParameters Request parameters.
|
|
1076
|
+
* @param {*} [options] Override http request option.
|
|
1077
|
+
* @throws {RequiredError}
|
|
1078
|
+
* @memberof BookingsApi
|
|
1079
|
+
*/
|
|
1080
|
+
getGuestBookingPrice(requestParameters, options) {
|
|
1081
|
+
return BookingsApiFp(this.configuration).getGuestBookingPrice(requestParameters.getGuestBookingPriceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1082
|
+
}
|
|
1083
|
+
/**
|
|
1084
|
+
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
1085
|
+
* @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
1086
|
+
* @param {*} [options] Override http request option.
|
|
1087
|
+
* @throws {RequiredError}
|
|
1088
|
+
* @memberof BookingsApi
|
|
1089
|
+
*/
|
|
1090
|
+
getOpenBookingJoinPrice(requestParameters, options) {
|
|
1091
|
+
return BookingsApiFp(this.configuration).getOpenBookingJoinPrice(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
1092
|
+
}
|
|
902
1093
|
/**
|
|
903
1094
|
*
|
|
904
1095
|
* @param {BookingsApiGetOpenBookingsRequest} requestParameters Request parameters.
|
|
@@ -8802,6 +8993,37 @@ export const EventsApiAxiosParamCreator = function (configuration) {
|
|
|
8802
8993
|
options: localVarRequestOptions,
|
|
8803
8994
|
};
|
|
8804
8995
|
}),
|
|
8996
|
+
/**
|
|
8997
|
+
* Estimer simplement le prix à payer pour rejoindre un événement ouvert
|
|
8998
|
+
* @param {string} eventBookingId
|
|
8999
|
+
* @param {*} [options] Override http request option.
|
|
9000
|
+
* @throws {RequiredError}
|
|
9001
|
+
*/
|
|
9002
|
+
getOpenEventBookingJoinPrice: (eventBookingId_1, ...args_1) => __awaiter(this, [eventBookingId_1, ...args_1], void 0, function* (eventBookingId, options = {}) {
|
|
9003
|
+
// verify required parameter 'eventBookingId' is not null or undefined
|
|
9004
|
+
assertParamExists('getOpenEventBookingJoinPrice', 'eventBookingId', eventBookingId);
|
|
9005
|
+
const localVarPath = `/api/events/{eventBookingId}/open/join-price`
|
|
9006
|
+
.replace(`{${"eventBookingId"}}`, encodeURIComponent(String(eventBookingId)));
|
|
9007
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9008
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9009
|
+
let baseOptions;
|
|
9010
|
+
if (configuration) {
|
|
9011
|
+
baseOptions = configuration.baseOptions;
|
|
9012
|
+
}
|
|
9013
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
9014
|
+
const localVarHeaderParameter = {};
|
|
9015
|
+
const localVarQueryParameter = {};
|
|
9016
|
+
// authentication bearerAuth required
|
|
9017
|
+
// http bearer authentication required
|
|
9018
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
9019
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9020
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9021
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9022
|
+
return {
|
|
9023
|
+
url: toPathString(localVarUrlObj),
|
|
9024
|
+
options: localVarRequestOptions,
|
|
9025
|
+
};
|
|
9026
|
+
}),
|
|
8805
9027
|
/**
|
|
8806
9028
|
*
|
|
8807
9029
|
* @param {string} [clubId]
|
|
@@ -9081,6 +9303,21 @@ export const EventsApiFp = function (configuration) {
|
|
|
9081
9303
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9082
9304
|
});
|
|
9083
9305
|
},
|
|
9306
|
+
/**
|
|
9307
|
+
* Estimer simplement le prix à payer pour rejoindre un événement ouvert
|
|
9308
|
+
* @param {string} eventBookingId
|
|
9309
|
+
* @param {*} [options] Override http request option.
|
|
9310
|
+
* @throws {RequiredError}
|
|
9311
|
+
*/
|
|
9312
|
+
getOpenEventBookingJoinPrice(eventBookingId, options) {
|
|
9313
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9314
|
+
var _a, _b, _c;
|
|
9315
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenEventBookingJoinPrice(eventBookingId, options);
|
|
9316
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9317
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsApi.getOpenEventBookingJoinPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9318
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9319
|
+
});
|
|
9320
|
+
},
|
|
9084
9321
|
/**
|
|
9085
9322
|
*
|
|
9086
9323
|
* @param {string} [clubId]
|
|
@@ -9222,6 +9459,15 @@ export const EventsApiFactory = function (configuration, basePath, axios) {
|
|
|
9222
9459
|
getEventById(requestParameters, options) {
|
|
9223
9460
|
return localVarFp.getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
9224
9461
|
},
|
|
9462
|
+
/**
|
|
9463
|
+
* Estimer simplement le prix à payer pour rejoindre un événement ouvert
|
|
9464
|
+
* @param {EventsApiGetOpenEventBookingJoinPriceRequest} requestParameters Request parameters.
|
|
9465
|
+
* @param {*} [options] Override http request option.
|
|
9466
|
+
* @throws {RequiredError}
|
|
9467
|
+
*/
|
|
9468
|
+
getOpenEventBookingJoinPrice(requestParameters, options) {
|
|
9469
|
+
return localVarFp.getOpenEventBookingJoinPrice(requestParameters.eventBookingId, options).then((request) => request(axios, basePath));
|
|
9470
|
+
},
|
|
9225
9471
|
/**
|
|
9226
9472
|
*
|
|
9227
9473
|
* @param {EventsApiGetOpenEventBookingsRequest} requestParameters Request parameters.
|
|
@@ -9325,6 +9571,16 @@ export class EventsApi extends BaseAPI {
|
|
|
9325
9571
|
getEventById(requestParameters, options) {
|
|
9326
9572
|
return EventsApiFp(this.configuration).getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
9327
9573
|
}
|
|
9574
|
+
/**
|
|
9575
|
+
* Estimer simplement le prix à payer pour rejoindre un événement ouvert
|
|
9576
|
+
* @param {EventsApiGetOpenEventBookingJoinPriceRequest} requestParameters Request parameters.
|
|
9577
|
+
* @param {*} [options] Override http request option.
|
|
9578
|
+
* @throws {RequiredError}
|
|
9579
|
+
* @memberof EventsApi
|
|
9580
|
+
*/
|
|
9581
|
+
getOpenEventBookingJoinPrice(requestParameters, options) {
|
|
9582
|
+
return EventsApiFp(this.configuration).getOpenEventBookingJoinPrice(requestParameters.eventBookingId, options).then((request) => request(this.axios, this.basePath));
|
|
9583
|
+
}
|
|
9328
9584
|
/**
|
|
9329
9585
|
*
|
|
9330
9586
|
* @param {EventsApiGetOpenEventBookingsRequest} requestParameters Request parameters.
|
package/dist/esm/base.d.ts
CHANGED
package/dist/esm/base.js
CHANGED
package/dist/esm/common.d.ts
CHANGED
package/dist/esm/common.js
CHANGED
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/docs/BookingsApi.md
CHANGED
|
@@ -4,14 +4,69 @@ All URIs are relative to *http://localhost*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
+
|[**createGuestBooking**](#createguestbooking) | **POST** /api/bookings/guest | |
|
|
7
8
|
|[**estimateOpenBookingJoinPrice**](#estimateopenbookingjoinprice) | **GET** /api/bookings/{bookingId}/open/estimate | |
|
|
8
9
|
|[**getBookingHistory**](#getbookinghistory) | **GET** /api/bookings/history/{bookingId} | |
|
|
9
10
|
|[**getBookingPrice**](#getbookingprice) | **POST** /api/bookings/booking-price | |
|
|
11
|
+
|[**getGuestBookingPrice**](#getguestbookingprice) | **POST** /api/bookings/guest/booking-price | |
|
|
12
|
+
|[**getOpenBookingJoinPrice**](#getopenbookingjoinprice) | **GET** /api/bookings/{bookingId}/open/join-price | |
|
|
10
13
|
|[**getOpenBookings**](#getopenbookings) | **GET** /api/bookings/open | |
|
|
11
14
|
|[**getQuickReservationSlots**](#getquickreservationslots) | **GET** /api/bookings/quick-reservations | |
|
|
12
15
|
|[**joinOpenBooking**](#joinopenbooking) | **POST** /api/bookings/{bookingId}/open/join | |
|
|
13
16
|
|[**leaveOpenBooking**](#leaveopenbooking) | **DELETE** /api/bookings/{bookingId}/open/leave | |
|
|
14
17
|
|
|
18
|
+
# **createGuestBooking**
|
|
19
|
+
> BookingResponse createGuestBooking(createGuestBookingRequest)
|
|
20
|
+
|
|
21
|
+
Créer une réservation en tant qu\'invité (guest)
|
|
22
|
+
|
|
23
|
+
### Example
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
import {
|
|
27
|
+
BookingsApi,
|
|
28
|
+
Configuration,
|
|
29
|
+
CreateGuestBookingRequest
|
|
30
|
+
} from '@tennac-booking/sdk';
|
|
31
|
+
|
|
32
|
+
const configuration = new Configuration();
|
|
33
|
+
const apiInstance = new BookingsApi(configuration);
|
|
34
|
+
|
|
35
|
+
let createGuestBookingRequest: CreateGuestBookingRequest; //
|
|
36
|
+
|
|
37
|
+
const { status, data } = await apiInstance.createGuestBooking(
|
|
38
|
+
createGuestBookingRequest
|
|
39
|
+
);
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Parameters
|
|
43
|
+
|
|
44
|
+
|Name | Type | Description | Notes|
|
|
45
|
+
|------------- | ------------- | ------------- | -------------|
|
|
46
|
+
| **createGuestBookingRequest** | **CreateGuestBookingRequest**| | |
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
### Return type
|
|
50
|
+
|
|
51
|
+
**BookingResponse**
|
|
52
|
+
|
|
53
|
+
### Authorization
|
|
54
|
+
|
|
55
|
+
No authorization required
|
|
56
|
+
|
|
57
|
+
### HTTP request headers
|
|
58
|
+
|
|
59
|
+
- **Content-Type**: application/json
|
|
60
|
+
- **Accept**: application/json
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
### HTTP response details
|
|
64
|
+
| Status code | Description | Response headers |
|
|
65
|
+
|-------------|-------------|------------------|
|
|
66
|
+
|**201** | Réservation guest créée avec succès | - |
|
|
67
|
+
|
|
68
|
+
[[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)
|
|
69
|
+
|
|
15
70
|
# **estimateOpenBookingJoinPrice**
|
|
16
71
|
> EstimateOpenEventBookingJoinPrice200Response estimateOpenBookingJoinPrice()
|
|
17
72
|
|
|
@@ -168,6 +223,109 @@ const { status, data } = await apiInstance.getBookingPrice(
|
|
|
168
223
|
|
|
169
224
|
[[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)
|
|
170
225
|
|
|
226
|
+
# **getGuestBookingPrice**
|
|
227
|
+
> GetGuestBookingPrice200Response getGuestBookingPrice(getGuestBookingPriceRequest)
|
|
228
|
+
|
|
229
|
+
Calculer le prix d\'une réservation pour un invité (sans authentification)
|
|
230
|
+
|
|
231
|
+
### Example
|
|
232
|
+
|
|
233
|
+
```typescript
|
|
234
|
+
import {
|
|
235
|
+
BookingsApi,
|
|
236
|
+
Configuration,
|
|
237
|
+
GetGuestBookingPriceRequest
|
|
238
|
+
} from '@tennac-booking/sdk';
|
|
239
|
+
|
|
240
|
+
const configuration = new Configuration();
|
|
241
|
+
const apiInstance = new BookingsApi(configuration);
|
|
242
|
+
|
|
243
|
+
let getGuestBookingPriceRequest: GetGuestBookingPriceRequest; //
|
|
244
|
+
|
|
245
|
+
const { status, data } = await apiInstance.getGuestBookingPrice(
|
|
246
|
+
getGuestBookingPriceRequest
|
|
247
|
+
);
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
### Parameters
|
|
251
|
+
|
|
252
|
+
|Name | Type | Description | Notes|
|
|
253
|
+
|------------- | ------------- | ------------- | -------------|
|
|
254
|
+
| **getGuestBookingPriceRequest** | **GetGuestBookingPriceRequest**| | |
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
### Return type
|
|
258
|
+
|
|
259
|
+
**GetGuestBookingPrice200Response**
|
|
260
|
+
|
|
261
|
+
### Authorization
|
|
262
|
+
|
|
263
|
+
No authorization required
|
|
264
|
+
|
|
265
|
+
### HTTP request headers
|
|
266
|
+
|
|
267
|
+
- **Content-Type**: application/json
|
|
268
|
+
- **Accept**: application/json
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
### HTTP response details
|
|
272
|
+
| Status code | Description | Response headers |
|
|
273
|
+
|-------------|-------------|------------------|
|
|
274
|
+
|**200** | Prix de réservation calculé | - |
|
|
275
|
+
|
|
276
|
+
[[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)
|
|
277
|
+
|
|
278
|
+
# **getOpenBookingJoinPrice**
|
|
279
|
+
> GetOpenEventBookingJoinPrice200Response getOpenBookingJoinPrice()
|
|
280
|
+
|
|
281
|
+
Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
282
|
+
|
|
283
|
+
### Example
|
|
284
|
+
|
|
285
|
+
```typescript
|
|
286
|
+
import {
|
|
287
|
+
BookingsApi,
|
|
288
|
+
Configuration
|
|
289
|
+
} from '@tennac-booking/sdk';
|
|
290
|
+
|
|
291
|
+
const configuration = new Configuration();
|
|
292
|
+
const apiInstance = new BookingsApi(configuration);
|
|
293
|
+
|
|
294
|
+
let bookingId: string; // (default to undefined)
|
|
295
|
+
|
|
296
|
+
const { status, data } = await apiInstance.getOpenBookingJoinPrice(
|
|
297
|
+
bookingId
|
|
298
|
+
);
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
### Parameters
|
|
302
|
+
|
|
303
|
+
|Name | Type | Description | Notes|
|
|
304
|
+
|------------- | ------------- | ------------- | -------------|
|
|
305
|
+
| **bookingId** | [**string**] | | defaults to undefined|
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
### Return type
|
|
309
|
+
|
|
310
|
+
**GetOpenEventBookingJoinPrice200Response**
|
|
311
|
+
|
|
312
|
+
### Authorization
|
|
313
|
+
|
|
314
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
315
|
+
|
|
316
|
+
### HTTP request headers
|
|
317
|
+
|
|
318
|
+
- **Content-Type**: Not defined
|
|
319
|
+
- **Accept**: application/json
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
### HTTP response details
|
|
323
|
+
| Status code | Description | Response headers |
|
|
324
|
+
|-------------|-------------|------------------|
|
|
325
|
+
|**200** | Prix à payer calculé | - |
|
|
326
|
+
|
|
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
|
+
|
|
171
329
|
# **getOpenBookings**
|
|
172
330
|
> GetOpenBookings200Response getOpenBookings()
|
|
173
331
|
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# CreateGuestBookingRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**slotIds** | **Array<string>** | ID du créneau à réserver | [default to undefined]
|
|
9
|
+
**firstName** | **string** | Prénom de l\'invité | [default to undefined]
|
|
10
|
+
**lastName** | **string** | Nom de famille de l\'invité | [default to undefined]
|
|
11
|
+
**email** | **string** | Email de l\'invité | [default to undefined]
|
|
12
|
+
**phoneNumber** | **string** | Numéro de téléphone de l\'invité | [optional] [default to undefined]
|
|
13
|
+
**paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [default to undefined]
|
|
14
|
+
**useDefaultPaymentMethod** | **boolean** | Indique si l\'utilisateur veut utiliser sa méthode de paiement par défaut | [optional] [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { CreateGuestBookingRequest } from '@tennac-booking/sdk';
|
|
20
|
+
|
|
21
|
+
const instance: CreateGuestBookingRequest = {
|
|
22
|
+
slotIds,
|
|
23
|
+
firstName,
|
|
24
|
+
lastName,
|
|
25
|
+
email,
|
|
26
|
+
phoneNumber,
|
|
27
|
+
paymentMethod,
|
|
28
|
+
useDefaultPaymentMethod,
|
|
29
|
+
};
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|