@tennac-booking/sdk 1.0.249 → 1.0.251

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
@@ -16890,6 +16890,38 @@ const UsersApiAxiosParamCreator = function (configuration) {
16890
16890
  options: localVarRequestOptions,
16891
16891
  };
16892
16892
  }),
16893
+ /**
16894
+ *
16895
+ * @param {AccountDeletionRequestBody} accountDeletionRequestBody
16896
+ * @param {*} [options] Override http request option.
16897
+ * @throws {RequiredError}
16898
+ */
16899
+ requestAccountDeletion: (accountDeletionRequestBody_1, ...args_1) => __awaiter(this, [accountDeletionRequestBody_1, ...args_1], void 0, function* (accountDeletionRequestBody, options = {}) {
16900
+ // verify required parameter 'accountDeletionRequestBody' is not null or undefined
16901
+ (0, common_1.assertParamExists)('requestAccountDeletion', 'accountDeletionRequestBody', accountDeletionRequestBody);
16902
+ const localVarPath = `/api/users/me/request-account-deletion`;
16903
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16904
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
16905
+ let baseOptions;
16906
+ if (configuration) {
16907
+ baseOptions = configuration.baseOptions;
16908
+ }
16909
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
16910
+ const localVarHeaderParameter = {};
16911
+ const localVarQueryParameter = {};
16912
+ // authentication bearerAuth required
16913
+ // http bearer authentication required
16914
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
16915
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16916
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
16917
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16918
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16919
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(accountDeletionRequestBody, localVarRequestOptions, configuration);
16920
+ return {
16921
+ url: (0, common_1.toPathString)(localVarUrlObj),
16922
+ options: localVarRequestOptions,
16923
+ };
16924
+ }),
16893
16925
  /**
16894
16926
  *
16895
16927
  * @param {*} [options] Override http request option.
@@ -17871,6 +17903,21 @@ const UsersApiFp = function (configuration) {
17871
17903
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17872
17904
  });
17873
17905
  },
17906
+ /**
17907
+ *
17908
+ * @param {AccountDeletionRequestBody} accountDeletionRequestBody
17909
+ * @param {*} [options] Override http request option.
17910
+ * @throws {RequiredError}
17911
+ */
17912
+ requestAccountDeletion(accountDeletionRequestBody, options) {
17913
+ return __awaiter(this, void 0, void 0, function* () {
17914
+ var _a, _b, _c;
17915
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.requestAccountDeletion(accountDeletionRequestBody, options);
17916
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
17917
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.requestAccountDeletion']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
17918
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17919
+ });
17920
+ },
17874
17921
  /**
17875
17922
  *
17876
17923
  * @param {*} [options] Override http request option.
@@ -18396,6 +18443,15 @@ const UsersApiFactory = function (configuration, basePath, axios) {
18396
18443
  removeOrganization(requestParameters, options) {
18397
18444
  return localVarFp.removeOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(axios, basePath));
18398
18445
  },
18446
+ /**
18447
+ *
18448
+ * @param {UsersApiRequestAccountDeletionRequest} requestParameters Request parameters.
18449
+ * @param {*} [options] Override http request option.
18450
+ * @throws {RequiredError}
18451
+ */
18452
+ requestAccountDeletion(requestParameters, options) {
18453
+ return localVarFp.requestAccountDeletion(requestParameters.accountDeletionRequestBody, options).then((request) => request(axios, basePath));
18454
+ },
18399
18455
  /**
18400
18456
  *
18401
18457
  * @param {*} [options] Override http request option.
@@ -18874,6 +18930,16 @@ class UsersApi extends base_1.BaseAPI {
18874
18930
  removeOrganization(requestParameters, options) {
18875
18931
  return (0, exports.UsersApiFp)(this.configuration).removeOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(this.axios, this.basePath));
18876
18932
  }
18933
+ /**
18934
+ *
18935
+ * @param {UsersApiRequestAccountDeletionRequest} requestParameters Request parameters.
18936
+ * @param {*} [options] Override http request option.
18937
+ * @throws {RequiredError}
18938
+ * @memberof UsersApi
18939
+ */
18940
+ requestAccountDeletion(requestParameters, options) {
18941
+ return (0, exports.UsersApiFp)(this.configuration).requestAccountDeletion(requestParameters.accountDeletionRequestBody, options).then((request) => request(this.axios, this.basePath));
18942
+ }
18877
18943
  /**
18878
18944
  *
18879
18945
  * @param {*} [options] Override http request option.
@@ -19114,10 +19180,11 @@ const WaitListApiAxiosParamCreator = function (configuration) {
19114
19180
  /**
19115
19181
  * Rejoindre la file d\'attente pour un booking (créneau ouvert)
19116
19182
  * @param {string} bookingId
19183
+ * @param {JoinWaitListRequest} [joinWaitListRequest]
19117
19184
  * @param {*} [options] Override http request option.
19118
19185
  * @throws {RequiredError}
19119
19186
  */
19120
- joinBookingWaitList: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
19187
+ joinBookingWaitList: (bookingId_1, joinWaitListRequest_1, ...args_1) => __awaiter(this, [bookingId_1, joinWaitListRequest_1, ...args_1], void 0, function* (bookingId, joinWaitListRequest, options = {}) {
19121
19188
  // verify required parameter 'bookingId' is not null or undefined
19122
19189
  (0, common_1.assertParamExists)('joinBookingWaitList', 'bookingId', bookingId);
19123
19190
  const localVarPath = `/api/waitlist/booking/{bookingId}/join`
@@ -19134,9 +19201,11 @@ const WaitListApiAxiosParamCreator = function (configuration) {
19134
19201
  // authentication bearerAuth required
19135
19202
  // http bearer authentication required
19136
19203
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
19204
+ localVarHeaderParameter['Content-Type'] = 'application/json';
19137
19205
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
19138
19206
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19139
19207
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19208
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(joinWaitListRequest, localVarRequestOptions, configuration);
19140
19209
  return {
19141
19210
  url: (0, common_1.toPathString)(localVarUrlObj),
19142
19211
  options: localVarRequestOptions,
@@ -19145,10 +19214,11 @@ const WaitListApiAxiosParamCreator = function (configuration) {
19145
19214
  /**
19146
19215
  * Rejoindre la file d\'attente pour un eventBooking (event en équipe avec créneau ouvert)
19147
19216
  * @param {string} eventBookingId
19217
+ * @param {JoinWaitListRequest} [joinWaitListRequest]
19148
19218
  * @param {*} [options] Override http request option.
19149
19219
  * @throws {RequiredError}
19150
19220
  */
19151
- joinEventBookingWaitList: (eventBookingId_1, ...args_1) => __awaiter(this, [eventBookingId_1, ...args_1], void 0, function* (eventBookingId, options = {}) {
19221
+ joinEventBookingWaitList: (eventBookingId_1, joinWaitListRequest_1, ...args_1) => __awaiter(this, [eventBookingId_1, joinWaitListRequest_1, ...args_1], void 0, function* (eventBookingId, joinWaitListRequest, options = {}) {
19152
19222
  // verify required parameter 'eventBookingId' is not null or undefined
19153
19223
  (0, common_1.assertParamExists)('joinEventBookingWaitList', 'eventBookingId', eventBookingId);
19154
19224
  const localVarPath = `/api/waitlist/event-booking/{eventBookingId}/join`
@@ -19165,9 +19235,11 @@ const WaitListApiAxiosParamCreator = function (configuration) {
19165
19235
  // authentication bearerAuth required
19166
19236
  // http bearer authentication required
19167
19237
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
19238
+ localVarHeaderParameter['Content-Type'] = 'application/json';
19168
19239
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
19169
19240
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19170
19241
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19242
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(joinWaitListRequest, localVarRequestOptions, configuration);
19171
19243
  return {
19172
19244
  url: (0, common_1.toPathString)(localVarUrlObj),
19173
19245
  options: localVarRequestOptions,
@@ -19176,10 +19248,11 @@ const WaitListApiAxiosParamCreator = function (configuration) {
19176
19248
  /**
19177
19249
  * Rejoindre la file d\'attente pour un event (participation solo)
19178
19250
  * @param {string} eventId
19251
+ * @param {JoinWaitListRequest} [joinWaitListRequest]
19179
19252
  * @param {*} [options] Override http request option.
19180
19253
  * @throws {RequiredError}
19181
19254
  */
19182
- joinEventWaitList: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
19255
+ joinEventWaitList: (eventId_1, joinWaitListRequest_1, ...args_1) => __awaiter(this, [eventId_1, joinWaitListRequest_1, ...args_1], void 0, function* (eventId, joinWaitListRequest, options = {}) {
19183
19256
  // verify required parameter 'eventId' is not null or undefined
19184
19257
  (0, common_1.assertParamExists)('joinEventWaitList', 'eventId', eventId);
19185
19258
  const localVarPath = `/api/waitlist/event/{eventId}/join`
@@ -19196,9 +19269,11 @@ const WaitListApiAxiosParamCreator = function (configuration) {
19196
19269
  // authentication bearerAuth required
19197
19270
  // http bearer authentication required
19198
19271
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
19272
+ localVarHeaderParameter['Content-Type'] = 'application/json';
19199
19273
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
19200
19274
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19201
19275
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19276
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(joinWaitListRequest, localVarRequestOptions, configuration);
19202
19277
  return {
19203
19278
  url: (0, common_1.toPathString)(localVarUrlObj),
19204
19279
  options: localVarRequestOptions,
@@ -19355,13 +19430,14 @@ const WaitListApiFp = function (configuration) {
19355
19430
  /**
19356
19431
  * Rejoindre la file d\'attente pour un booking (créneau ouvert)
19357
19432
  * @param {string} bookingId
19433
+ * @param {JoinWaitListRequest} [joinWaitListRequest]
19358
19434
  * @param {*} [options] Override http request option.
19359
19435
  * @throws {RequiredError}
19360
19436
  */
19361
- joinBookingWaitList(bookingId, options) {
19437
+ joinBookingWaitList(bookingId, joinWaitListRequest, options) {
19362
19438
  return __awaiter(this, void 0, void 0, function* () {
19363
19439
  var _a, _b, _c;
19364
- const localVarAxiosArgs = yield localVarAxiosParamCreator.joinBookingWaitList(bookingId, options);
19440
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.joinBookingWaitList(bookingId, joinWaitListRequest, options);
19365
19441
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
19366
19442
  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;
19367
19443
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -19370,13 +19446,14 @@ const WaitListApiFp = function (configuration) {
19370
19446
  /**
19371
19447
  * Rejoindre la file d\'attente pour un eventBooking (event en équipe avec créneau ouvert)
19372
19448
  * @param {string} eventBookingId
19449
+ * @param {JoinWaitListRequest} [joinWaitListRequest]
19373
19450
  * @param {*} [options] Override http request option.
19374
19451
  * @throws {RequiredError}
19375
19452
  */
19376
- joinEventBookingWaitList(eventBookingId, options) {
19453
+ joinEventBookingWaitList(eventBookingId, joinWaitListRequest, options) {
19377
19454
  return __awaiter(this, void 0, void 0, function* () {
19378
19455
  var _a, _b, _c;
19379
- const localVarAxiosArgs = yield localVarAxiosParamCreator.joinEventBookingWaitList(eventBookingId, options);
19456
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.joinEventBookingWaitList(eventBookingId, joinWaitListRequest, options);
19380
19457
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
19381
19458
  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;
19382
19459
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -19385,13 +19462,14 @@ const WaitListApiFp = function (configuration) {
19385
19462
  /**
19386
19463
  * Rejoindre la file d\'attente pour un event (participation solo)
19387
19464
  * @param {string} eventId
19465
+ * @param {JoinWaitListRequest} [joinWaitListRequest]
19388
19466
  * @param {*} [options] Override http request option.
19389
19467
  * @throws {RequiredError}
19390
19468
  */
19391
- joinEventWaitList(eventId, options) {
19469
+ joinEventWaitList(eventId, joinWaitListRequest, options) {
19392
19470
  return __awaiter(this, void 0, void 0, function* () {
19393
19471
  var _a, _b, _c;
19394
- const localVarAxiosArgs = yield localVarAxiosParamCreator.joinEventWaitList(eventId, options);
19472
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.joinEventWaitList(eventId, joinWaitListRequest, options);
19395
19473
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
19396
19474
  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;
19397
19475
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -19486,7 +19564,7 @@ const WaitListApiFactory = function (configuration, basePath, axios) {
19486
19564
  * @throws {RequiredError}
19487
19565
  */
19488
19566
  joinBookingWaitList(requestParameters, options) {
19489
- return localVarFp.joinBookingWaitList(requestParameters.bookingId, options).then((request) => request(axios, basePath));
19567
+ return localVarFp.joinBookingWaitList(requestParameters.bookingId, requestParameters.joinWaitListRequest, options).then((request) => request(axios, basePath));
19490
19568
  },
19491
19569
  /**
19492
19570
  * Rejoindre la file d\'attente pour un eventBooking (event en équipe avec créneau ouvert)
@@ -19495,7 +19573,7 @@ const WaitListApiFactory = function (configuration, basePath, axios) {
19495
19573
  * @throws {RequiredError}
19496
19574
  */
19497
19575
  joinEventBookingWaitList(requestParameters, options) {
19498
- return localVarFp.joinEventBookingWaitList(requestParameters.eventBookingId, options).then((request) => request(axios, basePath));
19576
+ return localVarFp.joinEventBookingWaitList(requestParameters.eventBookingId, requestParameters.joinWaitListRequest, options).then((request) => request(axios, basePath));
19499
19577
  },
19500
19578
  /**
19501
19579
  * Rejoindre la file d\'attente pour un event (participation solo)
@@ -19504,7 +19582,7 @@ const WaitListApiFactory = function (configuration, basePath, axios) {
19504
19582
  * @throws {RequiredError}
19505
19583
  */
19506
19584
  joinEventWaitList(requestParameters, options) {
19507
- return localVarFp.joinEventWaitList(requestParameters.eventId, options).then((request) => request(axios, basePath));
19585
+ return localVarFp.joinEventWaitList(requestParameters.eventId, requestParameters.joinWaitListRequest, options).then((request) => request(axios, basePath));
19508
19586
  },
19509
19587
  /**
19510
19588
  * Quitter la file d\'attente d\'un booking
@@ -19581,7 +19659,7 @@ class WaitListApi extends base_1.BaseAPI {
19581
19659
  * @memberof WaitListApi
19582
19660
  */
19583
19661
  joinBookingWaitList(requestParameters, options) {
19584
- return (0, exports.WaitListApiFp)(this.configuration).joinBookingWaitList(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
19662
+ return (0, exports.WaitListApiFp)(this.configuration).joinBookingWaitList(requestParameters.bookingId, requestParameters.joinWaitListRequest, options).then((request) => request(this.axios, this.basePath));
19585
19663
  }
19586
19664
  /**
19587
19665
  * Rejoindre la file d\'attente pour un eventBooking (event en équipe avec créneau ouvert)
@@ -19591,7 +19669,7 @@ class WaitListApi extends base_1.BaseAPI {
19591
19669
  * @memberof WaitListApi
19592
19670
  */
19593
19671
  joinEventBookingWaitList(requestParameters, options) {
19594
- return (0, exports.WaitListApiFp)(this.configuration).joinEventBookingWaitList(requestParameters.eventBookingId, options).then((request) => request(this.axios, this.basePath));
19672
+ return (0, exports.WaitListApiFp)(this.configuration).joinEventBookingWaitList(requestParameters.eventBookingId, requestParameters.joinWaitListRequest, options).then((request) => request(this.axios, this.basePath));
19595
19673
  }
19596
19674
  /**
19597
19675
  * Rejoindre la file d\'attente pour un event (participation solo)
@@ -19601,7 +19679,7 @@ class WaitListApi extends base_1.BaseAPI {
19601
19679
  * @memberof WaitListApi
19602
19680
  */
19603
19681
  joinEventWaitList(requestParameters, options) {
19604
- return (0, exports.WaitListApiFp)(this.configuration).joinEventWaitList(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
19682
+ return (0, exports.WaitListApiFp)(this.configuration).joinEventWaitList(requestParameters.eventId, requestParameters.joinWaitListRequest, options).then((request) => request(this.axios, this.basePath));
19605
19683
  }
19606
19684
  /**
19607
19685
  * Quitter la file d\'attente d\'un booking