@tennac-booking/sdk 1.0.25 → 1.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/api.js CHANGED
@@ -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.26
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,186 @@ export const GetInvoicesStatusEnum = {
1950
1955
  Canceled: 'canceled',
1951
1956
  Expired: 'expired'
1952
1957
  };
1958
+ /**
1959
+ * EventsApi - axios parameter creator
1960
+ * @export
1961
+ */
1962
+ export const EventsApiAxiosParamCreator = function (configuration) {
1963
+ return {
1964
+ /**
1965
+ *
1966
+ * @summary Get all published events for a club
1967
+ * @param {string} clubId
1968
+ * @param {*} [options] Override http request option.
1969
+ * @throws {RequiredError}
1970
+ */
1971
+ getPublishedEventsByClubId: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
1972
+ // verify required parameter 'clubId' is not null or undefined
1973
+ assertParamExists('getPublishedEventsByClubId', 'clubId', clubId);
1974
+ const localVarPath = `/api/events`;
1975
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1976
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1977
+ let baseOptions;
1978
+ if (configuration) {
1979
+ baseOptions = configuration.baseOptions;
1980
+ }
1981
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1982
+ const localVarHeaderParameter = {};
1983
+ const localVarQueryParameter = {};
1984
+ // authentication bearerAuth required
1985
+ // http bearer authentication required
1986
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1987
+ if (clubId !== undefined) {
1988
+ localVarQueryParameter['clubId'] = clubId;
1989
+ }
1990
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1991
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1992
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1993
+ return {
1994
+ url: toPathString(localVarUrlObj),
1995
+ options: localVarRequestOptions,
1996
+ };
1997
+ }),
1998
+ /**
1999
+ *
2000
+ * @summary Register for an event
2001
+ * @param {string} eventId
2002
+ * @param {EventRegistrationRequest} eventRegistrationRequest
2003
+ * @param {*} [options] Override http request option.
2004
+ * @throws {RequiredError}
2005
+ */
2006
+ registerForEvent: (eventId_1, eventRegistrationRequest_1, ...args_1) => __awaiter(this, [eventId_1, eventRegistrationRequest_1, ...args_1], void 0, function* (eventId, eventRegistrationRequest, options = {}) {
2007
+ // verify required parameter 'eventId' is not null or undefined
2008
+ assertParamExists('registerForEvent', 'eventId', eventId);
2009
+ // verify required parameter 'eventRegistrationRequest' is not null or undefined
2010
+ assertParamExists('registerForEvent', 'eventRegistrationRequest', eventRegistrationRequest);
2011
+ const localVarPath = `/api/events/{eventId}/register`
2012
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
2013
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2014
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2015
+ let baseOptions;
2016
+ if (configuration) {
2017
+ baseOptions = configuration.baseOptions;
2018
+ }
2019
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2020
+ const localVarHeaderParameter = {};
2021
+ const localVarQueryParameter = {};
2022
+ // authentication bearerAuth required
2023
+ // http bearer authentication required
2024
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2025
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2026
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2027
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2028
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2029
+ localVarRequestOptions.data = serializeDataIfNeeded(eventRegistrationRequest, localVarRequestOptions, configuration);
2030
+ return {
2031
+ url: toPathString(localVarUrlObj),
2032
+ options: localVarRequestOptions,
2033
+ };
2034
+ }),
2035
+ };
2036
+ };
2037
+ /**
2038
+ * EventsApi - functional programming interface
2039
+ * @export
2040
+ */
2041
+ export const EventsApiFp = function (configuration) {
2042
+ const localVarAxiosParamCreator = EventsApiAxiosParamCreator(configuration);
2043
+ return {
2044
+ /**
2045
+ *
2046
+ * @summary Get all published events for a club
2047
+ * @param {string} clubId
2048
+ * @param {*} [options] Override http request option.
2049
+ * @throws {RequiredError}
2050
+ */
2051
+ getPublishedEventsByClubId(clubId, options) {
2052
+ return __awaiter(this, void 0, void 0, function* () {
2053
+ var _a, _b, _c;
2054
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPublishedEventsByClubId(clubId, options);
2055
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2056
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsApi.getPublishedEventsByClubId']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2057
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2058
+ });
2059
+ },
2060
+ /**
2061
+ *
2062
+ * @summary Register for an event
2063
+ * @param {string} eventId
2064
+ * @param {EventRegistrationRequest} eventRegistrationRequest
2065
+ * @param {*} [options] Override http request option.
2066
+ * @throws {RequiredError}
2067
+ */
2068
+ registerForEvent(eventId, eventRegistrationRequest, options) {
2069
+ return __awaiter(this, void 0, void 0, function* () {
2070
+ var _a, _b, _c;
2071
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.registerForEvent(eventId, eventRegistrationRequest, options);
2072
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2073
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsApi.registerForEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2074
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2075
+ });
2076
+ },
2077
+ };
2078
+ };
2079
+ /**
2080
+ * EventsApi - factory interface
2081
+ * @export
2082
+ */
2083
+ export const EventsApiFactory = function (configuration, basePath, axios) {
2084
+ const localVarFp = EventsApiFp(configuration);
2085
+ return {
2086
+ /**
2087
+ *
2088
+ * @summary Get all published events for a club
2089
+ * @param {EventsApiGetPublishedEventsByClubIdRequest} requestParameters Request parameters.
2090
+ * @param {*} [options] Override http request option.
2091
+ * @throws {RequiredError}
2092
+ */
2093
+ getPublishedEventsByClubId(requestParameters, options) {
2094
+ return localVarFp.getPublishedEventsByClubId(requestParameters.clubId, options).then((request) => request(axios, basePath));
2095
+ },
2096
+ /**
2097
+ *
2098
+ * @summary Register for an event
2099
+ * @param {EventsApiRegisterForEventRequest} requestParameters Request parameters.
2100
+ * @param {*} [options] Override http request option.
2101
+ * @throws {RequiredError}
2102
+ */
2103
+ registerForEvent(requestParameters, options) {
2104
+ return localVarFp.registerForEvent(requestParameters.eventId, requestParameters.eventRegistrationRequest, options).then((request) => request(axios, basePath));
2105
+ },
2106
+ };
2107
+ };
2108
+ /**
2109
+ * EventsApi - object-oriented interface
2110
+ * @export
2111
+ * @class EventsApi
2112
+ * @extends {BaseAPI}
2113
+ */
2114
+ export class EventsApi extends BaseAPI {
2115
+ /**
2116
+ *
2117
+ * @summary Get all published events for a club
2118
+ * @param {EventsApiGetPublishedEventsByClubIdRequest} requestParameters Request parameters.
2119
+ * @param {*} [options] Override http request option.
2120
+ * @throws {RequiredError}
2121
+ * @memberof EventsApi
2122
+ */
2123
+ getPublishedEventsByClubId(requestParameters, options) {
2124
+ return EventsApiFp(this.configuration).getPublishedEventsByClubId(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
2125
+ }
2126
+ /**
2127
+ *
2128
+ * @summary Register for an event
2129
+ * @param {EventsApiRegisterForEventRequest} requestParameters Request parameters.
2130
+ * @param {*} [options] Override http request option.
2131
+ * @throws {RequiredError}
2132
+ * @memberof EventsApi
2133
+ */
2134
+ registerForEvent(requestParameters, options) {
2135
+ return EventsApiFp(this.configuration).registerForEvent(requestParameters.eventId, requestParameters.eventRegistrationRequest, options).then((request) => request(this.axios, this.basePath));
2136
+ }
2137
+ }
1953
2138
  /**
1954
2139
  * ManagerBookingsApi - axios parameter creator
1955
2140
  * @export
@@ -3757,6 +3942,317 @@ export class ManagerClubsApi extends BaseAPI {
3757
3942
  return ManagerClubsApiFp(this.configuration).updateClubNoId(requestParameters.updateClubRequest, options).then((request) => request(this.axios, this.basePath));
3758
3943
  }
3759
3944
  }
3945
+ /**
3946
+ * ManagerEventsApi - axios parameter creator
3947
+ * @export
3948
+ */
3949
+ export const ManagerEventsApiAxiosParamCreator = function (configuration) {
3950
+ return {
3951
+ /**
3952
+ *
3953
+ * @summary Create a new event
3954
+ * @param {CreateEventRequest} createEventRequest
3955
+ * @param {*} [options] Override http request option.
3956
+ * @throws {RequiredError}
3957
+ */
3958
+ createEvent: (createEventRequest_1, ...args_1) => __awaiter(this, [createEventRequest_1, ...args_1], void 0, function* (createEventRequest, options = {}) {
3959
+ // verify required parameter 'createEventRequest' is not null or undefined
3960
+ assertParamExists('createEvent', 'createEventRequest', createEventRequest);
3961
+ const localVarPath = `/api/events/manager/createEvent`;
3962
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3963
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3964
+ let baseOptions;
3965
+ if (configuration) {
3966
+ baseOptions = configuration.baseOptions;
3967
+ }
3968
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3969
+ const localVarHeaderParameter = {};
3970
+ const localVarQueryParameter = {};
3971
+ // authentication bearerAuth required
3972
+ // http bearer authentication required
3973
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3974
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3975
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3976
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3977
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3978
+ localVarRequestOptions.data = serializeDataIfNeeded(createEventRequest, localVarRequestOptions, configuration);
3979
+ return {
3980
+ url: toPathString(localVarUrlObj),
3981
+ options: localVarRequestOptions,
3982
+ };
3983
+ }),
3984
+ /**
3985
+ *
3986
+ * @summary Delete an event
3987
+ * @param {string} eventId
3988
+ * @param {*} [options] Override http request option.
3989
+ * @throws {RequiredError}
3990
+ */
3991
+ deleteEvent: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
3992
+ // verify required parameter 'eventId' is not null or undefined
3993
+ assertParamExists('deleteEvent', 'eventId', eventId);
3994
+ const localVarPath = `/api/events/manager/deleteEvent/{eventId}`
3995
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
3996
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3997
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3998
+ let baseOptions;
3999
+ if (configuration) {
4000
+ baseOptions = configuration.baseOptions;
4001
+ }
4002
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
4003
+ const localVarHeaderParameter = {};
4004
+ const localVarQueryParameter = {};
4005
+ // authentication bearerAuth required
4006
+ // http bearer authentication required
4007
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4008
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4009
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4010
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4011
+ return {
4012
+ url: toPathString(localVarUrlObj),
4013
+ options: localVarRequestOptions,
4014
+ };
4015
+ }),
4016
+ /**
4017
+ *
4018
+ * @summary Publish an event
4019
+ * @param {string} eventId
4020
+ * @param {*} [options] Override http request option.
4021
+ * @throws {RequiredError}
4022
+ */
4023
+ publishEvent: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
4024
+ // verify required parameter 'eventId' is not null or undefined
4025
+ assertParamExists('publishEvent', 'eventId', eventId);
4026
+ const localVarPath = `/api/events/manager/publishEvent/{eventId}`
4027
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
4028
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4029
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4030
+ let baseOptions;
4031
+ if (configuration) {
4032
+ baseOptions = configuration.baseOptions;
4033
+ }
4034
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
4035
+ const localVarHeaderParameter = {};
4036
+ const localVarQueryParameter = {};
4037
+ // authentication bearerAuth required
4038
+ // http bearer authentication required
4039
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4040
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4041
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4042
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4043
+ return {
4044
+ url: toPathString(localVarUrlObj),
4045
+ options: localVarRequestOptions,
4046
+ };
4047
+ }),
4048
+ /**
4049
+ *
4050
+ * @summary Unpublish an event
4051
+ * @param {string} eventId
4052
+ * @param {*} [options] Override http request option.
4053
+ * @throws {RequiredError}
4054
+ */
4055
+ unpublishEvent: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
4056
+ // verify required parameter 'eventId' is not null or undefined
4057
+ assertParamExists('unpublishEvent', 'eventId', eventId);
4058
+ const localVarPath = `/api/events/manager/unpublishEvent/{eventId}`
4059
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
4060
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4061
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4062
+ let baseOptions;
4063
+ if (configuration) {
4064
+ baseOptions = configuration.baseOptions;
4065
+ }
4066
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
4067
+ const localVarHeaderParameter = {};
4068
+ const localVarQueryParameter = {};
4069
+ // authentication bearerAuth required
4070
+ // http bearer authentication required
4071
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4072
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4073
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4074
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4075
+ return {
4076
+ url: toPathString(localVarUrlObj),
4077
+ options: localVarRequestOptions,
4078
+ };
4079
+ }),
4080
+ };
4081
+ };
4082
+ /**
4083
+ * ManagerEventsApi - functional programming interface
4084
+ * @export
4085
+ */
4086
+ export const ManagerEventsApiFp = function (configuration) {
4087
+ const localVarAxiosParamCreator = ManagerEventsApiAxiosParamCreator(configuration);
4088
+ return {
4089
+ /**
4090
+ *
4091
+ * @summary Create a new event
4092
+ * @param {CreateEventRequest} createEventRequest
4093
+ * @param {*} [options] Override http request option.
4094
+ * @throws {RequiredError}
4095
+ */
4096
+ createEvent(createEventRequest, options) {
4097
+ return __awaiter(this, void 0, void 0, function* () {
4098
+ var _a, _b, _c;
4099
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createEvent(createEventRequest, options);
4100
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4101
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerEventsApi.createEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4102
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4103
+ });
4104
+ },
4105
+ /**
4106
+ *
4107
+ * @summary Delete an event
4108
+ * @param {string} eventId
4109
+ * @param {*} [options] Override http request option.
4110
+ * @throws {RequiredError}
4111
+ */
4112
+ deleteEvent(eventId, options) {
4113
+ return __awaiter(this, void 0, void 0, function* () {
4114
+ var _a, _b, _c;
4115
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteEvent(eventId, options);
4116
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4117
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerEventsApi.deleteEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4118
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4119
+ });
4120
+ },
4121
+ /**
4122
+ *
4123
+ * @summary Publish an event
4124
+ * @param {string} eventId
4125
+ * @param {*} [options] Override http request option.
4126
+ * @throws {RequiredError}
4127
+ */
4128
+ publishEvent(eventId, options) {
4129
+ return __awaiter(this, void 0, void 0, function* () {
4130
+ var _a, _b, _c;
4131
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.publishEvent(eventId, options);
4132
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4133
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerEventsApi.publishEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4134
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4135
+ });
4136
+ },
4137
+ /**
4138
+ *
4139
+ * @summary Unpublish an event
4140
+ * @param {string} eventId
4141
+ * @param {*} [options] Override http request option.
4142
+ * @throws {RequiredError}
4143
+ */
4144
+ unpublishEvent(eventId, options) {
4145
+ return __awaiter(this, void 0, void 0, function* () {
4146
+ var _a, _b, _c;
4147
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.unpublishEvent(eventId, options);
4148
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4149
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerEventsApi.unpublishEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4150
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4151
+ });
4152
+ },
4153
+ };
4154
+ };
4155
+ /**
4156
+ * ManagerEventsApi - factory interface
4157
+ * @export
4158
+ */
4159
+ export const ManagerEventsApiFactory = function (configuration, basePath, axios) {
4160
+ const localVarFp = ManagerEventsApiFp(configuration);
4161
+ return {
4162
+ /**
4163
+ *
4164
+ * @summary Create a new event
4165
+ * @param {ManagerEventsApiCreateEventRequest} requestParameters Request parameters.
4166
+ * @param {*} [options] Override http request option.
4167
+ * @throws {RequiredError}
4168
+ */
4169
+ createEvent(requestParameters, options) {
4170
+ return localVarFp.createEvent(requestParameters.createEventRequest, options).then((request) => request(axios, basePath));
4171
+ },
4172
+ /**
4173
+ *
4174
+ * @summary Delete an event
4175
+ * @param {ManagerEventsApiDeleteEventRequest} requestParameters Request parameters.
4176
+ * @param {*} [options] Override http request option.
4177
+ * @throws {RequiredError}
4178
+ */
4179
+ deleteEvent(requestParameters, options) {
4180
+ return localVarFp.deleteEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
4181
+ },
4182
+ /**
4183
+ *
4184
+ * @summary Publish an event
4185
+ * @param {ManagerEventsApiPublishEventRequest} requestParameters Request parameters.
4186
+ * @param {*} [options] Override http request option.
4187
+ * @throws {RequiredError}
4188
+ */
4189
+ publishEvent(requestParameters, options) {
4190
+ return localVarFp.publishEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
4191
+ },
4192
+ /**
4193
+ *
4194
+ * @summary Unpublish an event
4195
+ * @param {ManagerEventsApiUnpublishEventRequest} requestParameters Request parameters.
4196
+ * @param {*} [options] Override http request option.
4197
+ * @throws {RequiredError}
4198
+ */
4199
+ unpublishEvent(requestParameters, options) {
4200
+ return localVarFp.unpublishEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
4201
+ },
4202
+ };
4203
+ };
4204
+ /**
4205
+ * ManagerEventsApi - object-oriented interface
4206
+ * @export
4207
+ * @class ManagerEventsApi
4208
+ * @extends {BaseAPI}
4209
+ */
4210
+ export class ManagerEventsApi extends BaseAPI {
4211
+ /**
4212
+ *
4213
+ * @summary Create a new event
4214
+ * @param {ManagerEventsApiCreateEventRequest} requestParameters Request parameters.
4215
+ * @param {*} [options] Override http request option.
4216
+ * @throws {RequiredError}
4217
+ * @memberof ManagerEventsApi
4218
+ */
4219
+ createEvent(requestParameters, options) {
4220
+ return ManagerEventsApiFp(this.configuration).createEvent(requestParameters.createEventRequest, options).then((request) => request(this.axios, this.basePath));
4221
+ }
4222
+ /**
4223
+ *
4224
+ * @summary Delete an event
4225
+ * @param {ManagerEventsApiDeleteEventRequest} requestParameters Request parameters.
4226
+ * @param {*} [options] Override http request option.
4227
+ * @throws {RequiredError}
4228
+ * @memberof ManagerEventsApi
4229
+ */
4230
+ deleteEvent(requestParameters, options) {
4231
+ return ManagerEventsApiFp(this.configuration).deleteEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
4232
+ }
4233
+ /**
4234
+ *
4235
+ * @summary Publish an event
4236
+ * @param {ManagerEventsApiPublishEventRequest} requestParameters Request parameters.
4237
+ * @param {*} [options] Override http request option.
4238
+ * @throws {RequiredError}
4239
+ * @memberof ManagerEventsApi
4240
+ */
4241
+ publishEvent(requestParameters, options) {
4242
+ return ManagerEventsApiFp(this.configuration).publishEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
4243
+ }
4244
+ /**
4245
+ *
4246
+ * @summary Unpublish an event
4247
+ * @param {ManagerEventsApiUnpublishEventRequest} requestParameters Request parameters.
4248
+ * @param {*} [options] Override http request option.
4249
+ * @throws {RequiredError}
4250
+ * @memberof ManagerEventsApi
4251
+ */
4252
+ unpublishEvent(requestParameters, options) {
4253
+ return ManagerEventsApiFp(this.configuration).unpublishEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
4254
+ }
4255
+ }
3760
4256
  /**
3761
4257
  * ManagerSportsApi - axios parameter creator
3762
4258
  * @export
@@ -4430,6 +4926,102 @@ export class StaffClubsApi extends BaseAPI {
4430
4926
  return StaffClubsApiFp(this.configuration).getClubSettings(requestParameters.getClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
4431
4927
  }
4432
4928
  }
4929
+ /**
4930
+ * StaffEventsApi - axios parameter creator
4931
+ * @export
4932
+ */
4933
+ export const StaffEventsApiAxiosParamCreator = function (configuration) {
4934
+ return {
4935
+ /**
4936
+ *
4937
+ * @summary Get all events for current club (including unpublished)
4938
+ * @param {*} [options] Override http request option.
4939
+ * @throws {RequiredError}
4940
+ */
4941
+ getEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
4942
+ const localVarPath = `/api/events/staff/getEvents`;
4943
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4944
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4945
+ let baseOptions;
4946
+ if (configuration) {
4947
+ baseOptions = configuration.baseOptions;
4948
+ }
4949
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4950
+ const localVarHeaderParameter = {};
4951
+ const localVarQueryParameter = {};
4952
+ // authentication bearerAuth required
4953
+ // http bearer authentication required
4954
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4955
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4956
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4957
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4958
+ return {
4959
+ url: toPathString(localVarUrlObj),
4960
+ options: localVarRequestOptions,
4961
+ };
4962
+ }),
4963
+ };
4964
+ };
4965
+ /**
4966
+ * StaffEventsApi - functional programming interface
4967
+ * @export
4968
+ */
4969
+ export const StaffEventsApiFp = function (configuration) {
4970
+ const localVarAxiosParamCreator = StaffEventsApiAxiosParamCreator(configuration);
4971
+ return {
4972
+ /**
4973
+ *
4974
+ * @summary Get all events for current club (including unpublished)
4975
+ * @param {*} [options] Override http request option.
4976
+ * @throws {RequiredError}
4977
+ */
4978
+ getEventsByClub(options) {
4979
+ return __awaiter(this, void 0, void 0, function* () {
4980
+ var _a, _b, _c;
4981
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventsByClub(options);
4982
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4983
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StaffEventsApi.getEventsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4984
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4985
+ });
4986
+ },
4987
+ };
4988
+ };
4989
+ /**
4990
+ * StaffEventsApi - factory interface
4991
+ * @export
4992
+ */
4993
+ export const StaffEventsApiFactory = function (configuration, basePath, axios) {
4994
+ const localVarFp = StaffEventsApiFp(configuration);
4995
+ return {
4996
+ /**
4997
+ *
4998
+ * @summary Get all events for current club (including unpublished)
4999
+ * @param {*} [options] Override http request option.
5000
+ * @throws {RequiredError}
5001
+ */
5002
+ getEventsByClub(options) {
5003
+ return localVarFp.getEventsByClub(options).then((request) => request(axios, basePath));
5004
+ },
5005
+ };
5006
+ };
5007
+ /**
5008
+ * StaffEventsApi - object-oriented interface
5009
+ * @export
5010
+ * @class StaffEventsApi
5011
+ * @extends {BaseAPI}
5012
+ */
5013
+ export class StaffEventsApi extends BaseAPI {
5014
+ /**
5015
+ *
5016
+ * @summary Get all events for current club (including unpublished)
5017
+ * @param {*} [options] Override http request option.
5018
+ * @throws {RequiredError}
5019
+ * @memberof StaffEventsApi
5020
+ */
5021
+ getEventsByClub(options) {
5022
+ return StaffEventsApiFp(this.configuration).getEventsByClub(options).then((request) => request(this.axios, this.basePath));
5023
+ }
5024
+ }
4433
5025
  /**
4434
5026
  * StaffProfileApi - axios parameter creator
4435
5027
  * @export
@@ -2,7 +2,7 @@
2
2
  * Pandook API
3
3
  * API for managing pickle ball games and players
4
4
  *
5
- * The version of the OpenAPI document: 1.0.25
5
+ * The version of the OpenAPI document: 1.0.26
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/base.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.26
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Pandook API
3
3
  * API for managing pickle ball games and players
4
4
  *
5
- * The version of the OpenAPI document: 1.0.25
5
+ * The version of the OpenAPI document: 1.0.26
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.26
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Pandook API
3
3
  * API for managing pickle ball games and players
4
4
  *
5
- * The version of the OpenAPI document: 1.0.25
5
+ * The version of the OpenAPI document: 1.0.26
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).