@tennac-booking/sdk 1.0.151 → 1.0.152
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 -369
- package/README.md +3 -6
- package/api.ts +21 -128
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +20 -88
- package/dist/api.js +2 -65
- 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 +20 -88
- package/dist/esm/api.js +2 -65
- 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 +0 -53
- package/docs/ClubsApi.md +1 -1
- package/docs/CreateEventRequest.md +2 -2
- package/docs/EventResponse.md +1 -1
- package/docs/IUserAttributes.md +5 -5
- package/docs/StaffUserProfileResponse.md +5 -5
- package/docs/UserProfileResponse.md +5 -5
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/GetGuestBookingPrice200Response.md +0 -20
- package/docs/GetGuestBookingPriceRequest.md +0 -20
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.150
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -531,35 +531,6 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
531
531
|
options: localVarRequestOptions,
|
|
532
532
|
};
|
|
533
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
534
|
/**
|
|
564
535
|
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
565
536
|
* @param {string} bookingId
|
|
@@ -828,21 +799,6 @@ const BookingsApiFp = function (configuration) {
|
|
|
828
799
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
829
800
|
});
|
|
830
801
|
},
|
|
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
802
|
/**
|
|
847
803
|
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
848
804
|
* @param {string} bookingId
|
|
@@ -975,15 +931,6 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
975
931
|
getBookingPrice(requestParameters, options) {
|
|
976
932
|
return localVarFp.getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(axios, basePath));
|
|
977
933
|
},
|
|
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
934
|
/**
|
|
988
935
|
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
989
936
|
* @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
@@ -1079,16 +1026,6 @@ class BookingsApi extends base_1.BaseAPI {
|
|
|
1079
1026
|
getBookingPrice(requestParameters, options) {
|
|
1080
1027
|
return (0, exports.BookingsApiFp)(this.configuration).getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(this.axios, this.basePath));
|
|
1081
1028
|
}
|
|
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
1029
|
/**
|
|
1093
1030
|
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
1094
1031
|
* @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
@@ -6012,7 +5949,7 @@ const ClubsApiAxiosParamCreator = function (configuration) {
|
|
|
6012
5949
|
getPublicClubInfo: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
6013
5950
|
// verify required parameter 'clubId' is not null or undefined
|
|
6014
5951
|
(0, common_1.assertParamExists)('getPublicClubInfo', 'clubId', clubId);
|
|
6015
|
-
const localVarPath = `/api/clubs/{clubId}`
|
|
5952
|
+
const localVarPath = `/api/clubs/clubInfo/{clubId}`
|
|
6016
5953
|
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
6017
5954
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6018
5955
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
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
package/dist/esm/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* openapi.json
|
|
3
3
|
* Pandook API Documentation
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.150
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4068,10 +4068,10 @@ export interface CreateEventRequest {
|
|
|
4068
4068
|
'sponsors'?: Array<EventSponsor>;
|
|
4069
4069
|
/**
|
|
4070
4070
|
*
|
|
4071
|
-
* @type {
|
|
4071
|
+
* @type {number}
|
|
4072
4072
|
* @memberof CreateEventRequest
|
|
4073
4073
|
*/
|
|
4074
|
-
'
|
|
4074
|
+
'registrationOpenDaysBefore'?: number;
|
|
4075
4075
|
/**
|
|
4076
4076
|
*
|
|
4077
4077
|
* @type {string}
|
|
@@ -5313,10 +5313,10 @@ export interface EventResponse {
|
|
|
5313
5313
|
'sponsors'?: Array<EventSponsor>;
|
|
5314
5314
|
/**
|
|
5315
5315
|
*
|
|
5316
|
-
* @type {
|
|
5316
|
+
* @type {number}
|
|
5317
5317
|
* @memberof EventResponse
|
|
5318
5318
|
*/
|
|
5319
|
-
'registrationOpeningDate':
|
|
5319
|
+
'registrationOpeningDate': number;
|
|
5320
5320
|
/**
|
|
5321
5321
|
*
|
|
5322
5322
|
* @type {string}
|
|
@@ -5720,32 +5720,6 @@ export interface GetCourtsByClubAndSportById200Response {
|
|
|
5720
5720
|
*/
|
|
5721
5721
|
'courts': Array<ICourtData>;
|
|
5722
5722
|
}
|
|
5723
|
-
/**
|
|
5724
|
-
*
|
|
5725
|
-
* @export
|
|
5726
|
-
* @interface GetGuestBookingPrice200Response
|
|
5727
|
-
*/
|
|
5728
|
-
export interface GetGuestBookingPrice200Response {
|
|
5729
|
-
/**
|
|
5730
|
-
*
|
|
5731
|
-
* @type {number}
|
|
5732
|
-
* @memberof GetGuestBookingPrice200Response
|
|
5733
|
-
*/
|
|
5734
|
-
'totalPrice': number;
|
|
5735
|
-
}
|
|
5736
|
-
/**
|
|
5737
|
-
*
|
|
5738
|
-
* @export
|
|
5739
|
-
* @interface GetGuestBookingPriceRequest
|
|
5740
|
-
*/
|
|
5741
|
-
export interface GetGuestBookingPriceRequest {
|
|
5742
|
-
/**
|
|
5743
|
-
*
|
|
5744
|
-
* @type {Array<string>}
|
|
5745
|
-
* @memberof GetGuestBookingPriceRequest
|
|
5746
|
-
*/
|
|
5747
|
-
'slotIds': Array<string>;
|
|
5748
|
-
}
|
|
5749
5723
|
/**
|
|
5750
5724
|
*
|
|
5751
5725
|
* @export
|
|
@@ -6129,7 +6103,7 @@ export interface IUserAttributes {
|
|
|
6129
6103
|
* @type {boolean}
|
|
6130
6104
|
* @memberof IUserAttributes
|
|
6131
6105
|
*/
|
|
6132
|
-
'isAccountVerified'
|
|
6106
|
+
'isAccountVerified': boolean;
|
|
6133
6107
|
/**
|
|
6134
6108
|
*
|
|
6135
6109
|
* @type {Array<ILevelBySports>}
|
|
@@ -6207,7 +6181,7 @@ export interface IUserAttributes {
|
|
|
6207
6181
|
* @type {boolean}
|
|
6208
6182
|
* @memberof IUserAttributes
|
|
6209
6183
|
*/
|
|
6210
|
-
'isAdmin'
|
|
6184
|
+
'isAdmin': boolean;
|
|
6211
6185
|
/**
|
|
6212
6186
|
*
|
|
6213
6187
|
* @type {boolean}
|
|
@@ -6219,13 +6193,13 @@ export interface IUserAttributes {
|
|
|
6219
6193
|
* @type {string}
|
|
6220
6194
|
* @memberof IUserAttributes
|
|
6221
6195
|
*/
|
|
6222
|
-
'createdAt'
|
|
6196
|
+
'createdAt': string;
|
|
6223
6197
|
/**
|
|
6224
6198
|
*
|
|
6225
6199
|
* @type {string}
|
|
6226
6200
|
* @memberof IUserAttributes
|
|
6227
6201
|
*/
|
|
6228
|
-
'updatedAt'
|
|
6202
|
+
'updatedAt': string;
|
|
6229
6203
|
/**
|
|
6230
6204
|
*
|
|
6231
6205
|
* @type {boolean}
|
|
@@ -6249,7 +6223,7 @@ export interface IUserAttributes {
|
|
|
6249
6223
|
* @type {boolean}
|
|
6250
6224
|
* @memberof IUserAttributes
|
|
6251
6225
|
*/
|
|
6252
|
-
'isProfileVisible'
|
|
6226
|
+
'isProfileVisible': boolean;
|
|
6253
6227
|
/**
|
|
6254
6228
|
*
|
|
6255
6229
|
* @type {Array<string>}
|
|
@@ -9754,7 +9728,7 @@ export interface StaffUserProfileResponse {
|
|
|
9754
9728
|
* @type {boolean}
|
|
9755
9729
|
* @memberof StaffUserProfileResponse
|
|
9756
9730
|
*/
|
|
9757
|
-
'isAccountVerified'
|
|
9731
|
+
'isAccountVerified': boolean;
|
|
9758
9732
|
/**
|
|
9759
9733
|
*
|
|
9760
9734
|
* @type {Array<ILevelBySports>}
|
|
@@ -9832,7 +9806,7 @@ export interface StaffUserProfileResponse {
|
|
|
9832
9806
|
* @type {boolean}
|
|
9833
9807
|
* @memberof StaffUserProfileResponse
|
|
9834
9808
|
*/
|
|
9835
|
-
'isAdmin'
|
|
9809
|
+
'isAdmin': boolean;
|
|
9836
9810
|
/**
|
|
9837
9811
|
*
|
|
9838
9812
|
* @type {boolean}
|
|
@@ -9844,13 +9818,13 @@ export interface StaffUserProfileResponse {
|
|
|
9844
9818
|
* @type {string}
|
|
9845
9819
|
* @memberof StaffUserProfileResponse
|
|
9846
9820
|
*/
|
|
9847
|
-
'createdAt'
|
|
9821
|
+
'createdAt': string;
|
|
9848
9822
|
/**
|
|
9849
9823
|
*
|
|
9850
9824
|
* @type {string}
|
|
9851
9825
|
* @memberof StaffUserProfileResponse
|
|
9852
9826
|
*/
|
|
9853
|
-
'updatedAt'
|
|
9827
|
+
'updatedAt': string;
|
|
9854
9828
|
/**
|
|
9855
9829
|
*
|
|
9856
9830
|
* @type {boolean}
|
|
@@ -9874,7 +9848,7 @@ export interface StaffUserProfileResponse {
|
|
|
9874
9848
|
* @type {boolean}
|
|
9875
9849
|
* @memberof StaffUserProfileResponse
|
|
9876
9850
|
*/
|
|
9877
|
-
'isProfileVisible'
|
|
9851
|
+
'isProfileVisible': boolean;
|
|
9878
9852
|
/**
|
|
9879
9853
|
*
|
|
9880
9854
|
* @type {Array<string>}
|
|
@@ -11789,7 +11763,7 @@ export interface UserProfileResponse {
|
|
|
11789
11763
|
* @type {boolean}
|
|
11790
11764
|
* @memberof UserProfileResponse
|
|
11791
11765
|
*/
|
|
11792
|
-
'isAccountVerified'
|
|
11766
|
+
'isAccountVerified': boolean;
|
|
11793
11767
|
/**
|
|
11794
11768
|
*
|
|
11795
11769
|
* @type {Array<ILevelBySports>}
|
|
@@ -11867,7 +11841,7 @@ export interface UserProfileResponse {
|
|
|
11867
11841
|
* @type {boolean}
|
|
11868
11842
|
* @memberof UserProfileResponse
|
|
11869
11843
|
*/
|
|
11870
|
-
'isAdmin'
|
|
11844
|
+
'isAdmin': boolean;
|
|
11871
11845
|
/**
|
|
11872
11846
|
*
|
|
11873
11847
|
* @type {boolean}
|
|
@@ -11879,13 +11853,13 @@ export interface UserProfileResponse {
|
|
|
11879
11853
|
* @type {string}
|
|
11880
11854
|
* @memberof UserProfileResponse
|
|
11881
11855
|
*/
|
|
11882
|
-
'createdAt'
|
|
11856
|
+
'createdAt': string;
|
|
11883
11857
|
/**
|
|
11884
11858
|
*
|
|
11885
11859
|
* @type {string}
|
|
11886
11860
|
* @memberof UserProfileResponse
|
|
11887
11861
|
*/
|
|
11888
|
-
'updatedAt'
|
|
11862
|
+
'updatedAt': string;
|
|
11889
11863
|
/**
|
|
11890
11864
|
*
|
|
11891
11865
|
* @type {boolean}
|
|
@@ -11909,7 +11883,7 @@ export interface UserProfileResponse {
|
|
|
11909
11883
|
* @type {boolean}
|
|
11910
11884
|
* @memberof UserProfileResponse
|
|
11911
11885
|
*/
|
|
11912
|
-
'isProfileVisible'
|
|
11886
|
+
'isProfileVisible': boolean;
|
|
11913
11887
|
/**
|
|
11914
11888
|
*
|
|
11915
11889
|
* @type {Array<string>}
|
|
@@ -12150,13 +12124,6 @@ export declare const BookingsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
12150
12124
|
* @throws {RequiredError}
|
|
12151
12125
|
*/
|
|
12152
12126
|
getBookingPrice: (bookingPriceBody: BookingPriceBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
12153
|
-
/**
|
|
12154
|
-
* Calculer le prix d\'une réservation pour un invité (sans authentification)
|
|
12155
|
-
* @param {GetGuestBookingPriceRequest} getGuestBookingPriceRequest
|
|
12156
|
-
* @param {*} [options] Override http request option.
|
|
12157
|
-
* @throws {RequiredError}
|
|
12158
|
-
*/
|
|
12159
|
-
getGuestBookingPrice: (getGuestBookingPriceRequest: GetGuestBookingPriceRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
12160
12127
|
/**
|
|
12161
12128
|
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
12162
12129
|
* @param {string} bookingId
|
|
@@ -12238,13 +12205,6 @@ export declare const BookingsApiFp: (configuration?: Configuration) => {
|
|
|
12238
12205
|
* @throws {RequiredError}
|
|
12239
12206
|
*/
|
|
12240
12207
|
getBookingPrice(bookingPriceBody: BookingPriceBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingPriceResponse>>;
|
|
12241
|
-
/**
|
|
12242
|
-
* Calculer le prix d\'une réservation pour un invité (sans authentification)
|
|
12243
|
-
* @param {GetGuestBookingPriceRequest} getGuestBookingPriceRequest
|
|
12244
|
-
* @param {*} [options] Override http request option.
|
|
12245
|
-
* @throws {RequiredError}
|
|
12246
|
-
*/
|
|
12247
|
-
getGuestBookingPrice(getGuestBookingPriceRequest: GetGuestBookingPriceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetGuestBookingPrice200Response>>;
|
|
12248
12208
|
/**
|
|
12249
12209
|
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
12250
12210
|
* @param {string} bookingId
|
|
@@ -12325,13 +12285,6 @@ export declare const BookingsApiFactory: (configuration?: Configuration, basePat
|
|
|
12325
12285
|
* @throws {RequiredError}
|
|
12326
12286
|
*/
|
|
12327
12287
|
getBookingPrice(requestParameters: BookingsApiGetBookingPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingPriceResponse>;
|
|
12328
|
-
/**
|
|
12329
|
-
* Calculer le prix d\'une réservation pour un invité (sans authentification)
|
|
12330
|
-
* @param {BookingsApiGetGuestBookingPriceRequest} requestParameters Request parameters.
|
|
12331
|
-
* @param {*} [options] Override http request option.
|
|
12332
|
-
* @throws {RequiredError}
|
|
12333
|
-
*/
|
|
12334
|
-
getGuestBookingPrice(requestParameters: BookingsApiGetGuestBookingPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetGuestBookingPrice200Response>;
|
|
12335
12288
|
/**
|
|
12336
12289
|
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
12337
12290
|
* @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
@@ -12426,19 +12379,6 @@ export interface BookingsApiGetBookingPriceRequest {
|
|
|
12426
12379
|
*/
|
|
12427
12380
|
readonly bookingPriceBody: BookingPriceBody;
|
|
12428
12381
|
}
|
|
12429
|
-
/**
|
|
12430
|
-
* Request parameters for getGuestBookingPrice operation in BookingsApi.
|
|
12431
|
-
* @export
|
|
12432
|
-
* @interface BookingsApiGetGuestBookingPriceRequest
|
|
12433
|
-
*/
|
|
12434
|
-
export interface BookingsApiGetGuestBookingPriceRequest {
|
|
12435
|
-
/**
|
|
12436
|
-
*
|
|
12437
|
-
* @type {GetGuestBookingPriceRequest}
|
|
12438
|
-
* @memberof BookingsApiGetGuestBookingPrice
|
|
12439
|
-
*/
|
|
12440
|
-
readonly getGuestBookingPriceRequest: GetGuestBookingPriceRequest;
|
|
12441
|
-
}
|
|
12442
12382
|
/**
|
|
12443
12383
|
* Request parameters for getOpenBookingJoinPrice operation in BookingsApi.
|
|
12444
12384
|
* @export
|
|
@@ -12609,14 +12549,6 @@ export declare class BookingsApi extends BaseAPI {
|
|
|
12609
12549
|
* @memberof BookingsApi
|
|
12610
12550
|
*/
|
|
12611
12551
|
getBookingPrice(requestParameters: BookingsApiGetBookingPriceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BookingPriceResponse, any, {}>>;
|
|
12612
|
-
/**
|
|
12613
|
-
* Calculer le prix d\'une réservation pour un invité (sans authentification)
|
|
12614
|
-
* @param {BookingsApiGetGuestBookingPriceRequest} requestParameters Request parameters.
|
|
12615
|
-
* @param {*} [options] Override http request option.
|
|
12616
|
-
* @throws {RequiredError}
|
|
12617
|
-
* @memberof BookingsApi
|
|
12618
|
-
*/
|
|
12619
|
-
getGuestBookingPrice(requestParameters: BookingsApiGetGuestBookingPriceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetGuestBookingPrice200Response, any, {}>>;
|
|
12620
12552
|
/**
|
|
12621
12553
|
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
12622
12554
|
* @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
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).
|
|
@@ -525,35 +525,6 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
525
525
|
options: localVarRequestOptions,
|
|
526
526
|
};
|
|
527
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
528
|
/**
|
|
558
529
|
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
559
530
|
* @param {string} bookingId
|
|
@@ -821,21 +792,6 @@ export const BookingsApiFp = function (configuration) {
|
|
|
821
792
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
822
793
|
});
|
|
823
794
|
},
|
|
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
795
|
/**
|
|
840
796
|
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
841
797
|
* @param {string} bookingId
|
|
@@ -967,15 +923,6 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
967
923
|
getBookingPrice(requestParameters, options) {
|
|
968
924
|
return localVarFp.getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(axios, basePath));
|
|
969
925
|
},
|
|
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
926
|
/**
|
|
980
927
|
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
981
928
|
* @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
@@ -1070,16 +1017,6 @@ export class BookingsApi extends BaseAPI {
|
|
|
1070
1017
|
getBookingPrice(requestParameters, options) {
|
|
1071
1018
|
return BookingsApiFp(this.configuration).getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(this.axios, this.basePath));
|
|
1072
1019
|
}
|
|
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
1020
|
/**
|
|
1084
1021
|
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
1085
1022
|
* @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
@@ -5954,7 +5891,7 @@ export const ClubsApiAxiosParamCreator = function (configuration) {
|
|
|
5954
5891
|
getPublicClubInfo: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
5955
5892
|
// verify required parameter 'clubId' is not null or undefined
|
|
5956
5893
|
assertParamExists('getPublicClubInfo', 'clubId', clubId);
|
|
5957
|
-
const localVarPath = `/api/clubs/{clubId}`
|
|
5894
|
+
const localVarPath = `/api/clubs/clubInfo/{clubId}`
|
|
5958
5895
|
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
5959
5896
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5960
5897
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
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