@tennac-booking/sdk 1.0.25 → 1.0.27

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.
Files changed (44) hide show
  1. package/.openapi-generator/FILES +16 -0
  2. package/README.md +22 -2
  3. package/api.ts +1208 -7
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +816 -5
  8. package/dist/api.js +715 -4
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +1 -1
  15. package/dist/esm/api.d.ts +816 -5
  16. package/dist/esm/api.js +696 -1
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +1 -1
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/ClubsApi.md +61 -0
  28. package/docs/CreateEventRequest.md +30 -0
  29. package/docs/DeleteEvent200Response.md +20 -0
  30. package/docs/Event.md +40 -0
  31. package/docs/EventBooking.md +32 -0
  32. package/docs/EventRegistrationRequest.md +22 -0
  33. package/docs/EventsApi.md +119 -0
  34. package/docs/GetClubUsersById200Response.md +20 -0
  35. package/docs/GetPublishedEventsByClubId200Response.md +20 -0
  36. package/docs/ManagerEventResponse.md +22 -0
  37. package/docs/ManagerEventsApi.md +227 -0
  38. package/docs/PublicClubUser.md +34 -0
  39. package/docs/PublicClubUserLevelBySportsInner.md +22 -0
  40. package/docs/RegisterForEvent201Response.md +20 -0
  41. package/docs/StaffEventResponse.md +20 -0
  42. package/docs/StaffEventsApi.md +54 -0
  43. package/index.ts +1 -1
  44. package/package.json +5 -4
package/dist/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Pandook API
6
6
  * API for managing pickle ball games and players
7
7
  *
8
- * The version of the OpenAPI document: 1.0.25
8
+ * The version of the OpenAPI document: 1.0.27
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,9 +22,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.ManagerClubRolesApi = exports.ManagerClubRolesApiFactory = exports.ManagerClubRolesApiFp = exports.ManagerClubRolesApiAxiosParamCreator = exports.ManagerClubCourtsApi = exports.ManagerClubCourtsApiFactory = exports.ManagerClubCourtsApiFp = exports.ManagerClubCourtsApiAxiosParamCreator = exports.ManagerBookingsApi = exports.ManagerBookingsApiFactory = exports.ManagerBookingsApiFp = exports.ManagerBookingsApiAxiosParamCreator = exports.GetInvoicesStatusEnum = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.AdminClubsApi = exports.AdminClubsApiFactory = exports.AdminClubsApiFp = exports.AdminClubsApiAxiosParamCreator = exports.AdminClubSubscriptionsApi = exports.AdminClubSubscriptionsApiFactory = exports.AdminClubSubscriptionsApiFp = exports.AdminClubSubscriptionsApiAxiosParamCreator = exports.AdminClubSlotsApi = exports.AdminClubSlotsApiFactory = exports.AdminClubSlotsApiFp = exports.AdminClubSlotsApiAxiosParamCreator = exports.GetInvoicesAdminStatusEnum = exports.AdminClubAnalyticsApi = exports.AdminClubAnalyticsApiFactory = exports.AdminClubAnalyticsApiFp = exports.AdminClubAnalyticsApiAxiosParamCreator = exports.SubscriptionResponseStatusEnum = exports.StripeStatus = exports.PaymentMethod = exports.NoShowFeeResponseCaptureResultsInnerStatusEnum = exports.NoShowFeeResponseCaptureResultsInnerTypeEnum = exports.ManagerCancelBookingResponseBookingStatusEnum = exports.InvoicesResponseInvoicesInnerStatusEnum = exports.CreatePriceRequestIntervalEnum = exports.CourtStatus = exports.CourtResponseSurfaceEnum = exports.CourtResponseStatusEnum = exports.CancelBookingResponseBookingStatusEnum = exports.BookingStatus = exports.BookingPopulatedPaymentByPlayersStatusInnerInvoicesInnerStatusEnum = exports.BookingPopulatedStatusEnum = exports.BookingPaymentStatusResponsePaymentStatusInnerPaymentMethodEnum = void 0;
26
- exports.UserClubSlotsApiFp = exports.UserClubSlotsApiAxiosParamCreator = exports.UserClubCourtsApi = exports.UserClubCourtsApiFactory = exports.UserClubCourtsApiFp = exports.UserClubCourtsApiAxiosParamCreator = exports.UserBookingsApi = exports.UserBookingsApiFactory = exports.UserBookingsApiFp = exports.UserBookingsApiAxiosParamCreator = exports.UserAuthenticationApi = exports.UserAuthenticationApiFactory = exports.UserAuthenticationApiFp = exports.UserAuthenticationApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.StaffProfileApi = exports.StaffProfileApiFactory = exports.StaffProfileApiFp = exports.StaffProfileApiAxiosParamCreator = exports.StaffClubsApi = exports.StaffClubsApiFactory = exports.StaffClubsApiFp = exports.StaffClubsApiAxiosParamCreator = exports.StaffClubBookingsApi = exports.StaffClubBookingsApiFactory = exports.StaffClubBookingsApiFp = exports.StaffClubBookingsApiAxiosParamCreator = exports.StaffClubAnalyticsApi = exports.StaffClubAnalyticsApiFactory = exports.StaffClubAnalyticsApiFp = exports.StaffClubAnalyticsApiAxiosParamCreator = exports.ManagerSportsApi = exports.ManagerSportsApiFactory = exports.ManagerSportsApiFp = exports.ManagerSportsApiAxiosParamCreator = exports.ManagerClubsApi = exports.ManagerClubsApiFactory = exports.ManagerClubsApiFp = exports.ManagerClubsApiAxiosParamCreator = exports.ManagerClubSubscriptionsApi = exports.ManagerClubSubscriptionsApiFactory = exports.ManagerClubSubscriptionsApiFp = exports.ManagerClubSubscriptionsApiAxiosParamCreator = exports.ManagerClubSlotsApi = exports.ManagerClubSlotsApiFactory = exports.ManagerClubSlotsApiFp = exports.ManagerClubSlotsApiAxiosParamCreator = void 0;
27
- exports.UserSubscriptionsApi = exports.UserSubscriptionsApiFactory = exports.UserSubscriptionsApiFp = exports.UserSubscriptionsApiAxiosParamCreator = exports.UserProfileApi = exports.UserProfileApiFactory = exports.UserProfileApiFp = exports.UserProfileApiAxiosParamCreator = exports.UserPaymentApi = exports.UserPaymentApiFactory = exports.UserPaymentApiFp = exports.UserPaymentApiAxiosParamCreator = exports.UserClubsApi = exports.UserClubsApiFactory = exports.UserClubsApiFp = exports.UserClubsApiAxiosParamCreator = exports.UserClubSportsApi = exports.UserClubSportsApiFactory = exports.UserClubSportsApiFp = exports.UserClubSportsApiAxiosParamCreator = exports.UserClubSlotsApi = exports.UserClubSlotsApiFactory = void 0;
25
+ exports.ManagerBookingsApiFactory = exports.ManagerBookingsApiFp = exports.ManagerBookingsApiAxiosParamCreator = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = exports.GetInvoicesStatusEnum = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.AdminClubsApi = exports.AdminClubsApiFactory = exports.AdminClubsApiFp = exports.AdminClubsApiAxiosParamCreator = exports.AdminClubSubscriptionsApi = exports.AdminClubSubscriptionsApiFactory = exports.AdminClubSubscriptionsApiFp = exports.AdminClubSubscriptionsApiAxiosParamCreator = exports.AdminClubSlotsApi = exports.AdminClubSlotsApiFactory = exports.AdminClubSlotsApiFp = exports.AdminClubSlotsApiAxiosParamCreator = exports.GetInvoicesAdminStatusEnum = exports.AdminClubAnalyticsApi = exports.AdminClubAnalyticsApiFactory = exports.AdminClubAnalyticsApiFp = exports.AdminClubAnalyticsApiAxiosParamCreator = exports.SubscriptionResponseStatusEnum = exports.StripeStatus = exports.PaymentMethod = exports.NoShowFeeResponseCaptureResultsInnerStatusEnum = exports.NoShowFeeResponseCaptureResultsInnerTypeEnum = exports.ManagerCancelBookingResponseBookingStatusEnum = exports.InvoicesResponseInvoicesInnerStatusEnum = exports.EventBookingStatusEnum = exports.CreatePriceRequestIntervalEnum = exports.CourtStatus = exports.CourtResponseSurfaceEnum = exports.CourtResponseStatusEnum = exports.CancelBookingResponseBookingStatusEnum = exports.BookingStatus = exports.BookingPopulatedPaymentByPlayersStatusInnerInvoicesInnerStatusEnum = exports.BookingPopulatedStatusEnum = exports.BookingPaymentStatusResponsePaymentStatusInnerPaymentMethodEnum = void 0;
26
+ exports.UserApiAxiosParamCreator = exports.StaffProfileApi = exports.StaffProfileApiFactory = exports.StaffProfileApiFp = exports.StaffProfileApiAxiosParamCreator = exports.StaffEventsApi = exports.StaffEventsApiFactory = exports.StaffEventsApiFp = exports.StaffEventsApiAxiosParamCreator = exports.StaffClubsApi = exports.StaffClubsApiFactory = exports.StaffClubsApiFp = exports.StaffClubsApiAxiosParamCreator = exports.StaffClubBookingsApi = exports.StaffClubBookingsApiFactory = exports.StaffClubBookingsApiFp = exports.StaffClubBookingsApiAxiosParamCreator = exports.StaffClubAnalyticsApi = exports.StaffClubAnalyticsApiFactory = exports.StaffClubAnalyticsApiFp = exports.StaffClubAnalyticsApiAxiosParamCreator = exports.ManagerSportsApi = exports.ManagerSportsApiFactory = exports.ManagerSportsApiFp = exports.ManagerSportsApiAxiosParamCreator = exports.ManagerEventsApi = exports.ManagerEventsApiFactory = exports.ManagerEventsApiFp = exports.ManagerEventsApiAxiosParamCreator = exports.ManagerClubsApi = exports.ManagerClubsApiFactory = exports.ManagerClubsApiFp = exports.ManagerClubsApiAxiosParamCreator = exports.ManagerClubSubscriptionsApi = exports.ManagerClubSubscriptionsApiFactory = exports.ManagerClubSubscriptionsApiFp = exports.ManagerClubSubscriptionsApiAxiosParamCreator = exports.ManagerClubSlotsApi = exports.ManagerClubSlotsApiFactory = exports.ManagerClubSlotsApiFp = exports.ManagerClubSlotsApiAxiosParamCreator = exports.ManagerClubRolesApi = exports.ManagerClubRolesApiFactory = exports.ManagerClubRolesApiFp = exports.ManagerClubRolesApiAxiosParamCreator = exports.ManagerClubCourtsApi = exports.ManagerClubCourtsApiFactory = exports.ManagerClubCourtsApiFp = exports.ManagerClubCourtsApiAxiosParamCreator = exports.ManagerBookingsApi = void 0;
27
+ exports.UserSubscriptionsApi = exports.UserSubscriptionsApiFactory = exports.UserSubscriptionsApiFp = exports.UserSubscriptionsApiAxiosParamCreator = exports.UserProfileApi = exports.UserProfileApiFactory = exports.UserProfileApiFp = exports.UserProfileApiAxiosParamCreator = exports.UserPaymentApi = exports.UserPaymentApiFactory = exports.UserPaymentApiFp = exports.UserPaymentApiAxiosParamCreator = exports.UserClubsApi = exports.UserClubsApiFactory = exports.UserClubsApiFp = exports.UserClubsApiAxiosParamCreator = exports.UserClubSportsApi = exports.UserClubSportsApiFactory = exports.UserClubSportsApiFp = exports.UserClubSportsApiAxiosParamCreator = exports.UserClubSlotsApi = exports.UserClubSlotsApiFactory = exports.UserClubSlotsApiFp = exports.UserClubSlotsApiAxiosParamCreator = exports.UserClubCourtsApi = exports.UserClubCourtsApiFactory = exports.UserClubCourtsApiFp = exports.UserClubCourtsApiAxiosParamCreator = exports.UserBookingsApi = exports.UserBookingsApiFactory = exports.UserBookingsApiFp = exports.UserBookingsApiAxiosParamCreator = exports.UserAuthenticationApi = exports.UserAuthenticationApiFactory = exports.UserAuthenticationApiFp = exports.UserAuthenticationApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = void 0;
28
28
  const axios_1 = require("axios");
29
29
  // Some imports not used depending on template conditions
30
30
  // @ts-ignore
@@ -81,6 +81,11 @@ exports.CreatePriceRequestIntervalEnum = {
81
81
  Month: 'month',
82
82
  Year: 'year'
83
83
  };
84
+ exports.EventBookingStatusEnum = {
85
+ Pending: 'pending',
86
+ Confirmed: 'confirmed',
87
+ Cancelled: 'cancelled'
88
+ };
84
89
  exports.InvoicesResponseInvoicesInnerStatusEnum = {
85
90
  Pending: 'pending',
86
91
  Paid: 'paid',
@@ -1975,6 +1980,297 @@ exports.GetInvoicesStatusEnum = {
1975
1980
  Canceled: 'canceled',
1976
1981
  Expired: 'expired'
1977
1982
  };
1983
+ /**
1984
+ * ClubsApi - axios parameter creator
1985
+ * @export
1986
+ */
1987
+ const ClubsApiAxiosParamCreator = function (configuration) {
1988
+ return {
1989
+ /**
1990
+ * Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
1991
+ * @summary Récupérer la liste publique des utilisateurs d\'un club
1992
+ * @param {string} id ID du club
1993
+ * @param {*} [options] Override http request option.
1994
+ * @throws {RequiredError}
1995
+ */
1996
+ getClubUsersById: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
1997
+ // verify required parameter 'id' is not null or undefined
1998
+ (0, common_1.assertParamExists)('getClubUsersById', 'id', id);
1999
+ const localVarPath = `/api/clubs/{id}/clubUsers`
2000
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2001
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2002
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2003
+ let baseOptions;
2004
+ if (configuration) {
2005
+ baseOptions = configuration.baseOptions;
2006
+ }
2007
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2008
+ const localVarHeaderParameter = {};
2009
+ const localVarQueryParameter = {};
2010
+ // authentication bearerAuth required
2011
+ // http bearer authentication required
2012
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2013
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2014
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2015
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2016
+ return {
2017
+ url: (0, common_1.toPathString)(localVarUrlObj),
2018
+ options: localVarRequestOptions,
2019
+ };
2020
+ }),
2021
+ };
2022
+ };
2023
+ exports.ClubsApiAxiosParamCreator = ClubsApiAxiosParamCreator;
2024
+ /**
2025
+ * ClubsApi - functional programming interface
2026
+ * @export
2027
+ */
2028
+ const ClubsApiFp = function (configuration) {
2029
+ const localVarAxiosParamCreator = (0, exports.ClubsApiAxiosParamCreator)(configuration);
2030
+ return {
2031
+ /**
2032
+ * Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
2033
+ * @summary Récupérer la liste publique des utilisateurs d\'un club
2034
+ * @param {string} id ID du club
2035
+ * @param {*} [options] Override http request option.
2036
+ * @throws {RequiredError}
2037
+ */
2038
+ getClubUsersById(id, options) {
2039
+ return __awaiter(this, void 0, void 0, function* () {
2040
+ var _a, _b, _c;
2041
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubUsersById(id, options);
2042
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2043
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsApi.getClubUsersById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2044
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2045
+ });
2046
+ },
2047
+ };
2048
+ };
2049
+ exports.ClubsApiFp = ClubsApiFp;
2050
+ /**
2051
+ * ClubsApi - factory interface
2052
+ * @export
2053
+ */
2054
+ const ClubsApiFactory = function (configuration, basePath, axios) {
2055
+ const localVarFp = (0, exports.ClubsApiFp)(configuration);
2056
+ return {
2057
+ /**
2058
+ * Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
2059
+ * @summary Récupérer la liste publique des utilisateurs d\'un club
2060
+ * @param {ClubsApiGetClubUsersByIdRequest} requestParameters Request parameters.
2061
+ * @param {*} [options] Override http request option.
2062
+ * @throws {RequiredError}
2063
+ */
2064
+ getClubUsersById(requestParameters, options) {
2065
+ return localVarFp.getClubUsersById(requestParameters.id, options).then((request) => request(axios, basePath));
2066
+ },
2067
+ };
2068
+ };
2069
+ exports.ClubsApiFactory = ClubsApiFactory;
2070
+ /**
2071
+ * ClubsApi - object-oriented interface
2072
+ * @export
2073
+ * @class ClubsApi
2074
+ * @extends {BaseAPI}
2075
+ */
2076
+ class ClubsApi extends base_1.BaseAPI {
2077
+ /**
2078
+ * Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
2079
+ * @summary Récupérer la liste publique des utilisateurs d\'un club
2080
+ * @param {ClubsApiGetClubUsersByIdRequest} requestParameters Request parameters.
2081
+ * @param {*} [options] Override http request option.
2082
+ * @throws {RequiredError}
2083
+ * @memberof ClubsApi
2084
+ */
2085
+ getClubUsersById(requestParameters, options) {
2086
+ return (0, exports.ClubsApiFp)(this.configuration).getClubUsersById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
2087
+ }
2088
+ }
2089
+ exports.ClubsApi = ClubsApi;
2090
+ /**
2091
+ * EventsApi - axios parameter creator
2092
+ * @export
2093
+ */
2094
+ const EventsApiAxiosParamCreator = function (configuration) {
2095
+ return {
2096
+ /**
2097
+ *
2098
+ * @summary Get all published events for a club
2099
+ * @param {string} clubId
2100
+ * @param {*} [options] Override http request option.
2101
+ * @throws {RequiredError}
2102
+ */
2103
+ getPublishedEventsByClubId: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
2104
+ // verify required parameter 'clubId' is not null or undefined
2105
+ (0, common_1.assertParamExists)('getPublishedEventsByClubId', 'clubId', clubId);
2106
+ const localVarPath = `/api/events`;
2107
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2108
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2109
+ let baseOptions;
2110
+ if (configuration) {
2111
+ baseOptions = configuration.baseOptions;
2112
+ }
2113
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2114
+ const localVarHeaderParameter = {};
2115
+ const localVarQueryParameter = {};
2116
+ // authentication bearerAuth required
2117
+ // http bearer authentication required
2118
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2119
+ if (clubId !== undefined) {
2120
+ localVarQueryParameter['clubId'] = clubId;
2121
+ }
2122
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2123
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2124
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2125
+ return {
2126
+ url: (0, common_1.toPathString)(localVarUrlObj),
2127
+ options: localVarRequestOptions,
2128
+ };
2129
+ }),
2130
+ /**
2131
+ *
2132
+ * @summary Register for an event
2133
+ * @param {string} eventId
2134
+ * @param {EventRegistrationRequest} eventRegistrationRequest
2135
+ * @param {*} [options] Override http request option.
2136
+ * @throws {RequiredError}
2137
+ */
2138
+ registerForEvent: (eventId_1, eventRegistrationRequest_1, ...args_1) => __awaiter(this, [eventId_1, eventRegistrationRequest_1, ...args_1], void 0, function* (eventId, eventRegistrationRequest, options = {}) {
2139
+ // verify required parameter 'eventId' is not null or undefined
2140
+ (0, common_1.assertParamExists)('registerForEvent', 'eventId', eventId);
2141
+ // verify required parameter 'eventRegistrationRequest' is not null or undefined
2142
+ (0, common_1.assertParamExists)('registerForEvent', 'eventRegistrationRequest', eventRegistrationRequest);
2143
+ const localVarPath = `/api/events/{eventId}/register`
2144
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
2145
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2146
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2147
+ let baseOptions;
2148
+ if (configuration) {
2149
+ baseOptions = configuration.baseOptions;
2150
+ }
2151
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2152
+ const localVarHeaderParameter = {};
2153
+ const localVarQueryParameter = {};
2154
+ // authentication bearerAuth required
2155
+ // http bearer authentication required
2156
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2157
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2158
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2159
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2160
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2161
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(eventRegistrationRequest, localVarRequestOptions, configuration);
2162
+ return {
2163
+ url: (0, common_1.toPathString)(localVarUrlObj),
2164
+ options: localVarRequestOptions,
2165
+ };
2166
+ }),
2167
+ };
2168
+ };
2169
+ exports.EventsApiAxiosParamCreator = EventsApiAxiosParamCreator;
2170
+ /**
2171
+ * EventsApi - functional programming interface
2172
+ * @export
2173
+ */
2174
+ const EventsApiFp = function (configuration) {
2175
+ const localVarAxiosParamCreator = (0, exports.EventsApiAxiosParamCreator)(configuration);
2176
+ return {
2177
+ /**
2178
+ *
2179
+ * @summary Get all published events for a club
2180
+ * @param {string} clubId
2181
+ * @param {*} [options] Override http request option.
2182
+ * @throws {RequiredError}
2183
+ */
2184
+ getPublishedEventsByClubId(clubId, options) {
2185
+ return __awaiter(this, void 0, void 0, function* () {
2186
+ var _a, _b, _c;
2187
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPublishedEventsByClubId(clubId, options);
2188
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2189
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsApi.getPublishedEventsByClubId']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2190
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2191
+ });
2192
+ },
2193
+ /**
2194
+ *
2195
+ * @summary Register for an event
2196
+ * @param {string} eventId
2197
+ * @param {EventRegistrationRequest} eventRegistrationRequest
2198
+ * @param {*} [options] Override http request option.
2199
+ * @throws {RequiredError}
2200
+ */
2201
+ registerForEvent(eventId, eventRegistrationRequest, options) {
2202
+ return __awaiter(this, void 0, void 0, function* () {
2203
+ var _a, _b, _c;
2204
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.registerForEvent(eventId, eventRegistrationRequest, options);
2205
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2206
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsApi.registerForEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2207
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2208
+ });
2209
+ },
2210
+ };
2211
+ };
2212
+ exports.EventsApiFp = EventsApiFp;
2213
+ /**
2214
+ * EventsApi - factory interface
2215
+ * @export
2216
+ */
2217
+ const EventsApiFactory = function (configuration, basePath, axios) {
2218
+ const localVarFp = (0, exports.EventsApiFp)(configuration);
2219
+ return {
2220
+ /**
2221
+ *
2222
+ * @summary Get all published events for a club
2223
+ * @param {EventsApiGetPublishedEventsByClubIdRequest} requestParameters Request parameters.
2224
+ * @param {*} [options] Override http request option.
2225
+ * @throws {RequiredError}
2226
+ */
2227
+ getPublishedEventsByClubId(requestParameters, options) {
2228
+ return localVarFp.getPublishedEventsByClubId(requestParameters.clubId, options).then((request) => request(axios, basePath));
2229
+ },
2230
+ /**
2231
+ *
2232
+ * @summary Register for an event
2233
+ * @param {EventsApiRegisterForEventRequest} requestParameters Request parameters.
2234
+ * @param {*} [options] Override http request option.
2235
+ * @throws {RequiredError}
2236
+ */
2237
+ registerForEvent(requestParameters, options) {
2238
+ return localVarFp.registerForEvent(requestParameters.eventId, requestParameters.eventRegistrationRequest, options).then((request) => request(axios, basePath));
2239
+ },
2240
+ };
2241
+ };
2242
+ exports.EventsApiFactory = EventsApiFactory;
2243
+ /**
2244
+ * EventsApi - object-oriented interface
2245
+ * @export
2246
+ * @class EventsApi
2247
+ * @extends {BaseAPI}
2248
+ */
2249
+ class EventsApi extends base_1.BaseAPI {
2250
+ /**
2251
+ *
2252
+ * @summary Get all published events for a club
2253
+ * @param {EventsApiGetPublishedEventsByClubIdRequest} requestParameters Request parameters.
2254
+ * @param {*} [options] Override http request option.
2255
+ * @throws {RequiredError}
2256
+ * @memberof EventsApi
2257
+ */
2258
+ getPublishedEventsByClubId(requestParameters, options) {
2259
+ return (0, exports.EventsApiFp)(this.configuration).getPublishedEventsByClubId(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
2260
+ }
2261
+ /**
2262
+ *
2263
+ * @summary Register for an event
2264
+ * @param {EventsApiRegisterForEventRequest} requestParameters Request parameters.
2265
+ * @param {*} [options] Override http request option.
2266
+ * @throws {RequiredError}
2267
+ * @memberof EventsApi
2268
+ */
2269
+ registerForEvent(requestParameters, options) {
2270
+ return (0, exports.EventsApiFp)(this.configuration).registerForEvent(requestParameters.eventId, requestParameters.eventRegistrationRequest, options).then((request) => request(this.axios, this.basePath));
2271
+ }
2272
+ }
2273
+ exports.EventsApi = EventsApi;
1978
2274
  /**
1979
2275
  * ManagerBookingsApi - axios parameter creator
1980
2276
  * @export
@@ -3806,6 +4102,321 @@ class ManagerClubsApi extends base_1.BaseAPI {
3806
4102
  }
3807
4103
  }
3808
4104
  exports.ManagerClubsApi = ManagerClubsApi;
4105
+ /**
4106
+ * ManagerEventsApi - axios parameter creator
4107
+ * @export
4108
+ */
4109
+ const ManagerEventsApiAxiosParamCreator = function (configuration) {
4110
+ return {
4111
+ /**
4112
+ *
4113
+ * @summary Create a new event
4114
+ * @param {CreateEventRequest} createEventRequest
4115
+ * @param {*} [options] Override http request option.
4116
+ * @throws {RequiredError}
4117
+ */
4118
+ createEvent: (createEventRequest_1, ...args_1) => __awaiter(this, [createEventRequest_1, ...args_1], void 0, function* (createEventRequest, options = {}) {
4119
+ // verify required parameter 'createEventRequest' is not null or undefined
4120
+ (0, common_1.assertParamExists)('createEvent', 'createEventRequest', createEventRequest);
4121
+ const localVarPath = `/api/events/manager/createEvent`;
4122
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4123
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4124
+ let baseOptions;
4125
+ if (configuration) {
4126
+ baseOptions = configuration.baseOptions;
4127
+ }
4128
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4129
+ const localVarHeaderParameter = {};
4130
+ const localVarQueryParameter = {};
4131
+ // authentication bearerAuth required
4132
+ // http bearer authentication required
4133
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4134
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4135
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4136
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4137
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4138
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createEventRequest, localVarRequestOptions, configuration);
4139
+ return {
4140
+ url: (0, common_1.toPathString)(localVarUrlObj),
4141
+ options: localVarRequestOptions,
4142
+ };
4143
+ }),
4144
+ /**
4145
+ *
4146
+ * @summary Delete an event
4147
+ * @param {string} eventId
4148
+ * @param {*} [options] Override http request option.
4149
+ * @throws {RequiredError}
4150
+ */
4151
+ deleteEvent: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
4152
+ // verify required parameter 'eventId' is not null or undefined
4153
+ (0, common_1.assertParamExists)('deleteEvent', 'eventId', eventId);
4154
+ const localVarPath = `/api/events/manager/deleteEvent/{eventId}`
4155
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
4156
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4157
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4158
+ let baseOptions;
4159
+ if (configuration) {
4160
+ baseOptions = configuration.baseOptions;
4161
+ }
4162
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
4163
+ const localVarHeaderParameter = {};
4164
+ const localVarQueryParameter = {};
4165
+ // authentication bearerAuth required
4166
+ // http bearer authentication required
4167
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4168
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4169
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4170
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4171
+ return {
4172
+ url: (0, common_1.toPathString)(localVarUrlObj),
4173
+ options: localVarRequestOptions,
4174
+ };
4175
+ }),
4176
+ /**
4177
+ *
4178
+ * @summary Publish an event
4179
+ * @param {string} eventId
4180
+ * @param {*} [options] Override http request option.
4181
+ * @throws {RequiredError}
4182
+ */
4183
+ publishEvent: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
4184
+ // verify required parameter 'eventId' is not null or undefined
4185
+ (0, common_1.assertParamExists)('publishEvent', 'eventId', eventId);
4186
+ const localVarPath = `/api/events/manager/publishEvent/{eventId}`
4187
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
4188
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4189
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4190
+ let baseOptions;
4191
+ if (configuration) {
4192
+ baseOptions = configuration.baseOptions;
4193
+ }
4194
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
4195
+ const localVarHeaderParameter = {};
4196
+ const localVarQueryParameter = {};
4197
+ // authentication bearerAuth required
4198
+ // http bearer authentication required
4199
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4200
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4201
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4202
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4203
+ return {
4204
+ url: (0, common_1.toPathString)(localVarUrlObj),
4205
+ options: localVarRequestOptions,
4206
+ };
4207
+ }),
4208
+ /**
4209
+ *
4210
+ * @summary Unpublish an event
4211
+ * @param {string} eventId
4212
+ * @param {*} [options] Override http request option.
4213
+ * @throws {RequiredError}
4214
+ */
4215
+ unpublishEvent: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
4216
+ // verify required parameter 'eventId' is not null or undefined
4217
+ (0, common_1.assertParamExists)('unpublishEvent', 'eventId', eventId);
4218
+ const localVarPath = `/api/events/manager/unpublishEvent/{eventId}`
4219
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
4220
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4221
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4222
+ let baseOptions;
4223
+ if (configuration) {
4224
+ baseOptions = configuration.baseOptions;
4225
+ }
4226
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
4227
+ const localVarHeaderParameter = {};
4228
+ const localVarQueryParameter = {};
4229
+ // authentication bearerAuth required
4230
+ // http bearer authentication required
4231
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4232
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4233
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4234
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4235
+ return {
4236
+ url: (0, common_1.toPathString)(localVarUrlObj),
4237
+ options: localVarRequestOptions,
4238
+ };
4239
+ }),
4240
+ };
4241
+ };
4242
+ exports.ManagerEventsApiAxiosParamCreator = ManagerEventsApiAxiosParamCreator;
4243
+ /**
4244
+ * ManagerEventsApi - functional programming interface
4245
+ * @export
4246
+ */
4247
+ const ManagerEventsApiFp = function (configuration) {
4248
+ const localVarAxiosParamCreator = (0, exports.ManagerEventsApiAxiosParamCreator)(configuration);
4249
+ return {
4250
+ /**
4251
+ *
4252
+ * @summary Create a new event
4253
+ * @param {CreateEventRequest} createEventRequest
4254
+ * @param {*} [options] Override http request option.
4255
+ * @throws {RequiredError}
4256
+ */
4257
+ createEvent(createEventRequest, options) {
4258
+ return __awaiter(this, void 0, void 0, function* () {
4259
+ var _a, _b, _c;
4260
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createEvent(createEventRequest, options);
4261
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4262
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerEventsApi.createEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4263
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4264
+ });
4265
+ },
4266
+ /**
4267
+ *
4268
+ * @summary Delete an event
4269
+ * @param {string} eventId
4270
+ * @param {*} [options] Override http request option.
4271
+ * @throws {RequiredError}
4272
+ */
4273
+ deleteEvent(eventId, options) {
4274
+ return __awaiter(this, void 0, void 0, function* () {
4275
+ var _a, _b, _c;
4276
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteEvent(eventId, options);
4277
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4278
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerEventsApi.deleteEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4279
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4280
+ });
4281
+ },
4282
+ /**
4283
+ *
4284
+ * @summary Publish an event
4285
+ * @param {string} eventId
4286
+ * @param {*} [options] Override http request option.
4287
+ * @throws {RequiredError}
4288
+ */
4289
+ publishEvent(eventId, options) {
4290
+ return __awaiter(this, void 0, void 0, function* () {
4291
+ var _a, _b, _c;
4292
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.publishEvent(eventId, options);
4293
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4294
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerEventsApi.publishEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4295
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4296
+ });
4297
+ },
4298
+ /**
4299
+ *
4300
+ * @summary Unpublish an event
4301
+ * @param {string} eventId
4302
+ * @param {*} [options] Override http request option.
4303
+ * @throws {RequiredError}
4304
+ */
4305
+ unpublishEvent(eventId, options) {
4306
+ return __awaiter(this, void 0, void 0, function* () {
4307
+ var _a, _b, _c;
4308
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.unpublishEvent(eventId, options);
4309
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4310
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerEventsApi.unpublishEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4311
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4312
+ });
4313
+ },
4314
+ };
4315
+ };
4316
+ exports.ManagerEventsApiFp = ManagerEventsApiFp;
4317
+ /**
4318
+ * ManagerEventsApi - factory interface
4319
+ * @export
4320
+ */
4321
+ const ManagerEventsApiFactory = function (configuration, basePath, axios) {
4322
+ const localVarFp = (0, exports.ManagerEventsApiFp)(configuration);
4323
+ return {
4324
+ /**
4325
+ *
4326
+ * @summary Create a new event
4327
+ * @param {ManagerEventsApiCreateEventRequest} requestParameters Request parameters.
4328
+ * @param {*} [options] Override http request option.
4329
+ * @throws {RequiredError}
4330
+ */
4331
+ createEvent(requestParameters, options) {
4332
+ return localVarFp.createEvent(requestParameters.createEventRequest, options).then((request) => request(axios, basePath));
4333
+ },
4334
+ /**
4335
+ *
4336
+ * @summary Delete an event
4337
+ * @param {ManagerEventsApiDeleteEventRequest} requestParameters Request parameters.
4338
+ * @param {*} [options] Override http request option.
4339
+ * @throws {RequiredError}
4340
+ */
4341
+ deleteEvent(requestParameters, options) {
4342
+ return localVarFp.deleteEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
4343
+ },
4344
+ /**
4345
+ *
4346
+ * @summary Publish an event
4347
+ * @param {ManagerEventsApiPublishEventRequest} requestParameters Request parameters.
4348
+ * @param {*} [options] Override http request option.
4349
+ * @throws {RequiredError}
4350
+ */
4351
+ publishEvent(requestParameters, options) {
4352
+ return localVarFp.publishEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
4353
+ },
4354
+ /**
4355
+ *
4356
+ * @summary Unpublish an event
4357
+ * @param {ManagerEventsApiUnpublishEventRequest} requestParameters Request parameters.
4358
+ * @param {*} [options] Override http request option.
4359
+ * @throws {RequiredError}
4360
+ */
4361
+ unpublishEvent(requestParameters, options) {
4362
+ return localVarFp.unpublishEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
4363
+ },
4364
+ };
4365
+ };
4366
+ exports.ManagerEventsApiFactory = ManagerEventsApiFactory;
4367
+ /**
4368
+ * ManagerEventsApi - object-oriented interface
4369
+ * @export
4370
+ * @class ManagerEventsApi
4371
+ * @extends {BaseAPI}
4372
+ */
4373
+ class ManagerEventsApi extends base_1.BaseAPI {
4374
+ /**
4375
+ *
4376
+ * @summary Create a new event
4377
+ * @param {ManagerEventsApiCreateEventRequest} requestParameters Request parameters.
4378
+ * @param {*} [options] Override http request option.
4379
+ * @throws {RequiredError}
4380
+ * @memberof ManagerEventsApi
4381
+ */
4382
+ createEvent(requestParameters, options) {
4383
+ return (0, exports.ManagerEventsApiFp)(this.configuration).createEvent(requestParameters.createEventRequest, options).then((request) => request(this.axios, this.basePath));
4384
+ }
4385
+ /**
4386
+ *
4387
+ * @summary Delete an event
4388
+ * @param {ManagerEventsApiDeleteEventRequest} requestParameters Request parameters.
4389
+ * @param {*} [options] Override http request option.
4390
+ * @throws {RequiredError}
4391
+ * @memberof ManagerEventsApi
4392
+ */
4393
+ deleteEvent(requestParameters, options) {
4394
+ return (0, exports.ManagerEventsApiFp)(this.configuration).deleteEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
4395
+ }
4396
+ /**
4397
+ *
4398
+ * @summary Publish an event
4399
+ * @param {ManagerEventsApiPublishEventRequest} requestParameters Request parameters.
4400
+ * @param {*} [options] Override http request option.
4401
+ * @throws {RequiredError}
4402
+ * @memberof ManagerEventsApi
4403
+ */
4404
+ publishEvent(requestParameters, options) {
4405
+ return (0, exports.ManagerEventsApiFp)(this.configuration).publishEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
4406
+ }
4407
+ /**
4408
+ *
4409
+ * @summary Unpublish an event
4410
+ * @param {ManagerEventsApiUnpublishEventRequest} requestParameters Request parameters.
4411
+ * @param {*} [options] Override http request option.
4412
+ * @throws {RequiredError}
4413
+ * @memberof ManagerEventsApi
4414
+ */
4415
+ unpublishEvent(requestParameters, options) {
4416
+ return (0, exports.ManagerEventsApiFp)(this.configuration).unpublishEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
4417
+ }
4418
+ }
4419
+ exports.ManagerEventsApi = ManagerEventsApi;
3809
4420
  /**
3810
4421
  * ManagerSportsApi - axios parameter creator
3811
4422
  * @export
@@ -4495,6 +5106,106 @@ class StaffClubsApi extends base_1.BaseAPI {
4495
5106
  }
4496
5107
  }
4497
5108
  exports.StaffClubsApi = StaffClubsApi;
5109
+ /**
5110
+ * StaffEventsApi - axios parameter creator
5111
+ * @export
5112
+ */
5113
+ const StaffEventsApiAxiosParamCreator = function (configuration) {
5114
+ return {
5115
+ /**
5116
+ *
5117
+ * @summary Get all events for current club (including unpublished)
5118
+ * @param {*} [options] Override http request option.
5119
+ * @throws {RequiredError}
5120
+ */
5121
+ getEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
5122
+ const localVarPath = `/api/events/staff/getEvents`;
5123
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5124
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5125
+ let baseOptions;
5126
+ if (configuration) {
5127
+ baseOptions = configuration.baseOptions;
5128
+ }
5129
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5130
+ const localVarHeaderParameter = {};
5131
+ const localVarQueryParameter = {};
5132
+ // authentication bearerAuth required
5133
+ // http bearer authentication required
5134
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5135
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5136
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5137
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5138
+ return {
5139
+ url: (0, common_1.toPathString)(localVarUrlObj),
5140
+ options: localVarRequestOptions,
5141
+ };
5142
+ }),
5143
+ };
5144
+ };
5145
+ exports.StaffEventsApiAxiosParamCreator = StaffEventsApiAxiosParamCreator;
5146
+ /**
5147
+ * StaffEventsApi - functional programming interface
5148
+ * @export
5149
+ */
5150
+ const StaffEventsApiFp = function (configuration) {
5151
+ const localVarAxiosParamCreator = (0, exports.StaffEventsApiAxiosParamCreator)(configuration);
5152
+ return {
5153
+ /**
5154
+ *
5155
+ * @summary Get all events for current club (including unpublished)
5156
+ * @param {*} [options] Override http request option.
5157
+ * @throws {RequiredError}
5158
+ */
5159
+ getEventsByClub(options) {
5160
+ return __awaiter(this, void 0, void 0, function* () {
5161
+ var _a, _b, _c;
5162
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventsByClub(options);
5163
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5164
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StaffEventsApi.getEventsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5165
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5166
+ });
5167
+ },
5168
+ };
5169
+ };
5170
+ exports.StaffEventsApiFp = StaffEventsApiFp;
5171
+ /**
5172
+ * StaffEventsApi - factory interface
5173
+ * @export
5174
+ */
5175
+ const StaffEventsApiFactory = function (configuration, basePath, axios) {
5176
+ const localVarFp = (0, exports.StaffEventsApiFp)(configuration);
5177
+ return {
5178
+ /**
5179
+ *
5180
+ * @summary Get all events for current club (including unpublished)
5181
+ * @param {*} [options] Override http request option.
5182
+ * @throws {RequiredError}
5183
+ */
5184
+ getEventsByClub(options) {
5185
+ return localVarFp.getEventsByClub(options).then((request) => request(axios, basePath));
5186
+ },
5187
+ };
5188
+ };
5189
+ exports.StaffEventsApiFactory = StaffEventsApiFactory;
5190
+ /**
5191
+ * StaffEventsApi - object-oriented interface
5192
+ * @export
5193
+ * @class StaffEventsApi
5194
+ * @extends {BaseAPI}
5195
+ */
5196
+ class StaffEventsApi extends base_1.BaseAPI {
5197
+ /**
5198
+ *
5199
+ * @summary Get all events for current club (including unpublished)
5200
+ * @param {*} [options] Override http request option.
5201
+ * @throws {RequiredError}
5202
+ * @memberof StaffEventsApi
5203
+ */
5204
+ getEventsByClub(options) {
5205
+ return (0, exports.StaffEventsApiFp)(this.configuration).getEventsByClub(options).then((request) => request(this.axios, this.basePath));
5206
+ }
5207
+ }
5208
+ exports.StaffEventsApi = StaffEventsApi;
4498
5209
  /**
4499
5210
  * StaffProfileApi - axios parameter creator
4500
5211
  * @export