@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/.openapi-generator/FILES +12 -0
- package/README.md +18 -2
- package/api.ts +1096 -108
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +653 -1
- package/dist/api.js +608 -4
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +653 -1
- package/dist/esm/api.js +593 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/CreateEventRequest.md +30 -0
- package/docs/DeleteEvent200Response.md +20 -0
- package/docs/Event.md +40 -0
- package/docs/EventBooking.md +32 -0
- package/docs/EventRegistrationRequest.md +22 -0
- package/docs/EventsApi.md +119 -0
- package/docs/GetPublishedEventsByClubId200Response.md +20 -0
- package/docs/ManagerEventResponse.md +22 -0
- package/docs/ManagerEventsApi.md +227 -0
- package/docs/RegisterForEvent201Response.md +20 -0
- package/docs/StaffEventResponse.md +20 -0
- package/docs/StaffEventsApi.md +54 -0
- package/index.ts +1 -1
- 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.
|
|
8
|
+
* The version of the OpenAPI document: 1.0.26
|
|
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.
|
|
26
|
-
exports.
|
|
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.ManagerClubCourtsApiFactory = exports.ManagerClubCourtsApiFp = exports.ManagerClubCourtsApiAxiosParamCreator = exports.ManagerBookingsApi = exports.ManagerBookingsApiFactory = exports.ManagerBookingsApiFp = exports.ManagerBookingsApiAxiosParamCreator = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = 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.UserAuthenticationApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = 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 = 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 = 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,190 @@ exports.GetInvoicesStatusEnum = {
|
|
|
1975
1980
|
Canceled: 'canceled',
|
|
1976
1981
|
Expired: 'expired'
|
|
1977
1982
|
};
|
|
1983
|
+
/**
|
|
1984
|
+
* EventsApi - axios parameter creator
|
|
1985
|
+
* @export
|
|
1986
|
+
*/
|
|
1987
|
+
const EventsApiAxiosParamCreator = function (configuration) {
|
|
1988
|
+
return {
|
|
1989
|
+
/**
|
|
1990
|
+
*
|
|
1991
|
+
* @summary Get all published events for a club
|
|
1992
|
+
* @param {string} clubId
|
|
1993
|
+
* @param {*} [options] Override http request option.
|
|
1994
|
+
* @throws {RequiredError}
|
|
1995
|
+
*/
|
|
1996
|
+
getPublishedEventsByClubId: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
1997
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
1998
|
+
(0, common_1.assertParamExists)('getPublishedEventsByClubId', 'clubId', clubId);
|
|
1999
|
+
const localVarPath = `/api/events`;
|
|
2000
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2001
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2002
|
+
let baseOptions;
|
|
2003
|
+
if (configuration) {
|
|
2004
|
+
baseOptions = configuration.baseOptions;
|
|
2005
|
+
}
|
|
2006
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2007
|
+
const localVarHeaderParameter = {};
|
|
2008
|
+
const localVarQueryParameter = {};
|
|
2009
|
+
// authentication bearerAuth required
|
|
2010
|
+
// http bearer authentication required
|
|
2011
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2012
|
+
if (clubId !== undefined) {
|
|
2013
|
+
localVarQueryParameter['clubId'] = clubId;
|
|
2014
|
+
}
|
|
2015
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2016
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2017
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2018
|
+
return {
|
|
2019
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2020
|
+
options: localVarRequestOptions,
|
|
2021
|
+
};
|
|
2022
|
+
}),
|
|
2023
|
+
/**
|
|
2024
|
+
*
|
|
2025
|
+
* @summary Register for an event
|
|
2026
|
+
* @param {string} eventId
|
|
2027
|
+
* @param {EventRegistrationRequest} eventRegistrationRequest
|
|
2028
|
+
* @param {*} [options] Override http request option.
|
|
2029
|
+
* @throws {RequiredError}
|
|
2030
|
+
*/
|
|
2031
|
+
registerForEvent: (eventId_1, eventRegistrationRequest_1, ...args_1) => __awaiter(this, [eventId_1, eventRegistrationRequest_1, ...args_1], void 0, function* (eventId, eventRegistrationRequest, options = {}) {
|
|
2032
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
2033
|
+
(0, common_1.assertParamExists)('registerForEvent', 'eventId', eventId);
|
|
2034
|
+
// verify required parameter 'eventRegistrationRequest' is not null or undefined
|
|
2035
|
+
(0, common_1.assertParamExists)('registerForEvent', 'eventRegistrationRequest', eventRegistrationRequest);
|
|
2036
|
+
const localVarPath = `/api/events/{eventId}/register`
|
|
2037
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
2038
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2039
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2040
|
+
let baseOptions;
|
|
2041
|
+
if (configuration) {
|
|
2042
|
+
baseOptions = configuration.baseOptions;
|
|
2043
|
+
}
|
|
2044
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2045
|
+
const localVarHeaderParameter = {};
|
|
2046
|
+
const localVarQueryParameter = {};
|
|
2047
|
+
// authentication bearerAuth required
|
|
2048
|
+
// http bearer authentication required
|
|
2049
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2050
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2051
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2052
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2053
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2054
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(eventRegistrationRequest, localVarRequestOptions, configuration);
|
|
2055
|
+
return {
|
|
2056
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2057
|
+
options: localVarRequestOptions,
|
|
2058
|
+
};
|
|
2059
|
+
}),
|
|
2060
|
+
};
|
|
2061
|
+
};
|
|
2062
|
+
exports.EventsApiAxiosParamCreator = EventsApiAxiosParamCreator;
|
|
2063
|
+
/**
|
|
2064
|
+
* EventsApi - functional programming interface
|
|
2065
|
+
* @export
|
|
2066
|
+
*/
|
|
2067
|
+
const EventsApiFp = function (configuration) {
|
|
2068
|
+
const localVarAxiosParamCreator = (0, exports.EventsApiAxiosParamCreator)(configuration);
|
|
2069
|
+
return {
|
|
2070
|
+
/**
|
|
2071
|
+
*
|
|
2072
|
+
* @summary Get all published events for a club
|
|
2073
|
+
* @param {string} clubId
|
|
2074
|
+
* @param {*} [options] Override http request option.
|
|
2075
|
+
* @throws {RequiredError}
|
|
2076
|
+
*/
|
|
2077
|
+
getPublishedEventsByClubId(clubId, options) {
|
|
2078
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2079
|
+
var _a, _b, _c;
|
|
2080
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPublishedEventsByClubId(clubId, options);
|
|
2081
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2082
|
+
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;
|
|
2083
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2084
|
+
});
|
|
2085
|
+
},
|
|
2086
|
+
/**
|
|
2087
|
+
*
|
|
2088
|
+
* @summary Register for an event
|
|
2089
|
+
* @param {string} eventId
|
|
2090
|
+
* @param {EventRegistrationRequest} eventRegistrationRequest
|
|
2091
|
+
* @param {*} [options] Override http request option.
|
|
2092
|
+
* @throws {RequiredError}
|
|
2093
|
+
*/
|
|
2094
|
+
registerForEvent(eventId, eventRegistrationRequest, options) {
|
|
2095
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2096
|
+
var _a, _b, _c;
|
|
2097
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.registerForEvent(eventId, eventRegistrationRequest, options);
|
|
2098
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2099
|
+
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;
|
|
2100
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2101
|
+
});
|
|
2102
|
+
},
|
|
2103
|
+
};
|
|
2104
|
+
};
|
|
2105
|
+
exports.EventsApiFp = EventsApiFp;
|
|
2106
|
+
/**
|
|
2107
|
+
* EventsApi - factory interface
|
|
2108
|
+
* @export
|
|
2109
|
+
*/
|
|
2110
|
+
const EventsApiFactory = function (configuration, basePath, axios) {
|
|
2111
|
+
const localVarFp = (0, exports.EventsApiFp)(configuration);
|
|
2112
|
+
return {
|
|
2113
|
+
/**
|
|
2114
|
+
*
|
|
2115
|
+
* @summary Get all published events for a club
|
|
2116
|
+
* @param {EventsApiGetPublishedEventsByClubIdRequest} requestParameters Request parameters.
|
|
2117
|
+
* @param {*} [options] Override http request option.
|
|
2118
|
+
* @throws {RequiredError}
|
|
2119
|
+
*/
|
|
2120
|
+
getPublishedEventsByClubId(requestParameters, options) {
|
|
2121
|
+
return localVarFp.getPublishedEventsByClubId(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
2122
|
+
},
|
|
2123
|
+
/**
|
|
2124
|
+
*
|
|
2125
|
+
* @summary Register for an event
|
|
2126
|
+
* @param {EventsApiRegisterForEventRequest} requestParameters Request parameters.
|
|
2127
|
+
* @param {*} [options] Override http request option.
|
|
2128
|
+
* @throws {RequiredError}
|
|
2129
|
+
*/
|
|
2130
|
+
registerForEvent(requestParameters, options) {
|
|
2131
|
+
return localVarFp.registerForEvent(requestParameters.eventId, requestParameters.eventRegistrationRequest, options).then((request) => request(axios, basePath));
|
|
2132
|
+
},
|
|
2133
|
+
};
|
|
2134
|
+
};
|
|
2135
|
+
exports.EventsApiFactory = EventsApiFactory;
|
|
2136
|
+
/**
|
|
2137
|
+
* EventsApi - object-oriented interface
|
|
2138
|
+
* @export
|
|
2139
|
+
* @class EventsApi
|
|
2140
|
+
* @extends {BaseAPI}
|
|
2141
|
+
*/
|
|
2142
|
+
class EventsApi extends base_1.BaseAPI {
|
|
2143
|
+
/**
|
|
2144
|
+
*
|
|
2145
|
+
* @summary Get all published events for a club
|
|
2146
|
+
* @param {EventsApiGetPublishedEventsByClubIdRequest} requestParameters Request parameters.
|
|
2147
|
+
* @param {*} [options] Override http request option.
|
|
2148
|
+
* @throws {RequiredError}
|
|
2149
|
+
* @memberof EventsApi
|
|
2150
|
+
*/
|
|
2151
|
+
getPublishedEventsByClubId(requestParameters, options) {
|
|
2152
|
+
return (0, exports.EventsApiFp)(this.configuration).getPublishedEventsByClubId(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
2153
|
+
}
|
|
2154
|
+
/**
|
|
2155
|
+
*
|
|
2156
|
+
* @summary Register for an event
|
|
2157
|
+
* @param {EventsApiRegisterForEventRequest} requestParameters Request parameters.
|
|
2158
|
+
* @param {*} [options] Override http request option.
|
|
2159
|
+
* @throws {RequiredError}
|
|
2160
|
+
* @memberof EventsApi
|
|
2161
|
+
*/
|
|
2162
|
+
registerForEvent(requestParameters, options) {
|
|
2163
|
+
return (0, exports.EventsApiFp)(this.configuration).registerForEvent(requestParameters.eventId, requestParameters.eventRegistrationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2164
|
+
}
|
|
2165
|
+
}
|
|
2166
|
+
exports.EventsApi = EventsApi;
|
|
1978
2167
|
/**
|
|
1979
2168
|
* ManagerBookingsApi - axios parameter creator
|
|
1980
2169
|
* @export
|
|
@@ -3806,6 +3995,321 @@ class ManagerClubsApi extends base_1.BaseAPI {
|
|
|
3806
3995
|
}
|
|
3807
3996
|
}
|
|
3808
3997
|
exports.ManagerClubsApi = ManagerClubsApi;
|
|
3998
|
+
/**
|
|
3999
|
+
* ManagerEventsApi - axios parameter creator
|
|
4000
|
+
* @export
|
|
4001
|
+
*/
|
|
4002
|
+
const ManagerEventsApiAxiosParamCreator = function (configuration) {
|
|
4003
|
+
return {
|
|
4004
|
+
/**
|
|
4005
|
+
*
|
|
4006
|
+
* @summary Create a new event
|
|
4007
|
+
* @param {CreateEventRequest} createEventRequest
|
|
4008
|
+
* @param {*} [options] Override http request option.
|
|
4009
|
+
* @throws {RequiredError}
|
|
4010
|
+
*/
|
|
4011
|
+
createEvent: (createEventRequest_1, ...args_1) => __awaiter(this, [createEventRequest_1, ...args_1], void 0, function* (createEventRequest, options = {}) {
|
|
4012
|
+
// verify required parameter 'createEventRequest' is not null or undefined
|
|
4013
|
+
(0, common_1.assertParamExists)('createEvent', 'createEventRequest', createEventRequest);
|
|
4014
|
+
const localVarPath = `/api/events/manager/createEvent`;
|
|
4015
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4016
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4017
|
+
let baseOptions;
|
|
4018
|
+
if (configuration) {
|
|
4019
|
+
baseOptions = configuration.baseOptions;
|
|
4020
|
+
}
|
|
4021
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4022
|
+
const localVarHeaderParameter = {};
|
|
4023
|
+
const localVarQueryParameter = {};
|
|
4024
|
+
// authentication bearerAuth required
|
|
4025
|
+
// http bearer authentication required
|
|
4026
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4027
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4028
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4029
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4030
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4031
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createEventRequest, localVarRequestOptions, configuration);
|
|
4032
|
+
return {
|
|
4033
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4034
|
+
options: localVarRequestOptions,
|
|
4035
|
+
};
|
|
4036
|
+
}),
|
|
4037
|
+
/**
|
|
4038
|
+
*
|
|
4039
|
+
* @summary Delete an event
|
|
4040
|
+
* @param {string} eventId
|
|
4041
|
+
* @param {*} [options] Override http request option.
|
|
4042
|
+
* @throws {RequiredError}
|
|
4043
|
+
*/
|
|
4044
|
+
deleteEvent: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
|
|
4045
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
4046
|
+
(0, common_1.assertParamExists)('deleteEvent', 'eventId', eventId);
|
|
4047
|
+
const localVarPath = `/api/events/manager/deleteEvent/{eventId}`
|
|
4048
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
4049
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4050
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4051
|
+
let baseOptions;
|
|
4052
|
+
if (configuration) {
|
|
4053
|
+
baseOptions = configuration.baseOptions;
|
|
4054
|
+
}
|
|
4055
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
4056
|
+
const localVarHeaderParameter = {};
|
|
4057
|
+
const localVarQueryParameter = {};
|
|
4058
|
+
// authentication bearerAuth required
|
|
4059
|
+
// http bearer authentication required
|
|
4060
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4061
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4062
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4063
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4064
|
+
return {
|
|
4065
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4066
|
+
options: localVarRequestOptions,
|
|
4067
|
+
};
|
|
4068
|
+
}),
|
|
4069
|
+
/**
|
|
4070
|
+
*
|
|
4071
|
+
* @summary Publish an event
|
|
4072
|
+
* @param {string} eventId
|
|
4073
|
+
* @param {*} [options] Override http request option.
|
|
4074
|
+
* @throws {RequiredError}
|
|
4075
|
+
*/
|
|
4076
|
+
publishEvent: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
|
|
4077
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
4078
|
+
(0, common_1.assertParamExists)('publishEvent', 'eventId', eventId);
|
|
4079
|
+
const localVarPath = `/api/events/manager/publishEvent/{eventId}`
|
|
4080
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
4081
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4082
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4083
|
+
let baseOptions;
|
|
4084
|
+
if (configuration) {
|
|
4085
|
+
baseOptions = configuration.baseOptions;
|
|
4086
|
+
}
|
|
4087
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
4088
|
+
const localVarHeaderParameter = {};
|
|
4089
|
+
const localVarQueryParameter = {};
|
|
4090
|
+
// authentication bearerAuth required
|
|
4091
|
+
// http bearer authentication required
|
|
4092
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4093
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4094
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4095
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4096
|
+
return {
|
|
4097
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4098
|
+
options: localVarRequestOptions,
|
|
4099
|
+
};
|
|
4100
|
+
}),
|
|
4101
|
+
/**
|
|
4102
|
+
*
|
|
4103
|
+
* @summary Unpublish an event
|
|
4104
|
+
* @param {string} eventId
|
|
4105
|
+
* @param {*} [options] Override http request option.
|
|
4106
|
+
* @throws {RequiredError}
|
|
4107
|
+
*/
|
|
4108
|
+
unpublishEvent: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
|
|
4109
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
4110
|
+
(0, common_1.assertParamExists)('unpublishEvent', 'eventId', eventId);
|
|
4111
|
+
const localVarPath = `/api/events/manager/unpublishEvent/{eventId}`
|
|
4112
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
4113
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4114
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4115
|
+
let baseOptions;
|
|
4116
|
+
if (configuration) {
|
|
4117
|
+
baseOptions = configuration.baseOptions;
|
|
4118
|
+
}
|
|
4119
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
4120
|
+
const localVarHeaderParameter = {};
|
|
4121
|
+
const localVarQueryParameter = {};
|
|
4122
|
+
// authentication bearerAuth required
|
|
4123
|
+
// http bearer authentication required
|
|
4124
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4125
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4126
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4127
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4128
|
+
return {
|
|
4129
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4130
|
+
options: localVarRequestOptions,
|
|
4131
|
+
};
|
|
4132
|
+
}),
|
|
4133
|
+
};
|
|
4134
|
+
};
|
|
4135
|
+
exports.ManagerEventsApiAxiosParamCreator = ManagerEventsApiAxiosParamCreator;
|
|
4136
|
+
/**
|
|
4137
|
+
* ManagerEventsApi - functional programming interface
|
|
4138
|
+
* @export
|
|
4139
|
+
*/
|
|
4140
|
+
const ManagerEventsApiFp = function (configuration) {
|
|
4141
|
+
const localVarAxiosParamCreator = (0, exports.ManagerEventsApiAxiosParamCreator)(configuration);
|
|
4142
|
+
return {
|
|
4143
|
+
/**
|
|
4144
|
+
*
|
|
4145
|
+
* @summary Create a new event
|
|
4146
|
+
* @param {CreateEventRequest} createEventRequest
|
|
4147
|
+
* @param {*} [options] Override http request option.
|
|
4148
|
+
* @throws {RequiredError}
|
|
4149
|
+
*/
|
|
4150
|
+
createEvent(createEventRequest, options) {
|
|
4151
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4152
|
+
var _a, _b, _c;
|
|
4153
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createEvent(createEventRequest, options);
|
|
4154
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4155
|
+
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;
|
|
4156
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4157
|
+
});
|
|
4158
|
+
},
|
|
4159
|
+
/**
|
|
4160
|
+
*
|
|
4161
|
+
* @summary Delete an event
|
|
4162
|
+
* @param {string} eventId
|
|
4163
|
+
* @param {*} [options] Override http request option.
|
|
4164
|
+
* @throws {RequiredError}
|
|
4165
|
+
*/
|
|
4166
|
+
deleteEvent(eventId, options) {
|
|
4167
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4168
|
+
var _a, _b, _c;
|
|
4169
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteEvent(eventId, options);
|
|
4170
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4171
|
+
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;
|
|
4172
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4173
|
+
});
|
|
4174
|
+
},
|
|
4175
|
+
/**
|
|
4176
|
+
*
|
|
4177
|
+
* @summary Publish an event
|
|
4178
|
+
* @param {string} eventId
|
|
4179
|
+
* @param {*} [options] Override http request option.
|
|
4180
|
+
* @throws {RequiredError}
|
|
4181
|
+
*/
|
|
4182
|
+
publishEvent(eventId, options) {
|
|
4183
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4184
|
+
var _a, _b, _c;
|
|
4185
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.publishEvent(eventId, options);
|
|
4186
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4187
|
+
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;
|
|
4188
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4189
|
+
});
|
|
4190
|
+
},
|
|
4191
|
+
/**
|
|
4192
|
+
*
|
|
4193
|
+
* @summary Unpublish an event
|
|
4194
|
+
* @param {string} eventId
|
|
4195
|
+
* @param {*} [options] Override http request option.
|
|
4196
|
+
* @throws {RequiredError}
|
|
4197
|
+
*/
|
|
4198
|
+
unpublishEvent(eventId, options) {
|
|
4199
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4200
|
+
var _a, _b, _c;
|
|
4201
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.unpublishEvent(eventId, options);
|
|
4202
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4203
|
+
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;
|
|
4204
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4205
|
+
});
|
|
4206
|
+
},
|
|
4207
|
+
};
|
|
4208
|
+
};
|
|
4209
|
+
exports.ManagerEventsApiFp = ManagerEventsApiFp;
|
|
4210
|
+
/**
|
|
4211
|
+
* ManagerEventsApi - factory interface
|
|
4212
|
+
* @export
|
|
4213
|
+
*/
|
|
4214
|
+
const ManagerEventsApiFactory = function (configuration, basePath, axios) {
|
|
4215
|
+
const localVarFp = (0, exports.ManagerEventsApiFp)(configuration);
|
|
4216
|
+
return {
|
|
4217
|
+
/**
|
|
4218
|
+
*
|
|
4219
|
+
* @summary Create a new event
|
|
4220
|
+
* @param {ManagerEventsApiCreateEventRequest} requestParameters Request parameters.
|
|
4221
|
+
* @param {*} [options] Override http request option.
|
|
4222
|
+
* @throws {RequiredError}
|
|
4223
|
+
*/
|
|
4224
|
+
createEvent(requestParameters, options) {
|
|
4225
|
+
return localVarFp.createEvent(requestParameters.createEventRequest, options).then((request) => request(axios, basePath));
|
|
4226
|
+
},
|
|
4227
|
+
/**
|
|
4228
|
+
*
|
|
4229
|
+
* @summary Delete an event
|
|
4230
|
+
* @param {ManagerEventsApiDeleteEventRequest} requestParameters Request parameters.
|
|
4231
|
+
* @param {*} [options] Override http request option.
|
|
4232
|
+
* @throws {RequiredError}
|
|
4233
|
+
*/
|
|
4234
|
+
deleteEvent(requestParameters, options) {
|
|
4235
|
+
return localVarFp.deleteEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
4236
|
+
},
|
|
4237
|
+
/**
|
|
4238
|
+
*
|
|
4239
|
+
* @summary Publish an event
|
|
4240
|
+
* @param {ManagerEventsApiPublishEventRequest} requestParameters Request parameters.
|
|
4241
|
+
* @param {*} [options] Override http request option.
|
|
4242
|
+
* @throws {RequiredError}
|
|
4243
|
+
*/
|
|
4244
|
+
publishEvent(requestParameters, options) {
|
|
4245
|
+
return localVarFp.publishEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
4246
|
+
},
|
|
4247
|
+
/**
|
|
4248
|
+
*
|
|
4249
|
+
* @summary Unpublish an event
|
|
4250
|
+
* @param {ManagerEventsApiUnpublishEventRequest} requestParameters Request parameters.
|
|
4251
|
+
* @param {*} [options] Override http request option.
|
|
4252
|
+
* @throws {RequiredError}
|
|
4253
|
+
*/
|
|
4254
|
+
unpublishEvent(requestParameters, options) {
|
|
4255
|
+
return localVarFp.unpublishEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
4256
|
+
},
|
|
4257
|
+
};
|
|
4258
|
+
};
|
|
4259
|
+
exports.ManagerEventsApiFactory = ManagerEventsApiFactory;
|
|
4260
|
+
/**
|
|
4261
|
+
* ManagerEventsApi - object-oriented interface
|
|
4262
|
+
* @export
|
|
4263
|
+
* @class ManagerEventsApi
|
|
4264
|
+
* @extends {BaseAPI}
|
|
4265
|
+
*/
|
|
4266
|
+
class ManagerEventsApi extends base_1.BaseAPI {
|
|
4267
|
+
/**
|
|
4268
|
+
*
|
|
4269
|
+
* @summary Create a new event
|
|
4270
|
+
* @param {ManagerEventsApiCreateEventRequest} requestParameters Request parameters.
|
|
4271
|
+
* @param {*} [options] Override http request option.
|
|
4272
|
+
* @throws {RequiredError}
|
|
4273
|
+
* @memberof ManagerEventsApi
|
|
4274
|
+
*/
|
|
4275
|
+
createEvent(requestParameters, options) {
|
|
4276
|
+
return (0, exports.ManagerEventsApiFp)(this.configuration).createEvent(requestParameters.createEventRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4277
|
+
}
|
|
4278
|
+
/**
|
|
4279
|
+
*
|
|
4280
|
+
* @summary Delete an event
|
|
4281
|
+
* @param {ManagerEventsApiDeleteEventRequest} requestParameters Request parameters.
|
|
4282
|
+
* @param {*} [options] Override http request option.
|
|
4283
|
+
* @throws {RequiredError}
|
|
4284
|
+
* @memberof ManagerEventsApi
|
|
4285
|
+
*/
|
|
4286
|
+
deleteEvent(requestParameters, options) {
|
|
4287
|
+
return (0, exports.ManagerEventsApiFp)(this.configuration).deleteEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
4288
|
+
}
|
|
4289
|
+
/**
|
|
4290
|
+
*
|
|
4291
|
+
* @summary Publish an event
|
|
4292
|
+
* @param {ManagerEventsApiPublishEventRequest} requestParameters Request parameters.
|
|
4293
|
+
* @param {*} [options] Override http request option.
|
|
4294
|
+
* @throws {RequiredError}
|
|
4295
|
+
* @memberof ManagerEventsApi
|
|
4296
|
+
*/
|
|
4297
|
+
publishEvent(requestParameters, options) {
|
|
4298
|
+
return (0, exports.ManagerEventsApiFp)(this.configuration).publishEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
4299
|
+
}
|
|
4300
|
+
/**
|
|
4301
|
+
*
|
|
4302
|
+
* @summary Unpublish an event
|
|
4303
|
+
* @param {ManagerEventsApiUnpublishEventRequest} requestParameters Request parameters.
|
|
4304
|
+
* @param {*} [options] Override http request option.
|
|
4305
|
+
* @throws {RequiredError}
|
|
4306
|
+
* @memberof ManagerEventsApi
|
|
4307
|
+
*/
|
|
4308
|
+
unpublishEvent(requestParameters, options) {
|
|
4309
|
+
return (0, exports.ManagerEventsApiFp)(this.configuration).unpublishEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
4310
|
+
}
|
|
4311
|
+
}
|
|
4312
|
+
exports.ManagerEventsApi = ManagerEventsApi;
|
|
3809
4313
|
/**
|
|
3810
4314
|
* ManagerSportsApi - axios parameter creator
|
|
3811
4315
|
* @export
|
|
@@ -4495,6 +4999,106 @@ class StaffClubsApi extends base_1.BaseAPI {
|
|
|
4495
4999
|
}
|
|
4496
5000
|
}
|
|
4497
5001
|
exports.StaffClubsApi = StaffClubsApi;
|
|
5002
|
+
/**
|
|
5003
|
+
* StaffEventsApi - axios parameter creator
|
|
5004
|
+
* @export
|
|
5005
|
+
*/
|
|
5006
|
+
const StaffEventsApiAxiosParamCreator = function (configuration) {
|
|
5007
|
+
return {
|
|
5008
|
+
/**
|
|
5009
|
+
*
|
|
5010
|
+
* @summary Get all events for current club (including unpublished)
|
|
5011
|
+
* @param {*} [options] Override http request option.
|
|
5012
|
+
* @throws {RequiredError}
|
|
5013
|
+
*/
|
|
5014
|
+
getEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
5015
|
+
const localVarPath = `/api/events/staff/getEvents`;
|
|
5016
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5017
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5018
|
+
let baseOptions;
|
|
5019
|
+
if (configuration) {
|
|
5020
|
+
baseOptions = configuration.baseOptions;
|
|
5021
|
+
}
|
|
5022
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5023
|
+
const localVarHeaderParameter = {};
|
|
5024
|
+
const localVarQueryParameter = {};
|
|
5025
|
+
// authentication bearerAuth required
|
|
5026
|
+
// http bearer authentication required
|
|
5027
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5028
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5029
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5030
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5031
|
+
return {
|
|
5032
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5033
|
+
options: localVarRequestOptions,
|
|
5034
|
+
};
|
|
5035
|
+
}),
|
|
5036
|
+
};
|
|
5037
|
+
};
|
|
5038
|
+
exports.StaffEventsApiAxiosParamCreator = StaffEventsApiAxiosParamCreator;
|
|
5039
|
+
/**
|
|
5040
|
+
* StaffEventsApi - functional programming interface
|
|
5041
|
+
* @export
|
|
5042
|
+
*/
|
|
5043
|
+
const StaffEventsApiFp = function (configuration) {
|
|
5044
|
+
const localVarAxiosParamCreator = (0, exports.StaffEventsApiAxiosParamCreator)(configuration);
|
|
5045
|
+
return {
|
|
5046
|
+
/**
|
|
5047
|
+
*
|
|
5048
|
+
* @summary Get all events for current club (including unpublished)
|
|
5049
|
+
* @param {*} [options] Override http request option.
|
|
5050
|
+
* @throws {RequiredError}
|
|
5051
|
+
*/
|
|
5052
|
+
getEventsByClub(options) {
|
|
5053
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5054
|
+
var _a, _b, _c;
|
|
5055
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventsByClub(options);
|
|
5056
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5057
|
+
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;
|
|
5058
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5059
|
+
});
|
|
5060
|
+
},
|
|
5061
|
+
};
|
|
5062
|
+
};
|
|
5063
|
+
exports.StaffEventsApiFp = StaffEventsApiFp;
|
|
5064
|
+
/**
|
|
5065
|
+
* StaffEventsApi - factory interface
|
|
5066
|
+
* @export
|
|
5067
|
+
*/
|
|
5068
|
+
const StaffEventsApiFactory = function (configuration, basePath, axios) {
|
|
5069
|
+
const localVarFp = (0, exports.StaffEventsApiFp)(configuration);
|
|
5070
|
+
return {
|
|
5071
|
+
/**
|
|
5072
|
+
*
|
|
5073
|
+
* @summary Get all events for current club (including unpublished)
|
|
5074
|
+
* @param {*} [options] Override http request option.
|
|
5075
|
+
* @throws {RequiredError}
|
|
5076
|
+
*/
|
|
5077
|
+
getEventsByClub(options) {
|
|
5078
|
+
return localVarFp.getEventsByClub(options).then((request) => request(axios, basePath));
|
|
5079
|
+
},
|
|
5080
|
+
};
|
|
5081
|
+
};
|
|
5082
|
+
exports.StaffEventsApiFactory = StaffEventsApiFactory;
|
|
5083
|
+
/**
|
|
5084
|
+
* StaffEventsApi - object-oriented interface
|
|
5085
|
+
* @export
|
|
5086
|
+
* @class StaffEventsApi
|
|
5087
|
+
* @extends {BaseAPI}
|
|
5088
|
+
*/
|
|
5089
|
+
class StaffEventsApi extends base_1.BaseAPI {
|
|
5090
|
+
/**
|
|
5091
|
+
*
|
|
5092
|
+
* @summary Get all events for current club (including unpublished)
|
|
5093
|
+
* @param {*} [options] Override http request option.
|
|
5094
|
+
* @throws {RequiredError}
|
|
5095
|
+
* @memberof StaffEventsApi
|
|
5096
|
+
*/
|
|
5097
|
+
getEventsByClub(options) {
|
|
5098
|
+
return (0, exports.StaffEventsApiFp)(this.configuration).getEventsByClub(options).then((request) => request(this.axios, this.basePath));
|
|
5099
|
+
}
|
|
5100
|
+
}
|
|
5101
|
+
exports.StaffEventsApi = StaffEventsApi;
|
|
4498
5102
|
/**
|
|
4499
5103
|
* StaffProfileApi - axios parameter creator
|
|
4500
5104
|
* @export
|