@tennac-booking/sdk 1.0.112 → 1.0.114

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
@@ -26,6 +26,16 @@ import globalAxios from 'axios';
26
26
  import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
27
27
  // @ts-ignore
28
28
  import { BASE_PATH, BaseAPI, operationServerMap } from './base';
29
+ /**
30
+ *
31
+ * @export
32
+ * @enum {string}
33
+ */
34
+ export const AgendaPaymentStatus = {
35
+ Pay: 'payé',
36
+ NonPay: 'non payé',
37
+ EnAttente: 'en attente'
38
+ };
29
39
  export const BookingHistoryPopulatedPerformedByTypeEnum = {
30
40
  User: 'user',
31
41
  Manager: 'manager',
@@ -3281,7 +3291,7 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration)
3281
3291
  if (configuration) {
3282
3292
  baseOptions = configuration.baseOptions;
3283
3293
  }
3284
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
3294
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
3285
3295
  const localVarHeaderParameter = {};
3286
3296
  const localVarQueryParameter = {};
3287
3297
  // authentication bearerAuth required
@@ -3345,7 +3355,7 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration)
3345
3355
  if (configuration) {
3346
3356
  baseOptions = configuration.baseOptions;
3347
3357
  }
3348
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
3358
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
3349
3359
  const localVarHeaderParameter = {};
3350
3360
  const localVarQueryParameter = {};
3351
3361
  // authentication bearerAuth required
@@ -4000,6 +4010,34 @@ export const ClubsApiAxiosParamCreator = function (configuration) {
4000
4010
  options: localVarRequestOptions,
4001
4011
  };
4002
4012
  }),
4013
+ /**
4014
+ * Récupère les métadonnées publiques d\'un club
4015
+ * @param {string} clubId
4016
+ * @param {*} [options] Override http request option.
4017
+ * @throws {RequiredError}
4018
+ */
4019
+ getClubMetadata: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
4020
+ // verify required parameter 'clubId' is not null or undefined
4021
+ assertParamExists('getClubMetadata', 'clubId', clubId);
4022
+ const localVarPath = `/api/clubs/{clubId}/metadata`
4023
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
4024
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4025
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4026
+ let baseOptions;
4027
+ if (configuration) {
4028
+ baseOptions = configuration.baseOptions;
4029
+ }
4030
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4031
+ const localVarHeaderParameter = {};
4032
+ const localVarQueryParameter = {};
4033
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4034
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4035
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4036
+ return {
4037
+ url: toPathString(localVarUrlObj),
4038
+ options: localVarRequestOptions,
4039
+ };
4040
+ }),
4003
4041
  /**
4004
4042
  *
4005
4043
  * @param {string} clubId
@@ -4295,6 +4333,21 @@ export const ClubsApiFp = function (configuration) {
4295
4333
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4296
4334
  });
4297
4335
  },
4336
+ /**
4337
+ * Récupère les métadonnées publiques d\'un club
4338
+ * @param {string} clubId
4339
+ * @param {*} [options] Override http request option.
4340
+ * @throws {RequiredError}
4341
+ */
4342
+ getClubMetadata(clubId, options) {
4343
+ return __awaiter(this, void 0, void 0, function* () {
4344
+ var _a, _b, _c;
4345
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubMetadata(clubId, options);
4346
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4347
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsApi.getClubMetadata']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4348
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4349
+ });
4350
+ },
4298
4351
  /**
4299
4352
  *
4300
4353
  * @param {string} clubId
@@ -4460,6 +4513,15 @@ export const ClubsApiFactory = function (configuration, basePath, axios) {
4460
4513
  getClubInfo(options) {
4461
4514
  return localVarFp.getClubInfo(options).then((request) => request(axios, basePath));
4462
4515
  },
4516
+ /**
4517
+ * Récupère les métadonnées publiques d\'un club
4518
+ * @param {ClubsApiGetClubMetadataRequest} requestParameters Request parameters.
4519
+ * @param {*} [options] Override http request option.
4520
+ * @throws {RequiredError}
4521
+ */
4522
+ getClubMetadata(requestParameters, options) {
4523
+ return localVarFp.getClubMetadata(requestParameters.clubId, options).then((request) => request(axios, basePath));
4524
+ },
4463
4525
  /**
4464
4526
  *
4465
4527
  * @param {ClubsApiGetClubPageInfoRequest} requestParameters Request parameters.
@@ -4588,6 +4650,16 @@ export class ClubsApi extends BaseAPI {
4588
4650
  getClubInfo(options) {
4589
4651
  return ClubsApiFp(this.configuration).getClubInfo(options).then((request) => request(this.axios, this.basePath));
4590
4652
  }
4653
+ /**
4654
+ * Récupère les métadonnées publiques d\'un club
4655
+ * @param {ClubsApiGetClubMetadataRequest} requestParameters Request parameters.
4656
+ * @param {*} [options] Override http request option.
4657
+ * @throws {RequiredError}
4658
+ * @memberof ClubsApi
4659
+ */
4660
+ getClubMetadata(requestParameters, options) {
4661
+ return ClubsApiFp(this.configuration).getClubMetadata(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
4662
+ }
4591
4663
  /**
4592
4664
  *
4593
4665
  * @param {ClubsApiGetClubPageInfoRequest} requestParameters Request parameters.
@@ -4890,6 +4962,37 @@ export const ClubsManagerApiAxiosParamCreator = function (configuration) {
4890
4962
  options: localVarRequestOptions,
4891
4963
  };
4892
4964
  }),
4965
+ /**
4966
+ * Supprime un membre d\'un club
4967
+ * @param {string} userId
4968
+ * @param {*} [options] Override http request option.
4969
+ * @throws {RequiredError}
4970
+ */
4971
+ deleteClubMember: (userId_1, ...args_1) => __awaiter(this, [userId_1, ...args_1], void 0, function* (userId, options = {}) {
4972
+ // verify required parameter 'userId' is not null or undefined
4973
+ assertParamExists('deleteClubMember', 'userId', userId);
4974
+ const localVarPath = `/api/clubs/members/{userId}`
4975
+ .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
4976
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4977
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4978
+ let baseOptions;
4979
+ if (configuration) {
4980
+ baseOptions = configuration.baseOptions;
4981
+ }
4982
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
4983
+ const localVarHeaderParameter = {};
4984
+ const localVarQueryParameter = {};
4985
+ // authentication bearerAuth required
4986
+ // http bearer authentication required
4987
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4988
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4989
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4990
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4991
+ return {
4992
+ url: toPathString(localVarUrlObj),
4993
+ options: localVarRequestOptions,
4994
+ };
4995
+ }),
4893
4996
  /**
4894
4997
  * Supprime un terrain et ses créneaux futurs
4895
4998
  * @param {string} courtId
@@ -5427,6 +5530,21 @@ export const ClubsManagerApiFp = function (configuration) {
5427
5530
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5428
5531
  });
5429
5532
  },
5533
+ /**
5534
+ * Supprime un membre d\'un club
5535
+ * @param {string} userId
5536
+ * @param {*} [options] Override http request option.
5537
+ * @throws {RequiredError}
5538
+ */
5539
+ deleteClubMember(userId, options) {
5540
+ return __awaiter(this, void 0, void 0, function* () {
5541
+ var _a, _b, _c;
5542
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteClubMember(userId, options);
5543
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5544
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsManagerApi.deleteClubMember']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5545
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5546
+ });
5547
+ },
5430
5548
  /**
5431
5549
  * Supprime un terrain et ses créneaux futurs
5432
5550
  * @param {string} courtId
@@ -5697,6 +5815,15 @@ export const ClubsManagerApiFactory = function (configuration, basePath, axios)
5697
5815
  deleteActuality(requestParameters, options) {
5698
5816
  return localVarFp.deleteActuality(requestParameters.actualityId, options).then((request) => request(axios, basePath));
5699
5817
  },
5818
+ /**
5819
+ * Supprime un membre d\'un club
5820
+ * @param {ClubsManagerApiDeleteClubMemberRequest} requestParameters Request parameters.
5821
+ * @param {*} [options] Override http request option.
5822
+ * @throws {RequiredError}
5823
+ */
5824
+ deleteClubMember(requestParameters, options) {
5825
+ return localVarFp.deleteClubMember(requestParameters.userId, options).then((request) => request(axios, basePath));
5826
+ },
5700
5827
  /**
5701
5828
  * Supprime un terrain et ses créneaux futurs
5702
5829
  * @param {ClubsManagerApiDeleteCourtRequest} requestParameters Request parameters.
@@ -5892,6 +6019,16 @@ export class ClubsManagerApi extends BaseAPI {
5892
6019
  deleteActuality(requestParameters, options) {
5893
6020
  return ClubsManagerApiFp(this.configuration).deleteActuality(requestParameters.actualityId, options).then((request) => request(this.axios, this.basePath));
5894
6021
  }
6022
+ /**
6023
+ * Supprime un membre d\'un club
6024
+ * @param {ClubsManagerApiDeleteClubMemberRequest} requestParameters Request parameters.
6025
+ * @param {*} [options] Override http request option.
6026
+ * @throws {RequiredError}
6027
+ * @memberof ClubsManagerApi
6028
+ */
6029
+ deleteClubMember(requestParameters, options) {
6030
+ return ClubsManagerApiFp(this.configuration).deleteClubMember(requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
6031
+ }
5895
6032
  /**
5896
6033
  * Supprime un terrain et ses créneaux futurs
5897
6034
  * @param {ClubsManagerApiDeleteCourtRequest} requestParameters Request parameters.
@@ -6284,6 +6421,42 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
6284
6421
  options: localVarRequestOptions,
6285
6422
  };
6286
6423
  }),
6424
+ /**
6425
+ *
6426
+ * @param {string} id
6427
+ * @param {UpdateUserCreditsRequest} updateUserCreditsRequest
6428
+ * @param {*} [options] Override http request option.
6429
+ * @throws {RequiredError}
6430
+ */
6431
+ updateUserCreditsStaff: (id_1, updateUserCreditsRequest_1, ...args_1) => __awaiter(this, [id_1, updateUserCreditsRequest_1, ...args_1], void 0, function* (id, updateUserCreditsRequest, options = {}) {
6432
+ // verify required parameter 'id' is not null or undefined
6433
+ assertParamExists('updateUserCreditsStaff', 'id', id);
6434
+ // verify required parameter 'updateUserCreditsRequest' is not null or undefined
6435
+ assertParamExists('updateUserCreditsStaff', 'updateUserCreditsRequest', updateUserCreditsRequest);
6436
+ const localVarPath = `/api/clubs/staff/user-credits/{id}`
6437
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
6438
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6439
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6440
+ let baseOptions;
6441
+ if (configuration) {
6442
+ baseOptions = configuration.baseOptions;
6443
+ }
6444
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
6445
+ const localVarHeaderParameter = {};
6446
+ const localVarQueryParameter = {};
6447
+ // authentication bearerAuth required
6448
+ // http bearer authentication required
6449
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6450
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6451
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6452
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6453
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6454
+ localVarRequestOptions.data = serializeDataIfNeeded(updateUserCreditsRequest, localVarRequestOptions, configuration);
6455
+ return {
6456
+ url: toPathString(localVarUrlObj),
6457
+ options: localVarRequestOptions,
6458
+ };
6459
+ }),
6287
6460
  };
6288
6461
  };
6289
6462
  /**
@@ -6422,6 +6595,22 @@ export const ClubsStaffApiFp = function (configuration) {
6422
6595
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6423
6596
  });
6424
6597
  },
6598
+ /**
6599
+ *
6600
+ * @param {string} id
6601
+ * @param {UpdateUserCreditsRequest} updateUserCreditsRequest
6602
+ * @param {*} [options] Override http request option.
6603
+ * @throws {RequiredError}
6604
+ */
6605
+ updateUserCreditsStaff(id, updateUserCreditsRequest, options) {
6606
+ return __awaiter(this, void 0, void 0, function* () {
6607
+ var _a, _b, _c;
6608
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserCreditsStaff(id, updateUserCreditsRequest, options);
6609
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6610
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsStaffApi.updateUserCreditsStaff']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6611
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6612
+ });
6613
+ },
6425
6614
  };
6426
6615
  };
6427
6616
  /**
@@ -6505,6 +6694,15 @@ export const ClubsStaffApiFactory = function (configuration, basePath, axios) {
6505
6694
  getUserProfileStaff(requestParameters, options) {
6506
6695
  return localVarFp.getUserProfileStaff(requestParameters.id, options).then((request) => request(axios, basePath));
6507
6696
  },
6697
+ /**
6698
+ *
6699
+ * @param {ClubsStaffApiUpdateUserCreditsStaffRequest} requestParameters Request parameters.
6700
+ * @param {*} [options] Override http request option.
6701
+ * @throws {RequiredError}
6702
+ */
6703
+ updateUserCreditsStaff(requestParameters, options) {
6704
+ return localVarFp.updateUserCreditsStaff(requestParameters.id, requestParameters.updateUserCreditsRequest, options).then((request) => request(axios, basePath));
6705
+ },
6508
6706
  };
6509
6707
  };
6510
6708
  /**
@@ -6597,6 +6795,16 @@ export class ClubsStaffApi extends BaseAPI {
6597
6795
  getUserProfileStaff(requestParameters, options) {
6598
6796
  return ClubsStaffApiFp(this.configuration).getUserProfileStaff(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
6599
6797
  }
6798
+ /**
6799
+ *
6800
+ * @param {ClubsStaffApiUpdateUserCreditsStaffRequest} requestParameters Request parameters.
6801
+ * @param {*} [options] Override http request option.
6802
+ * @throws {RequiredError}
6803
+ * @memberof ClubsStaffApi
6804
+ */
6805
+ updateUserCreditsStaff(requestParameters, options) {
6806
+ return ClubsStaffApiFp(this.configuration).updateUserCreditsStaff(requestParameters.id, requestParameters.updateUserCreditsRequest, options).then((request) => request(this.axios, this.basePath));
6807
+ }
6600
6808
  }
6601
6809
  /**
6602
6810
  * DefaultApi - axios parameter creator
@@ -7564,6 +7772,53 @@ export const EventsStaffApiAxiosParamCreator = function (configuration) {
7564
7772
  options: localVarRequestOptions,
7565
7773
  };
7566
7774
  }),
7775
+ /**
7776
+ * Get events for the day view (entire week)
7777
+ * @param {string} [clubId]
7778
+ * @param {string} [date]
7779
+ * @param {GetDailyEventsVisibilityTypeEnum} [visibilityType]
7780
+ * @param {GetDailyEventsTypeEnum} [type]
7781
+ * @param {string} [sportId]
7782
+ * @param {*} [options] Override http request option.
7783
+ * @throws {RequiredError}
7784
+ */
7785
+ getDailyEvents: (clubId_1, date_1, visibilityType_1, type_1, sportId_1, ...args_1) => __awaiter(this, [clubId_1, date_1, visibilityType_1, type_1, sportId_1, ...args_1], void 0, function* (clubId, date, visibilityType, type, sportId, options = {}) {
7786
+ const localVarPath = `/api/events/calendar/daily`;
7787
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7788
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7789
+ let baseOptions;
7790
+ if (configuration) {
7791
+ baseOptions = configuration.baseOptions;
7792
+ }
7793
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7794
+ const localVarHeaderParameter = {};
7795
+ const localVarQueryParameter = {};
7796
+ // authentication bearerAuth required
7797
+ // http bearer authentication required
7798
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
7799
+ if (clubId !== undefined) {
7800
+ localVarQueryParameter['clubId'] = clubId;
7801
+ }
7802
+ if (date !== undefined) {
7803
+ localVarQueryParameter['date'] = date;
7804
+ }
7805
+ if (visibilityType !== undefined) {
7806
+ localVarQueryParameter['visibilityType'] = visibilityType;
7807
+ }
7808
+ if (type !== undefined) {
7809
+ localVarQueryParameter['type'] = type;
7810
+ }
7811
+ if (sportId !== undefined) {
7812
+ localVarQueryParameter['sportId'] = sportId;
7813
+ }
7814
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7815
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7816
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7817
+ return {
7818
+ url: toPathString(localVarUrlObj),
7819
+ options: localVarRequestOptions,
7820
+ };
7821
+ }),
7567
7822
  /**
7568
7823
  * Get all events for a club (staff only)
7569
7824
  * @param {*} [options] Override http request option.
@@ -7591,6 +7846,100 @@ export const EventsStaffApiAxiosParamCreator = function (configuration) {
7591
7846
  options: localVarRequestOptions,
7592
7847
  };
7593
7848
  }),
7849
+ /**
7850
+ * Get events for the entire month view (including recurring occurrences)
7851
+ * @param {string} [clubId]
7852
+ * @param {string} [date]
7853
+ * @param {GetMonthlyEventsVisibilityTypeEnum} [visibilityType]
7854
+ * @param {GetMonthlyEventsTypeEnum} [type]
7855
+ * @param {string} [sportId]
7856
+ * @param {*} [options] Override http request option.
7857
+ * @throws {RequiredError}
7858
+ */
7859
+ getMonthlyEvents: (clubId_1, date_1, visibilityType_1, type_1, sportId_1, ...args_1) => __awaiter(this, [clubId_1, date_1, visibilityType_1, type_1, sportId_1, ...args_1], void 0, function* (clubId, date, visibilityType, type, sportId, options = {}) {
7860
+ const localVarPath = `/api/events/calendar/monthly`;
7861
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7862
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7863
+ let baseOptions;
7864
+ if (configuration) {
7865
+ baseOptions = configuration.baseOptions;
7866
+ }
7867
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7868
+ const localVarHeaderParameter = {};
7869
+ const localVarQueryParameter = {};
7870
+ // authentication bearerAuth required
7871
+ // http bearer authentication required
7872
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
7873
+ if (clubId !== undefined) {
7874
+ localVarQueryParameter['clubId'] = clubId;
7875
+ }
7876
+ if (date !== undefined) {
7877
+ localVarQueryParameter['date'] = date;
7878
+ }
7879
+ if (visibilityType !== undefined) {
7880
+ localVarQueryParameter['visibilityType'] = visibilityType;
7881
+ }
7882
+ if (type !== undefined) {
7883
+ localVarQueryParameter['type'] = type;
7884
+ }
7885
+ if (sportId !== undefined) {
7886
+ localVarQueryParameter['sportId'] = sportId;
7887
+ }
7888
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7889
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7890
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7891
+ return {
7892
+ url: toPathString(localVarUrlObj),
7893
+ options: localVarRequestOptions,
7894
+ };
7895
+ }),
7896
+ /**
7897
+ * Get events for the week view (30 day sliding window)
7898
+ * @param {string} [clubId]
7899
+ * @param {string} [date]
7900
+ * @param {GetWeeklyEventsVisibilityTypeEnum} [visibilityType]
7901
+ * @param {GetWeeklyEventsTypeEnum} [type]
7902
+ * @param {string} [sportId]
7903
+ * @param {*} [options] Override http request option.
7904
+ * @throws {RequiredError}
7905
+ */
7906
+ getWeeklyEvents: (clubId_1, date_1, visibilityType_1, type_1, sportId_1, ...args_1) => __awaiter(this, [clubId_1, date_1, visibilityType_1, type_1, sportId_1, ...args_1], void 0, function* (clubId, date, visibilityType, type, sportId, options = {}) {
7907
+ const localVarPath = `/api/events/calendar/weekly`;
7908
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7909
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7910
+ let baseOptions;
7911
+ if (configuration) {
7912
+ baseOptions = configuration.baseOptions;
7913
+ }
7914
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7915
+ const localVarHeaderParameter = {};
7916
+ const localVarQueryParameter = {};
7917
+ // authentication bearerAuth required
7918
+ // http bearer authentication required
7919
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
7920
+ if (clubId !== undefined) {
7921
+ localVarQueryParameter['clubId'] = clubId;
7922
+ }
7923
+ if (date !== undefined) {
7924
+ localVarQueryParameter['date'] = date;
7925
+ }
7926
+ if (visibilityType !== undefined) {
7927
+ localVarQueryParameter['visibilityType'] = visibilityType;
7928
+ }
7929
+ if (type !== undefined) {
7930
+ localVarQueryParameter['type'] = type;
7931
+ }
7932
+ if (sportId !== undefined) {
7933
+ localVarQueryParameter['sportId'] = sportId;
7934
+ }
7935
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7936
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7937
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7938
+ return {
7939
+ url: toPathString(localVarUrlObj),
7940
+ options: localVarRequestOptions,
7941
+ };
7942
+ }),
7594
7943
  };
7595
7944
  };
7596
7945
  /**
@@ -7616,6 +7965,25 @@ export const EventsStaffApiFp = function (configuration) {
7616
7965
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7617
7966
  });
7618
7967
  },
7968
+ /**
7969
+ * Get events for the day view (entire week)
7970
+ * @param {string} [clubId]
7971
+ * @param {string} [date]
7972
+ * @param {GetDailyEventsVisibilityTypeEnum} [visibilityType]
7973
+ * @param {GetDailyEventsTypeEnum} [type]
7974
+ * @param {string} [sportId]
7975
+ * @param {*} [options] Override http request option.
7976
+ * @throws {RequiredError}
7977
+ */
7978
+ getDailyEvents(clubId, date, visibilityType, type, sportId, options) {
7979
+ return __awaiter(this, void 0, void 0, function* () {
7980
+ var _a, _b, _c;
7981
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDailyEvents(clubId, date, visibilityType, type, sportId, options);
7982
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7983
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getDailyEvents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7984
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7985
+ });
7986
+ },
7619
7987
  /**
7620
7988
  * Get all events for a club (staff only)
7621
7989
  * @param {*} [options] Override http request option.
@@ -7630,6 +7998,44 @@ export const EventsStaffApiFp = function (configuration) {
7630
7998
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7631
7999
  });
7632
8000
  },
8001
+ /**
8002
+ * Get events for the entire month view (including recurring occurrences)
8003
+ * @param {string} [clubId]
8004
+ * @param {string} [date]
8005
+ * @param {GetMonthlyEventsVisibilityTypeEnum} [visibilityType]
8006
+ * @param {GetMonthlyEventsTypeEnum} [type]
8007
+ * @param {string} [sportId]
8008
+ * @param {*} [options] Override http request option.
8009
+ * @throws {RequiredError}
8010
+ */
8011
+ getMonthlyEvents(clubId, date, visibilityType, type, sportId, options) {
8012
+ return __awaiter(this, void 0, void 0, function* () {
8013
+ var _a, _b, _c;
8014
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getMonthlyEvents(clubId, date, visibilityType, type, sportId, options);
8015
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8016
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getMonthlyEvents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8017
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8018
+ });
8019
+ },
8020
+ /**
8021
+ * Get events for the week view (30 day sliding window)
8022
+ * @param {string} [clubId]
8023
+ * @param {string} [date]
8024
+ * @param {GetWeeklyEventsVisibilityTypeEnum} [visibilityType]
8025
+ * @param {GetWeeklyEventsTypeEnum} [type]
8026
+ * @param {string} [sportId]
8027
+ * @param {*} [options] Override http request option.
8028
+ * @throws {RequiredError}
8029
+ */
8030
+ getWeeklyEvents(clubId, date, visibilityType, type, sportId, options) {
8031
+ return __awaiter(this, void 0, void 0, function* () {
8032
+ var _a, _b, _c;
8033
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getWeeklyEvents(clubId, date, visibilityType, type, sportId, options);
8034
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8035
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getWeeklyEvents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8036
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8037
+ });
8038
+ },
7633
8039
  };
7634
8040
  };
7635
8041
  /**
@@ -7648,6 +8054,15 @@ export const EventsStaffApiFactory = function (configuration, basePath, axios) {
7648
8054
  checkInEventParticipants(requestParameters, options) {
7649
8055
  return localVarFp.checkInEventParticipants(requestParameters.eventBookingId, requestParameters.checkInEventParticipantsRequest, options).then((request) => request(axios, basePath));
7650
8056
  },
8057
+ /**
8058
+ * Get events for the day view (entire week)
8059
+ * @param {EventsStaffApiGetDailyEventsRequest} requestParameters Request parameters.
8060
+ * @param {*} [options] Override http request option.
8061
+ * @throws {RequiredError}
8062
+ */
8063
+ getDailyEvents(requestParameters = {}, options) {
8064
+ return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
8065
+ },
7651
8066
  /**
7652
8067
  * Get all events for a club (staff only)
7653
8068
  * @param {*} [options] Override http request option.
@@ -7656,6 +8071,24 @@ export const EventsStaffApiFactory = function (configuration, basePath, axios) {
7656
8071
  getEventsByClub(options) {
7657
8072
  return localVarFp.getEventsByClub(options).then((request) => request(axios, basePath));
7658
8073
  },
8074
+ /**
8075
+ * Get events for the entire month view (including recurring occurrences)
8076
+ * @param {EventsStaffApiGetMonthlyEventsRequest} requestParameters Request parameters.
8077
+ * @param {*} [options] Override http request option.
8078
+ * @throws {RequiredError}
8079
+ */
8080
+ getMonthlyEvents(requestParameters = {}, options) {
8081
+ return localVarFp.getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
8082
+ },
8083
+ /**
8084
+ * Get events for the week view (30 day sliding window)
8085
+ * @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
8086
+ * @param {*} [options] Override http request option.
8087
+ * @throws {RequiredError}
8088
+ */
8089
+ getWeeklyEvents(requestParameters = {}, options) {
8090
+ return localVarFp.getWeeklyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
8091
+ },
7659
8092
  };
7660
8093
  };
7661
8094
  /**
@@ -7675,6 +8108,16 @@ export class EventsStaffApi extends BaseAPI {
7675
8108
  checkInEventParticipants(requestParameters, options) {
7676
8109
  return EventsStaffApiFp(this.configuration).checkInEventParticipants(requestParameters.eventBookingId, requestParameters.checkInEventParticipantsRequest, options).then((request) => request(this.axios, this.basePath));
7677
8110
  }
8111
+ /**
8112
+ * Get events for the day view (entire week)
8113
+ * @param {EventsStaffApiGetDailyEventsRequest} requestParameters Request parameters.
8114
+ * @param {*} [options] Override http request option.
8115
+ * @throws {RequiredError}
8116
+ * @memberof EventsStaffApi
8117
+ */
8118
+ getDailyEvents(requestParameters = {}, options) {
8119
+ return EventsStaffApiFp(this.configuration).getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
8120
+ }
7678
8121
  /**
7679
8122
  * Get all events for a club (staff only)
7680
8123
  * @param {*} [options] Override http request option.
@@ -7684,7 +8127,72 @@ export class EventsStaffApi extends BaseAPI {
7684
8127
  getEventsByClub(options) {
7685
8128
  return EventsStaffApiFp(this.configuration).getEventsByClub(options).then((request) => request(this.axios, this.basePath));
7686
8129
  }
8130
+ /**
8131
+ * Get events for the entire month view (including recurring occurrences)
8132
+ * @param {EventsStaffApiGetMonthlyEventsRequest} requestParameters Request parameters.
8133
+ * @param {*} [options] Override http request option.
8134
+ * @throws {RequiredError}
8135
+ * @memberof EventsStaffApi
8136
+ */
8137
+ getMonthlyEvents(requestParameters = {}, options) {
8138
+ return EventsStaffApiFp(this.configuration).getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
8139
+ }
8140
+ /**
8141
+ * Get events for the week view (30 day sliding window)
8142
+ * @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
8143
+ * @param {*} [options] Override http request option.
8144
+ * @throws {RequiredError}
8145
+ * @memberof EventsStaffApi
8146
+ */
8147
+ getWeeklyEvents(requestParameters = {}, options) {
8148
+ return EventsStaffApiFp(this.configuration).getWeeklyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
8149
+ }
7687
8150
  }
8151
+ /**
8152
+ * @export
8153
+ */
8154
+ export const GetDailyEventsVisibilityTypeEnum = {
8155
+ Public: 'public',
8156
+ Private: 'private',
8157
+ Invitation: 'invitation'
8158
+ };
8159
+ /**
8160
+ * @export
8161
+ */
8162
+ export const GetDailyEventsTypeEnum = {
8163
+ Event: 'event',
8164
+ Closure: 'closure'
8165
+ };
8166
+ /**
8167
+ * @export
8168
+ */
8169
+ export const GetMonthlyEventsVisibilityTypeEnum = {
8170
+ Public: 'public',
8171
+ Private: 'private',
8172
+ Invitation: 'invitation'
8173
+ };
8174
+ /**
8175
+ * @export
8176
+ */
8177
+ export const GetMonthlyEventsTypeEnum = {
8178
+ Event: 'event',
8179
+ Closure: 'closure'
8180
+ };
8181
+ /**
8182
+ * @export
8183
+ */
8184
+ export const GetWeeklyEventsVisibilityTypeEnum = {
8185
+ Public: 'public',
8186
+ Private: 'private',
8187
+ Invitation: 'invitation'
8188
+ };
8189
+ /**
8190
+ * @export
8191
+ */
8192
+ export const GetWeeklyEventsTypeEnum = {
8193
+ Event: 'event',
8194
+ Closure: 'closure'
8195
+ };
7688
8196
  /**
7689
8197
  * SportsManagerApi - axios parameter creator
7690
8198
  * @export