@tennac-booking/sdk 1.0.185 → 1.0.187

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/esm/api.js CHANGED
@@ -317,6 +317,15 @@ export const StaffUserProfileResponseCreatedFromEnum = {
317
317
  App: 'app',
318
318
  Website: 'website'
319
319
  };
320
+ /**
321
+ *
322
+ * @export
323
+ * @enum {string}
324
+ */
325
+ export const SupportedLanguage = {
326
+ Fr: 'fr',
327
+ En: 'en'
328
+ };
320
329
  /**
321
330
  *
322
331
  * @export
@@ -424,6 +433,166 @@ export const WeekdayKey = {
424
433
  Saturday: 'saturday',
425
434
  Sunday: 'sunday'
426
435
  };
436
+ /**
437
+ * AuthApi - axios parameter creator
438
+ * @export
439
+ */
440
+ export const AuthApiAxiosParamCreator = function (configuration) {
441
+ return {
442
+ /**
443
+ *
444
+ * @param {RequestVerificationCodeBody} requestVerificationCodeBody
445
+ * @param {*} [options] Override http request option.
446
+ * @throws {RequiredError}
447
+ */
448
+ requestVerificationCode: (requestVerificationCodeBody_1, ...args_1) => __awaiter(this, [requestVerificationCodeBody_1, ...args_1], void 0, function* (requestVerificationCodeBody, options = {}) {
449
+ // verify required parameter 'requestVerificationCodeBody' is not null or undefined
450
+ assertParamExists('requestVerificationCode', 'requestVerificationCodeBody', requestVerificationCodeBody);
451
+ const localVarPath = `/api/auth/verification-code`;
452
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
453
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
454
+ let baseOptions;
455
+ if (configuration) {
456
+ baseOptions = configuration.baseOptions;
457
+ }
458
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
459
+ const localVarHeaderParameter = {};
460
+ const localVarQueryParameter = {};
461
+ localVarHeaderParameter['Content-Type'] = 'application/json';
462
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
463
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
464
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
465
+ localVarRequestOptions.data = serializeDataIfNeeded(requestVerificationCodeBody, localVarRequestOptions, configuration);
466
+ return {
467
+ url: toPathString(localVarUrlObj),
468
+ options: localVarRequestOptions,
469
+ };
470
+ }),
471
+ /**
472
+ *
473
+ * @param {VerifyVerificationCodeBody} verifyVerificationCodeBody
474
+ * @param {*} [options] Override http request option.
475
+ * @throws {RequiredError}
476
+ */
477
+ verifyVerificationCode: (verifyVerificationCodeBody_1, ...args_1) => __awaiter(this, [verifyVerificationCodeBody_1, ...args_1], void 0, function* (verifyVerificationCodeBody, options = {}) {
478
+ // verify required parameter 'verifyVerificationCodeBody' is not null or undefined
479
+ assertParamExists('verifyVerificationCode', 'verifyVerificationCodeBody', verifyVerificationCodeBody);
480
+ const localVarPath = `/api/auth/verification-code/verify`;
481
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
482
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
483
+ let baseOptions;
484
+ if (configuration) {
485
+ baseOptions = configuration.baseOptions;
486
+ }
487
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
488
+ const localVarHeaderParameter = {};
489
+ const localVarQueryParameter = {};
490
+ localVarHeaderParameter['Content-Type'] = 'application/json';
491
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
492
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
493
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
494
+ localVarRequestOptions.data = serializeDataIfNeeded(verifyVerificationCodeBody, localVarRequestOptions, configuration);
495
+ return {
496
+ url: toPathString(localVarUrlObj),
497
+ options: localVarRequestOptions,
498
+ };
499
+ }),
500
+ };
501
+ };
502
+ /**
503
+ * AuthApi - functional programming interface
504
+ * @export
505
+ */
506
+ export const AuthApiFp = function (configuration) {
507
+ const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration);
508
+ return {
509
+ /**
510
+ *
511
+ * @param {RequestVerificationCodeBody} requestVerificationCodeBody
512
+ * @param {*} [options] Override http request option.
513
+ * @throws {RequiredError}
514
+ */
515
+ requestVerificationCode(requestVerificationCodeBody, options) {
516
+ return __awaiter(this, void 0, void 0, function* () {
517
+ var _a, _b, _c;
518
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.requestVerificationCode(requestVerificationCodeBody, options);
519
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
520
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthApi.requestVerificationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
521
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
522
+ });
523
+ },
524
+ /**
525
+ *
526
+ * @param {VerifyVerificationCodeBody} verifyVerificationCodeBody
527
+ * @param {*} [options] Override http request option.
528
+ * @throws {RequiredError}
529
+ */
530
+ verifyVerificationCode(verifyVerificationCodeBody, options) {
531
+ return __awaiter(this, void 0, void 0, function* () {
532
+ var _a, _b, _c;
533
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyVerificationCode(verifyVerificationCodeBody, options);
534
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
535
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthApi.verifyVerificationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
536
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
537
+ });
538
+ },
539
+ };
540
+ };
541
+ /**
542
+ * AuthApi - factory interface
543
+ * @export
544
+ */
545
+ export const AuthApiFactory = function (configuration, basePath, axios) {
546
+ const localVarFp = AuthApiFp(configuration);
547
+ return {
548
+ /**
549
+ *
550
+ * @param {AuthApiRequestVerificationCodeRequest} requestParameters Request parameters.
551
+ * @param {*} [options] Override http request option.
552
+ * @throws {RequiredError}
553
+ */
554
+ requestVerificationCode(requestParameters, options) {
555
+ return localVarFp.requestVerificationCode(requestParameters.requestVerificationCodeBody, options).then((request) => request(axios, basePath));
556
+ },
557
+ /**
558
+ *
559
+ * @param {AuthApiVerifyVerificationCodeRequest} requestParameters Request parameters.
560
+ * @param {*} [options] Override http request option.
561
+ * @throws {RequiredError}
562
+ */
563
+ verifyVerificationCode(requestParameters, options) {
564
+ return localVarFp.verifyVerificationCode(requestParameters.verifyVerificationCodeBody, options).then((request) => request(axios, basePath));
565
+ },
566
+ };
567
+ };
568
+ /**
569
+ * AuthApi - object-oriented interface
570
+ * @export
571
+ * @class AuthApi
572
+ * @extends {BaseAPI}
573
+ */
574
+ export class AuthApi extends BaseAPI {
575
+ /**
576
+ *
577
+ * @param {AuthApiRequestVerificationCodeRequest} requestParameters Request parameters.
578
+ * @param {*} [options] Override http request option.
579
+ * @throws {RequiredError}
580
+ * @memberof AuthApi
581
+ */
582
+ requestVerificationCode(requestParameters, options) {
583
+ return AuthApiFp(this.configuration).requestVerificationCode(requestParameters.requestVerificationCodeBody, options).then((request) => request(this.axios, this.basePath));
584
+ }
585
+ /**
586
+ *
587
+ * @param {AuthApiVerifyVerificationCodeRequest} requestParameters Request parameters.
588
+ * @param {*} [options] Override http request option.
589
+ * @throws {RequiredError}
590
+ * @memberof AuthApi
591
+ */
592
+ verifyVerificationCode(requestParameters, options) {
593
+ return AuthApiFp(this.configuration).verifyVerificationCode(requestParameters.verifyVerificationCodeBody, options).then((request) => request(this.axios, this.basePath));
594
+ }
595
+ }
427
596
  /**
428
597
  * BookingsApi - axios parameter creator
429
598
  * @export
@@ -10794,16 +10963,12 @@ export const EventsStaffApiAxiosParamCreator = function (configuration) {
10794
10963
  };
10795
10964
  }),
10796
10965
  /**
10797
- * Get a specific event by ID (staff)
10798
- * @param {string} eventId
10966
+ *
10799
10967
  * @param {*} [options] Override http request option.
10800
10968
  * @throws {RequiredError}
10801
10969
  */
10802
- getEventByIdForStaff: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
10803
- // verify required parameter 'eventId' is not null or undefined
10804
- assertParamExists('getEventByIdForStaff', 'eventId', eventId);
10805
- const localVarPath = `/api/events/staff/{eventId}`
10806
- .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
10970
+ getDraftEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
10971
+ const localVarPath = `/api/events/staff/getEvents/drafts`;
10807
10972
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
10808
10973
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10809
10974
  let baseOptions;
@@ -10825,12 +10990,16 @@ export const EventsStaffApiAxiosParamCreator = function (configuration) {
10825
10990
  };
10826
10991
  }),
10827
10992
  /**
10828
- * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
10993
+ * Get a specific event by ID (staff)
10994
+ * @param {string} eventId
10829
10995
  * @param {*} [options] Override http request option.
10830
10996
  * @throws {RequiredError}
10831
10997
  */
10832
- getEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
10833
- const localVarPath = `/api/events/staff/getEvents`;
10998
+ getEventByIdForStaff: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
10999
+ // verify required parameter 'eventId' is not null or undefined
11000
+ assertParamExists('getEventByIdForStaff', 'eventId', eventId);
11001
+ const localVarPath = `/api/events/staff/{eventId}`
11002
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
10834
11003
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
10835
11004
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10836
11005
  let baseOptions;
@@ -10898,6 +11067,60 @@ export const EventsStaffApiAxiosParamCreator = function (configuration) {
10898
11067
  options: localVarRequestOptions,
10899
11068
  };
10900
11069
  }),
11070
+ /**
11071
+ *
11072
+ * @param {*} [options] Override http request option.
11073
+ * @throws {RequiredError}
11074
+ */
11075
+ getPastEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11076
+ const localVarPath = `/api/events/staff/getEvents/past`;
11077
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11078
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11079
+ let baseOptions;
11080
+ if (configuration) {
11081
+ baseOptions = configuration.baseOptions;
11082
+ }
11083
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11084
+ const localVarHeaderParameter = {};
11085
+ const localVarQueryParameter = {};
11086
+ // authentication bearerAuth required
11087
+ // http bearer authentication required
11088
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
11089
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11090
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11091
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11092
+ return {
11093
+ url: toPathString(localVarUrlObj),
11094
+ options: localVarRequestOptions,
11095
+ };
11096
+ }),
11097
+ /**
11098
+ * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
11099
+ * @param {*} [options] Override http request option.
11100
+ * @throws {RequiredError}
11101
+ */
11102
+ getUpcomingEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11103
+ const localVarPath = `/api/events/staff/getEvents/upcoming`;
11104
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11105
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11106
+ let baseOptions;
11107
+ if (configuration) {
11108
+ baseOptions = configuration.baseOptions;
11109
+ }
11110
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11111
+ const localVarHeaderParameter = {};
11112
+ const localVarQueryParameter = {};
11113
+ // authentication bearerAuth required
11114
+ // http bearer authentication required
11115
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
11116
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11117
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11118
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11119
+ return {
11120
+ url: toPathString(localVarUrlObj),
11121
+ options: localVarRequestOptions,
11122
+ };
11123
+ }),
10901
11124
  /**
10902
11125
  * Get events for the week view (30 day sliding window)
10903
11126
  * @param {string} [clubId]
@@ -10990,31 +11213,31 @@ export const EventsStaffApiFp = function (configuration) {
10990
11213
  });
10991
11214
  },
10992
11215
  /**
10993
- * Get a specific event by ID (staff)
10994
- * @param {string} eventId
11216
+ *
10995
11217
  * @param {*} [options] Override http request option.
10996
11218
  * @throws {RequiredError}
10997
11219
  */
10998
- getEventByIdForStaff(eventId, options) {
11220
+ getDraftEventsByClub(options) {
10999
11221
  return __awaiter(this, void 0, void 0, function* () {
11000
11222
  var _a, _b, _c;
11001
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventByIdForStaff(eventId, options);
11223
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDraftEventsByClub(options);
11002
11224
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11003
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getEventByIdForStaff']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11225
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getDraftEventsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11004
11226
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11005
11227
  });
11006
11228
  },
11007
11229
  /**
11008
- * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
11230
+ * Get a specific event by ID (staff)
11231
+ * @param {string} eventId
11009
11232
  * @param {*} [options] Override http request option.
11010
11233
  * @throws {RequiredError}
11011
11234
  */
11012
- getEventsByClub(options) {
11235
+ getEventByIdForStaff(eventId, options) {
11013
11236
  return __awaiter(this, void 0, void 0, function* () {
11014
11237
  var _a, _b, _c;
11015
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventsByClub(options);
11238
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventByIdForStaff(eventId, options);
11016
11239
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11017
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getEventsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11240
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getEventByIdForStaff']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11018
11241
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11019
11242
  });
11020
11243
  },
@@ -11037,6 +11260,34 @@ export const EventsStaffApiFp = function (configuration) {
11037
11260
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11038
11261
  });
11039
11262
  },
11263
+ /**
11264
+ *
11265
+ * @param {*} [options] Override http request option.
11266
+ * @throws {RequiredError}
11267
+ */
11268
+ getPastEventsByClub(options) {
11269
+ return __awaiter(this, void 0, void 0, function* () {
11270
+ var _a, _b, _c;
11271
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPastEventsByClub(options);
11272
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11273
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getPastEventsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11274
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11275
+ });
11276
+ },
11277
+ /**
11278
+ * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
11279
+ * @param {*} [options] Override http request option.
11280
+ * @throws {RequiredError}
11281
+ */
11282
+ getUpcomingEventsByClub(options) {
11283
+ return __awaiter(this, void 0, void 0, function* () {
11284
+ var _a, _b, _c;
11285
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUpcomingEventsByClub(options);
11286
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11287
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getUpcomingEventsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11288
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11289
+ });
11290
+ },
11040
11291
  /**
11041
11292
  * Get events for the week view (30 day sliding window)
11042
11293
  * @param {string} [clubId]
@@ -11084,21 +11335,21 @@ export const EventsStaffApiFactory = function (configuration, basePath, axios) {
11084
11335
  return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
11085
11336
  },
11086
11337
  /**
11087
- * Get a specific event by ID (staff)
11088
- * @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
11338
+ *
11089
11339
  * @param {*} [options] Override http request option.
11090
11340
  * @throws {RequiredError}
11091
11341
  */
11092
- getEventByIdForStaff(requestParameters, options) {
11093
- return localVarFp.getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(axios, basePath));
11342
+ getDraftEventsByClub(options) {
11343
+ return localVarFp.getDraftEventsByClub(options).then((request) => request(axios, basePath));
11094
11344
  },
11095
11345
  /**
11096
- * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
11346
+ * Get a specific event by ID (staff)
11347
+ * @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
11097
11348
  * @param {*} [options] Override http request option.
11098
11349
  * @throws {RequiredError}
11099
11350
  */
11100
- getEventsByClub(options) {
11101
- return localVarFp.getEventsByClub(options).then((request) => request(axios, basePath));
11351
+ getEventByIdForStaff(requestParameters, options) {
11352
+ return localVarFp.getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(axios, basePath));
11102
11353
  },
11103
11354
  /**
11104
11355
  * Get events for the entire month view (including recurring occurrences)
@@ -11109,6 +11360,22 @@ export const EventsStaffApiFactory = function (configuration, basePath, axios) {
11109
11360
  getMonthlyEvents(requestParameters = {}, options) {
11110
11361
  return localVarFp.getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
11111
11362
  },
11363
+ /**
11364
+ *
11365
+ * @param {*} [options] Override http request option.
11366
+ * @throws {RequiredError}
11367
+ */
11368
+ getPastEventsByClub(options) {
11369
+ return localVarFp.getPastEventsByClub(options).then((request) => request(axios, basePath));
11370
+ },
11371
+ /**
11372
+ * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
11373
+ * @param {*} [options] Override http request option.
11374
+ * @throws {RequiredError}
11375
+ */
11376
+ getUpcomingEventsByClub(options) {
11377
+ return localVarFp.getUpcomingEventsByClub(options).then((request) => request(axios, basePath));
11378
+ },
11112
11379
  /**
11113
11380
  * Get events for the week view (30 day sliding window)
11114
11381
  * @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
@@ -11148,23 +11415,23 @@ export class EventsStaffApi extends BaseAPI {
11148
11415
  return EventsStaffApiFp(this.configuration).getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
11149
11416
  }
11150
11417
  /**
11151
- * Get a specific event by ID (staff)
11152
- * @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
11418
+ *
11153
11419
  * @param {*} [options] Override http request option.
11154
11420
  * @throws {RequiredError}
11155
11421
  * @memberof EventsStaffApi
11156
11422
  */
11157
- getEventByIdForStaff(requestParameters, options) {
11158
- return EventsStaffApiFp(this.configuration).getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
11423
+ getDraftEventsByClub(options) {
11424
+ return EventsStaffApiFp(this.configuration).getDraftEventsByClub(options).then((request) => request(this.axios, this.basePath));
11159
11425
  }
11160
11426
  /**
11161
- * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
11427
+ * Get a specific event by ID (staff)
11428
+ * @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
11162
11429
  * @param {*} [options] Override http request option.
11163
11430
  * @throws {RequiredError}
11164
11431
  * @memberof EventsStaffApi
11165
11432
  */
11166
- getEventsByClub(options) {
11167
- return EventsStaffApiFp(this.configuration).getEventsByClub(options).then((request) => request(this.axios, this.basePath));
11433
+ getEventByIdForStaff(requestParameters, options) {
11434
+ return EventsStaffApiFp(this.configuration).getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
11168
11435
  }
11169
11436
  /**
11170
11437
  * Get events for the entire month view (including recurring occurrences)
@@ -11176,6 +11443,24 @@ export class EventsStaffApi extends BaseAPI {
11176
11443
  getMonthlyEvents(requestParameters = {}, options) {
11177
11444
  return EventsStaffApiFp(this.configuration).getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
11178
11445
  }
11446
+ /**
11447
+ *
11448
+ * @param {*} [options] Override http request option.
11449
+ * @throws {RequiredError}
11450
+ * @memberof EventsStaffApi
11451
+ */
11452
+ getPastEventsByClub(options) {
11453
+ return EventsStaffApiFp(this.configuration).getPastEventsByClub(options).then((request) => request(this.axios, this.basePath));
11454
+ }
11455
+ /**
11456
+ * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
11457
+ * @param {*} [options] Override http request option.
11458
+ * @throws {RequiredError}
11459
+ * @memberof EventsStaffApi
11460
+ */
11461
+ getUpcomingEventsByClub(options) {
11462
+ return EventsStaffApiFp(this.configuration).getUpcomingEventsByClub(options).then((request) => request(this.axios, this.basePath));
11463
+ }
11179
11464
  /**
11180
11465
  * Get events for the week view (30 day sliding window)
11181
11466
  * @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
@@ -11373,9 +11658,9 @@ export const PublicEmailApiAxiosParamCreator = function (configuration) {
11373
11658
  * @param {*} [options] Override http request option.
11374
11659
  * @throws {RequiredError}
11375
11660
  */
11376
- requestVerificationCode: (requestEmailCodeBody_1, ...args_1) => __awaiter(this, [requestEmailCodeBody_1, ...args_1], void 0, function* (requestEmailCodeBody, options = {}) {
11661
+ requestPublicEmailVerificationCode: (requestEmailCodeBody_1, ...args_1) => __awaiter(this, [requestEmailCodeBody_1, ...args_1], void 0, function* (requestEmailCodeBody, options = {}) {
11377
11662
  // verify required parameter 'requestEmailCodeBody' is not null or undefined
11378
- assertParamExists('requestVerificationCode', 'requestEmailCodeBody', requestEmailCodeBody);
11663
+ assertParamExists('requestPublicEmailVerificationCode', 'requestEmailCodeBody', requestEmailCodeBody);
11379
11664
  const localVarPath = `/api/public-email/request-verification-code`;
11380
11665
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11381
11666
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -11455,12 +11740,12 @@ export const PublicEmailApiFp = function (configuration) {
11455
11740
  * @param {*} [options] Override http request option.
11456
11741
  * @throws {RequiredError}
11457
11742
  */
11458
- requestVerificationCode(requestEmailCodeBody, options) {
11743
+ requestPublicEmailVerificationCode(requestEmailCodeBody, options) {
11459
11744
  return __awaiter(this, void 0, void 0, function* () {
11460
11745
  var _a, _b, _c;
11461
- const localVarAxiosArgs = yield localVarAxiosParamCreator.requestVerificationCode(requestEmailCodeBody, options);
11746
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.requestPublicEmailVerificationCode(requestEmailCodeBody, options);
11462
11747
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11463
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PublicEmailApi.requestVerificationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11748
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PublicEmailApi.requestPublicEmailVerificationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11464
11749
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11465
11750
  });
11466
11751
  },
@@ -11499,12 +11784,12 @@ export const PublicEmailApiFactory = function (configuration, basePath, axios) {
11499
11784
  },
11500
11785
  /**
11501
11786
  *
11502
- * @param {PublicEmailApiRequestVerificationCodeRequest} requestParameters Request parameters.
11787
+ * @param {PublicEmailApiRequestPublicEmailVerificationCodeRequest} requestParameters Request parameters.
11503
11788
  * @param {*} [options] Override http request option.
11504
11789
  * @throws {RequiredError}
11505
11790
  */
11506
- requestVerificationCode(requestParameters, options) {
11507
- return localVarFp.requestVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(axios, basePath));
11791
+ requestPublicEmailVerificationCode(requestParameters, options) {
11792
+ return localVarFp.requestPublicEmailVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(axios, basePath));
11508
11793
  },
11509
11794
  /**
11510
11795
  *
@@ -11536,13 +11821,13 @@ export class PublicEmailApi extends BaseAPI {
11536
11821
  }
11537
11822
  /**
11538
11823
  *
11539
- * @param {PublicEmailApiRequestVerificationCodeRequest} requestParameters Request parameters.
11824
+ * @param {PublicEmailApiRequestPublicEmailVerificationCodeRequest} requestParameters Request parameters.
11540
11825
  * @param {*} [options] Override http request option.
11541
11826
  * @throws {RequiredError}
11542
11827
  * @memberof PublicEmailApi
11543
11828
  */
11544
- requestVerificationCode(requestParameters, options) {
11545
- return PublicEmailApiFp(this.configuration).requestVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
11829
+ requestPublicEmailVerificationCode(requestParameters, options) {
11830
+ return PublicEmailApiFp(this.configuration).requestPublicEmailVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
11546
11831
  }
11547
11832
  /**
11548
11833
  *
@@ -13857,6 +14142,38 @@ export const UsersApiAxiosParamCreator = function (configuration) {
13857
14142
  options: localVarRequestOptions,
13858
14143
  };
13859
14144
  }),
14145
+ /**
14146
+ *
14147
+ * @param {RequestOrganizationEmailCodeBody} requestOrganizationEmailCodeBody
14148
+ * @param {*} [options] Override http request option.
14149
+ * @throws {RequiredError}
14150
+ */
14151
+ requestOrganizationCode: (requestOrganizationEmailCodeBody_1, ...args_1) => __awaiter(this, [requestOrganizationEmailCodeBody_1, ...args_1], void 0, function* (requestOrganizationEmailCodeBody, options = {}) {
14152
+ // verify required parameter 'requestOrganizationEmailCodeBody' is not null or undefined
14153
+ assertParamExists('requestOrganizationCode', 'requestOrganizationEmailCodeBody', requestOrganizationEmailCodeBody);
14154
+ const localVarPath = `/api/users/me/request-organization-code`;
14155
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14156
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14157
+ let baseOptions;
14158
+ if (configuration) {
14159
+ baseOptions = configuration.baseOptions;
14160
+ }
14161
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
14162
+ const localVarHeaderParameter = {};
14163
+ const localVarQueryParameter = {};
14164
+ // authentication bearerAuth required
14165
+ // http bearer authentication required
14166
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
14167
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14168
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14169
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14170
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14171
+ localVarRequestOptions.data = serializeDataIfNeeded(requestOrganizationEmailCodeBody, localVarRequestOptions, configuration);
14172
+ return {
14173
+ url: toPathString(localVarUrlObj),
14174
+ options: localVarRequestOptions,
14175
+ };
14176
+ }),
13860
14177
  /**
13861
14178
  *
13862
14179
  * @param {PasswordResetRequestBody} passwordResetRequestBody
@@ -14130,6 +14447,38 @@ export const UsersApiAxiosParamCreator = function (configuration) {
14130
14447
  options: localVarRequestOptions,
14131
14448
  };
14132
14449
  }),
14450
+ /**
14451
+ *
14452
+ * @param {VerifyOrganizationEmailCodeBody} verifyOrganizationEmailCodeBody
14453
+ * @param {*} [options] Override http request option.
14454
+ * @throws {RequiredError}
14455
+ */
14456
+ verifyOrganizationCode: (verifyOrganizationEmailCodeBody_1, ...args_1) => __awaiter(this, [verifyOrganizationEmailCodeBody_1, ...args_1], void 0, function* (verifyOrganizationEmailCodeBody, options = {}) {
14457
+ // verify required parameter 'verifyOrganizationEmailCodeBody' is not null or undefined
14458
+ assertParamExists('verifyOrganizationCode', 'verifyOrganizationEmailCodeBody', verifyOrganizationEmailCodeBody);
14459
+ const localVarPath = `/api/users/me/verify-organization-code`;
14460
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14461
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14462
+ let baseOptions;
14463
+ if (configuration) {
14464
+ baseOptions = configuration.baseOptions;
14465
+ }
14466
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
14467
+ const localVarHeaderParameter = {};
14468
+ const localVarQueryParameter = {};
14469
+ // authentication bearerAuth required
14470
+ // http bearer authentication required
14471
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
14472
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14473
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14474
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14475
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14476
+ localVarRequestOptions.data = serializeDataIfNeeded(verifyOrganizationEmailCodeBody, localVarRequestOptions, configuration);
14477
+ return {
14478
+ url: toPathString(localVarUrlObj),
14479
+ options: localVarRequestOptions,
14480
+ };
14481
+ }),
14133
14482
  };
14134
14483
  };
14135
14484
  /**
@@ -14629,6 +14978,21 @@ export const UsersApiFp = function (configuration) {
14629
14978
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14630
14979
  });
14631
14980
  },
14981
+ /**
14982
+ *
14983
+ * @param {RequestOrganizationEmailCodeBody} requestOrganizationEmailCodeBody
14984
+ * @param {*} [options] Override http request option.
14985
+ * @throws {RequiredError}
14986
+ */
14987
+ requestOrganizationCode(requestOrganizationEmailCodeBody, options) {
14988
+ return __awaiter(this, void 0, void 0, function* () {
14989
+ var _a, _b, _c;
14990
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.requestOrganizationCode(requestOrganizationEmailCodeBody, options);
14991
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
14992
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.requestOrganizationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
14993
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14994
+ });
14995
+ },
14632
14996
  /**
14633
14997
  *
14634
14998
  * @param {PasswordResetRequestBody} passwordResetRequestBody
@@ -14764,6 +15128,21 @@ export const UsersApiFp = function (configuration) {
14764
15128
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14765
15129
  });
14766
15130
  },
15131
+ /**
15132
+ *
15133
+ * @param {VerifyOrganizationEmailCodeBody} verifyOrganizationEmailCodeBody
15134
+ * @param {*} [options] Override http request option.
15135
+ * @throws {RequiredError}
15136
+ */
15137
+ verifyOrganizationCode(verifyOrganizationEmailCodeBody, options) {
15138
+ return __awaiter(this, void 0, void 0, function* () {
15139
+ var _a, _b, _c;
15140
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyOrganizationCode(verifyOrganizationEmailCodeBody, options);
15141
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15142
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.verifyOrganizationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15143
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15144
+ });
15145
+ },
14767
15146
  };
14768
15147
  };
14769
15148
  /**
@@ -15052,6 +15431,15 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
15052
15431
  requestEmailVerification(options) {
15053
15432
  return localVarFp.requestEmailVerification(options).then((request) => request(axios, basePath));
15054
15433
  },
15434
+ /**
15435
+ *
15436
+ * @param {UsersApiRequestOrganizationCodeRequest} requestParameters Request parameters.
15437
+ * @param {*} [options] Override http request option.
15438
+ * @throws {RequiredError}
15439
+ */
15440
+ requestOrganizationCode(requestParameters, options) {
15441
+ return localVarFp.requestOrganizationCode(requestParameters.requestOrganizationEmailCodeBody, options).then((request) => request(axios, basePath));
15442
+ },
15055
15443
  /**
15056
15444
  *
15057
15445
  * @param {UsersApiRequestPasswordResetRequest} requestParameters Request parameters.
@@ -15133,6 +15521,15 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
15133
15521
  verifyOrganization(requestParameters, options) {
15134
15522
  return localVarFp.verifyOrganization(requestParameters.verifyEmailRequest, options).then((request) => request(axios, basePath));
15135
15523
  },
15524
+ /**
15525
+ *
15526
+ * @param {UsersApiVerifyOrganizationCodeRequest} requestParameters Request parameters.
15527
+ * @param {*} [options] Override http request option.
15528
+ * @throws {RequiredError}
15529
+ */
15530
+ verifyOrganizationCode(requestParameters, options) {
15531
+ return localVarFp.verifyOrganizationCode(requestParameters.verifyOrganizationEmailCodeBody, options).then((request) => request(axios, basePath));
15532
+ },
15136
15533
  };
15137
15534
  };
15138
15535
  /**
@@ -15453,6 +15850,16 @@ export class UsersApi extends BaseAPI {
15453
15850
  requestEmailVerification(options) {
15454
15851
  return UsersApiFp(this.configuration).requestEmailVerification(options).then((request) => request(this.axios, this.basePath));
15455
15852
  }
15853
+ /**
15854
+ *
15855
+ * @param {UsersApiRequestOrganizationCodeRequest} requestParameters Request parameters.
15856
+ * @param {*} [options] Override http request option.
15857
+ * @throws {RequiredError}
15858
+ * @memberof UsersApi
15859
+ */
15860
+ requestOrganizationCode(requestParameters, options) {
15861
+ return UsersApiFp(this.configuration).requestOrganizationCode(requestParameters.requestOrganizationEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
15862
+ }
15456
15863
  /**
15457
15864
  *
15458
15865
  * @param {UsersApiRequestPasswordResetRequest} requestParameters Request parameters.
@@ -15543,6 +15950,16 @@ export class UsersApi extends BaseAPI {
15543
15950
  verifyOrganization(requestParameters, options) {
15544
15951
  return UsersApiFp(this.configuration).verifyOrganization(requestParameters.verifyEmailRequest, options).then((request) => request(this.axios, this.basePath));
15545
15952
  }
15953
+ /**
15954
+ *
15955
+ * @param {UsersApiVerifyOrganizationCodeRequest} requestParameters Request parameters.
15956
+ * @param {*} [options] Override http request option.
15957
+ * @throws {RequiredError}
15958
+ * @memberof UsersApi
15959
+ */
15960
+ verifyOrganizationCode(requestParameters, options) {
15961
+ return UsersApiFp(this.configuration).verifyOrganizationCode(requestParameters.verifyOrganizationEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
15962
+ }
15546
15963
  }
15547
15964
  /**
15548
15965
  * WaitListApi - axios parameter creator