@tennac-booking/sdk 1.0.176 → 1.0.178

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.
Files changed (42) hide show
  1. package/.openapi-generator/FILES +409 -404
  2. package/README.md +9 -2
  3. package/api.ts +457 -1
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +370 -1
  8. package/dist/api.js +137 -1
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +1 -1
  15. package/dist/esm/api.d.ts +370 -1
  16. package/dist/esm/api.js +137 -1
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +1 -1
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/BookingPlayerInfo.md +26 -0
  28. package/docs/BookingPopulated.md +2 -0
  29. package/docs/BookingSummary.md +12 -0
  30. package/docs/BookingsApi.md +55 -0
  31. package/docs/BookingsUserApi.md +53 -0
  32. package/docs/ClubSummary.md +4 -0
  33. package/docs/CreateOpenBookingRequest.md +2 -0
  34. package/docs/GetOpenBookingPrice200Response.md +24 -0
  35. package/docs/GetOpenBookingPriceRequest.md +26 -0
  36. package/docs/JoinPriceEstimateResponse.md +38 -0
  37. package/docs/JoinPriceEstimateResponseSubscriptionInfo.md +25 -0
  38. package/docs/OpenBookingInfo.md +2 -0
  39. package/docs/UserClubMembership.md +8 -0
  40. package/docs/UserProfileResponse.md +2 -0
  41. package/index.ts +1 -1
  42. 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.176
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,38 @@ 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
+ }),
2036
2138
  /**
2037
2139
  * Mettre à jour une réservation ouverte (description et niveau minimal)
2038
2140
  * @param {string} bookingId
@@ -2124,6 +2226,21 @@ const BookingsUserApiFp = function (configuration) {
2124
2226
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2125
2227
  });
2126
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
+ },
2127
2244
  /**
2128
2245
  * Mettre à jour une réservation ouverte (description et niveau minimal)
2129
2246
  * @param {string} bookingId
@@ -2177,6 +2294,15 @@ const BookingsUserApiFactory = function (configuration, basePath, axios) {
2177
2294
  createOpenBooking(requestParameters, options) {
2178
2295
  return localVarFp.createOpenBooking(requestParameters.createOpenBookingRequest, options).then((request) => request(axios, basePath));
2179
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
+ },
2180
2306
  /**
2181
2307
  * Mettre à jour une réservation ouverte (description et niveau minimal)
2182
2308
  * @param {BookingsUserApiUpdateOpenBookingRequest} requestParameters Request parameters.
@@ -2226,6 +2352,16 @@ class BookingsUserApi extends base_1.BaseAPI {
2226
2352
  createOpenBooking(requestParameters, options) {
2227
2353
  return (0, exports.BookingsUserApiFp)(this.configuration).createOpenBooking(requestParameters.createOpenBookingRequest, options).then((request) => request(this.axios, this.basePath));
2228
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
+ }
2229
2365
  /**
2230
2366
  * Mettre à jour une réservation ouverte (description et niveau minimal)
2231
2367
  * @param {BookingsUserApiUpdateOpenBookingRequest} requestParameters Request parameters.
package/dist/base.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.176
5
+ * The version of the OpenAPI document: 1.0.177
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.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.176
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).
package/dist/common.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.176
5
+ * The version of the OpenAPI document: 1.0.177
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.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.176
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).
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.176
5
+ * The version of the OpenAPI document: 1.0.177
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * openapi.json
6
6
  * Pandook API Documentation
7
7
  *
8
- * The version of the OpenAPI document: 1.0.176
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).