@tennac-booking/sdk 1.0.250 → 1.0.252

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
@@ -9990,6 +9990,37 @@ const EventsApiAxiosParamCreator = function (configuration) {
9990
9990
  options: localVarRequestOptions,
9991
9991
  };
9992
9992
  }),
9993
+ /**
9994
+ * Get detailed event information for a user
9995
+ * @param {string} eventId
9996
+ * @param {*} [options] Override http request option.
9997
+ * @throws {RequiredError}
9998
+ */
9999
+ getEventDetailById: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
10000
+ // verify required parameter 'eventId' is not null or undefined
10001
+ (0, common_1.assertParamExists)('getEventDetailById', 'eventId', eventId);
10002
+ const localVarPath = `/api/events/{eventId}/detail`
10003
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
10004
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10005
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10006
+ let baseOptions;
10007
+ if (configuration) {
10008
+ baseOptions = configuration.baseOptions;
10009
+ }
10010
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
10011
+ const localVarHeaderParameter = {};
10012
+ const localVarQueryParameter = {};
10013
+ // authentication bearerAuth required
10014
+ // http bearer authentication required
10015
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
10016
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10017
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10018
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10019
+ return {
10020
+ url: (0, common_1.toPathString)(localVarUrlObj),
10021
+ options: localVarRequestOptions,
10022
+ };
10023
+ }),
9993
10024
  /**
9994
10025
  * Estimer simplement le prix à payer pour rejoindre un événement ouvert
9995
10026
  * @param {string} eventBookingId
@@ -10385,6 +10416,21 @@ const EventsApiFp = function (configuration) {
10385
10416
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10386
10417
  });
10387
10418
  },
10419
+ /**
10420
+ * Get detailed event information for a user
10421
+ * @param {string} eventId
10422
+ * @param {*} [options] Override http request option.
10423
+ * @throws {RequiredError}
10424
+ */
10425
+ getEventDetailById(eventId, options) {
10426
+ return __awaiter(this, void 0, void 0, function* () {
10427
+ var _a, _b, _c;
10428
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventDetailById(eventId, options);
10429
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
10430
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsApi.getEventDetailById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
10431
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10432
+ });
10433
+ },
10388
10434
  /**
10389
10435
  * Estimer simplement le prix à payer pour rejoindre un événement ouvert
10390
10436
  * @param {string} eventBookingId
@@ -10583,6 +10629,15 @@ const EventsApiFactory = function (configuration, basePath, axios) {
10583
10629
  getEventById(requestParameters, options) {
10584
10630
  return localVarFp.getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(axios, basePath));
10585
10631
  },
10632
+ /**
10633
+ * Get detailed event information for a user
10634
+ * @param {EventsApiGetEventDetailByIdRequest} requestParameters Request parameters.
10635
+ * @param {*} [options] Override http request option.
10636
+ * @throws {RequiredError}
10637
+ */
10638
+ getEventDetailById(requestParameters, options) {
10639
+ return localVarFp.getEventDetailById(requestParameters.eventId, options).then((request) => request(axios, basePath));
10640
+ },
10586
10641
  /**
10587
10642
  * Estimer simplement le prix à payer pour rejoindre un événement ouvert
10588
10643
  * @param {EventsApiGetOpenEventBookingJoinPriceRequest} requestParameters Request parameters.
@@ -10724,6 +10779,16 @@ class EventsApi extends base_1.BaseAPI {
10724
10779
  getEventById(requestParameters, options) {
10725
10780
  return (0, exports.EventsApiFp)(this.configuration).getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
10726
10781
  }
10782
+ /**
10783
+ * Get detailed event information for a user
10784
+ * @param {EventsApiGetEventDetailByIdRequest} requestParameters Request parameters.
10785
+ * @param {*} [options] Override http request option.
10786
+ * @throws {RequiredError}
10787
+ * @memberof EventsApi
10788
+ */
10789
+ getEventDetailById(requestParameters, options) {
10790
+ return (0, exports.EventsApiFp)(this.configuration).getEventDetailById(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
10791
+ }
10727
10792
  /**
10728
10793
  * Estimer simplement le prix à payer pour rejoindre un événement ouvert
10729
10794
  * @param {EventsApiGetOpenEventBookingJoinPriceRequest} requestParameters Request parameters.
@@ -19180,10 +19245,11 @@ const WaitListApiAxiosParamCreator = function (configuration) {
19180
19245
  /**
19181
19246
  * Rejoindre la file d\'attente pour un booking (créneau ouvert)
19182
19247
  * @param {string} bookingId
19248
+ * @param {JoinWaitListRequest} [joinWaitListRequest]
19183
19249
  * @param {*} [options] Override http request option.
19184
19250
  * @throws {RequiredError}
19185
19251
  */
19186
- joinBookingWaitList: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
19252
+ joinBookingWaitList: (bookingId_1, joinWaitListRequest_1, ...args_1) => __awaiter(this, [bookingId_1, joinWaitListRequest_1, ...args_1], void 0, function* (bookingId, joinWaitListRequest, options = {}) {
19187
19253
  // verify required parameter 'bookingId' is not null or undefined
19188
19254
  (0, common_1.assertParamExists)('joinBookingWaitList', 'bookingId', bookingId);
19189
19255
  const localVarPath = `/api/waitlist/booking/{bookingId}/join`
@@ -19200,9 +19266,11 @@ const WaitListApiAxiosParamCreator = function (configuration) {
19200
19266
  // authentication bearerAuth required
19201
19267
  // http bearer authentication required
19202
19268
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
19269
+ localVarHeaderParameter['Content-Type'] = 'application/json';
19203
19270
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
19204
19271
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19205
19272
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19273
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(joinWaitListRequest, localVarRequestOptions, configuration);
19206
19274
  return {
19207
19275
  url: (0, common_1.toPathString)(localVarUrlObj),
19208
19276
  options: localVarRequestOptions,
@@ -19211,10 +19279,11 @@ const WaitListApiAxiosParamCreator = function (configuration) {
19211
19279
  /**
19212
19280
  * Rejoindre la file d\'attente pour un eventBooking (event en équipe avec créneau ouvert)
19213
19281
  * @param {string} eventBookingId
19282
+ * @param {JoinWaitListRequest} [joinWaitListRequest]
19214
19283
  * @param {*} [options] Override http request option.
19215
19284
  * @throws {RequiredError}
19216
19285
  */
19217
- joinEventBookingWaitList: (eventBookingId_1, ...args_1) => __awaiter(this, [eventBookingId_1, ...args_1], void 0, function* (eventBookingId, options = {}) {
19286
+ joinEventBookingWaitList: (eventBookingId_1, joinWaitListRequest_1, ...args_1) => __awaiter(this, [eventBookingId_1, joinWaitListRequest_1, ...args_1], void 0, function* (eventBookingId, joinWaitListRequest, options = {}) {
19218
19287
  // verify required parameter 'eventBookingId' is not null or undefined
19219
19288
  (0, common_1.assertParamExists)('joinEventBookingWaitList', 'eventBookingId', eventBookingId);
19220
19289
  const localVarPath = `/api/waitlist/event-booking/{eventBookingId}/join`
@@ -19231,9 +19300,11 @@ const WaitListApiAxiosParamCreator = function (configuration) {
19231
19300
  // authentication bearerAuth required
19232
19301
  // http bearer authentication required
19233
19302
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
19303
+ localVarHeaderParameter['Content-Type'] = 'application/json';
19234
19304
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
19235
19305
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19236
19306
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19307
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(joinWaitListRequest, localVarRequestOptions, configuration);
19237
19308
  return {
19238
19309
  url: (0, common_1.toPathString)(localVarUrlObj),
19239
19310
  options: localVarRequestOptions,
@@ -19242,10 +19313,11 @@ const WaitListApiAxiosParamCreator = function (configuration) {
19242
19313
  /**
19243
19314
  * Rejoindre la file d\'attente pour un event (participation solo)
19244
19315
  * @param {string} eventId
19316
+ * @param {JoinWaitListRequest} [joinWaitListRequest]
19245
19317
  * @param {*} [options] Override http request option.
19246
19318
  * @throws {RequiredError}
19247
19319
  */
19248
- joinEventWaitList: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
19320
+ joinEventWaitList: (eventId_1, joinWaitListRequest_1, ...args_1) => __awaiter(this, [eventId_1, joinWaitListRequest_1, ...args_1], void 0, function* (eventId, joinWaitListRequest, options = {}) {
19249
19321
  // verify required parameter 'eventId' is not null or undefined
19250
19322
  (0, common_1.assertParamExists)('joinEventWaitList', 'eventId', eventId);
19251
19323
  const localVarPath = `/api/waitlist/event/{eventId}/join`
@@ -19262,9 +19334,11 @@ const WaitListApiAxiosParamCreator = function (configuration) {
19262
19334
  // authentication bearerAuth required
19263
19335
  // http bearer authentication required
19264
19336
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
19337
+ localVarHeaderParameter['Content-Type'] = 'application/json';
19265
19338
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
19266
19339
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19267
19340
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19341
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(joinWaitListRequest, localVarRequestOptions, configuration);
19268
19342
  return {
19269
19343
  url: (0, common_1.toPathString)(localVarUrlObj),
19270
19344
  options: localVarRequestOptions,
@@ -19421,13 +19495,14 @@ const WaitListApiFp = function (configuration) {
19421
19495
  /**
19422
19496
  * Rejoindre la file d\'attente pour un booking (créneau ouvert)
19423
19497
  * @param {string} bookingId
19498
+ * @param {JoinWaitListRequest} [joinWaitListRequest]
19424
19499
  * @param {*} [options] Override http request option.
19425
19500
  * @throws {RequiredError}
19426
19501
  */
19427
- joinBookingWaitList(bookingId, options) {
19502
+ joinBookingWaitList(bookingId, joinWaitListRequest, options) {
19428
19503
  return __awaiter(this, void 0, void 0, function* () {
19429
19504
  var _a, _b, _c;
19430
- const localVarAxiosArgs = yield localVarAxiosParamCreator.joinBookingWaitList(bookingId, options);
19505
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.joinBookingWaitList(bookingId, joinWaitListRequest, options);
19431
19506
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
19432
19507
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WaitListApi.joinBookingWaitList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19433
19508
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -19436,13 +19511,14 @@ const WaitListApiFp = function (configuration) {
19436
19511
  /**
19437
19512
  * Rejoindre la file d\'attente pour un eventBooking (event en équipe avec créneau ouvert)
19438
19513
  * @param {string} eventBookingId
19514
+ * @param {JoinWaitListRequest} [joinWaitListRequest]
19439
19515
  * @param {*} [options] Override http request option.
19440
19516
  * @throws {RequiredError}
19441
19517
  */
19442
- joinEventBookingWaitList(eventBookingId, options) {
19518
+ joinEventBookingWaitList(eventBookingId, joinWaitListRequest, options) {
19443
19519
  return __awaiter(this, void 0, void 0, function* () {
19444
19520
  var _a, _b, _c;
19445
- const localVarAxiosArgs = yield localVarAxiosParamCreator.joinEventBookingWaitList(eventBookingId, options);
19521
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.joinEventBookingWaitList(eventBookingId, joinWaitListRequest, options);
19446
19522
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
19447
19523
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WaitListApi.joinEventBookingWaitList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19448
19524
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -19451,13 +19527,14 @@ const WaitListApiFp = function (configuration) {
19451
19527
  /**
19452
19528
  * Rejoindre la file d\'attente pour un event (participation solo)
19453
19529
  * @param {string} eventId
19530
+ * @param {JoinWaitListRequest} [joinWaitListRequest]
19454
19531
  * @param {*} [options] Override http request option.
19455
19532
  * @throws {RequiredError}
19456
19533
  */
19457
- joinEventWaitList(eventId, options) {
19534
+ joinEventWaitList(eventId, joinWaitListRequest, options) {
19458
19535
  return __awaiter(this, void 0, void 0, function* () {
19459
19536
  var _a, _b, _c;
19460
- const localVarAxiosArgs = yield localVarAxiosParamCreator.joinEventWaitList(eventId, options);
19537
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.joinEventWaitList(eventId, joinWaitListRequest, options);
19461
19538
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
19462
19539
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WaitListApi.joinEventWaitList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19463
19540
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -19552,7 +19629,7 @@ const WaitListApiFactory = function (configuration, basePath, axios) {
19552
19629
  * @throws {RequiredError}
19553
19630
  */
19554
19631
  joinBookingWaitList(requestParameters, options) {
19555
- return localVarFp.joinBookingWaitList(requestParameters.bookingId, options).then((request) => request(axios, basePath));
19632
+ return localVarFp.joinBookingWaitList(requestParameters.bookingId, requestParameters.joinWaitListRequest, options).then((request) => request(axios, basePath));
19556
19633
  },
19557
19634
  /**
19558
19635
  * Rejoindre la file d\'attente pour un eventBooking (event en équipe avec créneau ouvert)
@@ -19561,7 +19638,7 @@ const WaitListApiFactory = function (configuration, basePath, axios) {
19561
19638
  * @throws {RequiredError}
19562
19639
  */
19563
19640
  joinEventBookingWaitList(requestParameters, options) {
19564
- return localVarFp.joinEventBookingWaitList(requestParameters.eventBookingId, options).then((request) => request(axios, basePath));
19641
+ return localVarFp.joinEventBookingWaitList(requestParameters.eventBookingId, requestParameters.joinWaitListRequest, options).then((request) => request(axios, basePath));
19565
19642
  },
19566
19643
  /**
19567
19644
  * Rejoindre la file d\'attente pour un event (participation solo)
@@ -19570,7 +19647,7 @@ const WaitListApiFactory = function (configuration, basePath, axios) {
19570
19647
  * @throws {RequiredError}
19571
19648
  */
19572
19649
  joinEventWaitList(requestParameters, options) {
19573
- return localVarFp.joinEventWaitList(requestParameters.eventId, options).then((request) => request(axios, basePath));
19650
+ return localVarFp.joinEventWaitList(requestParameters.eventId, requestParameters.joinWaitListRequest, options).then((request) => request(axios, basePath));
19574
19651
  },
19575
19652
  /**
19576
19653
  * Quitter la file d\'attente d\'un booking
@@ -19647,7 +19724,7 @@ class WaitListApi extends base_1.BaseAPI {
19647
19724
  * @memberof WaitListApi
19648
19725
  */
19649
19726
  joinBookingWaitList(requestParameters, options) {
19650
- return (0, exports.WaitListApiFp)(this.configuration).joinBookingWaitList(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
19727
+ return (0, exports.WaitListApiFp)(this.configuration).joinBookingWaitList(requestParameters.bookingId, requestParameters.joinWaitListRequest, options).then((request) => request(this.axios, this.basePath));
19651
19728
  }
19652
19729
  /**
19653
19730
  * Rejoindre la file d\'attente pour un eventBooking (event en équipe avec créneau ouvert)
@@ -19657,7 +19734,7 @@ class WaitListApi extends base_1.BaseAPI {
19657
19734
  * @memberof WaitListApi
19658
19735
  */
19659
19736
  joinEventBookingWaitList(requestParameters, options) {
19660
- return (0, exports.WaitListApiFp)(this.configuration).joinEventBookingWaitList(requestParameters.eventBookingId, options).then((request) => request(this.axios, this.basePath));
19737
+ return (0, exports.WaitListApiFp)(this.configuration).joinEventBookingWaitList(requestParameters.eventBookingId, requestParameters.joinWaitListRequest, options).then((request) => request(this.axios, this.basePath));
19661
19738
  }
19662
19739
  /**
19663
19740
  * Rejoindre la file d\'attente pour un event (participation solo)
@@ -19667,7 +19744,7 @@ class WaitListApi extends base_1.BaseAPI {
19667
19744
  * @memberof WaitListApi
19668
19745
  */
19669
19746
  joinEventWaitList(requestParameters, options) {
19670
- return (0, exports.WaitListApiFp)(this.configuration).joinEventWaitList(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
19747
+ return (0, exports.WaitListApiFp)(this.configuration).joinEventWaitList(requestParameters.eventId, requestParameters.joinWaitListRequest, options).then((request) => request(this.axios, this.basePath));
19671
19748
  }
19672
19749
  /**
19673
19750
  * Quitter la file d\'attente d\'un booking