@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/esm/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Pandook API
5
5
  * API for managing pickle ball games and players
6
6
  *
7
- * The version of the OpenAPI document: 1.0.25
7
+ * The version of the OpenAPI document: 1.0.27
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -76,6 +76,11 @@ export const CreatePriceRequestIntervalEnum = {
76
76
  Month: 'month',
77
77
  Year: 'year'
78
78
  };
79
+ export const EventBookingStatusEnum = {
80
+ Pending: 'pending',
81
+ Confirmed: 'confirmed',
82
+ Cancelled: 'cancelled'
83
+ };
79
84
  export const InvoicesResponseInvoicesInnerStatusEnum = {
80
85
  Pending: 'pending',
81
86
  Paid: 'paid',
@@ -1950,6 +1955,289 @@ export const GetInvoicesStatusEnum = {
1950
1955
  Canceled: 'canceled',
1951
1956
  Expired: 'expired'
1952
1957
  };
1958
+ /**
1959
+ * ClubsApi - axios parameter creator
1960
+ * @export
1961
+ */
1962
+ export const ClubsApiAxiosParamCreator = function (configuration) {
1963
+ return {
1964
+ /**
1965
+ * Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
1966
+ * @summary Récupérer la liste publique des utilisateurs d\'un club
1967
+ * @param {string} id ID du club
1968
+ * @param {*} [options] Override http request option.
1969
+ * @throws {RequiredError}
1970
+ */
1971
+ getClubUsersById: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
1972
+ // verify required parameter 'id' is not null or undefined
1973
+ assertParamExists('getClubUsersById', 'id', id);
1974
+ const localVarPath = `/api/clubs/{id}/clubUsers`
1975
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1976
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1977
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1978
+ let baseOptions;
1979
+ if (configuration) {
1980
+ baseOptions = configuration.baseOptions;
1981
+ }
1982
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1983
+ const localVarHeaderParameter = {};
1984
+ const localVarQueryParameter = {};
1985
+ // authentication bearerAuth required
1986
+ // http bearer authentication required
1987
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1988
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1989
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1990
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1991
+ return {
1992
+ url: toPathString(localVarUrlObj),
1993
+ options: localVarRequestOptions,
1994
+ };
1995
+ }),
1996
+ };
1997
+ };
1998
+ /**
1999
+ * ClubsApi - functional programming interface
2000
+ * @export
2001
+ */
2002
+ export const ClubsApiFp = function (configuration) {
2003
+ const localVarAxiosParamCreator = ClubsApiAxiosParamCreator(configuration);
2004
+ return {
2005
+ /**
2006
+ * Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
2007
+ * @summary Récupérer la liste publique des utilisateurs d\'un club
2008
+ * @param {string} id ID du club
2009
+ * @param {*} [options] Override http request option.
2010
+ * @throws {RequiredError}
2011
+ */
2012
+ getClubUsersById(id, options) {
2013
+ return __awaiter(this, void 0, void 0, function* () {
2014
+ var _a, _b, _c;
2015
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubUsersById(id, options);
2016
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2017
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsApi.getClubUsersById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2018
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2019
+ });
2020
+ },
2021
+ };
2022
+ };
2023
+ /**
2024
+ * ClubsApi - factory interface
2025
+ * @export
2026
+ */
2027
+ export const ClubsApiFactory = function (configuration, basePath, axios) {
2028
+ const localVarFp = ClubsApiFp(configuration);
2029
+ return {
2030
+ /**
2031
+ * Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
2032
+ * @summary Récupérer la liste publique des utilisateurs d\'un club
2033
+ * @param {ClubsApiGetClubUsersByIdRequest} requestParameters Request parameters.
2034
+ * @param {*} [options] Override http request option.
2035
+ * @throws {RequiredError}
2036
+ */
2037
+ getClubUsersById(requestParameters, options) {
2038
+ return localVarFp.getClubUsersById(requestParameters.id, options).then((request) => request(axios, basePath));
2039
+ },
2040
+ };
2041
+ };
2042
+ /**
2043
+ * ClubsApi - object-oriented interface
2044
+ * @export
2045
+ * @class ClubsApi
2046
+ * @extends {BaseAPI}
2047
+ */
2048
+ export class ClubsApi extends BaseAPI {
2049
+ /**
2050
+ * Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
2051
+ * @summary Récupérer la liste publique des utilisateurs d\'un club
2052
+ * @param {ClubsApiGetClubUsersByIdRequest} requestParameters Request parameters.
2053
+ * @param {*} [options] Override http request option.
2054
+ * @throws {RequiredError}
2055
+ * @memberof ClubsApi
2056
+ */
2057
+ getClubUsersById(requestParameters, options) {
2058
+ return ClubsApiFp(this.configuration).getClubUsersById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
2059
+ }
2060
+ }
2061
+ /**
2062
+ * EventsApi - axios parameter creator
2063
+ * @export
2064
+ */
2065
+ export const EventsApiAxiosParamCreator = function (configuration) {
2066
+ return {
2067
+ /**
2068
+ *
2069
+ * @summary Get all published events for a club
2070
+ * @param {string} clubId
2071
+ * @param {*} [options] Override http request option.
2072
+ * @throws {RequiredError}
2073
+ */
2074
+ getPublishedEventsByClubId: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
2075
+ // verify required parameter 'clubId' is not null or undefined
2076
+ assertParamExists('getPublishedEventsByClubId', 'clubId', clubId);
2077
+ const localVarPath = `/api/events`;
2078
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2079
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2080
+ let baseOptions;
2081
+ if (configuration) {
2082
+ baseOptions = configuration.baseOptions;
2083
+ }
2084
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2085
+ const localVarHeaderParameter = {};
2086
+ const localVarQueryParameter = {};
2087
+ // authentication bearerAuth required
2088
+ // http bearer authentication required
2089
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2090
+ if (clubId !== undefined) {
2091
+ localVarQueryParameter['clubId'] = clubId;
2092
+ }
2093
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2094
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2095
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2096
+ return {
2097
+ url: toPathString(localVarUrlObj),
2098
+ options: localVarRequestOptions,
2099
+ };
2100
+ }),
2101
+ /**
2102
+ *
2103
+ * @summary Register for an event
2104
+ * @param {string} eventId
2105
+ * @param {EventRegistrationRequest} eventRegistrationRequest
2106
+ * @param {*} [options] Override http request option.
2107
+ * @throws {RequiredError}
2108
+ */
2109
+ registerForEvent: (eventId_1, eventRegistrationRequest_1, ...args_1) => __awaiter(this, [eventId_1, eventRegistrationRequest_1, ...args_1], void 0, function* (eventId, eventRegistrationRequest, options = {}) {
2110
+ // verify required parameter 'eventId' is not null or undefined
2111
+ assertParamExists('registerForEvent', 'eventId', eventId);
2112
+ // verify required parameter 'eventRegistrationRequest' is not null or undefined
2113
+ assertParamExists('registerForEvent', 'eventRegistrationRequest', eventRegistrationRequest);
2114
+ const localVarPath = `/api/events/{eventId}/register`
2115
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
2116
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2117
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2118
+ let baseOptions;
2119
+ if (configuration) {
2120
+ baseOptions = configuration.baseOptions;
2121
+ }
2122
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2123
+ const localVarHeaderParameter = {};
2124
+ const localVarQueryParameter = {};
2125
+ // authentication bearerAuth required
2126
+ // http bearer authentication required
2127
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2128
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2129
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2130
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2131
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2132
+ localVarRequestOptions.data = serializeDataIfNeeded(eventRegistrationRequest, localVarRequestOptions, configuration);
2133
+ return {
2134
+ url: toPathString(localVarUrlObj),
2135
+ options: localVarRequestOptions,
2136
+ };
2137
+ }),
2138
+ };
2139
+ };
2140
+ /**
2141
+ * EventsApi - functional programming interface
2142
+ * @export
2143
+ */
2144
+ export const EventsApiFp = function (configuration) {
2145
+ const localVarAxiosParamCreator = EventsApiAxiosParamCreator(configuration);
2146
+ return {
2147
+ /**
2148
+ *
2149
+ * @summary Get all published events for a club
2150
+ * @param {string} clubId
2151
+ * @param {*} [options] Override http request option.
2152
+ * @throws {RequiredError}
2153
+ */
2154
+ getPublishedEventsByClubId(clubId, options) {
2155
+ return __awaiter(this, void 0, void 0, function* () {
2156
+ var _a, _b, _c;
2157
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPublishedEventsByClubId(clubId, options);
2158
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2159
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsApi.getPublishedEventsByClubId']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2160
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2161
+ });
2162
+ },
2163
+ /**
2164
+ *
2165
+ * @summary Register for an event
2166
+ * @param {string} eventId
2167
+ * @param {EventRegistrationRequest} eventRegistrationRequest
2168
+ * @param {*} [options] Override http request option.
2169
+ * @throws {RequiredError}
2170
+ */
2171
+ registerForEvent(eventId, eventRegistrationRequest, options) {
2172
+ return __awaiter(this, void 0, void 0, function* () {
2173
+ var _a, _b, _c;
2174
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.registerForEvent(eventId, eventRegistrationRequest, options);
2175
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2176
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsApi.registerForEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2177
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2178
+ });
2179
+ },
2180
+ };
2181
+ };
2182
+ /**
2183
+ * EventsApi - factory interface
2184
+ * @export
2185
+ */
2186
+ export const EventsApiFactory = function (configuration, basePath, axios) {
2187
+ const localVarFp = EventsApiFp(configuration);
2188
+ return {
2189
+ /**
2190
+ *
2191
+ * @summary Get all published events for a club
2192
+ * @param {EventsApiGetPublishedEventsByClubIdRequest} requestParameters Request parameters.
2193
+ * @param {*} [options] Override http request option.
2194
+ * @throws {RequiredError}
2195
+ */
2196
+ getPublishedEventsByClubId(requestParameters, options) {
2197
+ return localVarFp.getPublishedEventsByClubId(requestParameters.clubId, options).then((request) => request(axios, basePath));
2198
+ },
2199
+ /**
2200
+ *
2201
+ * @summary Register for an event
2202
+ * @param {EventsApiRegisterForEventRequest} requestParameters Request parameters.
2203
+ * @param {*} [options] Override http request option.
2204
+ * @throws {RequiredError}
2205
+ */
2206
+ registerForEvent(requestParameters, options) {
2207
+ return localVarFp.registerForEvent(requestParameters.eventId, requestParameters.eventRegistrationRequest, options).then((request) => request(axios, basePath));
2208
+ },
2209
+ };
2210
+ };
2211
+ /**
2212
+ * EventsApi - object-oriented interface
2213
+ * @export
2214
+ * @class EventsApi
2215
+ * @extends {BaseAPI}
2216
+ */
2217
+ export class EventsApi extends BaseAPI {
2218
+ /**
2219
+ *
2220
+ * @summary Get all published events for a club
2221
+ * @param {EventsApiGetPublishedEventsByClubIdRequest} requestParameters Request parameters.
2222
+ * @param {*} [options] Override http request option.
2223
+ * @throws {RequiredError}
2224
+ * @memberof EventsApi
2225
+ */
2226
+ getPublishedEventsByClubId(requestParameters, options) {
2227
+ return EventsApiFp(this.configuration).getPublishedEventsByClubId(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
2228
+ }
2229
+ /**
2230
+ *
2231
+ * @summary Register for an event
2232
+ * @param {EventsApiRegisterForEventRequest} requestParameters Request parameters.
2233
+ * @param {*} [options] Override http request option.
2234
+ * @throws {RequiredError}
2235
+ * @memberof EventsApi
2236
+ */
2237
+ registerForEvent(requestParameters, options) {
2238
+ return EventsApiFp(this.configuration).registerForEvent(requestParameters.eventId, requestParameters.eventRegistrationRequest, options).then((request) => request(this.axios, this.basePath));
2239
+ }
2240
+ }
1953
2241
  /**
1954
2242
  * ManagerBookingsApi - axios parameter creator
1955
2243
  * @export
@@ -3757,6 +4045,317 @@ export class ManagerClubsApi extends BaseAPI {
3757
4045
  return ManagerClubsApiFp(this.configuration).updateClubNoId(requestParameters.updateClubRequest, options).then((request) => request(this.axios, this.basePath));
3758
4046
  }
3759
4047
  }
4048
+ /**
4049
+ * ManagerEventsApi - axios parameter creator
4050
+ * @export
4051
+ */
4052
+ export const ManagerEventsApiAxiosParamCreator = function (configuration) {
4053
+ return {
4054
+ /**
4055
+ *
4056
+ * @summary Create a new event
4057
+ * @param {CreateEventRequest} createEventRequest
4058
+ * @param {*} [options] Override http request option.
4059
+ * @throws {RequiredError}
4060
+ */
4061
+ createEvent: (createEventRequest_1, ...args_1) => __awaiter(this, [createEventRequest_1, ...args_1], void 0, function* (createEventRequest, options = {}) {
4062
+ // verify required parameter 'createEventRequest' is not null or undefined
4063
+ assertParamExists('createEvent', 'createEventRequest', createEventRequest);
4064
+ const localVarPath = `/api/events/manager/createEvent`;
4065
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4066
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4067
+ let baseOptions;
4068
+ if (configuration) {
4069
+ baseOptions = configuration.baseOptions;
4070
+ }
4071
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4072
+ const localVarHeaderParameter = {};
4073
+ const localVarQueryParameter = {};
4074
+ // authentication bearerAuth required
4075
+ // http bearer authentication required
4076
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4077
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4078
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4079
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4080
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4081
+ localVarRequestOptions.data = serializeDataIfNeeded(createEventRequest, localVarRequestOptions, configuration);
4082
+ return {
4083
+ url: toPathString(localVarUrlObj),
4084
+ options: localVarRequestOptions,
4085
+ };
4086
+ }),
4087
+ /**
4088
+ *
4089
+ * @summary Delete an event
4090
+ * @param {string} eventId
4091
+ * @param {*} [options] Override http request option.
4092
+ * @throws {RequiredError}
4093
+ */
4094
+ deleteEvent: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
4095
+ // verify required parameter 'eventId' is not null or undefined
4096
+ assertParamExists('deleteEvent', 'eventId', eventId);
4097
+ const localVarPath = `/api/events/manager/deleteEvent/{eventId}`
4098
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
4099
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4100
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4101
+ let baseOptions;
4102
+ if (configuration) {
4103
+ baseOptions = configuration.baseOptions;
4104
+ }
4105
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
4106
+ const localVarHeaderParameter = {};
4107
+ const localVarQueryParameter = {};
4108
+ // authentication bearerAuth required
4109
+ // http bearer authentication required
4110
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4111
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4112
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4113
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4114
+ return {
4115
+ url: toPathString(localVarUrlObj),
4116
+ options: localVarRequestOptions,
4117
+ };
4118
+ }),
4119
+ /**
4120
+ *
4121
+ * @summary Publish an event
4122
+ * @param {string} eventId
4123
+ * @param {*} [options] Override http request option.
4124
+ * @throws {RequiredError}
4125
+ */
4126
+ publishEvent: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
4127
+ // verify required parameter 'eventId' is not null or undefined
4128
+ assertParamExists('publishEvent', 'eventId', eventId);
4129
+ const localVarPath = `/api/events/manager/publishEvent/{eventId}`
4130
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
4131
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4132
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4133
+ let baseOptions;
4134
+ if (configuration) {
4135
+ baseOptions = configuration.baseOptions;
4136
+ }
4137
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
4138
+ const localVarHeaderParameter = {};
4139
+ const localVarQueryParameter = {};
4140
+ // authentication bearerAuth required
4141
+ // http bearer authentication required
4142
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4143
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4144
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4145
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4146
+ return {
4147
+ url: toPathString(localVarUrlObj),
4148
+ options: localVarRequestOptions,
4149
+ };
4150
+ }),
4151
+ /**
4152
+ *
4153
+ * @summary Unpublish an event
4154
+ * @param {string} eventId
4155
+ * @param {*} [options] Override http request option.
4156
+ * @throws {RequiredError}
4157
+ */
4158
+ unpublishEvent: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
4159
+ // verify required parameter 'eventId' is not null or undefined
4160
+ assertParamExists('unpublishEvent', 'eventId', eventId);
4161
+ const localVarPath = `/api/events/manager/unpublishEvent/{eventId}`
4162
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
4163
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4164
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4165
+ let baseOptions;
4166
+ if (configuration) {
4167
+ baseOptions = configuration.baseOptions;
4168
+ }
4169
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
4170
+ const localVarHeaderParameter = {};
4171
+ const localVarQueryParameter = {};
4172
+ // authentication bearerAuth required
4173
+ // http bearer authentication required
4174
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4175
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4176
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4177
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4178
+ return {
4179
+ url: toPathString(localVarUrlObj),
4180
+ options: localVarRequestOptions,
4181
+ };
4182
+ }),
4183
+ };
4184
+ };
4185
+ /**
4186
+ * ManagerEventsApi - functional programming interface
4187
+ * @export
4188
+ */
4189
+ export const ManagerEventsApiFp = function (configuration) {
4190
+ const localVarAxiosParamCreator = ManagerEventsApiAxiosParamCreator(configuration);
4191
+ return {
4192
+ /**
4193
+ *
4194
+ * @summary Create a new event
4195
+ * @param {CreateEventRequest} createEventRequest
4196
+ * @param {*} [options] Override http request option.
4197
+ * @throws {RequiredError}
4198
+ */
4199
+ createEvent(createEventRequest, options) {
4200
+ return __awaiter(this, void 0, void 0, function* () {
4201
+ var _a, _b, _c;
4202
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createEvent(createEventRequest, options);
4203
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4204
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerEventsApi.createEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4205
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4206
+ });
4207
+ },
4208
+ /**
4209
+ *
4210
+ * @summary Delete an event
4211
+ * @param {string} eventId
4212
+ * @param {*} [options] Override http request option.
4213
+ * @throws {RequiredError}
4214
+ */
4215
+ deleteEvent(eventId, options) {
4216
+ return __awaiter(this, void 0, void 0, function* () {
4217
+ var _a, _b, _c;
4218
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteEvent(eventId, options);
4219
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4220
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerEventsApi.deleteEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4221
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4222
+ });
4223
+ },
4224
+ /**
4225
+ *
4226
+ * @summary Publish an event
4227
+ * @param {string} eventId
4228
+ * @param {*} [options] Override http request option.
4229
+ * @throws {RequiredError}
4230
+ */
4231
+ publishEvent(eventId, options) {
4232
+ return __awaiter(this, void 0, void 0, function* () {
4233
+ var _a, _b, _c;
4234
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.publishEvent(eventId, options);
4235
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4236
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerEventsApi.publishEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4237
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4238
+ });
4239
+ },
4240
+ /**
4241
+ *
4242
+ * @summary Unpublish an event
4243
+ * @param {string} eventId
4244
+ * @param {*} [options] Override http request option.
4245
+ * @throws {RequiredError}
4246
+ */
4247
+ unpublishEvent(eventId, options) {
4248
+ return __awaiter(this, void 0, void 0, function* () {
4249
+ var _a, _b, _c;
4250
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.unpublishEvent(eventId, options);
4251
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4252
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerEventsApi.unpublishEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4253
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4254
+ });
4255
+ },
4256
+ };
4257
+ };
4258
+ /**
4259
+ * ManagerEventsApi - factory interface
4260
+ * @export
4261
+ */
4262
+ export const ManagerEventsApiFactory = function (configuration, basePath, axios) {
4263
+ const localVarFp = ManagerEventsApiFp(configuration);
4264
+ return {
4265
+ /**
4266
+ *
4267
+ * @summary Create a new event
4268
+ * @param {ManagerEventsApiCreateEventRequest} requestParameters Request parameters.
4269
+ * @param {*} [options] Override http request option.
4270
+ * @throws {RequiredError}
4271
+ */
4272
+ createEvent(requestParameters, options) {
4273
+ return localVarFp.createEvent(requestParameters.createEventRequest, options).then((request) => request(axios, basePath));
4274
+ },
4275
+ /**
4276
+ *
4277
+ * @summary Delete an event
4278
+ * @param {ManagerEventsApiDeleteEventRequest} requestParameters Request parameters.
4279
+ * @param {*} [options] Override http request option.
4280
+ * @throws {RequiredError}
4281
+ */
4282
+ deleteEvent(requestParameters, options) {
4283
+ return localVarFp.deleteEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
4284
+ },
4285
+ /**
4286
+ *
4287
+ * @summary Publish an event
4288
+ * @param {ManagerEventsApiPublishEventRequest} requestParameters Request parameters.
4289
+ * @param {*} [options] Override http request option.
4290
+ * @throws {RequiredError}
4291
+ */
4292
+ publishEvent(requestParameters, options) {
4293
+ return localVarFp.publishEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
4294
+ },
4295
+ /**
4296
+ *
4297
+ * @summary Unpublish an event
4298
+ * @param {ManagerEventsApiUnpublishEventRequest} requestParameters Request parameters.
4299
+ * @param {*} [options] Override http request option.
4300
+ * @throws {RequiredError}
4301
+ */
4302
+ unpublishEvent(requestParameters, options) {
4303
+ return localVarFp.unpublishEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
4304
+ },
4305
+ };
4306
+ };
4307
+ /**
4308
+ * ManagerEventsApi - object-oriented interface
4309
+ * @export
4310
+ * @class ManagerEventsApi
4311
+ * @extends {BaseAPI}
4312
+ */
4313
+ export class ManagerEventsApi extends BaseAPI {
4314
+ /**
4315
+ *
4316
+ * @summary Create a new event
4317
+ * @param {ManagerEventsApiCreateEventRequest} requestParameters Request parameters.
4318
+ * @param {*} [options] Override http request option.
4319
+ * @throws {RequiredError}
4320
+ * @memberof ManagerEventsApi
4321
+ */
4322
+ createEvent(requestParameters, options) {
4323
+ return ManagerEventsApiFp(this.configuration).createEvent(requestParameters.createEventRequest, options).then((request) => request(this.axios, this.basePath));
4324
+ }
4325
+ /**
4326
+ *
4327
+ * @summary Delete an event
4328
+ * @param {ManagerEventsApiDeleteEventRequest} requestParameters Request parameters.
4329
+ * @param {*} [options] Override http request option.
4330
+ * @throws {RequiredError}
4331
+ * @memberof ManagerEventsApi
4332
+ */
4333
+ deleteEvent(requestParameters, options) {
4334
+ return ManagerEventsApiFp(this.configuration).deleteEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
4335
+ }
4336
+ /**
4337
+ *
4338
+ * @summary Publish an event
4339
+ * @param {ManagerEventsApiPublishEventRequest} requestParameters Request parameters.
4340
+ * @param {*} [options] Override http request option.
4341
+ * @throws {RequiredError}
4342
+ * @memberof ManagerEventsApi
4343
+ */
4344
+ publishEvent(requestParameters, options) {
4345
+ return ManagerEventsApiFp(this.configuration).publishEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
4346
+ }
4347
+ /**
4348
+ *
4349
+ * @summary Unpublish an event
4350
+ * @param {ManagerEventsApiUnpublishEventRequest} requestParameters Request parameters.
4351
+ * @param {*} [options] Override http request option.
4352
+ * @throws {RequiredError}
4353
+ * @memberof ManagerEventsApi
4354
+ */
4355
+ unpublishEvent(requestParameters, options) {
4356
+ return ManagerEventsApiFp(this.configuration).unpublishEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
4357
+ }
4358
+ }
3760
4359
  /**
3761
4360
  * ManagerSportsApi - axios parameter creator
3762
4361
  * @export
@@ -4430,6 +5029,102 @@ export class StaffClubsApi extends BaseAPI {
4430
5029
  return StaffClubsApiFp(this.configuration).getClubSettings(requestParameters.getClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
4431
5030
  }
4432
5031
  }
5032
+ /**
5033
+ * StaffEventsApi - axios parameter creator
5034
+ * @export
5035
+ */
5036
+ export const StaffEventsApiAxiosParamCreator = function (configuration) {
5037
+ return {
5038
+ /**
5039
+ *
5040
+ * @summary Get all events for current club (including unpublished)
5041
+ * @param {*} [options] Override http request option.
5042
+ * @throws {RequiredError}
5043
+ */
5044
+ getEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
5045
+ const localVarPath = `/api/events/staff/getEvents`;
5046
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5047
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5048
+ let baseOptions;
5049
+ if (configuration) {
5050
+ baseOptions = configuration.baseOptions;
5051
+ }
5052
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5053
+ const localVarHeaderParameter = {};
5054
+ const localVarQueryParameter = {};
5055
+ // authentication bearerAuth required
5056
+ // http bearer authentication required
5057
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5058
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5059
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5060
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5061
+ return {
5062
+ url: toPathString(localVarUrlObj),
5063
+ options: localVarRequestOptions,
5064
+ };
5065
+ }),
5066
+ };
5067
+ };
5068
+ /**
5069
+ * StaffEventsApi - functional programming interface
5070
+ * @export
5071
+ */
5072
+ export const StaffEventsApiFp = function (configuration) {
5073
+ const localVarAxiosParamCreator = StaffEventsApiAxiosParamCreator(configuration);
5074
+ return {
5075
+ /**
5076
+ *
5077
+ * @summary Get all events for current club (including unpublished)
5078
+ * @param {*} [options] Override http request option.
5079
+ * @throws {RequiredError}
5080
+ */
5081
+ getEventsByClub(options) {
5082
+ return __awaiter(this, void 0, void 0, function* () {
5083
+ var _a, _b, _c;
5084
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventsByClub(options);
5085
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5086
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StaffEventsApi.getEventsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5087
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5088
+ });
5089
+ },
5090
+ };
5091
+ };
5092
+ /**
5093
+ * StaffEventsApi - factory interface
5094
+ * @export
5095
+ */
5096
+ export const StaffEventsApiFactory = function (configuration, basePath, axios) {
5097
+ const localVarFp = StaffEventsApiFp(configuration);
5098
+ return {
5099
+ /**
5100
+ *
5101
+ * @summary Get all events for current club (including unpublished)
5102
+ * @param {*} [options] Override http request option.
5103
+ * @throws {RequiredError}
5104
+ */
5105
+ getEventsByClub(options) {
5106
+ return localVarFp.getEventsByClub(options).then((request) => request(axios, basePath));
5107
+ },
5108
+ };
5109
+ };
5110
+ /**
5111
+ * StaffEventsApi - object-oriented interface
5112
+ * @export
5113
+ * @class StaffEventsApi
5114
+ * @extends {BaseAPI}
5115
+ */
5116
+ export class StaffEventsApi extends BaseAPI {
5117
+ /**
5118
+ *
5119
+ * @summary Get all events for current club (including unpublished)
5120
+ * @param {*} [options] Override http request option.
5121
+ * @throws {RequiredError}
5122
+ * @memberof StaffEventsApi
5123
+ */
5124
+ getEventsByClub(options) {
5125
+ return StaffEventsApiFp(this.configuration).getEventsByClub(options).then((request) => request(this.axios, this.basePath));
5126
+ }
5127
+ }
4433
5128
  /**
4434
5129
  * StaffProfileApi - axios parameter creator
4435
5130
  * @export