@tennac-booking/sdk 1.0.209 → 1.0.210

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/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.208
8
+ * The version of the OpenAPI document: 1.0.210
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -673,16 +673,18 @@ const BookingsApiAxiosParamCreator = function (configuration) {
673
673
  };
674
674
  }),
675
675
  /**
676
- * Estimer le prix pour rejoindre une réservation ouverte
676
+ * Estime le prix pour rejoindre une réservation ouverte avec détails de paiement. Supporte soit isCreatorPayingAll, soit playerShares pour répartir les coûts.
677
677
  * @param {string} bookingId
678
- * @param {number} [creditToUseInCents]
678
+ * @param {EstimateOpenBookingJoinRequest} estimateOpenBookingJoinRequest
679
679
  * @param {*} [options] Override http request option.
680
680
  * @throws {RequiredError}
681
681
  */
682
- estimateOpenBookingJoinPrice: (bookingId_1, creditToUseInCents_1, ...args_1) => __awaiter(this, [bookingId_1, creditToUseInCents_1, ...args_1], void 0, function* (bookingId, creditToUseInCents, options = {}) {
682
+ estimateOpenBookingJoin: (bookingId_1, estimateOpenBookingJoinRequest_1, ...args_1) => __awaiter(this, [bookingId_1, estimateOpenBookingJoinRequest_1, ...args_1], void 0, function* (bookingId, estimateOpenBookingJoinRequest, options = {}) {
683
683
  // verify required parameter 'bookingId' is not null or undefined
684
- (0, common_1.assertParamExists)('estimateOpenBookingJoinPrice', 'bookingId', bookingId);
685
- const localVarPath = `/api/bookings/{bookingId}/open/estimate`
684
+ (0, common_1.assertParamExists)('estimateOpenBookingJoin', 'bookingId', bookingId);
685
+ // verify required parameter 'estimateOpenBookingJoinRequest' is not null or undefined
686
+ (0, common_1.assertParamExists)('estimateOpenBookingJoin', 'estimateOpenBookingJoinRequest', estimateOpenBookingJoinRequest);
687
+ const localVarPath = `/api/bookings/{bookingId}/open/estimate-join`
686
688
  .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
687
689
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
688
690
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -690,18 +692,17 @@ const BookingsApiAxiosParamCreator = function (configuration) {
690
692
  if (configuration) {
691
693
  baseOptions = configuration.baseOptions;
692
694
  }
693
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
695
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
694
696
  const localVarHeaderParameter = {};
695
697
  const localVarQueryParameter = {};
696
698
  // authentication bearerAuth required
697
699
  // http bearer authentication required
698
700
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
699
- if (creditToUseInCents !== undefined) {
700
- localVarQueryParameter['creditToUseInCents'] = creditToUseInCents;
701
- }
701
+ localVarHeaderParameter['Content-Type'] = 'application/json';
702
702
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
703
703
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
704
704
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
705
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(estimateOpenBookingJoinRequest, localVarRequestOptions, configuration);
705
706
  return {
706
707
  url: (0, common_1.toPathString)(localVarUrlObj),
707
708
  options: localVarRequestOptions,
@@ -800,50 +801,15 @@ const BookingsApiAxiosParamCreator = function (configuration) {
800
801
  };
801
802
  }),
802
803
  /**
803
- * 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
804
- * @param {string} bookingId
805
- * @param {number} [creditToUseInCents]
806
- * @param {*} [options] Override http request option.
807
- * @throws {RequiredError}
808
- */
809
- getJoinPriceEstimate: (bookingId_1, creditToUseInCents_1, ...args_1) => __awaiter(this, [bookingId_1, creditToUseInCents_1, ...args_1], void 0, function* (bookingId, creditToUseInCents, options = {}) {
810
- // verify required parameter 'bookingId' is not null or undefined
811
- (0, common_1.assertParamExists)('getJoinPriceEstimate', 'bookingId', bookingId);
812
- const localVarPath = `/api/bookings/{bookingId}/join-price-estimate`
813
- .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
814
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
815
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
816
- let baseOptions;
817
- if (configuration) {
818
- baseOptions = configuration.baseOptions;
819
- }
820
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
821
- const localVarHeaderParameter = {};
822
- const localVarQueryParameter = {};
823
- // authentication bearerAuth required
824
- // http bearer authentication required
825
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
826
- if (creditToUseInCents !== undefined) {
827
- localVarQueryParameter['creditToUseInCents'] = creditToUseInCents;
828
- }
829
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
830
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
831
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
832
- return {
833
- url: (0, common_1.toPathString)(localVarUrlObj),
834
- options: localVarRequestOptions,
835
- };
836
- }),
837
- /**
838
- * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
804
+ * Obtient le prix de base pour rejoindre une réservation ouverte. Cette route ne prend pas en compte un utilisateur spécifique, elle retourne simplement le prix de base par joueur.
839
805
  * @param {string} bookingId
840
806
  * @param {*} [options] Override http request option.
841
807
  * @throws {RequiredError}
842
808
  */
843
- getOpenBookingJoinPrice: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
809
+ getOpenBookingBasePrice: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
844
810
  // verify required parameter 'bookingId' is not null or undefined
845
- (0, common_1.assertParamExists)('getOpenBookingJoinPrice', 'bookingId', bookingId);
846
- const localVarPath = `/api/bookings/{bookingId}/open/join-price`
811
+ (0, common_1.assertParamExists)('getOpenBookingBasePrice', 'bookingId', bookingId);
812
+ const localVarPath = `/api/bookings/{bookingId}/open/base-price`
847
813
  .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
848
814
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
849
815
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -1057,18 +1023,18 @@ const BookingsApiFp = function (configuration) {
1057
1023
  });
1058
1024
  },
1059
1025
  /**
1060
- * Estimer le prix pour rejoindre une réservation ouverte
1026
+ * Estime le prix pour rejoindre une réservation ouverte avec détails de paiement. Supporte soit isCreatorPayingAll, soit playerShares pour répartir les coûts.
1061
1027
  * @param {string} bookingId
1062
- * @param {number} [creditToUseInCents]
1028
+ * @param {EstimateOpenBookingJoinRequest} estimateOpenBookingJoinRequest
1063
1029
  * @param {*} [options] Override http request option.
1064
1030
  * @throws {RequiredError}
1065
1031
  */
1066
- estimateOpenBookingJoinPrice(bookingId, creditToUseInCents, options) {
1032
+ estimateOpenBookingJoin(bookingId, estimateOpenBookingJoinRequest, options) {
1067
1033
  return __awaiter(this, void 0, void 0, function* () {
1068
1034
  var _a, _b, _c;
1069
- const localVarAxiosArgs = yield localVarAxiosParamCreator.estimateOpenBookingJoinPrice(bookingId, creditToUseInCents, options);
1035
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.estimateOpenBookingJoin(bookingId, estimateOpenBookingJoinRequest, options);
1070
1036
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1071
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.estimateOpenBookingJoinPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1037
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.estimateOpenBookingJoin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1072
1038
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1073
1039
  });
1074
1040
  },
@@ -1118,33 +1084,17 @@ const BookingsApiFp = function (configuration) {
1118
1084
  });
1119
1085
  },
1120
1086
  /**
1121
- * 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
1087
+ * Obtient le prix de base pour rejoindre une réservation ouverte. Cette route ne prend pas en compte un utilisateur spécifique, elle retourne simplement le prix de base par joueur.
1122
1088
  * @param {string} bookingId
1123
- * @param {number} [creditToUseInCents]
1124
1089
  * @param {*} [options] Override http request option.
1125
1090
  * @throws {RequiredError}
1126
1091
  */
1127
- getJoinPriceEstimate(bookingId, creditToUseInCents, options) {
1092
+ getOpenBookingBasePrice(bookingId, options) {
1128
1093
  return __awaiter(this, void 0, void 0, function* () {
1129
1094
  var _a, _b, _c;
1130
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getJoinPriceEstimate(bookingId, creditToUseInCents, options);
1095
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenBookingBasePrice(bookingId, options);
1131
1096
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1132
- 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;
1133
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1134
- });
1135
- },
1136
- /**
1137
- * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
1138
- * @param {string} bookingId
1139
- * @param {*} [options] Override http request option.
1140
- * @throws {RequiredError}
1141
- */
1142
- getOpenBookingJoinPrice(bookingId, options) {
1143
- return __awaiter(this, void 0, void 0, function* () {
1144
- var _a, _b, _c;
1145
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenBookingJoinPrice(bookingId, options);
1146
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1147
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.getOpenBookingJoinPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1097
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.getOpenBookingBasePrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1148
1098
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1149
1099
  });
1150
1100
  },
@@ -1239,13 +1189,13 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
1239
1189
  return localVarFp.createGuestBooking(requestParameters.createGuestBookingRequest, options).then((request) => request(axios, basePath));
1240
1190
  },
1241
1191
  /**
1242
- * Estimer le prix pour rejoindre une réservation ouverte
1243
- * @param {BookingsApiEstimateOpenBookingJoinPriceRequest} requestParameters Request parameters.
1192
+ * Estime le prix pour rejoindre une réservation ouverte avec détails de paiement. Supporte soit isCreatorPayingAll, soit playerShares pour répartir les coûts.
1193
+ * @param {BookingsApiEstimateOpenBookingJoinRequest} requestParameters Request parameters.
1244
1194
  * @param {*} [options] Override http request option.
1245
1195
  * @throws {RequiredError}
1246
1196
  */
1247
- estimateOpenBookingJoinPrice(requestParameters, options) {
1248
- return localVarFp.estimateOpenBookingJoinPrice(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
1197
+ estimateOpenBookingJoin(requestParameters, options) {
1198
+ return localVarFp.estimateOpenBookingJoin(requestParameters.bookingId, requestParameters.estimateOpenBookingJoinRequest, options).then((request) => request(axios, basePath));
1249
1199
  },
1250
1200
  /**
1251
1201
  * Obtenir l\'historique d\'une réservation par ID
@@ -1275,22 +1225,13 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
1275
1225
  return localVarFp.getGuestBookingPrice(requestParameters.getGuestBookingPriceRequest, options).then((request) => request(axios, basePath));
1276
1226
  },
1277
1227
  /**
1278
- * 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
1279
- * @param {BookingsApiGetJoinPriceEstimateRequest} requestParameters Request parameters.
1228
+ * Obtient le prix de base pour rejoindre une réservation ouverte. Cette route ne prend pas en compte un utilisateur spécifique, elle retourne simplement le prix de base par joueur.
1229
+ * @param {BookingsApiGetOpenBookingBasePriceRequest} requestParameters Request parameters.
1280
1230
  * @param {*} [options] Override http request option.
1281
1231
  * @throws {RequiredError}
1282
1232
  */
1283
- getJoinPriceEstimate(requestParameters, options) {
1284
- return localVarFp.getJoinPriceEstimate(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
1285
- },
1286
- /**
1287
- * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
1288
- * @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
1289
- * @param {*} [options] Override http request option.
1290
- * @throws {RequiredError}
1291
- */
1292
- getOpenBookingJoinPrice(requestParameters, options) {
1293
- return localVarFp.getOpenBookingJoinPrice(requestParameters.bookingId, options).then((request) => request(axios, basePath));
1233
+ getOpenBookingBasePrice(requestParameters, options) {
1234
+ return localVarFp.getOpenBookingBasePrice(requestParameters.bookingId, options).then((request) => request(axios, basePath));
1294
1235
  },
1295
1236
  /**
1296
1237
  *
@@ -1349,14 +1290,14 @@ class BookingsApi extends base_1.BaseAPI {
1349
1290
  return (0, exports.BookingsApiFp)(this.configuration).createGuestBooking(requestParameters.createGuestBookingRequest, options).then((request) => request(this.axios, this.basePath));
1350
1291
  }
1351
1292
  /**
1352
- * Estimer le prix pour rejoindre une réservation ouverte
1353
- * @param {BookingsApiEstimateOpenBookingJoinPriceRequest} requestParameters Request parameters.
1293
+ * Estime le prix pour rejoindre une réservation ouverte avec détails de paiement. Supporte soit isCreatorPayingAll, soit playerShares pour répartir les coûts.
1294
+ * @param {BookingsApiEstimateOpenBookingJoinRequest} requestParameters Request parameters.
1354
1295
  * @param {*} [options] Override http request option.
1355
1296
  * @throws {RequiredError}
1356
1297
  * @memberof BookingsApi
1357
1298
  */
1358
- estimateOpenBookingJoinPrice(requestParameters, options) {
1359
- return (0, exports.BookingsApiFp)(this.configuration).estimateOpenBookingJoinPrice(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
1299
+ estimateOpenBookingJoin(requestParameters, options) {
1300
+ return (0, exports.BookingsApiFp)(this.configuration).estimateOpenBookingJoin(requestParameters.bookingId, requestParameters.estimateOpenBookingJoinRequest, options).then((request) => request(this.axios, this.basePath));
1360
1301
  }
1361
1302
  /**
1362
1303
  * Obtenir l\'historique d\'une réservation par ID
@@ -1389,24 +1330,14 @@ class BookingsApi extends base_1.BaseAPI {
1389
1330
  return (0, exports.BookingsApiFp)(this.configuration).getGuestBookingPrice(requestParameters.getGuestBookingPriceRequest, options).then((request) => request(this.axios, this.basePath));
1390
1331
  }
1391
1332
  /**
1392
- * 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
1393
- * @param {BookingsApiGetJoinPriceEstimateRequest} requestParameters Request parameters.
1394
- * @param {*} [options] Override http request option.
1395
- * @throws {RequiredError}
1396
- * @memberof BookingsApi
1397
- */
1398
- getJoinPriceEstimate(requestParameters, options) {
1399
- return (0, exports.BookingsApiFp)(this.configuration).getJoinPriceEstimate(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
1400
- }
1401
- /**
1402
- * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
1403
- * @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
1333
+ * Obtient le prix de base pour rejoindre une réservation ouverte. Cette route ne prend pas en compte un utilisateur spécifique, elle retourne simplement le prix de base par joueur.
1334
+ * @param {BookingsApiGetOpenBookingBasePriceRequest} requestParameters Request parameters.
1404
1335
  * @param {*} [options] Override http request option.
1405
1336
  * @throws {RequiredError}
1406
1337
  * @memberof BookingsApi
1407
1338
  */
1408
- getOpenBookingJoinPrice(requestParameters, options) {
1409
- return (0, exports.BookingsApiFp)(this.configuration).getOpenBookingJoinPrice(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
1339
+ getOpenBookingBasePrice(requestParameters, options) {
1340
+ return (0, exports.BookingsApiFp)(this.configuration).getOpenBookingBasePrice(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
1410
1341
  }
1411
1342
  /**
1412
1343
  *
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.208
5
+ * The version of the OpenAPI document: 1.0.210
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.208
8
+ * The version of the OpenAPI document: 1.0.210
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.208
5
+ * The version of the OpenAPI document: 1.0.210
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.208
8
+ * The version of the OpenAPI document: 1.0.210
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.208
5
+ * The version of the OpenAPI document: 1.0.210
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.208
8
+ * The version of the OpenAPI document: 1.0.210
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).