@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.
Files changed (46) hide show
  1. package/.openapi-generator/FILES +409 -398
  2. package/README.md +18 -3
  3. package/api.ts +843 -19
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +656 -9
  8. package/dist/api.js +273 -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 +656 -9
  16. package/dist/esm/api.js +273 -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 +57 -2
  31. package/docs/BookingsUserApi.md +109 -0
  32. package/docs/CreateOpenBookingRequest.md +6 -0
  33. package/docs/GetOpenBookingPrice200Response.md +24 -0
  34. package/docs/GetOpenBookingPriceRequest.md +26 -0
  35. package/docs/JoinPriceEstimateResponse.md +38 -0
  36. package/docs/JoinPriceEstimateResponseSubscriptionInfo.md +25 -0
  37. package/docs/OpenBookingInfo.md +50 -0
  38. package/docs/OpenBookingPlayerInfo.md +26 -0
  39. package/docs/OpenBookingSlotInfo.md +24 -0
  40. package/docs/OpenBookingSportInfo.md +24 -0
  41. package/docs/{GetOpenBookings200Response.md → OpenBookingsResponse.md} +4 -4
  42. package/docs/UpdateOpenBooking200Response.md +22 -0
  43. package/docs/UpdateOpenBookingRequest.md +22 -0
  44. package/docs/UsersApi.md +55 -0
  45. package/index.ts +1 -1
  46. 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.172
7
+ * The version of the OpenAPI document: 1.0.177
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -586,6 +586,41 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
586
586
  options: localVarRequestOptions,
587
587
  };
588
588
  }),
589
+ /**
590
+ * 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
591
+ * @param {string} bookingId
592
+ * @param {number} [creditToUseInCents]
593
+ * @param {*} [options] Override http request option.
594
+ * @throws {RequiredError}
595
+ */
596
+ getJoinPriceEstimate: (bookingId_1, creditToUseInCents_1, ...args_1) => __awaiter(this, [bookingId_1, creditToUseInCents_1, ...args_1], void 0, function* (bookingId, creditToUseInCents, options = {}) {
597
+ // verify required parameter 'bookingId' is not null or undefined
598
+ assertParamExists('getJoinPriceEstimate', 'bookingId', bookingId);
599
+ const localVarPath = `/api/bookings/{bookingId}/join-price-estimate`
600
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
601
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
602
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
603
+ let baseOptions;
604
+ if (configuration) {
605
+ baseOptions = configuration.baseOptions;
606
+ }
607
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
608
+ const localVarHeaderParameter = {};
609
+ const localVarQueryParameter = {};
610
+ // authentication bearerAuth required
611
+ // http bearer authentication required
612
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
613
+ if (creditToUseInCents !== undefined) {
614
+ localVarQueryParameter['creditToUseInCents'] = creditToUseInCents;
615
+ }
616
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
617
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
618
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
619
+ return {
620
+ url: toPathString(localVarUrlObj),
621
+ options: localVarRequestOptions,
622
+ };
623
+ }),
589
624
  /**
590
625
  * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
591
626
  * @param {string} bookingId
@@ -868,6 +903,22 @@ export const BookingsApiFp = function (configuration) {
868
903
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
869
904
  });
870
905
  },
906
+ /**
907
+ * 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
908
+ * @param {string} bookingId
909
+ * @param {number} [creditToUseInCents]
910
+ * @param {*} [options] Override http request option.
911
+ * @throws {RequiredError}
912
+ */
913
+ getJoinPriceEstimate(bookingId, creditToUseInCents, options) {
914
+ return __awaiter(this, void 0, void 0, function* () {
915
+ var _a, _b, _c;
916
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getJoinPriceEstimate(bookingId, creditToUseInCents, options);
917
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
918
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.getJoinPriceEstimate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
919
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
920
+ });
921
+ },
871
922
  /**
872
923
  * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
873
924
  * @param {string} bookingId
@@ -1008,6 +1059,15 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
1008
1059
  getGuestBookingPrice(requestParameters, options) {
1009
1060
  return localVarFp.getGuestBookingPrice(requestParameters.getGuestBookingPriceRequest, options).then((request) => request(axios, basePath));
1010
1061
  },
1062
+ /**
1063
+ * 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
1064
+ * @param {BookingsApiGetJoinPriceEstimateRequest} requestParameters Request parameters.
1065
+ * @param {*} [options] Override http request option.
1066
+ * @throws {RequiredError}
1067
+ */
1068
+ getJoinPriceEstimate(requestParameters, options) {
1069
+ return localVarFp.getJoinPriceEstimate(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
1070
+ },
1011
1071
  /**
1012
1072
  * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
1013
1073
  * @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
@@ -1112,6 +1172,16 @@ export class BookingsApi extends BaseAPI {
1112
1172
  getGuestBookingPrice(requestParameters, options) {
1113
1173
  return BookingsApiFp(this.configuration).getGuestBookingPrice(requestParameters.getGuestBookingPriceRequest, options).then((request) => request(this.axios, this.basePath));
1114
1174
  }
1175
+ /**
1176
+ * 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
1177
+ * @param {BookingsApiGetJoinPriceEstimateRequest} requestParameters Request parameters.
1178
+ * @param {*} [options] Override http request option.
1179
+ * @throws {RequiredError}
1180
+ * @memberof BookingsApi
1181
+ */
1182
+ getJoinPriceEstimate(requestParameters, options) {
1183
+ return BookingsApiFp(this.configuration).getJoinPriceEstimate(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
1184
+ }
1115
1185
  /**
1116
1186
  * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
1117
1187
  * @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
@@ -2015,6 +2085,74 @@ export const BookingsUserApiAxiosParamCreator = function (configuration) {
2015
2085
  options: localVarRequestOptions,
2016
2086
  };
2017
2087
  }),
2088
+ /**
2089
+ * Calculer le prix d\'une réservation ouverte avec joueurs initiaux
2090
+ * @param {GetOpenBookingPriceRequest} getOpenBookingPriceRequest
2091
+ * @param {*} [options] Override http request option.
2092
+ * @throws {RequiredError}
2093
+ */
2094
+ getOpenBookingPrice: (getOpenBookingPriceRequest_1, ...args_1) => __awaiter(this, [getOpenBookingPriceRequest_1, ...args_1], void 0, function* (getOpenBookingPriceRequest, options = {}) {
2095
+ // verify required parameter 'getOpenBookingPriceRequest' is not null or undefined
2096
+ assertParamExists('getOpenBookingPrice', 'getOpenBookingPriceRequest', getOpenBookingPriceRequest);
2097
+ const localVarPath = `/api/bookings/open/booking-price`;
2098
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2099
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2100
+ let baseOptions;
2101
+ if (configuration) {
2102
+ baseOptions = configuration.baseOptions;
2103
+ }
2104
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2105
+ const localVarHeaderParameter = {};
2106
+ const localVarQueryParameter = {};
2107
+ // authentication bearerAuth required
2108
+ // http bearer authentication required
2109
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2110
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2111
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2112
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2113
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2114
+ localVarRequestOptions.data = serializeDataIfNeeded(getOpenBookingPriceRequest, localVarRequestOptions, configuration);
2115
+ return {
2116
+ url: toPathString(localVarUrlObj),
2117
+ options: localVarRequestOptions,
2118
+ };
2119
+ }),
2120
+ /**
2121
+ * Mettre à jour une réservation ouverte (description et niveau minimal)
2122
+ * @param {string} bookingId
2123
+ * @param {UpdateOpenBookingRequest} updateOpenBookingRequest
2124
+ * @param {*} [options] Override http request option.
2125
+ * @throws {RequiredError}
2126
+ */
2127
+ updateOpenBooking: (bookingId_1, updateOpenBookingRequest_1, ...args_1) => __awaiter(this, [bookingId_1, updateOpenBookingRequest_1, ...args_1], void 0, function* (bookingId, updateOpenBookingRequest, options = {}) {
2128
+ // verify required parameter 'bookingId' is not null or undefined
2129
+ assertParamExists('updateOpenBooking', 'bookingId', bookingId);
2130
+ // verify required parameter 'updateOpenBookingRequest' is not null or undefined
2131
+ assertParamExists('updateOpenBooking', 'updateOpenBookingRequest', updateOpenBookingRequest);
2132
+ const localVarPath = `/api/bookings/{bookingId}/open`
2133
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
2134
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2135
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2136
+ let baseOptions;
2137
+ if (configuration) {
2138
+ baseOptions = configuration.baseOptions;
2139
+ }
2140
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
2141
+ const localVarHeaderParameter = {};
2142
+ const localVarQueryParameter = {};
2143
+ // authentication bearerAuth required
2144
+ // http bearer authentication required
2145
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2146
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2147
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2148
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2149
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2150
+ localVarRequestOptions.data = serializeDataIfNeeded(updateOpenBookingRequest, localVarRequestOptions, configuration);
2151
+ return {
2152
+ url: toPathString(localVarUrlObj),
2153
+ options: localVarRequestOptions,
2154
+ };
2155
+ }),
2018
2156
  };
2019
2157
  };
2020
2158
  /**
@@ -2069,6 +2207,37 @@ export const BookingsUserApiFp = function (configuration) {
2069
2207
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2070
2208
  });
2071
2209
  },
2210
+ /**
2211
+ * Calculer le prix d\'une réservation ouverte avec joueurs initiaux
2212
+ * @param {GetOpenBookingPriceRequest} getOpenBookingPriceRequest
2213
+ * @param {*} [options] Override http request option.
2214
+ * @throws {RequiredError}
2215
+ */
2216
+ getOpenBookingPrice(getOpenBookingPriceRequest, options) {
2217
+ return __awaiter(this, void 0, void 0, function* () {
2218
+ var _a, _b, _c;
2219
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenBookingPrice(getOpenBookingPriceRequest, options);
2220
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2221
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsUserApi.getOpenBookingPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2222
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2223
+ });
2224
+ },
2225
+ /**
2226
+ * Mettre à jour une réservation ouverte (description et niveau minimal)
2227
+ * @param {string} bookingId
2228
+ * @param {UpdateOpenBookingRequest} updateOpenBookingRequest
2229
+ * @param {*} [options] Override http request option.
2230
+ * @throws {RequiredError}
2231
+ */
2232
+ updateOpenBooking(bookingId, updateOpenBookingRequest, options) {
2233
+ return __awaiter(this, void 0, void 0, function* () {
2234
+ var _a, _b, _c;
2235
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateOpenBooking(bookingId, updateOpenBookingRequest, options);
2236
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2237
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsUserApi.updateOpenBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2238
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2239
+ });
2240
+ },
2072
2241
  };
2073
2242
  };
2074
2243
  /**
@@ -2105,6 +2274,24 @@ export const BookingsUserApiFactory = function (configuration, basePath, axios)
2105
2274
  createOpenBooking(requestParameters, options) {
2106
2275
  return localVarFp.createOpenBooking(requestParameters.createOpenBookingRequest, options).then((request) => request(axios, basePath));
2107
2276
  },
2277
+ /**
2278
+ * Calculer le prix d\'une réservation ouverte avec joueurs initiaux
2279
+ * @param {BookingsUserApiGetOpenBookingPriceRequest} requestParameters Request parameters.
2280
+ * @param {*} [options] Override http request option.
2281
+ * @throws {RequiredError}
2282
+ */
2283
+ getOpenBookingPrice(requestParameters, options) {
2284
+ return localVarFp.getOpenBookingPrice(requestParameters.getOpenBookingPriceRequest, options).then((request) => request(axios, basePath));
2285
+ },
2286
+ /**
2287
+ * Mettre à jour une réservation ouverte (description et niveau minimal)
2288
+ * @param {BookingsUserApiUpdateOpenBookingRequest} requestParameters Request parameters.
2289
+ * @param {*} [options] Override http request option.
2290
+ * @throws {RequiredError}
2291
+ */
2292
+ updateOpenBooking(requestParameters, options) {
2293
+ return localVarFp.updateOpenBooking(requestParameters.bookingId, requestParameters.updateOpenBookingRequest, options).then((request) => request(axios, basePath));
2294
+ },
2108
2295
  };
2109
2296
  };
2110
2297
  /**
@@ -2144,6 +2331,26 @@ export class BookingsUserApi extends BaseAPI {
2144
2331
  createOpenBooking(requestParameters, options) {
2145
2332
  return BookingsUserApiFp(this.configuration).createOpenBooking(requestParameters.createOpenBookingRequest, options).then((request) => request(this.axios, this.basePath));
2146
2333
  }
2334
+ /**
2335
+ * Calculer le prix d\'une réservation ouverte avec joueurs initiaux
2336
+ * @param {BookingsUserApiGetOpenBookingPriceRequest} requestParameters Request parameters.
2337
+ * @param {*} [options] Override http request option.
2338
+ * @throws {RequiredError}
2339
+ * @memberof BookingsUserApi
2340
+ */
2341
+ getOpenBookingPrice(requestParameters, options) {
2342
+ return BookingsUserApiFp(this.configuration).getOpenBookingPrice(requestParameters.getOpenBookingPriceRequest, options).then((request) => request(this.axios, this.basePath));
2343
+ }
2344
+ /**
2345
+ * Mettre à jour une réservation ouverte (description et niveau minimal)
2346
+ * @param {BookingsUserApiUpdateOpenBookingRequest} requestParameters Request parameters.
2347
+ * @param {*} [options] Override http request option.
2348
+ * @throws {RequiredError}
2349
+ * @memberof BookingsUserApi
2350
+ */
2351
+ updateOpenBooking(requestParameters, options) {
2352
+ return BookingsUserApiFp(this.configuration).updateOpenBooking(requestParameters.bookingId, requestParameters.updateOpenBookingRequest, options).then((request) => request(this.axios, this.basePath));
2353
+ }
2147
2354
  }
2148
2355
  /**
2149
2356
  * ClientApi - axios parameter creator
@@ -13286,6 +13493,37 @@ export const UsersApiAxiosParamCreator = function (configuration) {
13286
13493
  options: localVarRequestOptions,
13287
13494
  };
13288
13495
  }),
13496
+ /**
13497
+ * Quitter une réservation
13498
+ * @param {string} bookingId
13499
+ * @param {*} [options] Override http request option.
13500
+ * @throws {RequiredError}
13501
+ */
13502
+ leaveBooking: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
13503
+ // verify required parameter 'bookingId' is not null or undefined
13504
+ assertParamExists('leaveBooking', 'bookingId', bookingId);
13505
+ const localVarPath = `/api/users/me/bookings/{bookingId}/leave`
13506
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
13507
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13508
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13509
+ let baseOptions;
13510
+ if (configuration) {
13511
+ baseOptions = configuration.baseOptions;
13512
+ }
13513
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
13514
+ const localVarHeaderParameter = {};
13515
+ const localVarQueryParameter = {};
13516
+ // authentication bearerAuth required
13517
+ // http bearer authentication required
13518
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
13519
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13520
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13521
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13522
+ return {
13523
+ url: toPathString(localVarUrlObj),
13524
+ options: localVarRequestOptions,
13525
+ };
13526
+ }),
13289
13527
  /**
13290
13528
  *
13291
13529
  * @param {PlayerCategoryId} [category]
@@ -14218,6 +14456,21 @@ export const UsersApiFp = function (configuration) {
14218
14456
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14219
14457
  });
14220
14458
  },
14459
+ /**
14460
+ * Quitter une réservation
14461
+ * @param {string} bookingId
14462
+ * @param {*} [options] Override http request option.
14463
+ * @throws {RequiredError}
14464
+ */
14465
+ leaveBooking(bookingId, options) {
14466
+ return __awaiter(this, void 0, void 0, function* () {
14467
+ var _a, _b, _c;
14468
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.leaveBooking(bookingId, options);
14469
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
14470
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.leaveBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
14471
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14472
+ });
14473
+ },
14221
14474
  /**
14222
14475
  *
14223
14476
  * @param {PlayerCategoryId} [category]
@@ -14701,6 +14954,15 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
14701
14954
  getUserProfileById(requestParameters, options) {
14702
14955
  return localVarFp.getUserProfileById(requestParameters.id, options).then((request) => request(axios, basePath));
14703
14956
  },
14957
+ /**
14958
+ * Quitter une réservation
14959
+ * @param {UsersApiLeaveBookingRequest} requestParameters Request parameters.
14960
+ * @param {*} [options] Override http request option.
14961
+ * @throws {RequiredError}
14962
+ */
14963
+ leaveBooking(requestParameters, options) {
14964
+ return localVarFp.leaveBooking(requestParameters.bookingId, options).then((request) => request(axios, basePath));
14965
+ },
14704
14966
  /**
14705
14967
  *
14706
14968
  * @param {UsersApiListPlayersRequest} requestParameters Request parameters.
@@ -15082,6 +15344,16 @@ export class UsersApi extends BaseAPI {
15082
15344
  getUserProfileById(requestParameters, options) {
15083
15345
  return UsersApiFp(this.configuration).getUserProfileById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
15084
15346
  }
15347
+ /**
15348
+ * Quitter une réservation
15349
+ * @param {UsersApiLeaveBookingRequest} requestParameters Request parameters.
15350
+ * @param {*} [options] Override http request option.
15351
+ * @throws {RequiredError}
15352
+ * @memberof UsersApi
15353
+ */
15354
+ leaveBooking(requestParameters, options) {
15355
+ return UsersApiFp(this.configuration).leaveBooking(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
15356
+ }
15085
15357
  /**
15086
15358
  *
15087
15359
  * @param {UsersApiListPlayersRequest} requestParameters Request parameters.
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.172
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/esm/base.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.172
7
+ * The version of the OpenAPI document: 1.0.177
8
8
  *
9
9
  *
10
10
  * 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.172
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).
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.172
7
+ * The version of the OpenAPI document: 1.0.177
8
8
  *
9
9
  *
10
10
  * 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.172
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).
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.172
7
+ * The version of the OpenAPI document: 1.0.177
8
8
  *
9
9
  *
10
10
  * 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.172
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/esm/index.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.172
7
+ * The version of the OpenAPI document: 1.0.177
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.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.172
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/index.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.172
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).
@@ -0,0 +1,26 @@
1
+ # BookingPlayerInfo
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [default to undefined]
9
+ **firstName** | **string** | | [optional] [default to undefined]
10
+ **lastName** | **string** | | [optional] [default to undefined]
11
+ **profilePicture** | **string** | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { BookingPlayerInfo } from '@tennac-booking/sdk';
17
+
18
+ const instance: BookingPlayerInfo = {
19
+ id,
20
+ firstName,
21
+ lastName,
22
+ profilePicture,
23
+ };
24
+ ```
25
+
26
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
10
10
  **creator** | [**UserInfo**](UserInfo.md) | | [default to undefined]
11
11
  **slotInfos** | [**SlotInfo**](SlotInfo.md) | | [default to undefined]
12
12
  **players** | [**Array<UserInfo>**](UserInfo.md) | | [default to undefined]
13
+ **initialPlayers** | [**Array<UserInfo>**](UserInfo.md) | Joueurs inclus à la création de la réservation (pour les créneaux ouverts) | [optional] [default to undefined]
13
14
  **paymentByPlayers** | [**Array<PaymentByPlayerInfo>**](PaymentByPlayerInfo.md) | Statut des paiements par joueur | [default to undefined]
14
15
  **noShowChargeApplied** | **boolean** | | [optional] [default to undefined]
15
16
  **noShowChargeAmount** | **number** | | [optional] [default to undefined]
@@ -32,6 +33,7 @@ const instance: BookingPopulated = {
32
33
  creator,
33
34
  slotInfos,
34
35
  players,
36
+ initialPlayers,
35
37
  paymentByPlayers,
36
38
  noShowChargeApplied,
37
39
  noShowChargeAmount,
@@ -15,6 +15,12 @@ Name | Type | Description | Notes
15
15
  **totalPrice** | **number** | | [default to undefined]
16
16
  **slotIds** | **Array<string>** | | [default to undefined]
17
17
  **isPublic** | **boolean** | | [default to undefined]
18
+ **isOpen** | **boolean** | | [default to undefined]
19
+ **maxPlayers** | **number** | | [optional] [default to undefined]
20
+ **maxPlayersDesired** | **number** | | [optional] [default to undefined]
21
+ **description** | **string** | | [optional] [default to undefined]
22
+ **minLevel** | **string** | | [optional] [default to undefined]
23
+ **initialPlayers** | [**Array<BookingPlayerInfo>**](BookingPlayerInfo.md) | | [optional] [default to undefined]
18
24
  **requestingUserId** | **string** | | [default to undefined]
19
25
  **creatorPaymentMethodId** | **string** | | [optional] [default to undefined]
20
26
  **paymentMethodSetupCompleted** | **boolean** | | [default to undefined]
@@ -63,6 +69,12 @@ const instance: BookingSummary = {
63
69
  totalPrice,
64
70
  slotIds,
65
71
  isPublic,
72
+ isOpen,
73
+ maxPlayers,
74
+ maxPlayersDesired,
75
+ description,
76
+ minLevel,
77
+ initialPlayers,
66
78
  requestingUserId,
67
79
  creatorPaymentMethodId,
68
80
  paymentMethodSetupCompleted,
@@ -9,6 +9,7 @@ All URIs are relative to *http://localhost*
9
9
  |[**getBookingHistory**](#getbookinghistory) | **GET** /api/bookings/history/{bookingId} | |
10
10
  |[**getBookingPrice**](#getbookingprice) | **POST** /api/bookings/booking-price | |
11
11
  |[**getGuestBookingPrice**](#getguestbookingprice) | **POST** /api/bookings/guest/booking-price | |
12
+ |[**getJoinPriceEstimate**](#getjoinpriceestimate) | **GET** /api/bookings/{bookingId}/join-price-estimate | |
12
13
  |[**getOpenBookingJoinPrice**](#getopenbookingjoinprice) | **GET** /api/bookings/{bookingId}/open/join-price | |
13
14
  |[**getOpenBookings**](#getopenbookings) | **GET** /api/bookings/open | |
14
15
  |[**getQuickReservationSlots**](#getquickreservationslots) | **GET** /api/bookings/quick-reservations | |
@@ -275,6 +276,60 @@ No authorization required
275
276
 
276
277
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
277
278
 
279
+ # **getJoinPriceEstimate**
280
+ > JoinPriceEstimateResponse getJoinPriceEstimate()
281
+
282
+ 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
283
+
284
+ ### Example
285
+
286
+ ```typescript
287
+ import {
288
+ BookingsApi,
289
+ Configuration
290
+ } from '@tennac-booking/sdk';
291
+
292
+ const configuration = new Configuration();
293
+ const apiInstance = new BookingsApi(configuration);
294
+
295
+ let bookingId: string; // (default to undefined)
296
+ let creditToUseInCents: number; // (optional) (default to undefined)
297
+
298
+ const { status, data } = await apiInstance.getJoinPriceEstimate(
299
+ bookingId,
300
+ creditToUseInCents
301
+ );
302
+ ```
303
+
304
+ ### Parameters
305
+
306
+ |Name | Type | Description | Notes|
307
+ |------------- | ------------- | ------------- | -------------|
308
+ | **bookingId** | [**string**] | | defaults to undefined|
309
+ | **creditToUseInCents** | [**number**] | | (optional) defaults to undefined|
310
+
311
+
312
+ ### Return type
313
+
314
+ **JoinPriceEstimateResponse**
315
+
316
+ ### Authorization
317
+
318
+ [bearerAuth](../README.md#bearerAuth)
319
+
320
+ ### HTTP request headers
321
+
322
+ - **Content-Type**: Not defined
323
+ - **Accept**: application/json
324
+
325
+
326
+ ### HTTP response details
327
+ | Status code | Description | Response headers |
328
+ |-------------|-------------|------------------|
329
+ |**200** | Estimation complète du prix calculée | - |
330
+
331
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
332
+
278
333
  # **getOpenBookingJoinPrice**
279
334
  > GetOpenEventBookingJoinPrice200Response getOpenBookingJoinPrice()
280
335
 
@@ -327,7 +382,7 @@ const { status, data } = await apiInstance.getOpenBookingJoinPrice(
327
382
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
328
383
 
329
384
  # **getOpenBookings**
330
- > GetOpenBookings200Response getOpenBookings()
385
+ > OpenBookingsResponse getOpenBookings()
331
386
 
332
387
 
333
388
  ### Example
@@ -357,7 +412,7 @@ const { status, data } = await apiInstance.getOpenBookings(
357
412
 
358
413
  ### Return type
359
414
 
360
- **GetOpenBookings200Response**
415
+ **OpenBookingsResponse**
361
416
 
362
417
  ### Authorization
363
418