@tennac-booking/sdk 1.0.148 → 1.0.150
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 +368 -364
- package/README.md +11 -2
- package/api.ts +638 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +419 -1
- package/dist/api.js +336 -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 +419 -1
- package/dist/esm/api.js +336 -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 +160 -0
- package/docs/CreateGuestBookingRequest.md +32 -0
- package/docs/EstimateOpenEventBookingJoinPrice200Response.md +28 -0
- package/docs/EstimateOpenEventBookingJoinPrice200ResponseSubscriptionInfo.md +24 -0
- package/docs/EventsApi.md +111 -0
- package/docs/Gender.md +4 -0
- package/docs/GetOpenEventBookingJoinPrice200Response.md +22 -0
- package/docs/IUserAttributes.md +4 -0
- package/docs/RegisterRequestBody.md +4 -0
- package/docs/StaffUserProfileResponse.md +4 -0
- package/docs/UpdateUserRequestBody.md +4 -0
- package/docs/UserProfileResponse.md +4 -0
- 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.150
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -155,6 +155,8 @@ export const EventResponseVisibilityTypeEnum = {
|
|
|
155
155
|
export const Gender = {
|
|
156
156
|
Male: 'male',
|
|
157
157
|
Female: 'female',
|
|
158
|
+
NonBinary: 'non_binary',
|
|
159
|
+
Transgender: 'transgender',
|
|
158
160
|
Other: 'other'
|
|
159
161
|
};
|
|
160
162
|
export const IUserLocationTypeEnum = {
|
|
@@ -396,6 +398,70 @@ export const WeekdayKey = {
|
|
|
396
398
|
*/
|
|
397
399
|
export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
398
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
|
+
}),
|
|
430
|
+
/**
|
|
431
|
+
* Estimer le prix pour rejoindre une réservation ouverte
|
|
432
|
+
* @param {string} bookingId
|
|
433
|
+
* @param {number} [creditToUseInCents]
|
|
434
|
+
* @param {*} [options] Override http request option.
|
|
435
|
+
* @throws {RequiredError}
|
|
436
|
+
*/
|
|
437
|
+
estimateOpenBookingJoinPrice: (bookingId_1, creditToUseInCents_1, ...args_1) => __awaiter(this, [bookingId_1, creditToUseInCents_1, ...args_1], void 0, function* (bookingId, creditToUseInCents, options = {}) {
|
|
438
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
439
|
+
assertParamExists('estimateOpenBookingJoinPrice', 'bookingId', bookingId);
|
|
440
|
+
const localVarPath = `/api/bookings/{bookingId}/open/estimate`
|
|
441
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
442
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
443
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
444
|
+
let baseOptions;
|
|
445
|
+
if (configuration) {
|
|
446
|
+
baseOptions = configuration.baseOptions;
|
|
447
|
+
}
|
|
448
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
449
|
+
const localVarHeaderParameter = {};
|
|
450
|
+
const localVarQueryParameter = {};
|
|
451
|
+
// authentication bearerAuth required
|
|
452
|
+
// http bearer authentication required
|
|
453
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
454
|
+
if (creditToUseInCents !== undefined) {
|
|
455
|
+
localVarQueryParameter['creditToUseInCents'] = creditToUseInCents;
|
|
456
|
+
}
|
|
457
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
458
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
459
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
460
|
+
return {
|
|
461
|
+
url: toPathString(localVarUrlObj),
|
|
462
|
+
options: localVarRequestOptions,
|
|
463
|
+
};
|
|
464
|
+
}),
|
|
399
465
|
/**
|
|
400
466
|
* Obtenir l\'historique d\'une réservation par ID
|
|
401
467
|
* @param {string} bookingId
|
|
@@ -459,6 +525,37 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
459
525
|
options: localVarRequestOptions,
|
|
460
526
|
};
|
|
461
527
|
}),
|
|
528
|
+
/**
|
|
529
|
+
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
530
|
+
* @param {string} bookingId
|
|
531
|
+
* @param {*} [options] Override http request option.
|
|
532
|
+
* @throws {RequiredError}
|
|
533
|
+
*/
|
|
534
|
+
getOpenBookingJoinPrice: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
|
|
535
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
536
|
+
assertParamExists('getOpenBookingJoinPrice', 'bookingId', bookingId);
|
|
537
|
+
const localVarPath = `/api/bookings/{bookingId}/open/join-price`
|
|
538
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
539
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
540
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
541
|
+
let baseOptions;
|
|
542
|
+
if (configuration) {
|
|
543
|
+
baseOptions = configuration.baseOptions;
|
|
544
|
+
}
|
|
545
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
546
|
+
const localVarHeaderParameter = {};
|
|
547
|
+
const localVarQueryParameter = {};
|
|
548
|
+
// authentication bearerAuth required
|
|
549
|
+
// http bearer authentication required
|
|
550
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
551
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
552
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
553
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
554
|
+
return {
|
|
555
|
+
url: toPathString(localVarUrlObj),
|
|
556
|
+
options: localVarRequestOptions,
|
|
557
|
+
};
|
|
558
|
+
}),
|
|
462
559
|
/**
|
|
463
560
|
*
|
|
464
561
|
* @param {string} [clubId]
|
|
@@ -634,6 +731,37 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
634
731
|
export const BookingsApiFp = function (configuration) {
|
|
635
732
|
const localVarAxiosParamCreator = BookingsApiAxiosParamCreator(configuration);
|
|
636
733
|
return {
|
|
734
|
+
/**
|
|
735
|
+
* Créer une réservation en tant qu\'invité (guest)
|
|
736
|
+
* @param {CreateGuestBookingRequest} createGuestBookingRequest
|
|
737
|
+
* @param {*} [options] Override http request option.
|
|
738
|
+
* @throws {RequiredError}
|
|
739
|
+
*/
|
|
740
|
+
createGuestBooking(createGuestBookingRequest, options) {
|
|
741
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
742
|
+
var _a, _b, _c;
|
|
743
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createGuestBooking(createGuestBookingRequest, options);
|
|
744
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
745
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.createGuestBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
746
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
747
|
+
});
|
|
748
|
+
},
|
|
749
|
+
/**
|
|
750
|
+
* Estimer le prix pour rejoindre une réservation ouverte
|
|
751
|
+
* @param {string} bookingId
|
|
752
|
+
* @param {number} [creditToUseInCents]
|
|
753
|
+
* @param {*} [options] Override http request option.
|
|
754
|
+
* @throws {RequiredError}
|
|
755
|
+
*/
|
|
756
|
+
estimateOpenBookingJoinPrice(bookingId, creditToUseInCents, options) {
|
|
757
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
758
|
+
var _a, _b, _c;
|
|
759
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.estimateOpenBookingJoinPrice(bookingId, creditToUseInCents, options);
|
|
760
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
761
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.estimateOpenBookingJoinPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
762
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
763
|
+
});
|
|
764
|
+
},
|
|
637
765
|
/**
|
|
638
766
|
* Obtenir l\'historique d\'une réservation par ID
|
|
639
767
|
* @param {string} bookingId
|
|
@@ -664,6 +792,21 @@ export const BookingsApiFp = function (configuration) {
|
|
|
664
792
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
665
793
|
});
|
|
666
794
|
},
|
|
795
|
+
/**
|
|
796
|
+
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
797
|
+
* @param {string} bookingId
|
|
798
|
+
* @param {*} [options] Override http request option.
|
|
799
|
+
* @throws {RequiredError}
|
|
800
|
+
*/
|
|
801
|
+
getOpenBookingJoinPrice(bookingId, options) {
|
|
802
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
803
|
+
var _a, _b, _c;
|
|
804
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenBookingJoinPrice(bookingId, options);
|
|
805
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
806
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.getOpenBookingJoinPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
807
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
808
|
+
});
|
|
809
|
+
},
|
|
667
810
|
/**
|
|
668
811
|
*
|
|
669
812
|
* @param {string} [clubId]
|
|
@@ -744,6 +887,24 @@ export const BookingsApiFp = function (configuration) {
|
|
|
744
887
|
export const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
745
888
|
const localVarFp = BookingsApiFp(configuration);
|
|
746
889
|
return {
|
|
890
|
+
/**
|
|
891
|
+
* Créer une réservation en tant qu\'invité (guest)
|
|
892
|
+
* @param {BookingsApiCreateGuestBookingRequest} requestParameters Request parameters.
|
|
893
|
+
* @param {*} [options] Override http request option.
|
|
894
|
+
* @throws {RequiredError}
|
|
895
|
+
*/
|
|
896
|
+
createGuestBooking(requestParameters, options) {
|
|
897
|
+
return localVarFp.createGuestBooking(requestParameters.createGuestBookingRequest, options).then((request) => request(axios, basePath));
|
|
898
|
+
},
|
|
899
|
+
/**
|
|
900
|
+
* Estimer le prix pour rejoindre une réservation ouverte
|
|
901
|
+
* @param {BookingsApiEstimateOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
902
|
+
* @param {*} [options] Override http request option.
|
|
903
|
+
* @throws {RequiredError}
|
|
904
|
+
*/
|
|
905
|
+
estimateOpenBookingJoinPrice(requestParameters, options) {
|
|
906
|
+
return localVarFp.estimateOpenBookingJoinPrice(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
|
|
907
|
+
},
|
|
747
908
|
/**
|
|
748
909
|
* Obtenir l\'historique d\'une réservation par ID
|
|
749
910
|
* @param {BookingsApiGetBookingHistoryRequest} requestParameters Request parameters.
|
|
@@ -762,6 +923,15 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
762
923
|
getBookingPrice(requestParameters, options) {
|
|
763
924
|
return localVarFp.getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(axios, basePath));
|
|
764
925
|
},
|
|
926
|
+
/**
|
|
927
|
+
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
928
|
+
* @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
929
|
+
* @param {*} [options] Override http request option.
|
|
930
|
+
* @throws {RequiredError}
|
|
931
|
+
*/
|
|
932
|
+
getOpenBookingJoinPrice(requestParameters, options) {
|
|
933
|
+
return localVarFp.getOpenBookingJoinPrice(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
934
|
+
},
|
|
765
935
|
/**
|
|
766
936
|
*
|
|
767
937
|
* @param {BookingsApiGetOpenBookingsRequest} requestParameters Request parameters.
|
|
@@ -807,6 +977,26 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
807
977
|
* @extends {BaseAPI}
|
|
808
978
|
*/
|
|
809
979
|
export class BookingsApi extends BaseAPI {
|
|
980
|
+
/**
|
|
981
|
+
* Créer une réservation en tant qu\'invité (guest)
|
|
982
|
+
* @param {BookingsApiCreateGuestBookingRequest} requestParameters Request parameters.
|
|
983
|
+
* @param {*} [options] Override http request option.
|
|
984
|
+
* @throws {RequiredError}
|
|
985
|
+
* @memberof BookingsApi
|
|
986
|
+
*/
|
|
987
|
+
createGuestBooking(requestParameters, options) {
|
|
988
|
+
return BookingsApiFp(this.configuration).createGuestBooking(requestParameters.createGuestBookingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
989
|
+
}
|
|
990
|
+
/**
|
|
991
|
+
* Estimer le prix pour rejoindre une réservation ouverte
|
|
992
|
+
* @param {BookingsApiEstimateOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
993
|
+
* @param {*} [options] Override http request option.
|
|
994
|
+
* @throws {RequiredError}
|
|
995
|
+
* @memberof BookingsApi
|
|
996
|
+
*/
|
|
997
|
+
estimateOpenBookingJoinPrice(requestParameters, options) {
|
|
998
|
+
return BookingsApiFp(this.configuration).estimateOpenBookingJoinPrice(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
|
|
999
|
+
}
|
|
810
1000
|
/**
|
|
811
1001
|
* Obtenir l\'historique d\'une réservation par ID
|
|
812
1002
|
* @param {BookingsApiGetBookingHistoryRequest} requestParameters Request parameters.
|
|
@@ -827,6 +1017,16 @@ export class BookingsApi extends BaseAPI {
|
|
|
827
1017
|
getBookingPrice(requestParameters, options) {
|
|
828
1018
|
return BookingsApiFp(this.configuration).getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(this.axios, this.basePath));
|
|
829
1019
|
}
|
|
1020
|
+
/**
|
|
1021
|
+
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
1022
|
+
* @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
1023
|
+
* @param {*} [options] Override http request option.
|
|
1024
|
+
* @throws {RequiredError}
|
|
1025
|
+
* @memberof BookingsApi
|
|
1026
|
+
*/
|
|
1027
|
+
getOpenBookingJoinPrice(requestParameters, options) {
|
|
1028
|
+
return BookingsApiFp(this.configuration).getOpenBookingJoinPrice(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
1029
|
+
}
|
|
830
1030
|
/**
|
|
831
1031
|
*
|
|
832
1032
|
* @param {BookingsApiGetOpenBookingsRequest} requestParameters Request parameters.
|
|
@@ -8663,6 +8863,41 @@ export const EventsApiAxiosParamCreator = function (configuration) {
|
|
|
8663
8863
|
options: localVarRequestOptions,
|
|
8664
8864
|
};
|
|
8665
8865
|
}),
|
|
8866
|
+
/**
|
|
8867
|
+
* Estimer le prix pour rejoindre un événement ouvert
|
|
8868
|
+
* @param {string} eventBookingId
|
|
8869
|
+
* @param {number} [creditToUseInCents]
|
|
8870
|
+
* @param {*} [options] Override http request option.
|
|
8871
|
+
* @throws {RequiredError}
|
|
8872
|
+
*/
|
|
8873
|
+
estimateOpenEventBookingJoinPrice: (eventBookingId_1, creditToUseInCents_1, ...args_1) => __awaiter(this, [eventBookingId_1, creditToUseInCents_1, ...args_1], void 0, function* (eventBookingId, creditToUseInCents, options = {}) {
|
|
8874
|
+
// verify required parameter 'eventBookingId' is not null or undefined
|
|
8875
|
+
assertParamExists('estimateOpenEventBookingJoinPrice', 'eventBookingId', eventBookingId);
|
|
8876
|
+
const localVarPath = `/api/events/{eventBookingId}/open/estimate`
|
|
8877
|
+
.replace(`{${"eventBookingId"}}`, encodeURIComponent(String(eventBookingId)));
|
|
8878
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8879
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8880
|
+
let baseOptions;
|
|
8881
|
+
if (configuration) {
|
|
8882
|
+
baseOptions = configuration.baseOptions;
|
|
8883
|
+
}
|
|
8884
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
8885
|
+
const localVarHeaderParameter = {};
|
|
8886
|
+
const localVarQueryParameter = {};
|
|
8887
|
+
// authentication bearerAuth required
|
|
8888
|
+
// http bearer authentication required
|
|
8889
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
8890
|
+
if (creditToUseInCents !== undefined) {
|
|
8891
|
+
localVarQueryParameter['creditToUseInCents'] = creditToUseInCents;
|
|
8892
|
+
}
|
|
8893
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8894
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8895
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8896
|
+
return {
|
|
8897
|
+
url: toPathString(localVarUrlObj),
|
|
8898
|
+
options: localVarRequestOptions,
|
|
8899
|
+
};
|
|
8900
|
+
}),
|
|
8666
8901
|
/**
|
|
8667
8902
|
* Get a specific event by ID
|
|
8668
8903
|
* @param {string} eventId
|
|
@@ -8695,6 +8930,37 @@ export const EventsApiAxiosParamCreator = function (configuration) {
|
|
|
8695
8930
|
options: localVarRequestOptions,
|
|
8696
8931
|
};
|
|
8697
8932
|
}),
|
|
8933
|
+
/**
|
|
8934
|
+
* Estimer simplement le prix à payer pour rejoindre un événement ouvert
|
|
8935
|
+
* @param {string} eventBookingId
|
|
8936
|
+
* @param {*} [options] Override http request option.
|
|
8937
|
+
* @throws {RequiredError}
|
|
8938
|
+
*/
|
|
8939
|
+
getOpenEventBookingJoinPrice: (eventBookingId_1, ...args_1) => __awaiter(this, [eventBookingId_1, ...args_1], void 0, function* (eventBookingId, options = {}) {
|
|
8940
|
+
// verify required parameter 'eventBookingId' is not null or undefined
|
|
8941
|
+
assertParamExists('getOpenEventBookingJoinPrice', 'eventBookingId', eventBookingId);
|
|
8942
|
+
const localVarPath = `/api/events/{eventBookingId}/open/join-price`
|
|
8943
|
+
.replace(`{${"eventBookingId"}}`, encodeURIComponent(String(eventBookingId)));
|
|
8944
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8945
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8946
|
+
let baseOptions;
|
|
8947
|
+
if (configuration) {
|
|
8948
|
+
baseOptions = configuration.baseOptions;
|
|
8949
|
+
}
|
|
8950
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
8951
|
+
const localVarHeaderParameter = {};
|
|
8952
|
+
const localVarQueryParameter = {};
|
|
8953
|
+
// authentication bearerAuth required
|
|
8954
|
+
// http bearer authentication required
|
|
8955
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
8956
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8957
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8958
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8959
|
+
return {
|
|
8960
|
+
url: toPathString(localVarUrlObj),
|
|
8961
|
+
options: localVarRequestOptions,
|
|
8962
|
+
};
|
|
8963
|
+
}),
|
|
8698
8964
|
/**
|
|
8699
8965
|
*
|
|
8700
8966
|
* @param {string} [clubId]
|
|
@@ -8942,6 +9208,22 @@ export const EventsApiFp = function (configuration) {
|
|
|
8942
9208
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8943
9209
|
});
|
|
8944
9210
|
},
|
|
9211
|
+
/**
|
|
9212
|
+
* Estimer le prix pour rejoindre un événement ouvert
|
|
9213
|
+
* @param {string} eventBookingId
|
|
9214
|
+
* @param {number} [creditToUseInCents]
|
|
9215
|
+
* @param {*} [options] Override http request option.
|
|
9216
|
+
* @throws {RequiredError}
|
|
9217
|
+
*/
|
|
9218
|
+
estimateOpenEventBookingJoinPrice(eventBookingId, creditToUseInCents, options) {
|
|
9219
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9220
|
+
var _a, _b, _c;
|
|
9221
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.estimateOpenEventBookingJoinPrice(eventBookingId, creditToUseInCents, options);
|
|
9222
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9223
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsApi.estimateOpenEventBookingJoinPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9224
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9225
|
+
});
|
|
9226
|
+
},
|
|
8945
9227
|
/**
|
|
8946
9228
|
* Get a specific event by ID
|
|
8947
9229
|
* @param {string} eventId
|
|
@@ -8958,6 +9240,21 @@ export const EventsApiFp = function (configuration) {
|
|
|
8958
9240
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8959
9241
|
});
|
|
8960
9242
|
},
|
|
9243
|
+
/**
|
|
9244
|
+
* Estimer simplement le prix à payer pour rejoindre un événement ouvert
|
|
9245
|
+
* @param {string} eventBookingId
|
|
9246
|
+
* @param {*} [options] Override http request option.
|
|
9247
|
+
* @throws {RequiredError}
|
|
9248
|
+
*/
|
|
9249
|
+
getOpenEventBookingJoinPrice(eventBookingId, options) {
|
|
9250
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9251
|
+
var _a, _b, _c;
|
|
9252
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenEventBookingJoinPrice(eventBookingId, options);
|
|
9253
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9254
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsApi.getOpenEventBookingJoinPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9255
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9256
|
+
});
|
|
9257
|
+
},
|
|
8961
9258
|
/**
|
|
8962
9259
|
*
|
|
8963
9260
|
* @param {string} [clubId]
|
|
@@ -9081,6 +9378,15 @@ export const EventsApiFactory = function (configuration, basePath, axios) {
|
|
|
9081
9378
|
estimateEventPrice(requestParameters, options) {
|
|
9082
9379
|
return localVarFp.estimateEventPrice(requestParameters.eventId, requestParameters.estimateEventPriceRequest, options).then((request) => request(axios, basePath));
|
|
9083
9380
|
},
|
|
9381
|
+
/**
|
|
9382
|
+
* Estimer le prix pour rejoindre un événement ouvert
|
|
9383
|
+
* @param {EventsApiEstimateOpenEventBookingJoinPriceRequest} requestParameters Request parameters.
|
|
9384
|
+
* @param {*} [options] Override http request option.
|
|
9385
|
+
* @throws {RequiredError}
|
|
9386
|
+
*/
|
|
9387
|
+
estimateOpenEventBookingJoinPrice(requestParameters, options) {
|
|
9388
|
+
return localVarFp.estimateOpenEventBookingJoinPrice(requestParameters.eventBookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
|
|
9389
|
+
},
|
|
9084
9390
|
/**
|
|
9085
9391
|
* Get a specific event by ID
|
|
9086
9392
|
* @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
|
|
@@ -9090,6 +9396,15 @@ export const EventsApiFactory = function (configuration, basePath, axios) {
|
|
|
9090
9396
|
getEventById(requestParameters, options) {
|
|
9091
9397
|
return localVarFp.getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
9092
9398
|
},
|
|
9399
|
+
/**
|
|
9400
|
+
* Estimer simplement le prix à payer pour rejoindre un événement ouvert
|
|
9401
|
+
* @param {EventsApiGetOpenEventBookingJoinPriceRequest} requestParameters Request parameters.
|
|
9402
|
+
* @param {*} [options] Override http request option.
|
|
9403
|
+
* @throws {RequiredError}
|
|
9404
|
+
*/
|
|
9405
|
+
getOpenEventBookingJoinPrice(requestParameters, options) {
|
|
9406
|
+
return localVarFp.getOpenEventBookingJoinPrice(requestParameters.eventBookingId, options).then((request) => request(axios, basePath));
|
|
9407
|
+
},
|
|
9093
9408
|
/**
|
|
9094
9409
|
*
|
|
9095
9410
|
* @param {EventsApiGetOpenEventBookingsRequest} requestParameters Request parameters.
|
|
@@ -9173,6 +9488,16 @@ export class EventsApi extends BaseAPI {
|
|
|
9173
9488
|
estimateEventPrice(requestParameters, options) {
|
|
9174
9489
|
return EventsApiFp(this.configuration).estimateEventPrice(requestParameters.eventId, requestParameters.estimateEventPriceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9175
9490
|
}
|
|
9491
|
+
/**
|
|
9492
|
+
* Estimer le prix pour rejoindre un événement ouvert
|
|
9493
|
+
* @param {EventsApiEstimateOpenEventBookingJoinPriceRequest} requestParameters Request parameters.
|
|
9494
|
+
* @param {*} [options] Override http request option.
|
|
9495
|
+
* @throws {RequiredError}
|
|
9496
|
+
* @memberof EventsApi
|
|
9497
|
+
*/
|
|
9498
|
+
estimateOpenEventBookingJoinPrice(requestParameters, options) {
|
|
9499
|
+
return EventsApiFp(this.configuration).estimateOpenEventBookingJoinPrice(requestParameters.eventBookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
|
|
9500
|
+
}
|
|
9176
9501
|
/**
|
|
9177
9502
|
* Get a specific event by ID
|
|
9178
9503
|
* @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
|
|
@@ -9183,6 +9508,16 @@ export class EventsApi extends BaseAPI {
|
|
|
9183
9508
|
getEventById(requestParameters, options) {
|
|
9184
9509
|
return EventsApiFp(this.configuration).getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
9185
9510
|
}
|
|
9511
|
+
/**
|
|
9512
|
+
* Estimer simplement le prix à payer pour rejoindre un événement ouvert
|
|
9513
|
+
* @param {EventsApiGetOpenEventBookingJoinPriceRequest} requestParameters Request parameters.
|
|
9514
|
+
* @param {*} [options] Override http request option.
|
|
9515
|
+
* @throws {RequiredError}
|
|
9516
|
+
* @memberof EventsApi
|
|
9517
|
+
*/
|
|
9518
|
+
getOpenEventBookingJoinPrice(requestParameters, options) {
|
|
9519
|
+
return EventsApiFp(this.configuration).getOpenEventBookingJoinPrice(requestParameters.eventBookingId, options).then((request) => request(this.axios, this.basePath));
|
|
9520
|
+
}
|
|
9186
9521
|
/**
|
|
9187
9522
|
*
|
|
9188
9523
|
* @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