@tennac-booking/sdk 1.0.175 → 1.0.177
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 +409 -398
- package/README.md +18 -3
- package/api.ts +843 -19
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +656 -9
- package/dist/api.js +273 -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 +656 -9
- package/dist/esm/api.js +273 -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/BookingPlayerInfo.md +26 -0
- package/docs/BookingPopulated.md +2 -0
- package/docs/BookingSummary.md +12 -0
- package/docs/BookingsApi.md +57 -2
- package/docs/BookingsUserApi.md +109 -0
- package/docs/CreateOpenBookingRequest.md +6 -0
- package/docs/GetOpenBookingPrice200Response.md +24 -0
- package/docs/GetOpenBookingPriceRequest.md +26 -0
- package/docs/JoinPriceEstimateResponse.md +38 -0
- package/docs/JoinPriceEstimateResponseSubscriptionInfo.md +25 -0
- package/docs/OpenBookingInfo.md +50 -0
- package/docs/OpenBookingPlayerInfo.md +26 -0
- package/docs/OpenBookingSlotInfo.md +24 -0
- package/docs/OpenBookingSportInfo.md +24 -0
- package/docs/{GetOpenBookings200Response.md → OpenBookingsResponse.md} +4 -4
- package/docs/UpdateOpenBooking200Response.md +22 -0
- package/docs/UpdateOpenBookingRequest.md +22 -0
- package/docs/UsersApi.md +55 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* openapi.json
|
|
6
6
|
* Pandook API Documentation
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.
|
|
8
|
+
* The version of the OpenAPI document: 1.0.177
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -592,6 +592,41 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
592
592
|
options: localVarRequestOptions,
|
|
593
593
|
};
|
|
594
594
|
}),
|
|
595
|
+
/**
|
|
596
|
+
* Estimation complète du prix pour rejoindre une réservation ouverte Retourne tous les détails: prix de base, réductions, crédits disponibles, et prix final
|
|
597
|
+
* @param {string} bookingId
|
|
598
|
+
* @param {number} [creditToUseInCents]
|
|
599
|
+
* @param {*} [options] Override http request option.
|
|
600
|
+
* @throws {RequiredError}
|
|
601
|
+
*/
|
|
602
|
+
getJoinPriceEstimate: (bookingId_1, creditToUseInCents_1, ...args_1) => __awaiter(this, [bookingId_1, creditToUseInCents_1, ...args_1], void 0, function* (bookingId, creditToUseInCents, options = {}) {
|
|
603
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
604
|
+
(0, common_1.assertParamExists)('getJoinPriceEstimate', 'bookingId', bookingId);
|
|
605
|
+
const localVarPath = `/api/bookings/{bookingId}/join-price-estimate`
|
|
606
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
607
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
608
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
609
|
+
let baseOptions;
|
|
610
|
+
if (configuration) {
|
|
611
|
+
baseOptions = configuration.baseOptions;
|
|
612
|
+
}
|
|
613
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
614
|
+
const localVarHeaderParameter = {};
|
|
615
|
+
const localVarQueryParameter = {};
|
|
616
|
+
// authentication bearerAuth required
|
|
617
|
+
// http bearer authentication required
|
|
618
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
619
|
+
if (creditToUseInCents !== undefined) {
|
|
620
|
+
localVarQueryParameter['creditToUseInCents'] = creditToUseInCents;
|
|
621
|
+
}
|
|
622
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
623
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
624
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
625
|
+
return {
|
|
626
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
627
|
+
options: localVarRequestOptions,
|
|
628
|
+
};
|
|
629
|
+
}),
|
|
595
630
|
/**
|
|
596
631
|
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
597
632
|
* @param {string} bookingId
|
|
@@ -875,6 +910,22 @@ const BookingsApiFp = function (configuration) {
|
|
|
875
910
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
876
911
|
});
|
|
877
912
|
},
|
|
913
|
+
/**
|
|
914
|
+
* Estimation complète du prix pour rejoindre une réservation ouverte Retourne tous les détails: prix de base, réductions, crédits disponibles, et prix final
|
|
915
|
+
* @param {string} bookingId
|
|
916
|
+
* @param {number} [creditToUseInCents]
|
|
917
|
+
* @param {*} [options] Override http request option.
|
|
918
|
+
* @throws {RequiredError}
|
|
919
|
+
*/
|
|
920
|
+
getJoinPriceEstimate(bookingId, creditToUseInCents, options) {
|
|
921
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
922
|
+
var _a, _b, _c;
|
|
923
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getJoinPriceEstimate(bookingId, creditToUseInCents, options);
|
|
924
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
925
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.getJoinPriceEstimate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
926
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
927
|
+
});
|
|
928
|
+
},
|
|
878
929
|
/**
|
|
879
930
|
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
880
931
|
* @param {string} bookingId
|
|
@@ -1016,6 +1067,15 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
1016
1067
|
getGuestBookingPrice(requestParameters, options) {
|
|
1017
1068
|
return localVarFp.getGuestBookingPrice(requestParameters.getGuestBookingPriceRequest, options).then((request) => request(axios, basePath));
|
|
1018
1069
|
},
|
|
1070
|
+
/**
|
|
1071
|
+
* Estimation complète du prix pour rejoindre une réservation ouverte Retourne tous les détails: prix de base, réductions, crédits disponibles, et prix final
|
|
1072
|
+
* @param {BookingsApiGetJoinPriceEstimateRequest} requestParameters Request parameters.
|
|
1073
|
+
* @param {*} [options] Override http request option.
|
|
1074
|
+
* @throws {RequiredError}
|
|
1075
|
+
*/
|
|
1076
|
+
getJoinPriceEstimate(requestParameters, options) {
|
|
1077
|
+
return localVarFp.getJoinPriceEstimate(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
|
|
1078
|
+
},
|
|
1019
1079
|
/**
|
|
1020
1080
|
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
1021
1081
|
* @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
@@ -1121,6 +1181,16 @@ class BookingsApi extends base_1.BaseAPI {
|
|
|
1121
1181
|
getGuestBookingPrice(requestParameters, options) {
|
|
1122
1182
|
return (0, exports.BookingsApiFp)(this.configuration).getGuestBookingPrice(requestParameters.getGuestBookingPriceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1123
1183
|
}
|
|
1184
|
+
/**
|
|
1185
|
+
* Estimation complète du prix pour rejoindre une réservation ouverte Retourne tous les détails: prix de base, réductions, crédits disponibles, et prix final
|
|
1186
|
+
* @param {BookingsApiGetJoinPriceEstimateRequest} requestParameters Request parameters.
|
|
1187
|
+
* @param {*} [options] Override http request option.
|
|
1188
|
+
* @throws {RequiredError}
|
|
1189
|
+
* @memberof BookingsApi
|
|
1190
|
+
*/
|
|
1191
|
+
getJoinPriceEstimate(requestParameters, options) {
|
|
1192
|
+
return (0, exports.BookingsApiFp)(this.configuration).getJoinPriceEstimate(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
|
|
1193
|
+
}
|
|
1124
1194
|
/**
|
|
1125
1195
|
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
1126
1196
|
* @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
@@ -2033,6 +2103,74 @@ const BookingsUserApiAxiosParamCreator = function (configuration) {
|
|
|
2033
2103
|
options: localVarRequestOptions,
|
|
2034
2104
|
};
|
|
2035
2105
|
}),
|
|
2106
|
+
/**
|
|
2107
|
+
* Calculer le prix d\'une réservation ouverte avec joueurs initiaux
|
|
2108
|
+
* @param {GetOpenBookingPriceRequest} getOpenBookingPriceRequest
|
|
2109
|
+
* @param {*} [options] Override http request option.
|
|
2110
|
+
* @throws {RequiredError}
|
|
2111
|
+
*/
|
|
2112
|
+
getOpenBookingPrice: (getOpenBookingPriceRequest_1, ...args_1) => __awaiter(this, [getOpenBookingPriceRequest_1, ...args_1], void 0, function* (getOpenBookingPriceRequest, options = {}) {
|
|
2113
|
+
// verify required parameter 'getOpenBookingPriceRequest' is not null or undefined
|
|
2114
|
+
(0, common_1.assertParamExists)('getOpenBookingPrice', 'getOpenBookingPriceRequest', getOpenBookingPriceRequest);
|
|
2115
|
+
const localVarPath = `/api/bookings/open/booking-price`;
|
|
2116
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2117
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2118
|
+
let baseOptions;
|
|
2119
|
+
if (configuration) {
|
|
2120
|
+
baseOptions = configuration.baseOptions;
|
|
2121
|
+
}
|
|
2122
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2123
|
+
const localVarHeaderParameter = {};
|
|
2124
|
+
const localVarQueryParameter = {};
|
|
2125
|
+
// authentication bearerAuth required
|
|
2126
|
+
// http bearer authentication required
|
|
2127
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2128
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2129
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2130
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2131
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2132
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(getOpenBookingPriceRequest, localVarRequestOptions, configuration);
|
|
2133
|
+
return {
|
|
2134
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2135
|
+
options: localVarRequestOptions,
|
|
2136
|
+
};
|
|
2137
|
+
}),
|
|
2138
|
+
/**
|
|
2139
|
+
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
2140
|
+
* @param {string} bookingId
|
|
2141
|
+
* @param {UpdateOpenBookingRequest} updateOpenBookingRequest
|
|
2142
|
+
* @param {*} [options] Override http request option.
|
|
2143
|
+
* @throws {RequiredError}
|
|
2144
|
+
*/
|
|
2145
|
+
updateOpenBooking: (bookingId_1, updateOpenBookingRequest_1, ...args_1) => __awaiter(this, [bookingId_1, updateOpenBookingRequest_1, ...args_1], void 0, function* (bookingId, updateOpenBookingRequest, options = {}) {
|
|
2146
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
2147
|
+
(0, common_1.assertParamExists)('updateOpenBooking', 'bookingId', bookingId);
|
|
2148
|
+
// verify required parameter 'updateOpenBookingRequest' is not null or undefined
|
|
2149
|
+
(0, common_1.assertParamExists)('updateOpenBooking', 'updateOpenBookingRequest', updateOpenBookingRequest);
|
|
2150
|
+
const localVarPath = `/api/bookings/{bookingId}/open`
|
|
2151
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
2152
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2153
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2154
|
+
let baseOptions;
|
|
2155
|
+
if (configuration) {
|
|
2156
|
+
baseOptions = configuration.baseOptions;
|
|
2157
|
+
}
|
|
2158
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
2159
|
+
const localVarHeaderParameter = {};
|
|
2160
|
+
const localVarQueryParameter = {};
|
|
2161
|
+
// authentication bearerAuth required
|
|
2162
|
+
// http bearer authentication required
|
|
2163
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2164
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2165
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2166
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2167
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2168
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateOpenBookingRequest, localVarRequestOptions, configuration);
|
|
2169
|
+
return {
|
|
2170
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2171
|
+
options: localVarRequestOptions,
|
|
2172
|
+
};
|
|
2173
|
+
}),
|
|
2036
2174
|
};
|
|
2037
2175
|
};
|
|
2038
2176
|
exports.BookingsUserApiAxiosParamCreator = BookingsUserApiAxiosParamCreator;
|
|
@@ -2088,6 +2226,37 @@ const BookingsUserApiFp = function (configuration) {
|
|
|
2088
2226
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2089
2227
|
});
|
|
2090
2228
|
},
|
|
2229
|
+
/**
|
|
2230
|
+
* Calculer le prix d\'une réservation ouverte avec joueurs initiaux
|
|
2231
|
+
* @param {GetOpenBookingPriceRequest} getOpenBookingPriceRequest
|
|
2232
|
+
* @param {*} [options] Override http request option.
|
|
2233
|
+
* @throws {RequiredError}
|
|
2234
|
+
*/
|
|
2235
|
+
getOpenBookingPrice(getOpenBookingPriceRequest, options) {
|
|
2236
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2237
|
+
var _a, _b, _c;
|
|
2238
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenBookingPrice(getOpenBookingPriceRequest, options);
|
|
2239
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2240
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsUserApi.getOpenBookingPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2241
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2242
|
+
});
|
|
2243
|
+
},
|
|
2244
|
+
/**
|
|
2245
|
+
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
2246
|
+
* @param {string} bookingId
|
|
2247
|
+
* @param {UpdateOpenBookingRequest} updateOpenBookingRequest
|
|
2248
|
+
* @param {*} [options] Override http request option.
|
|
2249
|
+
* @throws {RequiredError}
|
|
2250
|
+
*/
|
|
2251
|
+
updateOpenBooking(bookingId, updateOpenBookingRequest, options) {
|
|
2252
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2253
|
+
var _a, _b, _c;
|
|
2254
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateOpenBooking(bookingId, updateOpenBookingRequest, options);
|
|
2255
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2256
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsUserApi.updateOpenBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2257
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2258
|
+
});
|
|
2259
|
+
},
|
|
2091
2260
|
};
|
|
2092
2261
|
};
|
|
2093
2262
|
exports.BookingsUserApiFp = BookingsUserApiFp;
|
|
@@ -2125,6 +2294,24 @@ const BookingsUserApiFactory = function (configuration, basePath, axios) {
|
|
|
2125
2294
|
createOpenBooking(requestParameters, options) {
|
|
2126
2295
|
return localVarFp.createOpenBooking(requestParameters.createOpenBookingRequest, options).then((request) => request(axios, basePath));
|
|
2127
2296
|
},
|
|
2297
|
+
/**
|
|
2298
|
+
* Calculer le prix d\'une réservation ouverte avec joueurs initiaux
|
|
2299
|
+
* @param {BookingsUserApiGetOpenBookingPriceRequest} requestParameters Request parameters.
|
|
2300
|
+
* @param {*} [options] Override http request option.
|
|
2301
|
+
* @throws {RequiredError}
|
|
2302
|
+
*/
|
|
2303
|
+
getOpenBookingPrice(requestParameters, options) {
|
|
2304
|
+
return localVarFp.getOpenBookingPrice(requestParameters.getOpenBookingPriceRequest, options).then((request) => request(axios, basePath));
|
|
2305
|
+
},
|
|
2306
|
+
/**
|
|
2307
|
+
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
2308
|
+
* @param {BookingsUserApiUpdateOpenBookingRequest} requestParameters Request parameters.
|
|
2309
|
+
* @param {*} [options] Override http request option.
|
|
2310
|
+
* @throws {RequiredError}
|
|
2311
|
+
*/
|
|
2312
|
+
updateOpenBooking(requestParameters, options) {
|
|
2313
|
+
return localVarFp.updateOpenBooking(requestParameters.bookingId, requestParameters.updateOpenBookingRequest, options).then((request) => request(axios, basePath));
|
|
2314
|
+
},
|
|
2128
2315
|
};
|
|
2129
2316
|
};
|
|
2130
2317
|
exports.BookingsUserApiFactory = BookingsUserApiFactory;
|
|
@@ -2165,6 +2352,26 @@ class BookingsUserApi extends base_1.BaseAPI {
|
|
|
2165
2352
|
createOpenBooking(requestParameters, options) {
|
|
2166
2353
|
return (0, exports.BookingsUserApiFp)(this.configuration).createOpenBooking(requestParameters.createOpenBookingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2167
2354
|
}
|
|
2355
|
+
/**
|
|
2356
|
+
* Calculer le prix d\'une réservation ouverte avec joueurs initiaux
|
|
2357
|
+
* @param {BookingsUserApiGetOpenBookingPriceRequest} requestParameters Request parameters.
|
|
2358
|
+
* @param {*} [options] Override http request option.
|
|
2359
|
+
* @throws {RequiredError}
|
|
2360
|
+
* @memberof BookingsUserApi
|
|
2361
|
+
*/
|
|
2362
|
+
getOpenBookingPrice(requestParameters, options) {
|
|
2363
|
+
return (0, exports.BookingsUserApiFp)(this.configuration).getOpenBookingPrice(requestParameters.getOpenBookingPriceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2364
|
+
}
|
|
2365
|
+
/**
|
|
2366
|
+
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
2367
|
+
* @param {BookingsUserApiUpdateOpenBookingRequest} requestParameters Request parameters.
|
|
2368
|
+
* @param {*} [options] Override http request option.
|
|
2369
|
+
* @throws {RequiredError}
|
|
2370
|
+
* @memberof BookingsUserApi
|
|
2371
|
+
*/
|
|
2372
|
+
updateOpenBooking(requestParameters, options) {
|
|
2373
|
+
return (0, exports.BookingsUserApiFp)(this.configuration).updateOpenBooking(requestParameters.bookingId, requestParameters.updateOpenBookingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2374
|
+
}
|
|
2168
2375
|
}
|
|
2169
2376
|
exports.BookingsUserApi = BookingsUserApi;
|
|
2170
2377
|
/**
|
|
@@ -13412,6 +13619,37 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
13412
13619
|
options: localVarRequestOptions,
|
|
13413
13620
|
};
|
|
13414
13621
|
}),
|
|
13622
|
+
/**
|
|
13623
|
+
* Quitter une réservation
|
|
13624
|
+
* @param {string} bookingId
|
|
13625
|
+
* @param {*} [options] Override http request option.
|
|
13626
|
+
* @throws {RequiredError}
|
|
13627
|
+
*/
|
|
13628
|
+
leaveBooking: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
|
|
13629
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
13630
|
+
(0, common_1.assertParamExists)('leaveBooking', 'bookingId', bookingId);
|
|
13631
|
+
const localVarPath = `/api/users/me/bookings/{bookingId}/leave`
|
|
13632
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
13633
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13634
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13635
|
+
let baseOptions;
|
|
13636
|
+
if (configuration) {
|
|
13637
|
+
baseOptions = configuration.baseOptions;
|
|
13638
|
+
}
|
|
13639
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
13640
|
+
const localVarHeaderParameter = {};
|
|
13641
|
+
const localVarQueryParameter = {};
|
|
13642
|
+
// authentication bearerAuth required
|
|
13643
|
+
// http bearer authentication required
|
|
13644
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13645
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13646
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13647
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13648
|
+
return {
|
|
13649
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13650
|
+
options: localVarRequestOptions,
|
|
13651
|
+
};
|
|
13652
|
+
}),
|
|
13415
13653
|
/**
|
|
13416
13654
|
*
|
|
13417
13655
|
* @param {PlayerCategoryId} [category]
|
|
@@ -14345,6 +14583,21 @@ const UsersApiFp = function (configuration) {
|
|
|
14345
14583
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14346
14584
|
});
|
|
14347
14585
|
},
|
|
14586
|
+
/**
|
|
14587
|
+
* Quitter une réservation
|
|
14588
|
+
* @param {string} bookingId
|
|
14589
|
+
* @param {*} [options] Override http request option.
|
|
14590
|
+
* @throws {RequiredError}
|
|
14591
|
+
*/
|
|
14592
|
+
leaveBooking(bookingId, options) {
|
|
14593
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14594
|
+
var _a, _b, _c;
|
|
14595
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.leaveBooking(bookingId, options);
|
|
14596
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14597
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.leaveBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14598
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14599
|
+
});
|
|
14600
|
+
},
|
|
14348
14601
|
/**
|
|
14349
14602
|
*
|
|
14350
14603
|
* @param {PlayerCategoryId} [category]
|
|
@@ -14829,6 +15082,15 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
14829
15082
|
getUserProfileById(requestParameters, options) {
|
|
14830
15083
|
return localVarFp.getUserProfileById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
14831
15084
|
},
|
|
15085
|
+
/**
|
|
15086
|
+
* Quitter une réservation
|
|
15087
|
+
* @param {UsersApiLeaveBookingRequest} requestParameters Request parameters.
|
|
15088
|
+
* @param {*} [options] Override http request option.
|
|
15089
|
+
* @throws {RequiredError}
|
|
15090
|
+
*/
|
|
15091
|
+
leaveBooking(requestParameters, options) {
|
|
15092
|
+
return localVarFp.leaveBooking(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
15093
|
+
},
|
|
14832
15094
|
/**
|
|
14833
15095
|
*
|
|
14834
15096
|
* @param {UsersApiListPlayersRequest} requestParameters Request parameters.
|
|
@@ -15211,6 +15473,16 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
15211
15473
|
getUserProfileById(requestParameters, options) {
|
|
15212
15474
|
return (0, exports.UsersApiFp)(this.configuration).getUserProfileById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
15213
15475
|
}
|
|
15476
|
+
/**
|
|
15477
|
+
* Quitter une réservation
|
|
15478
|
+
* @param {UsersApiLeaveBookingRequest} requestParameters Request parameters.
|
|
15479
|
+
* @param {*} [options] Override http request option.
|
|
15480
|
+
* @throws {RequiredError}
|
|
15481
|
+
* @memberof UsersApi
|
|
15482
|
+
*/
|
|
15483
|
+
leaveBooking(requestParameters, options) {
|
|
15484
|
+
return (0, exports.UsersApiFp)(this.configuration).leaveBooking(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
15485
|
+
}
|
|
15214
15486
|
/**
|
|
15215
15487
|
*
|
|
15216
15488
|
* @param {UsersApiListPlayersRequest} requestParameters Request parameters.
|
package/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
package/dist/common.d.ts
CHANGED
package/dist/common.js
CHANGED
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED