@tennac-booking/sdk 1.0.24 → 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.
Files changed (53) hide show
  1. package/.openapi-generator/FILES +22 -0
  2. package/README.md +36 -2
  3. package/api.ts +3120 -1375
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +1114 -19
  8. package/dist/api.js +1216 -92
  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 +1114 -19
  16. package/dist/esm/api.js +1202 -90
  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/AddFavoriteClubRequestBody.md +20 -0
  28. package/docs/ConfirmPaymentMethodSetupRequestBody.md +0 -2
  29. package/docs/CreateEventRequest.md +30 -0
  30. package/docs/DeleteEvent200Response.md +20 -0
  31. package/docs/Event.md +40 -0
  32. package/docs/EventBooking.md +32 -0
  33. package/docs/EventRegistrationRequest.md +22 -0
  34. package/docs/EventsApi.md +119 -0
  35. package/docs/FavoriteClubResponse.md +22 -0
  36. package/docs/FrequentlyPlayedWithItem.md +28 -0
  37. package/docs/FrequentlyVisitedClubItem.md +24 -0
  38. package/docs/GetPublishedEventsByClubId200Response.md +20 -0
  39. package/docs/ManagerEventResponse.md +22 -0
  40. package/docs/ManagerEventsApi.md +227 -0
  41. package/docs/ProfileVisibilityResponse.md +20 -0
  42. package/docs/RegisterForEvent201Response.md +20 -0
  43. package/docs/SetupPaymentMethodRequestBody.md +0 -2
  44. package/docs/StaffEventResponse.md +20 -0
  45. package/docs/StaffEventsApi.md +54 -0
  46. package/docs/UpdateProfileVisibilityRequestBody.md +20 -0
  47. package/docs/UpdateUserCityRequestBody.md +20 -0
  48. package/docs/UpdateUserDescriptionRequestBody.md +20 -0
  49. package/docs/UserCityResponse.md +20 -0
  50. package/docs/UserDescriptionResponse.md +20 -0
  51. package/docs/UserProfileApi.md +398 -0
  52. package/index.ts +1 -1
  53. 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.24
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.ManagerClubRolesApi = exports.ManagerClubRolesApiFactory = exports.ManagerClubRolesApiFp = exports.ManagerClubRolesApiAxiosParamCreator = exports.ManagerClubCourtsApi = exports.ManagerClubCourtsApiFactory = exports.ManagerClubCourtsApiFp = exports.ManagerClubCourtsApiAxiosParamCreator = exports.ManagerBookingsApi = exports.ManagerBookingsApiFactory = exports.ManagerBookingsApiFp = exports.ManagerBookingsApiAxiosParamCreator = exports.GetInvoicesStatusEnum = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.AdminClubsApi = exports.AdminClubsApiFactory = exports.AdminClubsApiFp = exports.AdminClubsApiAxiosParamCreator = exports.AdminClubSubscriptionsApi = exports.AdminClubSubscriptionsApiFactory = exports.AdminClubSubscriptionsApiFp = exports.AdminClubSubscriptionsApiAxiosParamCreator = exports.AdminClubSlotsApi = exports.AdminClubSlotsApiFactory = exports.AdminClubSlotsApiFp = exports.AdminClubSlotsApiAxiosParamCreator = exports.GetInvoicesAdminStatusEnum = exports.AdminClubAnalyticsApi = exports.AdminClubAnalyticsApiFactory = exports.AdminClubAnalyticsApiFp = exports.AdminClubAnalyticsApiAxiosParamCreator = exports.SubscriptionResponseStatusEnum = exports.StripeStatus = exports.PaymentMethod = exports.NoShowFeeResponseCaptureResultsInnerStatusEnum = exports.NoShowFeeResponseCaptureResultsInnerTypeEnum = exports.ManagerCancelBookingResponseBookingStatusEnum = exports.InvoicesResponseInvoicesInnerStatusEnum = exports.CreatePriceRequestIntervalEnum = exports.CourtStatus = exports.CourtResponseSurfaceEnum = exports.CourtResponseStatusEnum = exports.CancelBookingResponseBookingStatusEnum = exports.BookingStatus = exports.BookingPopulatedPaymentByPlayersStatusInnerInvoicesInnerStatusEnum = exports.BookingPopulatedStatusEnum = exports.BookingPaymentStatusResponsePaymentStatusInnerPaymentMethodEnum = void 0;
26
- exports.UserClubSlotsApiFp = exports.UserClubSlotsApiAxiosParamCreator = exports.UserClubCourtsApi = exports.UserClubCourtsApiFactory = exports.UserClubCourtsApiFp = exports.UserClubCourtsApiAxiosParamCreator = exports.UserBookingsApi = exports.UserBookingsApiFactory = exports.UserBookingsApiFp = exports.UserBookingsApiAxiosParamCreator = exports.UserAuthenticationApi = exports.UserAuthenticationApiFactory = exports.UserAuthenticationApiFp = exports.UserAuthenticationApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.StaffProfileApi = exports.StaffProfileApiFactory = exports.StaffProfileApiFp = exports.StaffProfileApiAxiosParamCreator = exports.StaffClubsApi = exports.StaffClubsApiFactory = exports.StaffClubsApiFp = exports.StaffClubsApiAxiosParamCreator = exports.StaffClubBookingsApi = exports.StaffClubBookingsApiFactory = exports.StaffClubBookingsApiFp = exports.StaffClubBookingsApiAxiosParamCreator = exports.StaffClubAnalyticsApi = exports.StaffClubAnalyticsApiFactory = exports.StaffClubAnalyticsApiFp = exports.StaffClubAnalyticsApiAxiosParamCreator = exports.ManagerSportsApi = exports.ManagerSportsApiFactory = exports.ManagerSportsApiFp = exports.ManagerSportsApiAxiosParamCreator = exports.ManagerClubsApi = exports.ManagerClubsApiFactory = exports.ManagerClubsApiFp = exports.ManagerClubsApiAxiosParamCreator = exports.ManagerClubSubscriptionsApi = exports.ManagerClubSubscriptionsApiFactory = exports.ManagerClubSubscriptionsApiFp = exports.ManagerClubSubscriptionsApiAxiosParamCreator = exports.ManagerClubSlotsApi = exports.ManagerClubSlotsApiFactory = exports.ManagerClubSlotsApiFp = exports.ManagerClubSlotsApiAxiosParamCreator = void 0;
27
- exports.UserSubscriptionsApi = exports.UserSubscriptionsApiFactory = exports.UserSubscriptionsApiFp = exports.UserSubscriptionsApiAxiosParamCreator = exports.UserProfileApi = exports.UserProfileApiFactory = exports.UserProfileApiFp = exports.UserProfileApiAxiosParamCreator = exports.UserPaymentApi = exports.UserPaymentApiFactory = exports.UserPaymentApiFp = exports.UserPaymentApiAxiosParamCreator = exports.UserClubsApi = exports.UserClubsApiFactory = exports.UserClubsApiFp = exports.UserClubsApiAxiosParamCreator = exports.UserClubSportsApi = exports.UserClubSportsApiFactory = exports.UserClubSportsApiFp = exports.UserClubSportsApiAxiosParamCreator = exports.UserClubSlotsApi = exports.UserClubSlotsApiFactory = void 0;
25
+ exports.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
@@ -3807,22 +3996,22 @@ class ManagerClubsApi extends base_1.BaseAPI {
3807
3996
  }
3808
3997
  exports.ManagerClubsApi = ManagerClubsApi;
3809
3998
  /**
3810
- * ManagerSportsApi - axios parameter creator
3999
+ * ManagerEventsApi - axios parameter creator
3811
4000
  * @export
3812
4001
  */
3813
- const ManagerSportsApiAxiosParamCreator = function (configuration) {
4002
+ const ManagerEventsApiAxiosParamCreator = function (configuration) {
3814
4003
  return {
3815
4004
  /**
3816
4005
  *
3817
- * @summary Créer un sport dans un club
3818
- * @param {CreateSportRequest} createSportRequest
4006
+ * @summary Create a new event
4007
+ * @param {CreateEventRequest} createEventRequest
3819
4008
  * @param {*} [options] Override http request option.
3820
4009
  * @throws {RequiredError}
3821
4010
  */
3822
- createSport: (createSportRequest_1, ...args_1) => __awaiter(this, [createSportRequest_1, ...args_1], void 0, function* (createSportRequest, options = {}) {
3823
- // verify required parameter 'createSportRequest' is not null or undefined
3824
- (0, common_1.assertParamExists)('createSport', 'createSportRequest', createSportRequest);
3825
- const localVarPath = `/api/sports`;
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`;
3826
4015
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3827
4016
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3828
4017
  let baseOptions;
@@ -3839,7 +4028,7 @@ const ManagerSportsApiAxiosParamCreator = function (configuration) {
3839
4028
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3840
4029
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3841
4030
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3842
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSportRequest, localVarRequestOptions, configuration);
4031
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createEventRequest, localVarRequestOptions, configuration);
3843
4032
  return {
3844
4033
  url: (0, common_1.toPathString)(localVarUrlObj),
3845
4034
  options: localVarRequestOptions,
@@ -3847,16 +4036,16 @@ const ManagerSportsApiAxiosParamCreator = function (configuration) {
3847
4036
  }),
3848
4037
  /**
3849
4038
  *
3850
- * @summary Supprimer un sport
3851
- * @param {string} id ID du sport
4039
+ * @summary Delete an event
4040
+ * @param {string} eventId
3852
4041
  * @param {*} [options] Override http request option.
3853
4042
  * @throws {RequiredError}
3854
4043
  */
3855
- deleteSport: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
3856
- // verify required parameter 'id' is not null or undefined
3857
- (0, common_1.assertParamExists)('deleteSport', 'id', id);
3858
- const localVarPath = `/api/sports/{id}`
3859
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
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)));
3860
4049
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3861
4050
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3862
4051
  let baseOptions;
@@ -3879,19 +4068,48 @@ const ManagerSportsApiAxiosParamCreator = function (configuration) {
3879
4068
  }),
3880
4069
  /**
3881
4070
  *
3882
- * @summary Mettre à jour un sport
3883
- * @param {string} id ID du sport
3884
- * @param {UpdateSportRequest} updateSportRequest
4071
+ * @summary Publish an event
4072
+ * @param {string} eventId
3885
4073
  * @param {*} [options] Override http request option.
3886
4074
  * @throws {RequiredError}
3887
4075
  */
3888
- updateSport: (id_1, updateSportRequest_1, ...args_1) => __awaiter(this, [id_1, updateSportRequest_1, ...args_1], void 0, function* (id, updateSportRequest, options = {}) {
3889
- // verify required parameter 'id' is not null or undefined
3890
- (0, common_1.assertParamExists)('updateSport', 'id', id);
3891
- // verify required parameter 'updateSportRequest' is not null or undefined
3892
- (0, common_1.assertParamExists)('updateSport', 'updateSportRequest', updateSportRequest);
3893
- const localVarPath = `/api/sports/{id}`
3894
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
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)));
3895
4113
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3896
4114
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3897
4115
  let baseOptions;
@@ -3904,11 +4122,9 @@ const ManagerSportsApiAxiosParamCreator = function (configuration) {
3904
4122
  // authentication bearerAuth required
3905
4123
  // http bearer authentication required
3906
4124
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3907
- localVarHeaderParameter['Content-Type'] = 'application/json';
3908
4125
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3909
4126
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3910
4127
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3911
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateSportRequest, localVarRequestOptions, configuration);
3912
4128
  return {
3913
4129
  url: (0, common_1.toPathString)(localVarUrlObj),
3914
4130
  options: localVarRequestOptions,
@@ -3916,145 +4132,433 @@ const ManagerSportsApiAxiosParamCreator = function (configuration) {
3916
4132
  }),
3917
4133
  };
3918
4134
  };
3919
- exports.ManagerSportsApiAxiosParamCreator = ManagerSportsApiAxiosParamCreator;
4135
+ exports.ManagerEventsApiAxiosParamCreator = ManagerEventsApiAxiosParamCreator;
3920
4136
  /**
3921
- * ManagerSportsApi - functional programming interface
4137
+ * ManagerEventsApi - functional programming interface
3922
4138
  * @export
3923
4139
  */
3924
- const ManagerSportsApiFp = function (configuration) {
3925
- const localVarAxiosParamCreator = (0, exports.ManagerSportsApiAxiosParamCreator)(configuration);
4140
+ const ManagerEventsApiFp = function (configuration) {
4141
+ const localVarAxiosParamCreator = (0, exports.ManagerEventsApiAxiosParamCreator)(configuration);
3926
4142
  return {
3927
4143
  /**
3928
4144
  *
3929
- * @summary Créer un sport dans un club
3930
- * @param {CreateSportRequest} createSportRequest
4145
+ * @summary Create a new event
4146
+ * @param {CreateEventRequest} createEventRequest
3931
4147
  * @param {*} [options] Override http request option.
3932
4148
  * @throws {RequiredError}
3933
4149
  */
3934
- createSport(createSportRequest, options) {
4150
+ createEvent(createEventRequest, options) {
3935
4151
  return __awaiter(this, void 0, void 0, function* () {
3936
4152
  var _a, _b, _c;
3937
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createSport(createSportRequest, options);
4153
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createEvent(createEventRequest, options);
3938
4154
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3939
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerSportsApi.createSport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
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;
3940
4156
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3941
4157
  });
3942
4158
  },
3943
4159
  /**
3944
4160
  *
3945
- * @summary Supprimer un sport
3946
- * @param {string} id ID du sport
4161
+ * @summary Delete an event
4162
+ * @param {string} eventId
3947
4163
  * @param {*} [options] Override http request option.
3948
4164
  * @throws {RequiredError}
3949
4165
  */
3950
- deleteSport(id, options) {
4166
+ deleteEvent(eventId, options) {
3951
4167
  return __awaiter(this, void 0, void 0, function* () {
3952
4168
  var _a, _b, _c;
3953
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSport(id, options);
4169
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteEvent(eventId, options);
3954
4170
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3955
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerSportsApi.deleteSport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
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;
3956
4172
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3957
4173
  });
3958
4174
  },
3959
4175
  /**
3960
4176
  *
3961
- * @summary Mettre à jour un sport
3962
- * @param {string} id ID du sport
3963
- * @param {UpdateSportRequest} updateSportRequest
4177
+ * @summary Publish an event
4178
+ * @param {string} eventId
3964
4179
  * @param {*} [options] Override http request option.
3965
4180
  * @throws {RequiredError}
3966
4181
  */
3967
- updateSport(id, updateSportRequest, options) {
4182
+ publishEvent(eventId, options) {
3968
4183
  return __awaiter(this, void 0, void 0, function* () {
3969
4184
  var _a, _b, _c;
3970
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSport(id, updateSportRequest, options);
4185
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.publishEvent(eventId, options);
3971
4186
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3972
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerSportsApi.updateSport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
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;
3973
4204
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3974
4205
  });
3975
4206
  },
3976
4207
  };
3977
4208
  };
3978
- exports.ManagerSportsApiFp = ManagerSportsApiFp;
4209
+ exports.ManagerEventsApiFp = ManagerEventsApiFp;
3979
4210
  /**
3980
- * ManagerSportsApi - factory interface
4211
+ * ManagerEventsApi - factory interface
3981
4212
  * @export
3982
4213
  */
3983
- const ManagerSportsApiFactory = function (configuration, basePath, axios) {
3984
- const localVarFp = (0, exports.ManagerSportsApiFp)(configuration);
4214
+ const ManagerEventsApiFactory = function (configuration, basePath, axios) {
4215
+ const localVarFp = (0, exports.ManagerEventsApiFp)(configuration);
3985
4216
  return {
3986
4217
  /**
3987
4218
  *
3988
- * @summary Créer un sport dans un club
3989
- * @param {ManagerSportsApiCreateSportRequest} requestParameters Request parameters.
4219
+ * @summary Create a new event
4220
+ * @param {ManagerEventsApiCreateEventRequest} requestParameters Request parameters.
3990
4221
  * @param {*} [options] Override http request option.
3991
4222
  * @throws {RequiredError}
3992
4223
  */
3993
- createSport(requestParameters, options) {
3994
- return localVarFp.createSport(requestParameters.createSportRequest, options).then((request) => request(axios, basePath));
4224
+ createEvent(requestParameters, options) {
4225
+ return localVarFp.createEvent(requestParameters.createEventRequest, options).then((request) => request(axios, basePath));
3995
4226
  },
3996
4227
  /**
3997
4228
  *
3998
- * @summary Supprimer un sport
3999
- * @param {ManagerSportsApiDeleteSportRequest} requestParameters Request parameters.
4229
+ * @summary Delete an event
4230
+ * @param {ManagerEventsApiDeleteEventRequest} requestParameters Request parameters.
4000
4231
  * @param {*} [options] Override http request option.
4001
4232
  * @throws {RequiredError}
4002
4233
  */
4003
- deleteSport(requestParameters, options) {
4004
- return localVarFp.deleteSport(requestParameters.id, options).then((request) => request(axios, basePath));
4234
+ deleteEvent(requestParameters, options) {
4235
+ return localVarFp.deleteEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
4005
4236
  },
4006
4237
  /**
4007
4238
  *
4008
- * @summary Mettre à jour un sport
4009
- * @param {ManagerSportsApiUpdateSportRequest} requestParameters Request parameters.
4239
+ * @summary Publish an event
4240
+ * @param {ManagerEventsApiPublishEventRequest} requestParameters Request parameters.
4010
4241
  * @param {*} [options] Override http request option.
4011
4242
  * @throws {RequiredError}
4012
4243
  */
4013
- updateSport(requestParameters, options) {
4014
- return localVarFp.updateSport(requestParameters.id, requestParameters.updateSportRequest, options).then((request) => request(axios, basePath));
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));
4015
4256
  },
4016
4257
  };
4017
4258
  };
4018
- exports.ManagerSportsApiFactory = ManagerSportsApiFactory;
4259
+ exports.ManagerEventsApiFactory = ManagerEventsApiFactory;
4019
4260
  /**
4020
- * ManagerSportsApi - object-oriented interface
4261
+ * ManagerEventsApi - object-oriented interface
4021
4262
  * @export
4022
- * @class ManagerSportsApi
4263
+ * @class ManagerEventsApi
4023
4264
  * @extends {BaseAPI}
4024
4265
  */
4025
- class ManagerSportsApi extends base_1.BaseAPI {
4266
+ class ManagerEventsApi extends base_1.BaseAPI {
4026
4267
  /**
4027
4268
  *
4028
- * @summary Créer un sport dans un club
4029
- * @param {ManagerSportsApiCreateSportRequest} requestParameters Request parameters.
4269
+ * @summary Create a new event
4270
+ * @param {ManagerEventsApiCreateEventRequest} requestParameters Request parameters.
4030
4271
  * @param {*} [options] Override http request option.
4031
4272
  * @throws {RequiredError}
4032
- * @memberof ManagerSportsApi
4273
+ * @memberof ManagerEventsApi
4033
4274
  */
4034
- createSport(requestParameters, options) {
4035
- return (0, exports.ManagerSportsApiFp)(this.configuration).createSport(requestParameters.createSportRequest, options).then((request) => request(this.axios, this.basePath));
4275
+ createEvent(requestParameters, options) {
4276
+ return (0, exports.ManagerEventsApiFp)(this.configuration).createEvent(requestParameters.createEventRequest, options).then((request) => request(this.axios, this.basePath));
4036
4277
  }
4037
4278
  /**
4038
4279
  *
4039
- * @summary Supprimer un sport
4040
- * @param {ManagerSportsApiDeleteSportRequest} requestParameters Request parameters.
4280
+ * @summary Delete an event
4281
+ * @param {ManagerEventsApiDeleteEventRequest} requestParameters Request parameters.
4041
4282
  * @param {*} [options] Override http request option.
4042
4283
  * @throws {RequiredError}
4043
- * @memberof ManagerSportsApi
4284
+ * @memberof ManagerEventsApi
4044
4285
  */
4045
- deleteSport(requestParameters, options) {
4046
- return (0, exports.ManagerSportsApiFp)(this.configuration).deleteSport(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
4286
+ deleteEvent(requestParameters, options) {
4287
+ return (0, exports.ManagerEventsApiFp)(this.configuration).deleteEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
4047
4288
  }
4048
4289
  /**
4049
4290
  *
4050
- * @summary Mettre à jour un sport
4051
- * @param {ManagerSportsApiUpdateSportRequest} requestParameters Request parameters.
4291
+ * @summary Publish an event
4292
+ * @param {ManagerEventsApiPublishEventRequest} requestParameters Request parameters.
4052
4293
  * @param {*} [options] Override http request option.
4053
4294
  * @throws {RequiredError}
4054
- * @memberof ManagerSportsApi
4295
+ * @memberof ManagerEventsApi
4055
4296
  */
4056
- updateSport(requestParameters, options) {
4057
- return (0, exports.ManagerSportsApiFp)(this.configuration).updateSport(requestParameters.id, requestParameters.updateSportRequest, options).then((request) => request(this.axios, this.basePath));
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;
4313
+ /**
4314
+ * ManagerSportsApi - axios parameter creator
4315
+ * @export
4316
+ */
4317
+ const ManagerSportsApiAxiosParamCreator = function (configuration) {
4318
+ return {
4319
+ /**
4320
+ *
4321
+ * @summary Créer un sport dans un club
4322
+ * @param {CreateSportRequest} createSportRequest
4323
+ * @param {*} [options] Override http request option.
4324
+ * @throws {RequiredError}
4325
+ */
4326
+ createSport: (createSportRequest_1, ...args_1) => __awaiter(this, [createSportRequest_1, ...args_1], void 0, function* (createSportRequest, options = {}) {
4327
+ // verify required parameter 'createSportRequest' is not null or undefined
4328
+ (0, common_1.assertParamExists)('createSport', 'createSportRequest', createSportRequest);
4329
+ const localVarPath = `/api/sports`;
4330
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4331
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4332
+ let baseOptions;
4333
+ if (configuration) {
4334
+ baseOptions = configuration.baseOptions;
4335
+ }
4336
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4337
+ const localVarHeaderParameter = {};
4338
+ const localVarQueryParameter = {};
4339
+ // authentication bearerAuth required
4340
+ // http bearer authentication required
4341
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4342
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4343
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4344
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4345
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4346
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSportRequest, localVarRequestOptions, configuration);
4347
+ return {
4348
+ url: (0, common_1.toPathString)(localVarUrlObj),
4349
+ options: localVarRequestOptions,
4350
+ };
4351
+ }),
4352
+ /**
4353
+ *
4354
+ * @summary Supprimer un sport
4355
+ * @param {string} id ID du sport
4356
+ * @param {*} [options] Override http request option.
4357
+ * @throws {RequiredError}
4358
+ */
4359
+ deleteSport: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
4360
+ // verify required parameter 'id' is not null or undefined
4361
+ (0, common_1.assertParamExists)('deleteSport', 'id', id);
4362
+ const localVarPath = `/api/sports/{id}`
4363
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
4364
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4365
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4366
+ let baseOptions;
4367
+ if (configuration) {
4368
+ baseOptions = configuration.baseOptions;
4369
+ }
4370
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
4371
+ const localVarHeaderParameter = {};
4372
+ const localVarQueryParameter = {};
4373
+ // authentication bearerAuth required
4374
+ // http bearer authentication required
4375
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4376
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4377
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4378
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4379
+ return {
4380
+ url: (0, common_1.toPathString)(localVarUrlObj),
4381
+ options: localVarRequestOptions,
4382
+ };
4383
+ }),
4384
+ /**
4385
+ *
4386
+ * @summary Mettre à jour un sport
4387
+ * @param {string} id ID du sport
4388
+ * @param {UpdateSportRequest} updateSportRequest
4389
+ * @param {*} [options] Override http request option.
4390
+ * @throws {RequiredError}
4391
+ */
4392
+ updateSport: (id_1, updateSportRequest_1, ...args_1) => __awaiter(this, [id_1, updateSportRequest_1, ...args_1], void 0, function* (id, updateSportRequest, options = {}) {
4393
+ // verify required parameter 'id' is not null or undefined
4394
+ (0, common_1.assertParamExists)('updateSport', 'id', id);
4395
+ // verify required parameter 'updateSportRequest' is not null or undefined
4396
+ (0, common_1.assertParamExists)('updateSport', 'updateSportRequest', updateSportRequest);
4397
+ const localVarPath = `/api/sports/{id}`
4398
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
4399
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4400
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4401
+ let baseOptions;
4402
+ if (configuration) {
4403
+ baseOptions = configuration.baseOptions;
4404
+ }
4405
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
4406
+ const localVarHeaderParameter = {};
4407
+ const localVarQueryParameter = {};
4408
+ // authentication bearerAuth required
4409
+ // http bearer authentication required
4410
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4411
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4412
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4413
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4414
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4415
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateSportRequest, localVarRequestOptions, configuration);
4416
+ return {
4417
+ url: (0, common_1.toPathString)(localVarUrlObj),
4418
+ options: localVarRequestOptions,
4419
+ };
4420
+ }),
4421
+ };
4422
+ };
4423
+ exports.ManagerSportsApiAxiosParamCreator = ManagerSportsApiAxiosParamCreator;
4424
+ /**
4425
+ * ManagerSportsApi - functional programming interface
4426
+ * @export
4427
+ */
4428
+ const ManagerSportsApiFp = function (configuration) {
4429
+ const localVarAxiosParamCreator = (0, exports.ManagerSportsApiAxiosParamCreator)(configuration);
4430
+ return {
4431
+ /**
4432
+ *
4433
+ * @summary Créer un sport dans un club
4434
+ * @param {CreateSportRequest} createSportRequest
4435
+ * @param {*} [options] Override http request option.
4436
+ * @throws {RequiredError}
4437
+ */
4438
+ createSport(createSportRequest, options) {
4439
+ return __awaiter(this, void 0, void 0, function* () {
4440
+ var _a, _b, _c;
4441
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createSport(createSportRequest, options);
4442
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4443
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerSportsApi.createSport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4444
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4445
+ });
4446
+ },
4447
+ /**
4448
+ *
4449
+ * @summary Supprimer un sport
4450
+ * @param {string} id ID du sport
4451
+ * @param {*} [options] Override http request option.
4452
+ * @throws {RequiredError}
4453
+ */
4454
+ deleteSport(id, options) {
4455
+ return __awaiter(this, void 0, void 0, function* () {
4456
+ var _a, _b, _c;
4457
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSport(id, options);
4458
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4459
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerSportsApi.deleteSport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4460
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4461
+ });
4462
+ },
4463
+ /**
4464
+ *
4465
+ * @summary Mettre à jour un sport
4466
+ * @param {string} id ID du sport
4467
+ * @param {UpdateSportRequest} updateSportRequest
4468
+ * @param {*} [options] Override http request option.
4469
+ * @throws {RequiredError}
4470
+ */
4471
+ updateSport(id, updateSportRequest, options) {
4472
+ return __awaiter(this, void 0, void 0, function* () {
4473
+ var _a, _b, _c;
4474
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSport(id, updateSportRequest, options);
4475
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4476
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerSportsApi.updateSport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4477
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4478
+ });
4479
+ },
4480
+ };
4481
+ };
4482
+ exports.ManagerSportsApiFp = ManagerSportsApiFp;
4483
+ /**
4484
+ * ManagerSportsApi - factory interface
4485
+ * @export
4486
+ */
4487
+ const ManagerSportsApiFactory = function (configuration, basePath, axios) {
4488
+ const localVarFp = (0, exports.ManagerSportsApiFp)(configuration);
4489
+ return {
4490
+ /**
4491
+ *
4492
+ * @summary Créer un sport dans un club
4493
+ * @param {ManagerSportsApiCreateSportRequest} requestParameters Request parameters.
4494
+ * @param {*} [options] Override http request option.
4495
+ * @throws {RequiredError}
4496
+ */
4497
+ createSport(requestParameters, options) {
4498
+ return localVarFp.createSport(requestParameters.createSportRequest, options).then((request) => request(axios, basePath));
4499
+ },
4500
+ /**
4501
+ *
4502
+ * @summary Supprimer un sport
4503
+ * @param {ManagerSportsApiDeleteSportRequest} requestParameters Request parameters.
4504
+ * @param {*} [options] Override http request option.
4505
+ * @throws {RequiredError}
4506
+ */
4507
+ deleteSport(requestParameters, options) {
4508
+ return localVarFp.deleteSport(requestParameters.id, options).then((request) => request(axios, basePath));
4509
+ },
4510
+ /**
4511
+ *
4512
+ * @summary Mettre à jour un sport
4513
+ * @param {ManagerSportsApiUpdateSportRequest} requestParameters Request parameters.
4514
+ * @param {*} [options] Override http request option.
4515
+ * @throws {RequiredError}
4516
+ */
4517
+ updateSport(requestParameters, options) {
4518
+ return localVarFp.updateSport(requestParameters.id, requestParameters.updateSportRequest, options).then((request) => request(axios, basePath));
4519
+ },
4520
+ };
4521
+ };
4522
+ exports.ManagerSportsApiFactory = ManagerSportsApiFactory;
4523
+ /**
4524
+ * ManagerSportsApi - object-oriented interface
4525
+ * @export
4526
+ * @class ManagerSportsApi
4527
+ * @extends {BaseAPI}
4528
+ */
4529
+ class ManagerSportsApi extends base_1.BaseAPI {
4530
+ /**
4531
+ *
4532
+ * @summary Créer un sport dans un club
4533
+ * @param {ManagerSportsApiCreateSportRequest} requestParameters Request parameters.
4534
+ * @param {*} [options] Override http request option.
4535
+ * @throws {RequiredError}
4536
+ * @memberof ManagerSportsApi
4537
+ */
4538
+ createSport(requestParameters, options) {
4539
+ return (0, exports.ManagerSportsApiFp)(this.configuration).createSport(requestParameters.createSportRequest, options).then((request) => request(this.axios, this.basePath));
4540
+ }
4541
+ /**
4542
+ *
4543
+ * @summary Supprimer un sport
4544
+ * @param {ManagerSportsApiDeleteSportRequest} requestParameters Request parameters.
4545
+ * @param {*} [options] Override http request option.
4546
+ * @throws {RequiredError}
4547
+ * @memberof ManagerSportsApi
4548
+ */
4549
+ deleteSport(requestParameters, options) {
4550
+ return (0, exports.ManagerSportsApiFp)(this.configuration).deleteSport(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
4551
+ }
4552
+ /**
4553
+ *
4554
+ * @summary Mettre à jour un sport
4555
+ * @param {ManagerSportsApiUpdateSportRequest} requestParameters Request parameters.
4556
+ * @param {*} [options] Override http request option.
4557
+ * @throws {RequiredError}
4558
+ * @memberof ManagerSportsApi
4559
+ */
4560
+ updateSport(requestParameters, options) {
4561
+ return (0, exports.ManagerSportsApiFp)(this.configuration).updateSport(requestParameters.id, requestParameters.updateSportRequest, options).then((request) => request(this.axios, this.basePath));
4058
4562
  }
4059
4563
  }
4060
4564
  exports.ManagerSportsApi = ManagerSportsApi;
@@ -4496,19 +5000,119 @@ class StaffClubsApi extends base_1.BaseAPI {
4496
5000
  }
4497
5001
  exports.StaffClubsApi = StaffClubsApi;
4498
5002
  /**
4499
- * StaffProfileApi - axios parameter creator
5003
+ * StaffEventsApi - axios parameter creator
4500
5004
  * @export
4501
5005
  */
4502
- const StaffProfileApiAxiosParamCreator = function (configuration) {
5006
+ const StaffEventsApiAxiosParamCreator = function (configuration) {
4503
5007
  return {
4504
5008
  /**
4505
5009
  *
4506
- * @summary Récupère les rôles de l\'utilisateur dans les clubs
5010
+ * @summary Get all events for current club (including unpublished)
4507
5011
  * @param {*} [options] Override http request option.
4508
5012
  * @throws {RequiredError}
4509
5013
  */
4510
- getUserRolesInClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
4511
- const localVarPath = `/api/users/me/roles`;
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;
5102
+ /**
5103
+ * StaffProfileApi - axios parameter creator
5104
+ * @export
5105
+ */
5106
+ const StaffProfileApiAxiosParamCreator = function (configuration) {
5107
+ return {
5108
+ /**
5109
+ *
5110
+ * @summary Récupère les rôles de l\'utilisateur dans les clubs
5111
+ * @param {*} [options] Override http request option.
5112
+ * @throws {RequiredError}
5113
+ */
5114
+ getUserRolesInClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
5115
+ const localVarPath = `/api/users/me/roles`;
4512
5116
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4513
5117
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4514
5118
  let baseOptions;
@@ -6118,6 +6722,62 @@ const UserProfileApiAxiosParamCreator = function (configuration) {
6118
6722
  options: localVarRequestOptions,
6119
6723
  };
6120
6724
  }),
6725
+ /**
6726
+ *
6727
+ * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
6728
+ * @param {*} [options] Override http request option.
6729
+ * @throws {RequiredError}
6730
+ */
6731
+ getFrequentlyPlayedWith: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6732
+ const localVarPath = `/api/users/me/frequentlyPlayedWith`;
6733
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6734
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6735
+ let baseOptions;
6736
+ if (configuration) {
6737
+ baseOptions = configuration.baseOptions;
6738
+ }
6739
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6740
+ const localVarHeaderParameter = {};
6741
+ const localVarQueryParameter = {};
6742
+ // authentication bearerAuth required
6743
+ // http bearer authentication required
6744
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6745
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6746
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6747
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6748
+ return {
6749
+ url: (0, common_1.toPathString)(localVarUrlObj),
6750
+ options: localVarRequestOptions,
6751
+ };
6752
+ }),
6753
+ /**
6754
+ *
6755
+ * @summary Clubs les plus fréquemment visités par l\'utilisateur connecté
6756
+ * @param {*} [options] Override http request option.
6757
+ * @throws {RequiredError}
6758
+ */
6759
+ getFrequentlyVisitedClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6760
+ const localVarPath = `/api/users/me/frequentlyVisitedClub`;
6761
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6762
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6763
+ let baseOptions;
6764
+ if (configuration) {
6765
+ baseOptions = configuration.baseOptions;
6766
+ }
6767
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6768
+ const localVarHeaderParameter = {};
6769
+ const localVarQueryParameter = {};
6770
+ // authentication bearerAuth required
6771
+ // http bearer authentication required
6772
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6773
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6774
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6775
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6776
+ return {
6777
+ url: (0, common_1.toPathString)(localVarUrlObj),
6778
+ options: localVarRequestOptions,
6779
+ };
6780
+ }),
6121
6781
  /**
6122
6782
  *
6123
6783
  * @summary Récupère l\'URL de la photo de profil de l\'utilisateur connecté
@@ -6146,6 +6806,62 @@ const UserProfileApiAxiosParamCreator = function (configuration) {
6146
6806
  options: localVarRequestOptions,
6147
6807
  };
6148
6808
  }),
6809
+ /**
6810
+ *
6811
+ * @summary Récupère la ville de l\'utilisateur connecté
6812
+ * @param {*} [options] Override http request option.
6813
+ * @throws {RequiredError}
6814
+ */
6815
+ getUserCity: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6816
+ const localVarPath = `/api/users/me/city`;
6817
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6818
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6819
+ let baseOptions;
6820
+ if (configuration) {
6821
+ baseOptions = configuration.baseOptions;
6822
+ }
6823
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6824
+ const localVarHeaderParameter = {};
6825
+ const localVarQueryParameter = {};
6826
+ // authentication bearerAuth required
6827
+ // http bearer authentication required
6828
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6829
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6830
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6831
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6832
+ return {
6833
+ url: (0, common_1.toPathString)(localVarUrlObj),
6834
+ options: localVarRequestOptions,
6835
+ };
6836
+ }),
6837
+ /**
6838
+ *
6839
+ * @summary Récupère la description de l\'utilisateur connecté
6840
+ * @param {*} [options] Override http request option.
6841
+ * @throws {RequiredError}
6842
+ */
6843
+ getUserDescription: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6844
+ const localVarPath = `/api/users/me/description`;
6845
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6846
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6847
+ let baseOptions;
6848
+ if (configuration) {
6849
+ baseOptions = configuration.baseOptions;
6850
+ }
6851
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6852
+ const localVarHeaderParameter = {};
6853
+ const localVarQueryParameter = {};
6854
+ // authentication bearerAuth required
6855
+ // http bearer authentication required
6856
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6857
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6858
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6859
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6860
+ return {
6861
+ url: (0, common_1.toPathString)(localVarUrlObj),
6862
+ options: localVarRequestOptions,
6863
+ };
6864
+ }),
6149
6865
  /**
6150
6866
  *
6151
6867
  * @summary Récupère les informations de l\'utilisateur connecté
@@ -6174,6 +6890,34 @@ const UserProfileApiAxiosParamCreator = function (configuration) {
6174
6890
  options: localVarRequestOptions,
6175
6891
  };
6176
6892
  }),
6893
+ /**
6894
+ *
6895
+ * @summary Récupère la visibilité du profil de l\'utilisateur connecté
6896
+ * @param {*} [options] Override http request option.
6897
+ * @throws {RequiredError}
6898
+ */
6899
+ getUserProfileVisibility: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6900
+ const localVarPath = `/api/users/me/profile-visibility`;
6901
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6902
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6903
+ let baseOptions;
6904
+ if (configuration) {
6905
+ baseOptions = configuration.baseOptions;
6906
+ }
6907
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6908
+ const localVarHeaderParameter = {};
6909
+ const localVarQueryParameter = {};
6910
+ // authentication bearerAuth required
6911
+ // http bearer authentication required
6912
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6913
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6914
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6915
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6916
+ return {
6917
+ url: (0, common_1.toPathString)(localVarUrlObj),
6918
+ options: localVarRequestOptions,
6919
+ };
6920
+ }),
6177
6921
  /**
6178
6922
  *
6179
6923
  * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
@@ -6240,6 +6984,39 @@ const UserProfileApiAxiosParamCreator = function (configuration) {
6240
6984
  options: localVarRequestOptions,
6241
6985
  };
6242
6986
  }),
6987
+ /**
6988
+ *
6989
+ * @summary Met à jour la visibilité du profil de l\'utilisateur connecté
6990
+ * @param {UpdateProfileVisibilityRequestBody} updateProfileVisibilityRequestBody
6991
+ * @param {*} [options] Override http request option.
6992
+ * @throws {RequiredError}
6993
+ */
6994
+ updateProfileVisibility: (updateProfileVisibilityRequestBody_1, ...args_1) => __awaiter(this, [updateProfileVisibilityRequestBody_1, ...args_1], void 0, function* (updateProfileVisibilityRequestBody, options = {}) {
6995
+ // verify required parameter 'updateProfileVisibilityRequestBody' is not null or undefined
6996
+ (0, common_1.assertParamExists)('updateProfileVisibility', 'updateProfileVisibilityRequestBody', updateProfileVisibilityRequestBody);
6997
+ const localVarPath = `/api/users/me/profile-visibility`;
6998
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6999
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7000
+ let baseOptions;
7001
+ if (configuration) {
7002
+ baseOptions = configuration.baseOptions;
7003
+ }
7004
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
7005
+ const localVarHeaderParameter = {};
7006
+ const localVarQueryParameter = {};
7007
+ // authentication bearerAuth required
7008
+ // http bearer authentication required
7009
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
7010
+ localVarHeaderParameter['Content-Type'] = 'application/json';
7011
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7012
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7013
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7014
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateProfileVisibilityRequestBody, localVarRequestOptions, configuration);
7015
+ return {
7016
+ url: (0, common_1.toPathString)(localVarUrlObj),
7017
+ options: localVarRequestOptions,
7018
+ };
7019
+ }),
6243
7020
  /**
6244
7021
  *
6245
7022
  * @summary Met à jour les données de l\'utilisateur connecté
@@ -6273,6 +7050,72 @@ const UserProfileApiAxiosParamCreator = function (configuration) {
6273
7050
  options: localVarRequestOptions,
6274
7051
  };
6275
7052
  }),
7053
+ /**
7054
+ *
7055
+ * @summary Met à jour la ville de l\'utilisateur connecté
7056
+ * @param {UpdateUserCityRequestBody} updateUserCityRequestBody
7057
+ * @param {*} [options] Override http request option.
7058
+ * @throws {RequiredError}
7059
+ */
7060
+ updateUserCity: (updateUserCityRequestBody_1, ...args_1) => __awaiter(this, [updateUserCityRequestBody_1, ...args_1], void 0, function* (updateUserCityRequestBody, options = {}) {
7061
+ // verify required parameter 'updateUserCityRequestBody' is not null or undefined
7062
+ (0, common_1.assertParamExists)('updateUserCity', 'updateUserCityRequestBody', updateUserCityRequestBody);
7063
+ const localVarPath = `/api/users/me/city`;
7064
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7065
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7066
+ let baseOptions;
7067
+ if (configuration) {
7068
+ baseOptions = configuration.baseOptions;
7069
+ }
7070
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
7071
+ const localVarHeaderParameter = {};
7072
+ const localVarQueryParameter = {};
7073
+ // authentication bearerAuth required
7074
+ // http bearer authentication required
7075
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
7076
+ localVarHeaderParameter['Content-Type'] = 'application/json';
7077
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7078
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7079
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7080
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateUserCityRequestBody, localVarRequestOptions, configuration);
7081
+ return {
7082
+ url: (0, common_1.toPathString)(localVarUrlObj),
7083
+ options: localVarRequestOptions,
7084
+ };
7085
+ }),
7086
+ /**
7087
+ *
7088
+ * @summary Met à jour la description de l\'utilisateur connecté
7089
+ * @param {UpdateUserDescriptionRequestBody} updateUserDescriptionRequestBody
7090
+ * @param {*} [options] Override http request option.
7091
+ * @throws {RequiredError}
7092
+ */
7093
+ updateUserDescription: (updateUserDescriptionRequestBody_1, ...args_1) => __awaiter(this, [updateUserDescriptionRequestBody_1, ...args_1], void 0, function* (updateUserDescriptionRequestBody, options = {}) {
7094
+ // verify required parameter 'updateUserDescriptionRequestBody' is not null or undefined
7095
+ (0, common_1.assertParamExists)('updateUserDescription', 'updateUserDescriptionRequestBody', updateUserDescriptionRequestBody);
7096
+ const localVarPath = `/api/users/me/description`;
7097
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7098
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7099
+ let baseOptions;
7100
+ if (configuration) {
7101
+ baseOptions = configuration.baseOptions;
7102
+ }
7103
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
7104
+ const localVarHeaderParameter = {};
7105
+ const localVarQueryParameter = {};
7106
+ // authentication bearerAuth required
7107
+ // http bearer authentication required
7108
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
7109
+ localVarHeaderParameter['Content-Type'] = 'application/json';
7110
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7111
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7112
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7113
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateUserDescriptionRequestBody, localVarRequestOptions, configuration);
7114
+ return {
7115
+ url: (0, common_1.toPathString)(localVarUrlObj),
7116
+ options: localVarRequestOptions,
7117
+ };
7118
+ }),
6276
7119
  };
6277
7120
  };
6278
7121
  exports.UserProfileApiAxiosParamCreator = UserProfileApiAxiosParamCreator;
@@ -6317,6 +7160,36 @@ const UserProfileApiFp = function (configuration) {
6317
7160
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6318
7161
  });
6319
7162
  },
7163
+ /**
7164
+ *
7165
+ * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
7166
+ * @param {*} [options] Override http request option.
7167
+ * @throws {RequiredError}
7168
+ */
7169
+ getFrequentlyPlayedWith(options) {
7170
+ return __awaiter(this, void 0, void 0, function* () {
7171
+ var _a, _b, _c;
7172
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getFrequentlyPlayedWith(options);
7173
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7174
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.getFrequentlyPlayedWith']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7175
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7176
+ });
7177
+ },
7178
+ /**
7179
+ *
7180
+ * @summary Clubs les plus fréquemment visités par l\'utilisateur connecté
7181
+ * @param {*} [options] Override http request option.
7182
+ * @throws {RequiredError}
7183
+ */
7184
+ getFrequentlyVisitedClub(options) {
7185
+ return __awaiter(this, void 0, void 0, function* () {
7186
+ var _a, _b, _c;
7187
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getFrequentlyVisitedClub(options);
7188
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7189
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.getFrequentlyVisitedClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7190
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7191
+ });
7192
+ },
6320
7193
  /**
6321
7194
  *
6322
7195
  * @summary Récupère l\'URL de la photo de profil de l\'utilisateur connecté
@@ -6332,6 +7205,36 @@ const UserProfileApiFp = function (configuration) {
6332
7205
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6333
7206
  });
6334
7207
  },
7208
+ /**
7209
+ *
7210
+ * @summary Récupère la ville de l\'utilisateur connecté
7211
+ * @param {*} [options] Override http request option.
7212
+ * @throws {RequiredError}
7213
+ */
7214
+ getUserCity(options) {
7215
+ return __awaiter(this, void 0, void 0, function* () {
7216
+ var _a, _b, _c;
7217
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserCity(options);
7218
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7219
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.getUserCity']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7220
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7221
+ });
7222
+ },
7223
+ /**
7224
+ *
7225
+ * @summary Récupère la description de l\'utilisateur connecté
7226
+ * @param {*} [options] Override http request option.
7227
+ * @throws {RequiredError}
7228
+ */
7229
+ getUserDescription(options) {
7230
+ return __awaiter(this, void 0, void 0, function* () {
7231
+ var _a, _b, _c;
7232
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserDescription(options);
7233
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7234
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.getUserDescription']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7235
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7236
+ });
7237
+ },
6335
7238
  /**
6336
7239
  *
6337
7240
  * @summary Récupère les informations de l\'utilisateur connecté
@@ -6347,6 +7250,21 @@ const UserProfileApiFp = function (configuration) {
6347
7250
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6348
7251
  });
6349
7252
  },
7253
+ /**
7254
+ *
7255
+ * @summary Récupère la visibilité du profil de l\'utilisateur connecté
7256
+ * @param {*} [options] Override http request option.
7257
+ * @throws {RequiredError}
7258
+ */
7259
+ getUserProfileVisibility(options) {
7260
+ return __awaiter(this, void 0, void 0, function* () {
7261
+ var _a, _b, _c;
7262
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserProfileVisibility(options);
7263
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7264
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.getUserProfileVisibility']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7265
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7266
+ });
7267
+ },
6350
7268
  /**
6351
7269
  *
6352
7270
  * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
@@ -6379,6 +7297,22 @@ const UserProfileApiFp = function (configuration) {
6379
7297
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6380
7298
  });
6381
7299
  },
7300
+ /**
7301
+ *
7302
+ * @summary Met à jour la visibilité du profil de l\'utilisateur connecté
7303
+ * @param {UpdateProfileVisibilityRequestBody} updateProfileVisibilityRequestBody
7304
+ * @param {*} [options] Override http request option.
7305
+ * @throws {RequiredError}
7306
+ */
7307
+ updateProfileVisibility(updateProfileVisibilityRequestBody, options) {
7308
+ return __awaiter(this, void 0, void 0, function* () {
7309
+ var _a, _b, _c;
7310
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateProfileVisibility(updateProfileVisibilityRequestBody, options);
7311
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7312
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.updateProfileVisibility']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7313
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7314
+ });
7315
+ },
6382
7316
  /**
6383
7317
  *
6384
7318
  * @summary Met à jour les données de l\'utilisateur connecté
@@ -6395,6 +7329,38 @@ const UserProfileApiFp = function (configuration) {
6395
7329
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6396
7330
  });
6397
7331
  },
7332
+ /**
7333
+ *
7334
+ * @summary Met à jour la ville de l\'utilisateur connecté
7335
+ * @param {UpdateUserCityRequestBody} updateUserCityRequestBody
7336
+ * @param {*} [options] Override http request option.
7337
+ * @throws {RequiredError}
7338
+ */
7339
+ updateUserCity(updateUserCityRequestBody, options) {
7340
+ return __awaiter(this, void 0, void 0, function* () {
7341
+ var _a, _b, _c;
7342
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserCity(updateUserCityRequestBody, options);
7343
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7344
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.updateUserCity']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7345
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7346
+ });
7347
+ },
7348
+ /**
7349
+ *
7350
+ * @summary Met à jour la description de l\'utilisateur connecté
7351
+ * @param {UpdateUserDescriptionRequestBody} updateUserDescriptionRequestBody
7352
+ * @param {*} [options] Override http request option.
7353
+ * @throws {RequiredError}
7354
+ */
7355
+ updateUserDescription(updateUserDescriptionRequestBody, options) {
7356
+ return __awaiter(this, void 0, void 0, function* () {
7357
+ var _a, _b, _c;
7358
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserDescription(updateUserDescriptionRequestBody, options);
7359
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7360
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.updateUserDescription']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7361
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7362
+ });
7363
+ },
6398
7364
  };
6399
7365
  };
6400
7366
  exports.UserProfileApiFp = UserProfileApiFp;
@@ -6425,6 +7391,24 @@ const UserProfileApiFactory = function (configuration, basePath, axios) {
6425
7391
  getAllUsers(requestParameters = {}, options) {
6426
7392
  return localVarFp.getAllUsers(requestParameters.limit, requestParameters.skip, requestParameters.search, options).then((request) => request(axios, basePath));
6427
7393
  },
7394
+ /**
7395
+ *
7396
+ * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
7397
+ * @param {*} [options] Override http request option.
7398
+ * @throws {RequiredError}
7399
+ */
7400
+ getFrequentlyPlayedWith(options) {
7401
+ return localVarFp.getFrequentlyPlayedWith(options).then((request) => request(axios, basePath));
7402
+ },
7403
+ /**
7404
+ *
7405
+ * @summary Clubs les plus fréquemment visités par l\'utilisateur connecté
7406
+ * @param {*} [options] Override http request option.
7407
+ * @throws {RequiredError}
7408
+ */
7409
+ getFrequentlyVisitedClub(options) {
7410
+ return localVarFp.getFrequentlyVisitedClub(options).then((request) => request(axios, basePath));
7411
+ },
6428
7412
  /**
6429
7413
  *
6430
7414
  * @summary Récupère l\'URL de la photo de profil de l\'utilisateur connecté
@@ -6434,6 +7418,24 @@ const UserProfileApiFactory = function (configuration, basePath, axios) {
6434
7418
  getProfilePicture(options) {
6435
7419
  return localVarFp.getProfilePicture(options).then((request) => request(axios, basePath));
6436
7420
  },
7421
+ /**
7422
+ *
7423
+ * @summary Récupère la ville de l\'utilisateur connecté
7424
+ * @param {*} [options] Override http request option.
7425
+ * @throws {RequiredError}
7426
+ */
7427
+ getUserCity(options) {
7428
+ return localVarFp.getUserCity(options).then((request) => request(axios, basePath));
7429
+ },
7430
+ /**
7431
+ *
7432
+ * @summary Récupère la description de l\'utilisateur connecté
7433
+ * @param {*} [options] Override http request option.
7434
+ * @throws {RequiredError}
7435
+ */
7436
+ getUserDescription(options) {
7437
+ return localVarFp.getUserDescription(options).then((request) => request(axios, basePath));
7438
+ },
6437
7439
  /**
6438
7440
  *
6439
7441
  * @summary Récupère les informations de l\'utilisateur connecté
@@ -6443,6 +7445,15 @@ const UserProfileApiFactory = function (configuration, basePath, axios) {
6443
7445
  getUserInfo(options) {
6444
7446
  return localVarFp.getUserInfo(options).then((request) => request(axios, basePath));
6445
7447
  },
7448
+ /**
7449
+ *
7450
+ * @summary Récupère la visibilité du profil de l\'utilisateur connecté
7451
+ * @param {*} [options] Override http request option.
7452
+ * @throws {RequiredError}
7453
+ */
7454
+ getUserProfileVisibility(options) {
7455
+ return localVarFp.getUserProfileVisibility(options).then((request) => request(axios, basePath));
7456
+ },
6446
7457
  /**
6447
7458
  *
6448
7459
  * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
@@ -6463,6 +7474,16 @@ const UserProfileApiFactory = function (configuration, basePath, axios) {
6463
7474
  updateProfilePicture(requestParameters, options) {
6464
7475
  return localVarFp.updateProfilePicture(requestParameters.updateProfilePictureRequestBody, options).then((request) => request(axios, basePath));
6465
7476
  },
7477
+ /**
7478
+ *
7479
+ * @summary Met à jour la visibilité du profil de l\'utilisateur connecté
7480
+ * @param {UserProfileApiUpdateProfileVisibilityRequest} requestParameters Request parameters.
7481
+ * @param {*} [options] Override http request option.
7482
+ * @throws {RequiredError}
7483
+ */
7484
+ updateProfileVisibility(requestParameters, options) {
7485
+ return localVarFp.updateProfileVisibility(requestParameters.updateProfileVisibilityRequestBody, options).then((request) => request(axios, basePath));
7486
+ },
6466
7487
  /**
6467
7488
  *
6468
7489
  * @summary Met à jour les données de l\'utilisateur connecté
@@ -6473,6 +7494,26 @@ const UserProfileApiFactory = function (configuration, basePath, axios) {
6473
7494
  updateUser(requestParameters, options) {
6474
7495
  return localVarFp.updateUser(requestParameters.updateUserRequestBody, options).then((request) => request(axios, basePath));
6475
7496
  },
7497
+ /**
7498
+ *
7499
+ * @summary Met à jour la ville de l\'utilisateur connecté
7500
+ * @param {UserProfileApiUpdateUserCityRequest} requestParameters Request parameters.
7501
+ * @param {*} [options] Override http request option.
7502
+ * @throws {RequiredError}
7503
+ */
7504
+ updateUserCity(requestParameters, options) {
7505
+ return localVarFp.updateUserCity(requestParameters.updateUserCityRequestBody, options).then((request) => request(axios, basePath));
7506
+ },
7507
+ /**
7508
+ *
7509
+ * @summary Met à jour la description de l\'utilisateur connecté
7510
+ * @param {UserProfileApiUpdateUserDescriptionRequest} requestParameters Request parameters.
7511
+ * @param {*} [options] Override http request option.
7512
+ * @throws {RequiredError}
7513
+ */
7514
+ updateUserDescription(requestParameters, options) {
7515
+ return localVarFp.updateUserDescription(requestParameters.updateUserDescriptionRequestBody, options).then((request) => request(axios, basePath));
7516
+ },
6476
7517
  };
6477
7518
  };
6478
7519
  exports.UserProfileApiFactory = UserProfileApiFactory;
@@ -6505,6 +7546,26 @@ class UserProfileApi extends base_1.BaseAPI {
6505
7546
  getAllUsers(requestParameters = {}, options) {
6506
7547
  return (0, exports.UserProfileApiFp)(this.configuration).getAllUsers(requestParameters.limit, requestParameters.skip, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
6507
7548
  }
7549
+ /**
7550
+ *
7551
+ * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
7552
+ * @param {*} [options] Override http request option.
7553
+ * @throws {RequiredError}
7554
+ * @memberof UserProfileApi
7555
+ */
7556
+ getFrequentlyPlayedWith(options) {
7557
+ return (0, exports.UserProfileApiFp)(this.configuration).getFrequentlyPlayedWith(options).then((request) => request(this.axios, this.basePath));
7558
+ }
7559
+ /**
7560
+ *
7561
+ * @summary Clubs les plus fréquemment visités par l\'utilisateur connecté
7562
+ * @param {*} [options] Override http request option.
7563
+ * @throws {RequiredError}
7564
+ * @memberof UserProfileApi
7565
+ */
7566
+ getFrequentlyVisitedClub(options) {
7567
+ return (0, exports.UserProfileApiFp)(this.configuration).getFrequentlyVisitedClub(options).then((request) => request(this.axios, this.basePath));
7568
+ }
6508
7569
  /**
6509
7570
  *
6510
7571
  * @summary Récupère l\'URL de la photo de profil de l\'utilisateur connecté
@@ -6515,6 +7576,26 @@ class UserProfileApi extends base_1.BaseAPI {
6515
7576
  getProfilePicture(options) {
6516
7577
  return (0, exports.UserProfileApiFp)(this.configuration).getProfilePicture(options).then((request) => request(this.axios, this.basePath));
6517
7578
  }
7579
+ /**
7580
+ *
7581
+ * @summary Récupère la ville de l\'utilisateur connecté
7582
+ * @param {*} [options] Override http request option.
7583
+ * @throws {RequiredError}
7584
+ * @memberof UserProfileApi
7585
+ */
7586
+ getUserCity(options) {
7587
+ return (0, exports.UserProfileApiFp)(this.configuration).getUserCity(options).then((request) => request(this.axios, this.basePath));
7588
+ }
7589
+ /**
7590
+ *
7591
+ * @summary Récupère la description de l\'utilisateur connecté
7592
+ * @param {*} [options] Override http request option.
7593
+ * @throws {RequiredError}
7594
+ * @memberof UserProfileApi
7595
+ */
7596
+ getUserDescription(options) {
7597
+ return (0, exports.UserProfileApiFp)(this.configuration).getUserDescription(options).then((request) => request(this.axios, this.basePath));
7598
+ }
6518
7599
  /**
6519
7600
  *
6520
7601
  * @summary Récupère les informations de l\'utilisateur connecté
@@ -6525,6 +7606,16 @@ class UserProfileApi extends base_1.BaseAPI {
6525
7606
  getUserInfo(options) {
6526
7607
  return (0, exports.UserProfileApiFp)(this.configuration).getUserInfo(options).then((request) => request(this.axios, this.basePath));
6527
7608
  }
7609
+ /**
7610
+ *
7611
+ * @summary Récupère la visibilité du profil de l\'utilisateur connecté
7612
+ * @param {*} [options] Override http request option.
7613
+ * @throws {RequiredError}
7614
+ * @memberof UserProfileApi
7615
+ */
7616
+ getUserProfileVisibility(options) {
7617
+ return (0, exports.UserProfileApiFp)(this.configuration).getUserProfileVisibility(options).then((request) => request(this.axios, this.basePath));
7618
+ }
6528
7619
  /**
6529
7620
  *
6530
7621
  * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
@@ -6547,6 +7638,17 @@ class UserProfileApi extends base_1.BaseAPI {
6547
7638
  updateProfilePicture(requestParameters, options) {
6548
7639
  return (0, exports.UserProfileApiFp)(this.configuration).updateProfilePicture(requestParameters.updateProfilePictureRequestBody, options).then((request) => request(this.axios, this.basePath));
6549
7640
  }
7641
+ /**
7642
+ *
7643
+ * @summary Met à jour la visibilité du profil de l\'utilisateur connecté
7644
+ * @param {UserProfileApiUpdateProfileVisibilityRequest} requestParameters Request parameters.
7645
+ * @param {*} [options] Override http request option.
7646
+ * @throws {RequiredError}
7647
+ * @memberof UserProfileApi
7648
+ */
7649
+ updateProfileVisibility(requestParameters, options) {
7650
+ return (0, exports.UserProfileApiFp)(this.configuration).updateProfileVisibility(requestParameters.updateProfileVisibilityRequestBody, options).then((request) => request(this.axios, this.basePath));
7651
+ }
6550
7652
  /**
6551
7653
  *
6552
7654
  * @summary Met à jour les données de l\'utilisateur connecté
@@ -6558,6 +7660,28 @@ class UserProfileApi extends base_1.BaseAPI {
6558
7660
  updateUser(requestParameters, options) {
6559
7661
  return (0, exports.UserProfileApiFp)(this.configuration).updateUser(requestParameters.updateUserRequestBody, options).then((request) => request(this.axios, this.basePath));
6560
7662
  }
7663
+ /**
7664
+ *
7665
+ * @summary Met à jour la ville de l\'utilisateur connecté
7666
+ * @param {UserProfileApiUpdateUserCityRequest} requestParameters Request parameters.
7667
+ * @param {*} [options] Override http request option.
7668
+ * @throws {RequiredError}
7669
+ * @memberof UserProfileApi
7670
+ */
7671
+ updateUserCity(requestParameters, options) {
7672
+ return (0, exports.UserProfileApiFp)(this.configuration).updateUserCity(requestParameters.updateUserCityRequestBody, options).then((request) => request(this.axios, this.basePath));
7673
+ }
7674
+ /**
7675
+ *
7676
+ * @summary Met à jour la description de l\'utilisateur connecté
7677
+ * @param {UserProfileApiUpdateUserDescriptionRequest} requestParameters Request parameters.
7678
+ * @param {*} [options] Override http request option.
7679
+ * @throws {RequiredError}
7680
+ * @memberof UserProfileApi
7681
+ */
7682
+ updateUserDescription(requestParameters, options) {
7683
+ return (0, exports.UserProfileApiFp)(this.configuration).updateUserDescription(requestParameters.updateUserDescriptionRequestBody, options).then((request) => request(this.axios, this.basePath));
7684
+ }
6561
7685
  }
6562
7686
  exports.UserProfileApi = UserProfileApi;
6563
7687
  /**