@tennac-booking/sdk 1.0.185 → 1.0.186

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
@@ -10880,16 +10880,12 @@ const EventsStaffApiAxiosParamCreator = function (configuration) {
10880
10880
  };
10881
10881
  }),
10882
10882
  /**
10883
- * Get a specific event by ID (staff)
10884
- * @param {string} eventId
10883
+ *
10885
10884
  * @param {*} [options] Override http request option.
10886
10885
  * @throws {RequiredError}
10887
10886
  */
10888
- getEventByIdForStaff: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
10889
- // verify required parameter 'eventId' is not null or undefined
10890
- (0, common_1.assertParamExists)('getEventByIdForStaff', 'eventId', eventId);
10891
- const localVarPath = `/api/events/staff/{eventId}`
10892
- .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
10887
+ getDraftEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
10888
+ const localVarPath = `/api/events/staff/getEvents/drafts`;
10893
10889
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
10894
10890
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10895
10891
  let baseOptions;
@@ -10911,12 +10907,16 @@ const EventsStaffApiAxiosParamCreator = function (configuration) {
10911
10907
  };
10912
10908
  }),
10913
10909
  /**
10914
- * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
10910
+ * Get a specific event by ID (staff)
10911
+ * @param {string} eventId
10915
10912
  * @param {*} [options] Override http request option.
10916
10913
  * @throws {RequiredError}
10917
10914
  */
10918
- getEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
10919
- const localVarPath = `/api/events/staff/getEvents`;
10915
+ getEventByIdForStaff: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
10916
+ // verify required parameter 'eventId' is not null or undefined
10917
+ (0, common_1.assertParamExists)('getEventByIdForStaff', 'eventId', eventId);
10918
+ const localVarPath = `/api/events/staff/{eventId}`
10919
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
10920
10920
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
10921
10921
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10922
10922
  let baseOptions;
@@ -10984,6 +10984,60 @@ const EventsStaffApiAxiosParamCreator = function (configuration) {
10984
10984
  options: localVarRequestOptions,
10985
10985
  };
10986
10986
  }),
10987
+ /**
10988
+ *
10989
+ * @param {*} [options] Override http request option.
10990
+ * @throws {RequiredError}
10991
+ */
10992
+ getPastEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
10993
+ const localVarPath = `/api/events/staff/getEvents/past`;
10994
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10995
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10996
+ let baseOptions;
10997
+ if (configuration) {
10998
+ baseOptions = configuration.baseOptions;
10999
+ }
11000
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11001
+ const localVarHeaderParameter = {};
11002
+ const localVarQueryParameter = {};
11003
+ // authentication bearerAuth required
11004
+ // http bearer authentication required
11005
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
11006
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
11007
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11008
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11009
+ return {
11010
+ url: (0, common_1.toPathString)(localVarUrlObj),
11011
+ options: localVarRequestOptions,
11012
+ };
11013
+ }),
11014
+ /**
11015
+ * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
11016
+ * @param {*} [options] Override http request option.
11017
+ * @throws {RequiredError}
11018
+ */
11019
+ getUpcomingEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11020
+ const localVarPath = `/api/events/staff/getEvents/upcoming`;
11021
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11022
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
11023
+ let baseOptions;
11024
+ if (configuration) {
11025
+ baseOptions = configuration.baseOptions;
11026
+ }
11027
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11028
+ const localVarHeaderParameter = {};
11029
+ const localVarQueryParameter = {};
11030
+ // authentication bearerAuth required
11031
+ // http bearer authentication required
11032
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
11033
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
11034
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11035
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11036
+ return {
11037
+ url: (0, common_1.toPathString)(localVarUrlObj),
11038
+ options: localVarRequestOptions,
11039
+ };
11040
+ }),
10987
11041
  /**
10988
11042
  * Get events for the week view (30 day sliding window)
10989
11043
  * @param {string} [clubId]
@@ -11077,31 +11131,31 @@ const EventsStaffApiFp = function (configuration) {
11077
11131
  });
11078
11132
  },
11079
11133
  /**
11080
- * Get a specific event by ID (staff)
11081
- * @param {string} eventId
11134
+ *
11082
11135
  * @param {*} [options] Override http request option.
11083
11136
  * @throws {RequiredError}
11084
11137
  */
11085
- getEventByIdForStaff(eventId, options) {
11138
+ getDraftEventsByClub(options) {
11086
11139
  return __awaiter(this, void 0, void 0, function* () {
11087
11140
  var _a, _b, _c;
11088
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventByIdForStaff(eventId, options);
11141
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDraftEventsByClub(options);
11089
11142
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11090
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsStaffApi.getEventByIdForStaff']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11143
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsStaffApi.getDraftEventsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11091
11144
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11092
11145
  });
11093
11146
  },
11094
11147
  /**
11095
- * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
11148
+ * Get a specific event by ID (staff)
11149
+ * @param {string} eventId
11096
11150
  * @param {*} [options] Override http request option.
11097
11151
  * @throws {RequiredError}
11098
11152
  */
11099
- getEventsByClub(options) {
11153
+ getEventByIdForStaff(eventId, options) {
11100
11154
  return __awaiter(this, void 0, void 0, function* () {
11101
11155
  var _a, _b, _c;
11102
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventsByClub(options);
11156
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventByIdForStaff(eventId, options);
11103
11157
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11104
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsStaffApi.getEventsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11158
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsStaffApi.getEventByIdForStaff']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11105
11159
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11106
11160
  });
11107
11161
  },
@@ -11124,6 +11178,34 @@ const EventsStaffApiFp = function (configuration) {
11124
11178
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11125
11179
  });
11126
11180
  },
11181
+ /**
11182
+ *
11183
+ * @param {*} [options] Override http request option.
11184
+ * @throws {RequiredError}
11185
+ */
11186
+ getPastEventsByClub(options) {
11187
+ return __awaiter(this, void 0, void 0, function* () {
11188
+ var _a, _b, _c;
11189
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPastEventsByClub(options);
11190
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11191
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsStaffApi.getPastEventsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11192
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11193
+ });
11194
+ },
11195
+ /**
11196
+ * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
11197
+ * @param {*} [options] Override http request option.
11198
+ * @throws {RequiredError}
11199
+ */
11200
+ getUpcomingEventsByClub(options) {
11201
+ return __awaiter(this, void 0, void 0, function* () {
11202
+ var _a, _b, _c;
11203
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUpcomingEventsByClub(options);
11204
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11205
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsStaffApi.getUpcomingEventsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11206
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11207
+ });
11208
+ },
11127
11209
  /**
11128
11210
  * Get events for the week view (30 day sliding window)
11129
11211
  * @param {string} [clubId]
@@ -11172,21 +11254,21 @@ const EventsStaffApiFactory = function (configuration, basePath, axios) {
11172
11254
  return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
11173
11255
  },
11174
11256
  /**
11175
- * Get a specific event by ID (staff)
11176
- * @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
11257
+ *
11177
11258
  * @param {*} [options] Override http request option.
11178
11259
  * @throws {RequiredError}
11179
11260
  */
11180
- getEventByIdForStaff(requestParameters, options) {
11181
- return localVarFp.getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(axios, basePath));
11261
+ getDraftEventsByClub(options) {
11262
+ return localVarFp.getDraftEventsByClub(options).then((request) => request(axios, basePath));
11182
11263
  },
11183
11264
  /**
11184
- * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
11265
+ * Get a specific event by ID (staff)
11266
+ * @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
11185
11267
  * @param {*} [options] Override http request option.
11186
11268
  * @throws {RequiredError}
11187
11269
  */
11188
- getEventsByClub(options) {
11189
- return localVarFp.getEventsByClub(options).then((request) => request(axios, basePath));
11270
+ getEventByIdForStaff(requestParameters, options) {
11271
+ return localVarFp.getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(axios, basePath));
11190
11272
  },
11191
11273
  /**
11192
11274
  * Get events for the entire month view (including recurring occurrences)
@@ -11197,6 +11279,22 @@ const EventsStaffApiFactory = function (configuration, basePath, axios) {
11197
11279
  getMonthlyEvents(requestParameters = {}, options) {
11198
11280
  return localVarFp.getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
11199
11281
  },
11282
+ /**
11283
+ *
11284
+ * @param {*} [options] Override http request option.
11285
+ * @throws {RequiredError}
11286
+ */
11287
+ getPastEventsByClub(options) {
11288
+ return localVarFp.getPastEventsByClub(options).then((request) => request(axios, basePath));
11289
+ },
11290
+ /**
11291
+ * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
11292
+ * @param {*} [options] Override http request option.
11293
+ * @throws {RequiredError}
11294
+ */
11295
+ getUpcomingEventsByClub(options) {
11296
+ return localVarFp.getUpcomingEventsByClub(options).then((request) => request(axios, basePath));
11297
+ },
11200
11298
  /**
11201
11299
  * Get events for the week view (30 day sliding window)
11202
11300
  * @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
@@ -11237,23 +11335,23 @@ class EventsStaffApi extends base_1.BaseAPI {
11237
11335
  return (0, exports.EventsStaffApiFp)(this.configuration).getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
11238
11336
  }
11239
11337
  /**
11240
- * Get a specific event by ID (staff)
11241
- * @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
11338
+ *
11242
11339
  * @param {*} [options] Override http request option.
11243
11340
  * @throws {RequiredError}
11244
11341
  * @memberof EventsStaffApi
11245
11342
  */
11246
- getEventByIdForStaff(requestParameters, options) {
11247
- return (0, exports.EventsStaffApiFp)(this.configuration).getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
11343
+ getDraftEventsByClub(options) {
11344
+ return (0, exports.EventsStaffApiFp)(this.configuration).getDraftEventsByClub(options).then((request) => request(this.axios, this.basePath));
11248
11345
  }
11249
11346
  /**
11250
- * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
11347
+ * Get a specific event by ID (staff)
11348
+ * @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
11251
11349
  * @param {*} [options] Override http request option.
11252
11350
  * @throws {RequiredError}
11253
11351
  * @memberof EventsStaffApi
11254
11352
  */
11255
- getEventsByClub(options) {
11256
- return (0, exports.EventsStaffApiFp)(this.configuration).getEventsByClub(options).then((request) => request(this.axios, this.basePath));
11353
+ getEventByIdForStaff(requestParameters, options) {
11354
+ return (0, exports.EventsStaffApiFp)(this.configuration).getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
11257
11355
  }
11258
11356
  /**
11259
11357
  * Get events for the entire month view (including recurring occurrences)
@@ -11265,6 +11363,24 @@ class EventsStaffApi extends base_1.BaseAPI {
11265
11363
  getMonthlyEvents(requestParameters = {}, options) {
11266
11364
  return (0, exports.EventsStaffApiFp)(this.configuration).getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
11267
11365
  }
11366
+ /**
11367
+ *
11368
+ * @param {*} [options] Override http request option.
11369
+ * @throws {RequiredError}
11370
+ * @memberof EventsStaffApi
11371
+ */
11372
+ getPastEventsByClub(options) {
11373
+ return (0, exports.EventsStaffApiFp)(this.configuration).getPastEventsByClub(options).then((request) => request(this.axios, this.basePath));
11374
+ }
11375
+ /**
11376
+ * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
11377
+ * @param {*} [options] Override http request option.
11378
+ * @throws {RequiredError}
11379
+ * @memberof EventsStaffApi
11380
+ */
11381
+ getUpcomingEventsByClub(options) {
11382
+ return (0, exports.EventsStaffApiFp)(this.configuration).getUpcomingEventsByClub(options).then((request) => request(this.axios, this.basePath));
11383
+ }
11268
11384
  /**
11269
11385
  * Get events for the week view (30 day sliding window)
11270
11386
  * @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
package/dist/esm/api.d.ts CHANGED
@@ -10976,33 +10976,21 @@ export interface StaffEventDetailResponse {
10976
10976
  /**
10977
10977
  *
10978
10978
  * @export
10979
- * @interface StaffEventsPaginatedResponse
10979
+ * @interface StaffEventsPageResponse
10980
10980
  */
10981
- export interface StaffEventsPaginatedResponse {
10981
+ export interface StaffEventsPageResponse {
10982
10982
  /**
10983
10983
  *
10984
10984
  * @type {Array<EventResponse>}
10985
- * @memberof StaffEventsPaginatedResponse
10985
+ * @memberof StaffEventsPageResponse
10986
10986
  */
10987
- 'upcoming': Array<EventResponse>;
10988
- /**
10989
- *
10990
- * @type {Array<EventResponse>}
10991
- * @memberof StaffEventsPaginatedResponse
10992
- */
10993
- 'past': Array<EventResponse>;
10994
- /**
10995
- *
10996
- * @type {PaginationInfo}
10997
- * @memberof StaffEventsPaginatedResponse
10998
- */
10999
- 'upcomingPagination': PaginationInfo;
10987
+ 'events': Array<EventResponse>;
11000
10988
  /**
11001
10989
  *
11002
10990
  * @type {PaginationInfo}
11003
- * @memberof StaffEventsPaginatedResponse
10991
+ * @memberof StaffEventsPageResponse
11004
10992
  */
11005
- 'pastPagination': PaginationInfo;
10993
+ 'pagination': PaginationInfo;
11006
10994
  }
11007
10995
  /**
11008
10996
  *
@@ -20420,18 +20408,18 @@ export declare const EventsStaffApiAxiosParamCreator: (configuration?: Configura
20420
20408
  */
20421
20409
  getDailyEvents: (clubId?: string, date?: string, visibilityType?: GetDailyEventsVisibilityTypeEnum, type?: GetDailyEventsTypeEnum, sportId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20422
20410
  /**
20423
- * Get a specific event by ID (staff)
20424
- * @param {string} eventId
20411
+ *
20425
20412
  * @param {*} [options] Override http request option.
20426
20413
  * @throws {RequiredError}
20427
20414
  */
20428
- getEventByIdForStaff: (eventId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20415
+ getDraftEventsByClub: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20429
20416
  /**
20430
- * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
20417
+ * Get a specific event by ID (staff)
20418
+ * @param {string} eventId
20431
20419
  * @param {*} [options] Override http request option.
20432
20420
  * @throws {RequiredError}
20433
20421
  */
20434
- getEventsByClub: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20422
+ getEventByIdForStaff: (eventId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20435
20423
  /**
20436
20424
  * Get events for the entire month view (including recurring occurrences)
20437
20425
  * @param {string} [clubId]
@@ -20443,6 +20431,18 @@ export declare const EventsStaffApiAxiosParamCreator: (configuration?: Configura
20443
20431
  * @throws {RequiredError}
20444
20432
  */
20445
20433
  getMonthlyEvents: (clubId?: string, date?: string, visibilityType?: GetMonthlyEventsVisibilityTypeEnum, type?: GetMonthlyEventsTypeEnum, sportId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20434
+ /**
20435
+ *
20436
+ * @param {*} [options] Override http request option.
20437
+ * @throws {RequiredError}
20438
+ */
20439
+ getPastEventsByClub: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20440
+ /**
20441
+ * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
20442
+ * @param {*} [options] Override http request option.
20443
+ * @throws {RequiredError}
20444
+ */
20445
+ getUpcomingEventsByClub: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20446
20446
  /**
20447
20447
  * Get events for the week view (30 day sliding window)
20448
20448
  * @param {string} [clubId]
@@ -20480,18 +20480,18 @@ export declare const EventsStaffApiFp: (configuration?: Configuration) => {
20480
20480
  */
20481
20481
  getDailyEvents(clubId?: string, date?: string, visibilityType?: GetDailyEventsVisibilityTypeEnum, type?: GetDailyEventsTypeEnum, sportId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventsListResponse>>;
20482
20482
  /**
20483
- * Get a specific event by ID (staff)
20484
- * @param {string} eventId
20483
+ *
20485
20484
  * @param {*} [options] Override http request option.
20486
20485
  * @throws {RequiredError}
20487
20486
  */
20488
- getEventByIdForStaff(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StaffEventDetailResponse>>;
20487
+ getDraftEventsByClub(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StaffEventsPageResponse>>;
20489
20488
  /**
20490
- * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
20489
+ * Get a specific event by ID (staff)
20490
+ * @param {string} eventId
20491
20491
  * @param {*} [options] Override http request option.
20492
20492
  * @throws {RequiredError}
20493
20493
  */
20494
- getEventsByClub(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StaffEventsPaginatedResponse>>;
20494
+ getEventByIdForStaff(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StaffEventDetailResponse>>;
20495
20495
  /**
20496
20496
  * Get events for the entire month view (including recurring occurrences)
20497
20497
  * @param {string} [clubId]
@@ -20503,6 +20503,18 @@ export declare const EventsStaffApiFp: (configuration?: Configuration) => {
20503
20503
  * @throws {RequiredError}
20504
20504
  */
20505
20505
  getMonthlyEvents(clubId?: string, date?: string, visibilityType?: GetMonthlyEventsVisibilityTypeEnum, type?: GetMonthlyEventsTypeEnum, sportId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventsListResponse>>;
20506
+ /**
20507
+ *
20508
+ * @param {*} [options] Override http request option.
20509
+ * @throws {RequiredError}
20510
+ */
20511
+ getPastEventsByClub(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StaffEventsPageResponse>>;
20512
+ /**
20513
+ * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
20514
+ * @param {*} [options] Override http request option.
20515
+ * @throws {RequiredError}
20516
+ */
20517
+ getUpcomingEventsByClub(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StaffEventsPageResponse>>;
20506
20518
  /**
20507
20519
  * Get events for the week view (30 day sliding window)
20508
20520
  * @param {string} [clubId]
@@ -20535,18 +20547,18 @@ export declare const EventsStaffApiFactory: (configuration?: Configuration, base
20535
20547
  */
20536
20548
  getDailyEvents(requestParameters?: EventsStaffApiGetDailyEventsRequest, options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse>;
20537
20549
  /**
20538
- * Get a specific event by ID (staff)
20539
- * @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
20550
+ *
20540
20551
  * @param {*} [options] Override http request option.
20541
20552
  * @throws {RequiredError}
20542
20553
  */
20543
- getEventByIdForStaff(requestParameters: EventsStaffApiGetEventByIdForStaffRequest, options?: RawAxiosRequestConfig): AxiosPromise<StaffEventDetailResponse>;
20554
+ getDraftEventsByClub(options?: RawAxiosRequestConfig): AxiosPromise<StaffEventsPageResponse>;
20544
20555
  /**
20545
- * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
20556
+ * Get a specific event by ID (staff)
20557
+ * @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
20546
20558
  * @param {*} [options] Override http request option.
20547
20559
  * @throws {RequiredError}
20548
20560
  */
20549
- getEventsByClub(options?: RawAxiosRequestConfig): AxiosPromise<StaffEventsPaginatedResponse>;
20561
+ getEventByIdForStaff(requestParameters: EventsStaffApiGetEventByIdForStaffRequest, options?: RawAxiosRequestConfig): AxiosPromise<StaffEventDetailResponse>;
20550
20562
  /**
20551
20563
  * Get events for the entire month view (including recurring occurrences)
20552
20564
  * @param {EventsStaffApiGetMonthlyEventsRequest} requestParameters Request parameters.
@@ -20554,6 +20566,18 @@ export declare const EventsStaffApiFactory: (configuration?: Configuration, base
20554
20566
  * @throws {RequiredError}
20555
20567
  */
20556
20568
  getMonthlyEvents(requestParameters?: EventsStaffApiGetMonthlyEventsRequest, options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse>;
20569
+ /**
20570
+ *
20571
+ * @param {*} [options] Override http request option.
20572
+ * @throws {RequiredError}
20573
+ */
20574
+ getPastEventsByClub(options?: RawAxiosRequestConfig): AxiosPromise<StaffEventsPageResponse>;
20575
+ /**
20576
+ * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
20577
+ * @param {*} [options] Override http request option.
20578
+ * @throws {RequiredError}
20579
+ */
20580
+ getUpcomingEventsByClub(options?: RawAxiosRequestConfig): AxiosPromise<StaffEventsPageResponse>;
20557
20581
  /**
20558
20582
  * Get events for the week view (30 day sliding window)
20559
20583
  * @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
@@ -20729,20 +20753,20 @@ export declare class EventsStaffApi extends BaseAPI {
20729
20753
  */
20730
20754
  getDailyEvents(requestParameters?: EventsStaffApiGetDailyEventsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EventsListResponse, any, {}>>;
20731
20755
  /**
20732
- * Get a specific event by ID (staff)
20733
- * @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
20756
+ *
20734
20757
  * @param {*} [options] Override http request option.
20735
20758
  * @throws {RequiredError}
20736
20759
  * @memberof EventsStaffApi
20737
20760
  */
20738
- getEventByIdForStaff(requestParameters: EventsStaffApiGetEventByIdForStaffRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<StaffEventDetailResponse, any, {}>>;
20761
+ getDraftEventsByClub(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<StaffEventsPageResponse, any, {}>>;
20739
20762
  /**
20740
- * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
20763
+ * Get a specific event by ID (staff)
20764
+ * @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
20741
20765
  * @param {*} [options] Override http request option.
20742
20766
  * @throws {RequiredError}
20743
20767
  * @memberof EventsStaffApi
20744
20768
  */
20745
- getEventsByClub(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<StaffEventsPaginatedResponse, any, {}>>;
20769
+ getEventByIdForStaff(requestParameters: EventsStaffApiGetEventByIdForStaffRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<StaffEventDetailResponse, any, {}>>;
20746
20770
  /**
20747
20771
  * Get events for the entire month view (including recurring occurrences)
20748
20772
  * @param {EventsStaffApiGetMonthlyEventsRequest} requestParameters Request parameters.
@@ -20751,6 +20775,20 @@ export declare class EventsStaffApi extends BaseAPI {
20751
20775
  * @memberof EventsStaffApi
20752
20776
  */
20753
20777
  getMonthlyEvents(requestParameters?: EventsStaffApiGetMonthlyEventsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EventsListResponse, any, {}>>;
20778
+ /**
20779
+ *
20780
+ * @param {*} [options] Override http request option.
20781
+ * @throws {RequiredError}
20782
+ * @memberof EventsStaffApi
20783
+ */
20784
+ getPastEventsByClub(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<StaffEventsPageResponse, any, {}>>;
20785
+ /**
20786
+ * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
20787
+ * @param {*} [options] Override http request option.
20788
+ * @throws {RequiredError}
20789
+ * @memberof EventsStaffApi
20790
+ */
20791
+ getUpcomingEventsByClub(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<StaffEventsPageResponse, any, {}>>;
20754
20792
  /**
20755
20793
  * Get events for the week view (30 day sliding window)
20756
20794
  * @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.