@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/esm/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Pandook API
5
5
  * API for managing pickle ball games and players
6
6
  *
7
- * The version of the OpenAPI document: 1.0.24
7
+ * The version of the OpenAPI document: 1.0.26
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -76,6 +76,11 @@ export const CreatePriceRequestIntervalEnum = {
76
76
  Month: 'month',
77
77
  Year: 'year'
78
78
  };
79
+ export const EventBookingStatusEnum = {
80
+ Pending: 'pending',
81
+ Confirmed: 'confirmed',
82
+ Cancelled: 'cancelled'
83
+ };
79
84
  export const InvoicesResponseInvoicesInnerStatusEnum = {
80
85
  Pending: 'pending',
81
86
  Paid: 'paid',
@@ -1950,6 +1955,186 @@ export const GetInvoicesStatusEnum = {
1950
1955
  Canceled: 'canceled',
1951
1956
  Expired: 'expired'
1952
1957
  };
1958
+ /**
1959
+ * EventsApi - axios parameter creator
1960
+ * @export
1961
+ */
1962
+ export const EventsApiAxiosParamCreator = function (configuration) {
1963
+ return {
1964
+ /**
1965
+ *
1966
+ * @summary Get all published events for a club
1967
+ * @param {string} clubId
1968
+ * @param {*} [options] Override http request option.
1969
+ * @throws {RequiredError}
1970
+ */
1971
+ getPublishedEventsByClubId: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
1972
+ // verify required parameter 'clubId' is not null or undefined
1973
+ assertParamExists('getPublishedEventsByClubId', 'clubId', clubId);
1974
+ const localVarPath = `/api/events`;
1975
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1976
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1977
+ let baseOptions;
1978
+ if (configuration) {
1979
+ baseOptions = configuration.baseOptions;
1980
+ }
1981
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1982
+ const localVarHeaderParameter = {};
1983
+ const localVarQueryParameter = {};
1984
+ // authentication bearerAuth required
1985
+ // http bearer authentication required
1986
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1987
+ if (clubId !== undefined) {
1988
+ localVarQueryParameter['clubId'] = clubId;
1989
+ }
1990
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1991
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1992
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1993
+ return {
1994
+ url: toPathString(localVarUrlObj),
1995
+ options: localVarRequestOptions,
1996
+ };
1997
+ }),
1998
+ /**
1999
+ *
2000
+ * @summary Register for an event
2001
+ * @param {string} eventId
2002
+ * @param {EventRegistrationRequest} eventRegistrationRequest
2003
+ * @param {*} [options] Override http request option.
2004
+ * @throws {RequiredError}
2005
+ */
2006
+ registerForEvent: (eventId_1, eventRegistrationRequest_1, ...args_1) => __awaiter(this, [eventId_1, eventRegistrationRequest_1, ...args_1], void 0, function* (eventId, eventRegistrationRequest, options = {}) {
2007
+ // verify required parameter 'eventId' is not null or undefined
2008
+ assertParamExists('registerForEvent', 'eventId', eventId);
2009
+ // verify required parameter 'eventRegistrationRequest' is not null or undefined
2010
+ assertParamExists('registerForEvent', 'eventRegistrationRequest', eventRegistrationRequest);
2011
+ const localVarPath = `/api/events/{eventId}/register`
2012
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
2013
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2014
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2015
+ let baseOptions;
2016
+ if (configuration) {
2017
+ baseOptions = configuration.baseOptions;
2018
+ }
2019
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2020
+ const localVarHeaderParameter = {};
2021
+ const localVarQueryParameter = {};
2022
+ // authentication bearerAuth required
2023
+ // http bearer authentication required
2024
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2025
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2026
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2027
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2028
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2029
+ localVarRequestOptions.data = serializeDataIfNeeded(eventRegistrationRequest, localVarRequestOptions, configuration);
2030
+ return {
2031
+ url: toPathString(localVarUrlObj),
2032
+ options: localVarRequestOptions,
2033
+ };
2034
+ }),
2035
+ };
2036
+ };
2037
+ /**
2038
+ * EventsApi - functional programming interface
2039
+ * @export
2040
+ */
2041
+ export const EventsApiFp = function (configuration) {
2042
+ const localVarAxiosParamCreator = EventsApiAxiosParamCreator(configuration);
2043
+ return {
2044
+ /**
2045
+ *
2046
+ * @summary Get all published events for a club
2047
+ * @param {string} clubId
2048
+ * @param {*} [options] Override http request option.
2049
+ * @throws {RequiredError}
2050
+ */
2051
+ getPublishedEventsByClubId(clubId, options) {
2052
+ return __awaiter(this, void 0, void 0, function* () {
2053
+ var _a, _b, _c;
2054
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPublishedEventsByClubId(clubId, options);
2055
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2056
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsApi.getPublishedEventsByClubId']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2057
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2058
+ });
2059
+ },
2060
+ /**
2061
+ *
2062
+ * @summary Register for an event
2063
+ * @param {string} eventId
2064
+ * @param {EventRegistrationRequest} eventRegistrationRequest
2065
+ * @param {*} [options] Override http request option.
2066
+ * @throws {RequiredError}
2067
+ */
2068
+ registerForEvent(eventId, eventRegistrationRequest, options) {
2069
+ return __awaiter(this, void 0, void 0, function* () {
2070
+ var _a, _b, _c;
2071
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.registerForEvent(eventId, eventRegistrationRequest, options);
2072
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2073
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsApi.registerForEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2074
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2075
+ });
2076
+ },
2077
+ };
2078
+ };
2079
+ /**
2080
+ * EventsApi - factory interface
2081
+ * @export
2082
+ */
2083
+ export const EventsApiFactory = function (configuration, basePath, axios) {
2084
+ const localVarFp = EventsApiFp(configuration);
2085
+ return {
2086
+ /**
2087
+ *
2088
+ * @summary Get all published events for a club
2089
+ * @param {EventsApiGetPublishedEventsByClubIdRequest} requestParameters Request parameters.
2090
+ * @param {*} [options] Override http request option.
2091
+ * @throws {RequiredError}
2092
+ */
2093
+ getPublishedEventsByClubId(requestParameters, options) {
2094
+ return localVarFp.getPublishedEventsByClubId(requestParameters.clubId, options).then((request) => request(axios, basePath));
2095
+ },
2096
+ /**
2097
+ *
2098
+ * @summary Register for an event
2099
+ * @param {EventsApiRegisterForEventRequest} requestParameters Request parameters.
2100
+ * @param {*} [options] Override http request option.
2101
+ * @throws {RequiredError}
2102
+ */
2103
+ registerForEvent(requestParameters, options) {
2104
+ return localVarFp.registerForEvent(requestParameters.eventId, requestParameters.eventRegistrationRequest, options).then((request) => request(axios, basePath));
2105
+ },
2106
+ };
2107
+ };
2108
+ /**
2109
+ * EventsApi - object-oriented interface
2110
+ * @export
2111
+ * @class EventsApi
2112
+ * @extends {BaseAPI}
2113
+ */
2114
+ export class EventsApi extends BaseAPI {
2115
+ /**
2116
+ *
2117
+ * @summary Get all published events for a club
2118
+ * @param {EventsApiGetPublishedEventsByClubIdRequest} requestParameters Request parameters.
2119
+ * @param {*} [options] Override http request option.
2120
+ * @throws {RequiredError}
2121
+ * @memberof EventsApi
2122
+ */
2123
+ getPublishedEventsByClubId(requestParameters, options) {
2124
+ return EventsApiFp(this.configuration).getPublishedEventsByClubId(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
2125
+ }
2126
+ /**
2127
+ *
2128
+ * @summary Register for an event
2129
+ * @param {EventsApiRegisterForEventRequest} requestParameters Request parameters.
2130
+ * @param {*} [options] Override http request option.
2131
+ * @throws {RequiredError}
2132
+ * @memberof EventsApi
2133
+ */
2134
+ registerForEvent(requestParameters, options) {
2135
+ return EventsApiFp(this.configuration).registerForEvent(requestParameters.eventId, requestParameters.eventRegistrationRequest, options).then((request) => request(this.axios, this.basePath));
2136
+ }
2137
+ }
1953
2138
  /**
1954
2139
  * ManagerBookingsApi - axios parameter creator
1955
2140
  * @export
@@ -3758,22 +3943,22 @@ export class ManagerClubsApi extends BaseAPI {
3758
3943
  }
3759
3944
  }
3760
3945
  /**
3761
- * ManagerSportsApi - axios parameter creator
3946
+ * ManagerEventsApi - axios parameter creator
3762
3947
  * @export
3763
3948
  */
3764
- export const ManagerSportsApiAxiosParamCreator = function (configuration) {
3949
+ export const ManagerEventsApiAxiosParamCreator = function (configuration) {
3765
3950
  return {
3766
3951
  /**
3767
3952
  *
3768
- * @summary Créer un sport dans un club
3769
- * @param {CreateSportRequest} createSportRequest
3953
+ * @summary Create a new event
3954
+ * @param {CreateEventRequest} createEventRequest
3770
3955
  * @param {*} [options] Override http request option.
3771
3956
  * @throws {RequiredError}
3772
3957
  */
3773
- createSport: (createSportRequest_1, ...args_1) => __awaiter(this, [createSportRequest_1, ...args_1], void 0, function* (createSportRequest, options = {}) {
3774
- // verify required parameter 'createSportRequest' is not null or undefined
3775
- assertParamExists('createSport', 'createSportRequest', createSportRequest);
3776
- const localVarPath = `/api/sports`;
3958
+ createEvent: (createEventRequest_1, ...args_1) => __awaiter(this, [createEventRequest_1, ...args_1], void 0, function* (createEventRequest, options = {}) {
3959
+ // verify required parameter 'createEventRequest' is not null or undefined
3960
+ assertParamExists('createEvent', 'createEventRequest', createEventRequest);
3961
+ const localVarPath = `/api/events/manager/createEvent`;
3777
3962
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3778
3963
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3779
3964
  let baseOptions;
@@ -3790,7 +3975,7 @@ export const ManagerSportsApiAxiosParamCreator = function (configuration) {
3790
3975
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3791
3976
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3792
3977
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3793
- localVarRequestOptions.data = serializeDataIfNeeded(createSportRequest, localVarRequestOptions, configuration);
3978
+ localVarRequestOptions.data = serializeDataIfNeeded(createEventRequest, localVarRequestOptions, configuration);
3794
3979
  return {
3795
3980
  url: toPathString(localVarUrlObj),
3796
3981
  options: localVarRequestOptions,
@@ -3798,16 +3983,16 @@ export const ManagerSportsApiAxiosParamCreator = function (configuration) {
3798
3983
  }),
3799
3984
  /**
3800
3985
  *
3801
- * @summary Supprimer un sport
3802
- * @param {string} id ID du sport
3986
+ * @summary Delete an event
3987
+ * @param {string} eventId
3803
3988
  * @param {*} [options] Override http request option.
3804
3989
  * @throws {RequiredError}
3805
3990
  */
3806
- deleteSport: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
3807
- // verify required parameter 'id' is not null or undefined
3808
- assertParamExists('deleteSport', 'id', id);
3809
- const localVarPath = `/api/sports/{id}`
3810
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
3991
+ deleteEvent: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
3992
+ // verify required parameter 'eventId' is not null or undefined
3993
+ assertParamExists('deleteEvent', 'eventId', eventId);
3994
+ const localVarPath = `/api/events/manager/deleteEvent/{eventId}`
3995
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
3811
3996
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3812
3997
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3813
3998
  let baseOptions;
@@ -3830,19 +4015,48 @@ export const ManagerSportsApiAxiosParamCreator = function (configuration) {
3830
4015
  }),
3831
4016
  /**
3832
4017
  *
3833
- * @summary Mettre à jour un sport
3834
- * @param {string} id ID du sport
3835
- * @param {UpdateSportRequest} updateSportRequest
4018
+ * @summary Publish an event
4019
+ * @param {string} eventId
3836
4020
  * @param {*} [options] Override http request option.
3837
4021
  * @throws {RequiredError}
3838
4022
  */
3839
- updateSport: (id_1, updateSportRequest_1, ...args_1) => __awaiter(this, [id_1, updateSportRequest_1, ...args_1], void 0, function* (id, updateSportRequest, options = {}) {
3840
- // verify required parameter 'id' is not null or undefined
3841
- assertParamExists('updateSport', 'id', id);
3842
- // verify required parameter 'updateSportRequest' is not null or undefined
3843
- assertParamExists('updateSport', 'updateSportRequest', updateSportRequest);
3844
- const localVarPath = `/api/sports/{id}`
3845
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
4023
+ publishEvent: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
4024
+ // verify required parameter 'eventId' is not null or undefined
4025
+ assertParamExists('publishEvent', 'eventId', eventId);
4026
+ const localVarPath = `/api/events/manager/publishEvent/{eventId}`
4027
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
4028
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4029
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4030
+ let baseOptions;
4031
+ if (configuration) {
4032
+ baseOptions = configuration.baseOptions;
4033
+ }
4034
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
4035
+ const localVarHeaderParameter = {};
4036
+ const localVarQueryParameter = {};
4037
+ // authentication bearerAuth required
4038
+ // http bearer authentication required
4039
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4040
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4041
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4042
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4043
+ return {
4044
+ url: toPathString(localVarUrlObj),
4045
+ options: localVarRequestOptions,
4046
+ };
4047
+ }),
4048
+ /**
4049
+ *
4050
+ * @summary Unpublish an event
4051
+ * @param {string} eventId
4052
+ * @param {*} [options] Override http request option.
4053
+ * @throws {RequiredError}
4054
+ */
4055
+ unpublishEvent: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
4056
+ // verify required parameter 'eventId' is not null or undefined
4057
+ assertParamExists('unpublishEvent', 'eventId', eventId);
4058
+ const localVarPath = `/api/events/manager/unpublishEvent/{eventId}`
4059
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
3846
4060
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3847
4061
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3848
4062
  let baseOptions;
@@ -3855,11 +4069,9 @@ export const ManagerSportsApiAxiosParamCreator = function (configuration) {
3855
4069
  // authentication bearerAuth required
3856
4070
  // http bearer authentication required
3857
4071
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3858
- localVarHeaderParameter['Content-Type'] = 'application/json';
3859
4072
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3860
4073
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3861
4074
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3862
- localVarRequestOptions.data = serializeDataIfNeeded(updateSportRequest, localVarRequestOptions, configuration);
3863
4075
  return {
3864
4076
  url: toPathString(localVarUrlObj),
3865
4077
  options: localVarRequestOptions,
@@ -3868,148 +4080,432 @@ export const ManagerSportsApiAxiosParamCreator = function (configuration) {
3868
4080
  };
3869
4081
  };
3870
4082
  /**
3871
- * ManagerSportsApi - functional programming interface
4083
+ * ManagerEventsApi - functional programming interface
3872
4084
  * @export
3873
4085
  */
3874
- export const ManagerSportsApiFp = function (configuration) {
3875
- const localVarAxiosParamCreator = ManagerSportsApiAxiosParamCreator(configuration);
4086
+ export const ManagerEventsApiFp = function (configuration) {
4087
+ const localVarAxiosParamCreator = ManagerEventsApiAxiosParamCreator(configuration);
3876
4088
  return {
3877
4089
  /**
3878
4090
  *
3879
- * @summary Créer un sport dans un club
3880
- * @param {CreateSportRequest} createSportRequest
4091
+ * @summary Create a new event
4092
+ * @param {CreateEventRequest} createEventRequest
3881
4093
  * @param {*} [options] Override http request option.
3882
4094
  * @throws {RequiredError}
3883
4095
  */
3884
- createSport(createSportRequest, options) {
4096
+ createEvent(createEventRequest, options) {
3885
4097
  return __awaiter(this, void 0, void 0, function* () {
3886
4098
  var _a, _b, _c;
3887
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createSport(createSportRequest, options);
4099
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createEvent(createEventRequest, options);
3888
4100
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3889
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerSportsApi.createSport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4101
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerEventsApi.createEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3890
4102
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3891
4103
  });
3892
4104
  },
3893
4105
  /**
3894
4106
  *
3895
- * @summary Supprimer un sport
3896
- * @param {string} id ID du sport
4107
+ * @summary Delete an event
4108
+ * @param {string} eventId
3897
4109
  * @param {*} [options] Override http request option.
3898
4110
  * @throws {RequiredError}
3899
4111
  */
3900
- deleteSport(id, options) {
4112
+ deleteEvent(eventId, options) {
3901
4113
  return __awaiter(this, void 0, void 0, function* () {
3902
4114
  var _a, _b, _c;
3903
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSport(id, options);
4115
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteEvent(eventId, options);
3904
4116
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3905
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerSportsApi.deleteSport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4117
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerEventsApi.deleteEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3906
4118
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3907
4119
  });
3908
4120
  },
3909
4121
  /**
3910
4122
  *
3911
- * @summary Mettre à jour un sport
3912
- * @param {string} id ID du sport
3913
- * @param {UpdateSportRequest} updateSportRequest
4123
+ * @summary Publish an event
4124
+ * @param {string} eventId
3914
4125
  * @param {*} [options] Override http request option.
3915
4126
  * @throws {RequiredError}
3916
4127
  */
3917
- updateSport(id, updateSportRequest, options) {
4128
+ publishEvent(eventId, options) {
3918
4129
  return __awaiter(this, void 0, void 0, function* () {
3919
4130
  var _a, _b, _c;
3920
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSport(id, updateSportRequest, options);
4131
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.publishEvent(eventId, options);
3921
4132
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3922
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerSportsApi.updateSport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4133
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerEventsApi.publishEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4134
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4135
+ });
4136
+ },
4137
+ /**
4138
+ *
4139
+ * @summary Unpublish an event
4140
+ * @param {string} eventId
4141
+ * @param {*} [options] Override http request option.
4142
+ * @throws {RequiredError}
4143
+ */
4144
+ unpublishEvent(eventId, options) {
4145
+ return __awaiter(this, void 0, void 0, function* () {
4146
+ var _a, _b, _c;
4147
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.unpublishEvent(eventId, options);
4148
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4149
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerEventsApi.unpublishEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3923
4150
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3924
4151
  });
3925
4152
  },
3926
4153
  };
3927
4154
  };
3928
4155
  /**
3929
- * ManagerSportsApi - factory interface
4156
+ * ManagerEventsApi - factory interface
3930
4157
  * @export
3931
4158
  */
3932
- export const ManagerSportsApiFactory = function (configuration, basePath, axios) {
3933
- const localVarFp = ManagerSportsApiFp(configuration);
4159
+ export const ManagerEventsApiFactory = function (configuration, basePath, axios) {
4160
+ const localVarFp = ManagerEventsApiFp(configuration);
3934
4161
  return {
3935
4162
  /**
3936
4163
  *
3937
- * @summary Créer un sport dans un club
3938
- * @param {ManagerSportsApiCreateSportRequest} requestParameters Request parameters.
4164
+ * @summary Create a new event
4165
+ * @param {ManagerEventsApiCreateEventRequest} requestParameters Request parameters.
3939
4166
  * @param {*} [options] Override http request option.
3940
4167
  * @throws {RequiredError}
3941
4168
  */
3942
- createSport(requestParameters, options) {
3943
- return localVarFp.createSport(requestParameters.createSportRequest, options).then((request) => request(axios, basePath));
4169
+ createEvent(requestParameters, options) {
4170
+ return localVarFp.createEvent(requestParameters.createEventRequest, options).then((request) => request(axios, basePath));
3944
4171
  },
3945
4172
  /**
3946
4173
  *
3947
- * @summary Supprimer un sport
3948
- * @param {ManagerSportsApiDeleteSportRequest} requestParameters Request parameters.
4174
+ * @summary Delete an event
4175
+ * @param {ManagerEventsApiDeleteEventRequest} requestParameters Request parameters.
3949
4176
  * @param {*} [options] Override http request option.
3950
4177
  * @throws {RequiredError}
3951
4178
  */
3952
- deleteSport(requestParameters, options) {
3953
- return localVarFp.deleteSport(requestParameters.id, options).then((request) => request(axios, basePath));
4179
+ deleteEvent(requestParameters, options) {
4180
+ return localVarFp.deleteEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
3954
4181
  },
3955
4182
  /**
3956
4183
  *
3957
- * @summary Mettre à jour un sport
3958
- * @param {ManagerSportsApiUpdateSportRequest} requestParameters Request parameters.
4184
+ * @summary Publish an event
4185
+ * @param {ManagerEventsApiPublishEventRequest} requestParameters Request parameters.
3959
4186
  * @param {*} [options] Override http request option.
3960
4187
  * @throws {RequiredError}
3961
4188
  */
3962
- updateSport(requestParameters, options) {
3963
- return localVarFp.updateSport(requestParameters.id, requestParameters.updateSportRequest, options).then((request) => request(axios, basePath));
4189
+ publishEvent(requestParameters, options) {
4190
+ return localVarFp.publishEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
4191
+ },
4192
+ /**
4193
+ *
4194
+ * @summary Unpublish an event
4195
+ * @param {ManagerEventsApiUnpublishEventRequest} requestParameters Request parameters.
4196
+ * @param {*} [options] Override http request option.
4197
+ * @throws {RequiredError}
4198
+ */
4199
+ unpublishEvent(requestParameters, options) {
4200
+ return localVarFp.unpublishEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
3964
4201
  },
3965
4202
  };
3966
4203
  };
3967
4204
  /**
3968
- * ManagerSportsApi - object-oriented interface
4205
+ * ManagerEventsApi - object-oriented interface
3969
4206
  * @export
3970
- * @class ManagerSportsApi
4207
+ * @class ManagerEventsApi
3971
4208
  * @extends {BaseAPI}
3972
4209
  */
3973
- export class ManagerSportsApi extends BaseAPI {
4210
+ export class ManagerEventsApi extends BaseAPI {
3974
4211
  /**
3975
4212
  *
3976
- * @summary Créer un sport dans un club
3977
- * @param {ManagerSportsApiCreateSportRequest} requestParameters Request parameters.
4213
+ * @summary Create a new event
4214
+ * @param {ManagerEventsApiCreateEventRequest} requestParameters Request parameters.
3978
4215
  * @param {*} [options] Override http request option.
3979
4216
  * @throws {RequiredError}
3980
- * @memberof ManagerSportsApi
4217
+ * @memberof ManagerEventsApi
3981
4218
  */
3982
- createSport(requestParameters, options) {
3983
- return ManagerSportsApiFp(this.configuration).createSport(requestParameters.createSportRequest, options).then((request) => request(this.axios, this.basePath));
4219
+ createEvent(requestParameters, options) {
4220
+ return ManagerEventsApiFp(this.configuration).createEvent(requestParameters.createEventRequest, options).then((request) => request(this.axios, this.basePath));
3984
4221
  }
3985
4222
  /**
3986
4223
  *
3987
- * @summary Supprimer un sport
3988
- * @param {ManagerSportsApiDeleteSportRequest} requestParameters Request parameters.
4224
+ * @summary Delete an event
4225
+ * @param {ManagerEventsApiDeleteEventRequest} requestParameters Request parameters.
3989
4226
  * @param {*} [options] Override http request option.
3990
4227
  * @throws {RequiredError}
3991
- * @memberof ManagerSportsApi
4228
+ * @memberof ManagerEventsApi
3992
4229
  */
3993
- deleteSport(requestParameters, options) {
3994
- return ManagerSportsApiFp(this.configuration).deleteSport(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
4230
+ deleteEvent(requestParameters, options) {
4231
+ return ManagerEventsApiFp(this.configuration).deleteEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
3995
4232
  }
3996
4233
  /**
3997
4234
  *
3998
- * @summary Mettre à jour un sport
3999
- * @param {ManagerSportsApiUpdateSportRequest} requestParameters Request parameters.
4235
+ * @summary Publish an event
4236
+ * @param {ManagerEventsApiPublishEventRequest} requestParameters Request parameters.
4000
4237
  * @param {*} [options] Override http request option.
4001
4238
  * @throws {RequiredError}
4002
- * @memberof ManagerSportsApi
4239
+ * @memberof ManagerEventsApi
4003
4240
  */
4004
- updateSport(requestParameters, options) {
4005
- return ManagerSportsApiFp(this.configuration).updateSport(requestParameters.id, requestParameters.updateSportRequest, options).then((request) => request(this.axios, this.basePath));
4241
+ publishEvent(requestParameters, options) {
4242
+ return ManagerEventsApiFp(this.configuration).publishEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
4243
+ }
4244
+ /**
4245
+ *
4246
+ * @summary Unpublish an event
4247
+ * @param {ManagerEventsApiUnpublishEventRequest} requestParameters Request parameters.
4248
+ * @param {*} [options] Override http request option.
4249
+ * @throws {RequiredError}
4250
+ * @memberof ManagerEventsApi
4251
+ */
4252
+ unpublishEvent(requestParameters, options) {
4253
+ return ManagerEventsApiFp(this.configuration).unpublishEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
4006
4254
  }
4007
4255
  }
4008
4256
  /**
4009
- * StaffClubAnalyticsApi - axios parameter creator
4257
+ * ManagerSportsApi - axios parameter creator
4010
4258
  * @export
4011
4259
  */
4012
- export const StaffClubAnalyticsApiAxiosParamCreator = function (configuration) {
4260
+ export const ManagerSportsApiAxiosParamCreator = function (configuration) {
4261
+ return {
4262
+ /**
4263
+ *
4264
+ * @summary Créer un sport dans un club
4265
+ * @param {CreateSportRequest} createSportRequest
4266
+ * @param {*} [options] Override http request option.
4267
+ * @throws {RequiredError}
4268
+ */
4269
+ createSport: (createSportRequest_1, ...args_1) => __awaiter(this, [createSportRequest_1, ...args_1], void 0, function* (createSportRequest, options = {}) {
4270
+ // verify required parameter 'createSportRequest' is not null or undefined
4271
+ assertParamExists('createSport', 'createSportRequest', createSportRequest);
4272
+ const localVarPath = `/api/sports`;
4273
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4274
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4275
+ let baseOptions;
4276
+ if (configuration) {
4277
+ baseOptions = configuration.baseOptions;
4278
+ }
4279
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4280
+ const localVarHeaderParameter = {};
4281
+ const localVarQueryParameter = {};
4282
+ // authentication bearerAuth required
4283
+ // http bearer authentication required
4284
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4285
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4286
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4287
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4288
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4289
+ localVarRequestOptions.data = serializeDataIfNeeded(createSportRequest, localVarRequestOptions, configuration);
4290
+ return {
4291
+ url: toPathString(localVarUrlObj),
4292
+ options: localVarRequestOptions,
4293
+ };
4294
+ }),
4295
+ /**
4296
+ *
4297
+ * @summary Supprimer un sport
4298
+ * @param {string} id ID du sport
4299
+ * @param {*} [options] Override http request option.
4300
+ * @throws {RequiredError}
4301
+ */
4302
+ deleteSport: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
4303
+ // verify required parameter 'id' is not null or undefined
4304
+ assertParamExists('deleteSport', 'id', id);
4305
+ const localVarPath = `/api/sports/{id}`
4306
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
4307
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4308
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4309
+ let baseOptions;
4310
+ if (configuration) {
4311
+ baseOptions = configuration.baseOptions;
4312
+ }
4313
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
4314
+ const localVarHeaderParameter = {};
4315
+ const localVarQueryParameter = {};
4316
+ // authentication bearerAuth required
4317
+ // http bearer authentication required
4318
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4319
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4320
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4321
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4322
+ return {
4323
+ url: toPathString(localVarUrlObj),
4324
+ options: localVarRequestOptions,
4325
+ };
4326
+ }),
4327
+ /**
4328
+ *
4329
+ * @summary Mettre à jour un sport
4330
+ * @param {string} id ID du sport
4331
+ * @param {UpdateSportRequest} updateSportRequest
4332
+ * @param {*} [options] Override http request option.
4333
+ * @throws {RequiredError}
4334
+ */
4335
+ updateSport: (id_1, updateSportRequest_1, ...args_1) => __awaiter(this, [id_1, updateSportRequest_1, ...args_1], void 0, function* (id, updateSportRequest, options = {}) {
4336
+ // verify required parameter 'id' is not null or undefined
4337
+ assertParamExists('updateSport', 'id', id);
4338
+ // verify required parameter 'updateSportRequest' is not null or undefined
4339
+ assertParamExists('updateSport', 'updateSportRequest', updateSportRequest);
4340
+ const localVarPath = `/api/sports/{id}`
4341
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
4342
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4343
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4344
+ let baseOptions;
4345
+ if (configuration) {
4346
+ baseOptions = configuration.baseOptions;
4347
+ }
4348
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
4349
+ const localVarHeaderParameter = {};
4350
+ const localVarQueryParameter = {};
4351
+ // authentication bearerAuth required
4352
+ // http bearer authentication required
4353
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4354
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4355
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4356
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4357
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4358
+ localVarRequestOptions.data = serializeDataIfNeeded(updateSportRequest, localVarRequestOptions, configuration);
4359
+ return {
4360
+ url: toPathString(localVarUrlObj),
4361
+ options: localVarRequestOptions,
4362
+ };
4363
+ }),
4364
+ };
4365
+ };
4366
+ /**
4367
+ * ManagerSportsApi - functional programming interface
4368
+ * @export
4369
+ */
4370
+ export const ManagerSportsApiFp = function (configuration) {
4371
+ const localVarAxiosParamCreator = ManagerSportsApiAxiosParamCreator(configuration);
4372
+ return {
4373
+ /**
4374
+ *
4375
+ * @summary Créer un sport dans un club
4376
+ * @param {CreateSportRequest} createSportRequest
4377
+ * @param {*} [options] Override http request option.
4378
+ * @throws {RequiredError}
4379
+ */
4380
+ createSport(createSportRequest, options) {
4381
+ return __awaiter(this, void 0, void 0, function* () {
4382
+ var _a, _b, _c;
4383
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createSport(createSportRequest, options);
4384
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4385
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerSportsApi.createSport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4386
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4387
+ });
4388
+ },
4389
+ /**
4390
+ *
4391
+ * @summary Supprimer un sport
4392
+ * @param {string} id ID du sport
4393
+ * @param {*} [options] Override http request option.
4394
+ * @throws {RequiredError}
4395
+ */
4396
+ deleteSport(id, options) {
4397
+ return __awaiter(this, void 0, void 0, function* () {
4398
+ var _a, _b, _c;
4399
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSport(id, options);
4400
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4401
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerSportsApi.deleteSport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4402
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4403
+ });
4404
+ },
4405
+ /**
4406
+ *
4407
+ * @summary Mettre à jour un sport
4408
+ * @param {string} id ID du sport
4409
+ * @param {UpdateSportRequest} updateSportRequest
4410
+ * @param {*} [options] Override http request option.
4411
+ * @throws {RequiredError}
4412
+ */
4413
+ updateSport(id, updateSportRequest, options) {
4414
+ return __awaiter(this, void 0, void 0, function* () {
4415
+ var _a, _b, _c;
4416
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSport(id, updateSportRequest, options);
4417
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4418
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerSportsApi.updateSport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4419
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4420
+ });
4421
+ },
4422
+ };
4423
+ };
4424
+ /**
4425
+ * ManagerSportsApi - factory interface
4426
+ * @export
4427
+ */
4428
+ export const ManagerSportsApiFactory = function (configuration, basePath, axios) {
4429
+ const localVarFp = ManagerSportsApiFp(configuration);
4430
+ return {
4431
+ /**
4432
+ *
4433
+ * @summary Créer un sport dans un club
4434
+ * @param {ManagerSportsApiCreateSportRequest} requestParameters Request parameters.
4435
+ * @param {*} [options] Override http request option.
4436
+ * @throws {RequiredError}
4437
+ */
4438
+ createSport(requestParameters, options) {
4439
+ return localVarFp.createSport(requestParameters.createSportRequest, options).then((request) => request(axios, basePath));
4440
+ },
4441
+ /**
4442
+ *
4443
+ * @summary Supprimer un sport
4444
+ * @param {ManagerSportsApiDeleteSportRequest} requestParameters Request parameters.
4445
+ * @param {*} [options] Override http request option.
4446
+ * @throws {RequiredError}
4447
+ */
4448
+ deleteSport(requestParameters, options) {
4449
+ return localVarFp.deleteSport(requestParameters.id, options).then((request) => request(axios, basePath));
4450
+ },
4451
+ /**
4452
+ *
4453
+ * @summary Mettre à jour un sport
4454
+ * @param {ManagerSportsApiUpdateSportRequest} requestParameters Request parameters.
4455
+ * @param {*} [options] Override http request option.
4456
+ * @throws {RequiredError}
4457
+ */
4458
+ updateSport(requestParameters, options) {
4459
+ return localVarFp.updateSport(requestParameters.id, requestParameters.updateSportRequest, options).then((request) => request(axios, basePath));
4460
+ },
4461
+ };
4462
+ };
4463
+ /**
4464
+ * ManagerSportsApi - object-oriented interface
4465
+ * @export
4466
+ * @class ManagerSportsApi
4467
+ * @extends {BaseAPI}
4468
+ */
4469
+ export class ManagerSportsApi extends BaseAPI {
4470
+ /**
4471
+ *
4472
+ * @summary Créer un sport dans un club
4473
+ * @param {ManagerSportsApiCreateSportRequest} requestParameters Request parameters.
4474
+ * @param {*} [options] Override http request option.
4475
+ * @throws {RequiredError}
4476
+ * @memberof ManagerSportsApi
4477
+ */
4478
+ createSport(requestParameters, options) {
4479
+ return ManagerSportsApiFp(this.configuration).createSport(requestParameters.createSportRequest, options).then((request) => request(this.axios, this.basePath));
4480
+ }
4481
+ /**
4482
+ *
4483
+ * @summary Supprimer un sport
4484
+ * @param {ManagerSportsApiDeleteSportRequest} requestParameters Request parameters.
4485
+ * @param {*} [options] Override http request option.
4486
+ * @throws {RequiredError}
4487
+ * @memberof ManagerSportsApi
4488
+ */
4489
+ deleteSport(requestParameters, options) {
4490
+ return ManagerSportsApiFp(this.configuration).deleteSport(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
4491
+ }
4492
+ /**
4493
+ *
4494
+ * @summary Mettre à jour un sport
4495
+ * @param {ManagerSportsApiUpdateSportRequest} requestParameters Request parameters.
4496
+ * @param {*} [options] Override http request option.
4497
+ * @throws {RequiredError}
4498
+ * @memberof ManagerSportsApi
4499
+ */
4500
+ updateSport(requestParameters, options) {
4501
+ return ManagerSportsApiFp(this.configuration).updateSport(requestParameters.id, requestParameters.updateSportRequest, options).then((request) => request(this.axios, this.basePath));
4502
+ }
4503
+ }
4504
+ /**
4505
+ * StaffClubAnalyticsApi - axios parameter creator
4506
+ * @export
4507
+ */
4508
+ export const StaffClubAnalyticsApiAxiosParamCreator = function (configuration) {
4013
4509
  return {
4014
4510
  /**
4015
4511
  *
@@ -4431,19 +4927,19 @@ export class StaffClubsApi extends BaseAPI {
4431
4927
  }
4432
4928
  }
4433
4929
  /**
4434
- * StaffProfileApi - axios parameter creator
4930
+ * StaffEventsApi - axios parameter creator
4435
4931
  * @export
4436
4932
  */
4437
- export const StaffProfileApiAxiosParamCreator = function (configuration) {
4933
+ export const StaffEventsApiAxiosParamCreator = function (configuration) {
4438
4934
  return {
4439
4935
  /**
4440
4936
  *
4441
- * @summary Récupère les rôles de l\'utilisateur dans les clubs
4937
+ * @summary Get all events for current club (including unpublished)
4442
4938
  * @param {*} [options] Override http request option.
4443
4939
  * @throws {RequiredError}
4444
4940
  */
4445
- getUserRolesInClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
4446
- const localVarPath = `/api/users/me/roles`;
4941
+ getEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
4942
+ const localVarPath = `/api/events/staff/getEvents`;
4447
4943
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4448
4944
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4449
4945
  let baseOptions;
@@ -4467,10 +4963,106 @@ export const StaffProfileApiAxiosParamCreator = function (configuration) {
4467
4963
  };
4468
4964
  };
4469
4965
  /**
4470
- * StaffProfileApi - functional programming interface
4966
+ * StaffEventsApi - functional programming interface
4471
4967
  * @export
4472
4968
  */
4473
- export const StaffProfileApiFp = function (configuration) {
4969
+ export const StaffEventsApiFp = function (configuration) {
4970
+ const localVarAxiosParamCreator = StaffEventsApiAxiosParamCreator(configuration);
4971
+ return {
4972
+ /**
4973
+ *
4974
+ * @summary Get all events for current club (including unpublished)
4975
+ * @param {*} [options] Override http request option.
4976
+ * @throws {RequiredError}
4977
+ */
4978
+ getEventsByClub(options) {
4979
+ return __awaiter(this, void 0, void 0, function* () {
4980
+ var _a, _b, _c;
4981
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventsByClub(options);
4982
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4983
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StaffEventsApi.getEventsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4984
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4985
+ });
4986
+ },
4987
+ };
4988
+ };
4989
+ /**
4990
+ * StaffEventsApi - factory interface
4991
+ * @export
4992
+ */
4993
+ export const StaffEventsApiFactory = function (configuration, basePath, axios) {
4994
+ const localVarFp = StaffEventsApiFp(configuration);
4995
+ return {
4996
+ /**
4997
+ *
4998
+ * @summary Get all events for current club (including unpublished)
4999
+ * @param {*} [options] Override http request option.
5000
+ * @throws {RequiredError}
5001
+ */
5002
+ getEventsByClub(options) {
5003
+ return localVarFp.getEventsByClub(options).then((request) => request(axios, basePath));
5004
+ },
5005
+ };
5006
+ };
5007
+ /**
5008
+ * StaffEventsApi - object-oriented interface
5009
+ * @export
5010
+ * @class StaffEventsApi
5011
+ * @extends {BaseAPI}
5012
+ */
5013
+ export class StaffEventsApi extends BaseAPI {
5014
+ /**
5015
+ *
5016
+ * @summary Get all events for current club (including unpublished)
5017
+ * @param {*} [options] Override http request option.
5018
+ * @throws {RequiredError}
5019
+ * @memberof StaffEventsApi
5020
+ */
5021
+ getEventsByClub(options) {
5022
+ return StaffEventsApiFp(this.configuration).getEventsByClub(options).then((request) => request(this.axios, this.basePath));
5023
+ }
5024
+ }
5025
+ /**
5026
+ * StaffProfileApi - axios parameter creator
5027
+ * @export
5028
+ */
5029
+ export const StaffProfileApiAxiosParamCreator = function (configuration) {
5030
+ return {
5031
+ /**
5032
+ *
5033
+ * @summary Récupère les rôles de l\'utilisateur dans les clubs
5034
+ * @param {*} [options] Override http request option.
5035
+ * @throws {RequiredError}
5036
+ */
5037
+ getUserRolesInClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
5038
+ const localVarPath = `/api/users/me/roles`;
5039
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5040
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5041
+ let baseOptions;
5042
+ if (configuration) {
5043
+ baseOptions = configuration.baseOptions;
5044
+ }
5045
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5046
+ const localVarHeaderParameter = {};
5047
+ const localVarQueryParameter = {};
5048
+ // authentication bearerAuth required
5049
+ // http bearer authentication required
5050
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5051
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5052
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5053
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5054
+ return {
5055
+ url: toPathString(localVarUrlObj),
5056
+ options: localVarRequestOptions,
5057
+ };
5058
+ }),
5059
+ };
5060
+ };
5061
+ /**
5062
+ * StaffProfileApi - functional programming interface
5063
+ * @export
5064
+ */
5065
+ export const StaffProfileApiFp = function (configuration) {
4474
5066
  const localVarAxiosParamCreator = StaffProfileApiAxiosParamCreator(configuration);
4475
5067
  return {
4476
5068
  /**
@@ -6017,6 +6609,62 @@ export const UserProfileApiAxiosParamCreator = function (configuration) {
6017
6609
  options: localVarRequestOptions,
6018
6610
  };
6019
6611
  }),
6612
+ /**
6613
+ *
6614
+ * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
6615
+ * @param {*} [options] Override http request option.
6616
+ * @throws {RequiredError}
6617
+ */
6618
+ getFrequentlyPlayedWith: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6619
+ const localVarPath = `/api/users/me/frequentlyPlayedWith`;
6620
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6621
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6622
+ let baseOptions;
6623
+ if (configuration) {
6624
+ baseOptions = configuration.baseOptions;
6625
+ }
6626
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6627
+ const localVarHeaderParameter = {};
6628
+ const localVarQueryParameter = {};
6629
+ // authentication bearerAuth required
6630
+ // http bearer authentication required
6631
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6632
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6633
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6634
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6635
+ return {
6636
+ url: toPathString(localVarUrlObj),
6637
+ options: localVarRequestOptions,
6638
+ };
6639
+ }),
6640
+ /**
6641
+ *
6642
+ * @summary Clubs les plus fréquemment visités par l\'utilisateur connecté
6643
+ * @param {*} [options] Override http request option.
6644
+ * @throws {RequiredError}
6645
+ */
6646
+ getFrequentlyVisitedClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6647
+ const localVarPath = `/api/users/me/frequentlyVisitedClub`;
6648
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6649
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6650
+ let baseOptions;
6651
+ if (configuration) {
6652
+ baseOptions = configuration.baseOptions;
6653
+ }
6654
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6655
+ const localVarHeaderParameter = {};
6656
+ const localVarQueryParameter = {};
6657
+ // authentication bearerAuth required
6658
+ // http bearer authentication required
6659
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6660
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6661
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6662
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6663
+ return {
6664
+ url: toPathString(localVarUrlObj),
6665
+ options: localVarRequestOptions,
6666
+ };
6667
+ }),
6020
6668
  /**
6021
6669
  *
6022
6670
  * @summary Récupère l\'URL de la photo de profil de l\'utilisateur connecté
@@ -6045,6 +6693,62 @@ export const UserProfileApiAxiosParamCreator = function (configuration) {
6045
6693
  options: localVarRequestOptions,
6046
6694
  };
6047
6695
  }),
6696
+ /**
6697
+ *
6698
+ * @summary Récupère la ville de l\'utilisateur connecté
6699
+ * @param {*} [options] Override http request option.
6700
+ * @throws {RequiredError}
6701
+ */
6702
+ getUserCity: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6703
+ const localVarPath = `/api/users/me/city`;
6704
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6705
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6706
+ let baseOptions;
6707
+ if (configuration) {
6708
+ baseOptions = configuration.baseOptions;
6709
+ }
6710
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6711
+ const localVarHeaderParameter = {};
6712
+ const localVarQueryParameter = {};
6713
+ // authentication bearerAuth required
6714
+ // http bearer authentication required
6715
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6716
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6717
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6718
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6719
+ return {
6720
+ url: toPathString(localVarUrlObj),
6721
+ options: localVarRequestOptions,
6722
+ };
6723
+ }),
6724
+ /**
6725
+ *
6726
+ * @summary Récupère la description de l\'utilisateur connecté
6727
+ * @param {*} [options] Override http request option.
6728
+ * @throws {RequiredError}
6729
+ */
6730
+ getUserDescription: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6731
+ const localVarPath = `/api/users/me/description`;
6732
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6733
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6734
+ let baseOptions;
6735
+ if (configuration) {
6736
+ baseOptions = configuration.baseOptions;
6737
+ }
6738
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6739
+ const localVarHeaderParameter = {};
6740
+ const localVarQueryParameter = {};
6741
+ // authentication bearerAuth required
6742
+ // http bearer authentication required
6743
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6744
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6745
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6746
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6747
+ return {
6748
+ url: toPathString(localVarUrlObj),
6749
+ options: localVarRequestOptions,
6750
+ };
6751
+ }),
6048
6752
  /**
6049
6753
  *
6050
6754
  * @summary Récupère les informations de l\'utilisateur connecté
@@ -6073,6 +6777,34 @@ export const UserProfileApiAxiosParamCreator = function (configuration) {
6073
6777
  options: localVarRequestOptions,
6074
6778
  };
6075
6779
  }),
6780
+ /**
6781
+ *
6782
+ * @summary Récupère la visibilité du profil de l\'utilisateur connecté
6783
+ * @param {*} [options] Override http request option.
6784
+ * @throws {RequiredError}
6785
+ */
6786
+ getUserProfileVisibility: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6787
+ const localVarPath = `/api/users/me/profile-visibility`;
6788
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6789
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6790
+ let baseOptions;
6791
+ if (configuration) {
6792
+ baseOptions = configuration.baseOptions;
6793
+ }
6794
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6795
+ const localVarHeaderParameter = {};
6796
+ const localVarQueryParameter = {};
6797
+ // authentication bearerAuth required
6798
+ // http bearer authentication required
6799
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6800
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6801
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6802
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6803
+ return {
6804
+ url: toPathString(localVarUrlObj),
6805
+ options: localVarRequestOptions,
6806
+ };
6807
+ }),
6076
6808
  /**
6077
6809
  *
6078
6810
  * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
@@ -6139,6 +6871,39 @@ export const UserProfileApiAxiosParamCreator = function (configuration) {
6139
6871
  options: localVarRequestOptions,
6140
6872
  };
6141
6873
  }),
6874
+ /**
6875
+ *
6876
+ * @summary Met à jour la visibilité du profil de l\'utilisateur connecté
6877
+ * @param {UpdateProfileVisibilityRequestBody} updateProfileVisibilityRequestBody
6878
+ * @param {*} [options] Override http request option.
6879
+ * @throws {RequiredError}
6880
+ */
6881
+ updateProfileVisibility: (updateProfileVisibilityRequestBody_1, ...args_1) => __awaiter(this, [updateProfileVisibilityRequestBody_1, ...args_1], void 0, function* (updateProfileVisibilityRequestBody, options = {}) {
6882
+ // verify required parameter 'updateProfileVisibilityRequestBody' is not null or undefined
6883
+ assertParamExists('updateProfileVisibility', 'updateProfileVisibilityRequestBody', updateProfileVisibilityRequestBody);
6884
+ const localVarPath = `/api/users/me/profile-visibility`;
6885
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6886
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6887
+ let baseOptions;
6888
+ if (configuration) {
6889
+ baseOptions = configuration.baseOptions;
6890
+ }
6891
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
6892
+ const localVarHeaderParameter = {};
6893
+ const localVarQueryParameter = {};
6894
+ // authentication bearerAuth required
6895
+ // http bearer authentication required
6896
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6897
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6898
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6899
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6900
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6901
+ localVarRequestOptions.data = serializeDataIfNeeded(updateProfileVisibilityRequestBody, localVarRequestOptions, configuration);
6902
+ return {
6903
+ url: toPathString(localVarUrlObj),
6904
+ options: localVarRequestOptions,
6905
+ };
6906
+ }),
6142
6907
  /**
6143
6908
  *
6144
6909
  * @summary Met à jour les données de l\'utilisateur connecté
@@ -6172,6 +6937,72 @@ export const UserProfileApiAxiosParamCreator = function (configuration) {
6172
6937
  options: localVarRequestOptions,
6173
6938
  };
6174
6939
  }),
6940
+ /**
6941
+ *
6942
+ * @summary Met à jour la ville de l\'utilisateur connecté
6943
+ * @param {UpdateUserCityRequestBody} updateUserCityRequestBody
6944
+ * @param {*} [options] Override http request option.
6945
+ * @throws {RequiredError}
6946
+ */
6947
+ updateUserCity: (updateUserCityRequestBody_1, ...args_1) => __awaiter(this, [updateUserCityRequestBody_1, ...args_1], void 0, function* (updateUserCityRequestBody, options = {}) {
6948
+ // verify required parameter 'updateUserCityRequestBody' is not null or undefined
6949
+ assertParamExists('updateUserCity', 'updateUserCityRequestBody', updateUserCityRequestBody);
6950
+ const localVarPath = `/api/users/me/city`;
6951
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6952
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6953
+ let baseOptions;
6954
+ if (configuration) {
6955
+ baseOptions = configuration.baseOptions;
6956
+ }
6957
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
6958
+ const localVarHeaderParameter = {};
6959
+ const localVarQueryParameter = {};
6960
+ // authentication bearerAuth required
6961
+ // http bearer authentication required
6962
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6963
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6964
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6965
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6966
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6967
+ localVarRequestOptions.data = serializeDataIfNeeded(updateUserCityRequestBody, localVarRequestOptions, configuration);
6968
+ return {
6969
+ url: toPathString(localVarUrlObj),
6970
+ options: localVarRequestOptions,
6971
+ };
6972
+ }),
6973
+ /**
6974
+ *
6975
+ * @summary Met à jour la description de l\'utilisateur connecté
6976
+ * @param {UpdateUserDescriptionRequestBody} updateUserDescriptionRequestBody
6977
+ * @param {*} [options] Override http request option.
6978
+ * @throws {RequiredError}
6979
+ */
6980
+ updateUserDescription: (updateUserDescriptionRequestBody_1, ...args_1) => __awaiter(this, [updateUserDescriptionRequestBody_1, ...args_1], void 0, function* (updateUserDescriptionRequestBody, options = {}) {
6981
+ // verify required parameter 'updateUserDescriptionRequestBody' is not null or undefined
6982
+ assertParamExists('updateUserDescription', 'updateUserDescriptionRequestBody', updateUserDescriptionRequestBody);
6983
+ const localVarPath = `/api/users/me/description`;
6984
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6985
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6986
+ let baseOptions;
6987
+ if (configuration) {
6988
+ baseOptions = configuration.baseOptions;
6989
+ }
6990
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
6991
+ const localVarHeaderParameter = {};
6992
+ const localVarQueryParameter = {};
6993
+ // authentication bearerAuth required
6994
+ // http bearer authentication required
6995
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6996
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6997
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6998
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6999
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7000
+ localVarRequestOptions.data = serializeDataIfNeeded(updateUserDescriptionRequestBody, localVarRequestOptions, configuration);
7001
+ return {
7002
+ url: toPathString(localVarUrlObj),
7003
+ options: localVarRequestOptions,
7004
+ };
7005
+ }),
6175
7006
  };
6176
7007
  };
6177
7008
  /**
@@ -6215,6 +7046,36 @@ export const UserProfileApiFp = function (configuration) {
6215
7046
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6216
7047
  });
6217
7048
  },
7049
+ /**
7050
+ *
7051
+ * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
7052
+ * @param {*} [options] Override http request option.
7053
+ * @throws {RequiredError}
7054
+ */
7055
+ getFrequentlyPlayedWith(options) {
7056
+ return __awaiter(this, void 0, void 0, function* () {
7057
+ var _a, _b, _c;
7058
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getFrequentlyPlayedWith(options);
7059
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7060
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.getFrequentlyPlayedWith']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7061
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7062
+ });
7063
+ },
7064
+ /**
7065
+ *
7066
+ * @summary Clubs les plus fréquemment visités par l\'utilisateur connecté
7067
+ * @param {*} [options] Override http request option.
7068
+ * @throws {RequiredError}
7069
+ */
7070
+ getFrequentlyVisitedClub(options) {
7071
+ return __awaiter(this, void 0, void 0, function* () {
7072
+ var _a, _b, _c;
7073
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getFrequentlyVisitedClub(options);
7074
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7075
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.getFrequentlyVisitedClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7076
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7077
+ });
7078
+ },
6218
7079
  /**
6219
7080
  *
6220
7081
  * @summary Récupère l\'URL de la photo de profil de l\'utilisateur connecté
@@ -6230,6 +7091,36 @@ export const UserProfileApiFp = function (configuration) {
6230
7091
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6231
7092
  });
6232
7093
  },
7094
+ /**
7095
+ *
7096
+ * @summary Récupère la ville de l\'utilisateur connecté
7097
+ * @param {*} [options] Override http request option.
7098
+ * @throws {RequiredError}
7099
+ */
7100
+ getUserCity(options) {
7101
+ return __awaiter(this, void 0, void 0, function* () {
7102
+ var _a, _b, _c;
7103
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserCity(options);
7104
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7105
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.getUserCity']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7106
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7107
+ });
7108
+ },
7109
+ /**
7110
+ *
7111
+ * @summary Récupère la description de l\'utilisateur connecté
7112
+ * @param {*} [options] Override http request option.
7113
+ * @throws {RequiredError}
7114
+ */
7115
+ getUserDescription(options) {
7116
+ return __awaiter(this, void 0, void 0, function* () {
7117
+ var _a, _b, _c;
7118
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserDescription(options);
7119
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7120
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.getUserDescription']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7121
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7122
+ });
7123
+ },
6233
7124
  /**
6234
7125
  *
6235
7126
  * @summary Récupère les informations de l\'utilisateur connecté
@@ -6245,6 +7136,21 @@ export const UserProfileApiFp = function (configuration) {
6245
7136
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6246
7137
  });
6247
7138
  },
7139
+ /**
7140
+ *
7141
+ * @summary Récupère la visibilité du profil de l\'utilisateur connecté
7142
+ * @param {*} [options] Override http request option.
7143
+ * @throws {RequiredError}
7144
+ */
7145
+ getUserProfileVisibility(options) {
7146
+ return __awaiter(this, void 0, void 0, function* () {
7147
+ var _a, _b, _c;
7148
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserProfileVisibility(options);
7149
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7150
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.getUserProfileVisibility']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7151
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7152
+ });
7153
+ },
6248
7154
  /**
6249
7155
  *
6250
7156
  * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
@@ -6277,6 +7183,22 @@ export const UserProfileApiFp = function (configuration) {
6277
7183
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6278
7184
  });
6279
7185
  },
7186
+ /**
7187
+ *
7188
+ * @summary Met à jour la visibilité du profil de l\'utilisateur connecté
7189
+ * @param {UpdateProfileVisibilityRequestBody} updateProfileVisibilityRequestBody
7190
+ * @param {*} [options] Override http request option.
7191
+ * @throws {RequiredError}
7192
+ */
7193
+ updateProfileVisibility(updateProfileVisibilityRequestBody, options) {
7194
+ return __awaiter(this, void 0, void 0, function* () {
7195
+ var _a, _b, _c;
7196
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateProfileVisibility(updateProfileVisibilityRequestBody, options);
7197
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7198
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.updateProfileVisibility']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7199
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7200
+ });
7201
+ },
6280
7202
  /**
6281
7203
  *
6282
7204
  * @summary Met à jour les données de l\'utilisateur connecté
@@ -6293,6 +7215,38 @@ export const UserProfileApiFp = function (configuration) {
6293
7215
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6294
7216
  });
6295
7217
  },
7218
+ /**
7219
+ *
7220
+ * @summary Met à jour la ville de l\'utilisateur connecté
7221
+ * @param {UpdateUserCityRequestBody} updateUserCityRequestBody
7222
+ * @param {*} [options] Override http request option.
7223
+ * @throws {RequiredError}
7224
+ */
7225
+ updateUserCity(updateUserCityRequestBody, options) {
7226
+ return __awaiter(this, void 0, void 0, function* () {
7227
+ var _a, _b, _c;
7228
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserCity(updateUserCityRequestBody, options);
7229
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7230
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.updateUserCity']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7231
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7232
+ });
7233
+ },
7234
+ /**
7235
+ *
7236
+ * @summary Met à jour la description de l\'utilisateur connecté
7237
+ * @param {UpdateUserDescriptionRequestBody} updateUserDescriptionRequestBody
7238
+ * @param {*} [options] Override http request option.
7239
+ * @throws {RequiredError}
7240
+ */
7241
+ updateUserDescription(updateUserDescriptionRequestBody, options) {
7242
+ return __awaiter(this, void 0, void 0, function* () {
7243
+ var _a, _b, _c;
7244
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserDescription(updateUserDescriptionRequestBody, options);
7245
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7246
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.updateUserDescription']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7247
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7248
+ });
7249
+ },
6296
7250
  };
6297
7251
  };
6298
7252
  /**
@@ -6322,6 +7276,24 @@ export const UserProfileApiFactory = function (configuration, basePath, axios) {
6322
7276
  getAllUsers(requestParameters = {}, options) {
6323
7277
  return localVarFp.getAllUsers(requestParameters.limit, requestParameters.skip, requestParameters.search, options).then((request) => request(axios, basePath));
6324
7278
  },
7279
+ /**
7280
+ *
7281
+ * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
7282
+ * @param {*} [options] Override http request option.
7283
+ * @throws {RequiredError}
7284
+ */
7285
+ getFrequentlyPlayedWith(options) {
7286
+ return localVarFp.getFrequentlyPlayedWith(options).then((request) => request(axios, basePath));
7287
+ },
7288
+ /**
7289
+ *
7290
+ * @summary Clubs les plus fréquemment visités par l\'utilisateur connecté
7291
+ * @param {*} [options] Override http request option.
7292
+ * @throws {RequiredError}
7293
+ */
7294
+ getFrequentlyVisitedClub(options) {
7295
+ return localVarFp.getFrequentlyVisitedClub(options).then((request) => request(axios, basePath));
7296
+ },
6325
7297
  /**
6326
7298
  *
6327
7299
  * @summary Récupère l\'URL de la photo de profil de l\'utilisateur connecté
@@ -6331,6 +7303,24 @@ export const UserProfileApiFactory = function (configuration, basePath, axios) {
6331
7303
  getProfilePicture(options) {
6332
7304
  return localVarFp.getProfilePicture(options).then((request) => request(axios, basePath));
6333
7305
  },
7306
+ /**
7307
+ *
7308
+ * @summary Récupère la ville de l\'utilisateur connecté
7309
+ * @param {*} [options] Override http request option.
7310
+ * @throws {RequiredError}
7311
+ */
7312
+ getUserCity(options) {
7313
+ return localVarFp.getUserCity(options).then((request) => request(axios, basePath));
7314
+ },
7315
+ /**
7316
+ *
7317
+ * @summary Récupère la description de l\'utilisateur connecté
7318
+ * @param {*} [options] Override http request option.
7319
+ * @throws {RequiredError}
7320
+ */
7321
+ getUserDescription(options) {
7322
+ return localVarFp.getUserDescription(options).then((request) => request(axios, basePath));
7323
+ },
6334
7324
  /**
6335
7325
  *
6336
7326
  * @summary Récupère les informations de l\'utilisateur connecté
@@ -6340,6 +7330,15 @@ export const UserProfileApiFactory = function (configuration, basePath, axios) {
6340
7330
  getUserInfo(options) {
6341
7331
  return localVarFp.getUserInfo(options).then((request) => request(axios, basePath));
6342
7332
  },
7333
+ /**
7334
+ *
7335
+ * @summary Récupère la visibilité du profil de l\'utilisateur connecté
7336
+ * @param {*} [options] Override http request option.
7337
+ * @throws {RequiredError}
7338
+ */
7339
+ getUserProfileVisibility(options) {
7340
+ return localVarFp.getUserProfileVisibility(options).then((request) => request(axios, basePath));
7341
+ },
6343
7342
  /**
6344
7343
  *
6345
7344
  * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
@@ -6360,6 +7359,16 @@ export const UserProfileApiFactory = function (configuration, basePath, axios) {
6360
7359
  updateProfilePicture(requestParameters, options) {
6361
7360
  return localVarFp.updateProfilePicture(requestParameters.updateProfilePictureRequestBody, options).then((request) => request(axios, basePath));
6362
7361
  },
7362
+ /**
7363
+ *
7364
+ * @summary Met à jour la visibilité du profil de l\'utilisateur connecté
7365
+ * @param {UserProfileApiUpdateProfileVisibilityRequest} requestParameters Request parameters.
7366
+ * @param {*} [options] Override http request option.
7367
+ * @throws {RequiredError}
7368
+ */
7369
+ updateProfileVisibility(requestParameters, options) {
7370
+ return localVarFp.updateProfileVisibility(requestParameters.updateProfileVisibilityRequestBody, options).then((request) => request(axios, basePath));
7371
+ },
6363
7372
  /**
6364
7373
  *
6365
7374
  * @summary Met à jour les données de l\'utilisateur connecté
@@ -6370,6 +7379,26 @@ export const UserProfileApiFactory = function (configuration, basePath, axios) {
6370
7379
  updateUser(requestParameters, options) {
6371
7380
  return localVarFp.updateUser(requestParameters.updateUserRequestBody, options).then((request) => request(axios, basePath));
6372
7381
  },
7382
+ /**
7383
+ *
7384
+ * @summary Met à jour la ville de l\'utilisateur connecté
7385
+ * @param {UserProfileApiUpdateUserCityRequest} requestParameters Request parameters.
7386
+ * @param {*} [options] Override http request option.
7387
+ * @throws {RequiredError}
7388
+ */
7389
+ updateUserCity(requestParameters, options) {
7390
+ return localVarFp.updateUserCity(requestParameters.updateUserCityRequestBody, options).then((request) => request(axios, basePath));
7391
+ },
7392
+ /**
7393
+ *
7394
+ * @summary Met à jour la description de l\'utilisateur connecté
7395
+ * @param {UserProfileApiUpdateUserDescriptionRequest} requestParameters Request parameters.
7396
+ * @param {*} [options] Override http request option.
7397
+ * @throws {RequiredError}
7398
+ */
7399
+ updateUserDescription(requestParameters, options) {
7400
+ return localVarFp.updateUserDescription(requestParameters.updateUserDescriptionRequestBody, options).then((request) => request(axios, basePath));
7401
+ },
6373
7402
  };
6374
7403
  };
6375
7404
  /**
@@ -6401,6 +7430,26 @@ export class UserProfileApi extends BaseAPI {
6401
7430
  getAllUsers(requestParameters = {}, options) {
6402
7431
  return UserProfileApiFp(this.configuration).getAllUsers(requestParameters.limit, requestParameters.skip, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
6403
7432
  }
7433
+ /**
7434
+ *
7435
+ * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
7436
+ * @param {*} [options] Override http request option.
7437
+ * @throws {RequiredError}
7438
+ * @memberof UserProfileApi
7439
+ */
7440
+ getFrequentlyPlayedWith(options) {
7441
+ return UserProfileApiFp(this.configuration).getFrequentlyPlayedWith(options).then((request) => request(this.axios, this.basePath));
7442
+ }
7443
+ /**
7444
+ *
7445
+ * @summary Clubs les plus fréquemment visités par l\'utilisateur connecté
7446
+ * @param {*} [options] Override http request option.
7447
+ * @throws {RequiredError}
7448
+ * @memberof UserProfileApi
7449
+ */
7450
+ getFrequentlyVisitedClub(options) {
7451
+ return UserProfileApiFp(this.configuration).getFrequentlyVisitedClub(options).then((request) => request(this.axios, this.basePath));
7452
+ }
6404
7453
  /**
6405
7454
  *
6406
7455
  * @summary Récupère l\'URL de la photo de profil de l\'utilisateur connecté
@@ -6411,6 +7460,26 @@ export class UserProfileApi extends BaseAPI {
6411
7460
  getProfilePicture(options) {
6412
7461
  return UserProfileApiFp(this.configuration).getProfilePicture(options).then((request) => request(this.axios, this.basePath));
6413
7462
  }
7463
+ /**
7464
+ *
7465
+ * @summary Récupère la ville de l\'utilisateur connecté
7466
+ * @param {*} [options] Override http request option.
7467
+ * @throws {RequiredError}
7468
+ * @memberof UserProfileApi
7469
+ */
7470
+ getUserCity(options) {
7471
+ return UserProfileApiFp(this.configuration).getUserCity(options).then((request) => request(this.axios, this.basePath));
7472
+ }
7473
+ /**
7474
+ *
7475
+ * @summary Récupère la description de l\'utilisateur connecté
7476
+ * @param {*} [options] Override http request option.
7477
+ * @throws {RequiredError}
7478
+ * @memberof UserProfileApi
7479
+ */
7480
+ getUserDescription(options) {
7481
+ return UserProfileApiFp(this.configuration).getUserDescription(options).then((request) => request(this.axios, this.basePath));
7482
+ }
6414
7483
  /**
6415
7484
  *
6416
7485
  * @summary Récupère les informations de l\'utilisateur connecté
@@ -6421,6 +7490,16 @@ export class UserProfileApi extends BaseAPI {
6421
7490
  getUserInfo(options) {
6422
7491
  return UserProfileApiFp(this.configuration).getUserInfo(options).then((request) => request(this.axios, this.basePath));
6423
7492
  }
7493
+ /**
7494
+ *
7495
+ * @summary Récupère la visibilité du profil de l\'utilisateur connecté
7496
+ * @param {*} [options] Override http request option.
7497
+ * @throws {RequiredError}
7498
+ * @memberof UserProfileApi
7499
+ */
7500
+ getUserProfileVisibility(options) {
7501
+ return UserProfileApiFp(this.configuration).getUserProfileVisibility(options).then((request) => request(this.axios, this.basePath));
7502
+ }
6424
7503
  /**
6425
7504
  *
6426
7505
  * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
@@ -6443,6 +7522,17 @@ export class UserProfileApi extends BaseAPI {
6443
7522
  updateProfilePicture(requestParameters, options) {
6444
7523
  return UserProfileApiFp(this.configuration).updateProfilePicture(requestParameters.updateProfilePictureRequestBody, options).then((request) => request(this.axios, this.basePath));
6445
7524
  }
7525
+ /**
7526
+ *
7527
+ * @summary Met à jour la visibilité du profil de l\'utilisateur connecté
7528
+ * @param {UserProfileApiUpdateProfileVisibilityRequest} requestParameters Request parameters.
7529
+ * @param {*} [options] Override http request option.
7530
+ * @throws {RequiredError}
7531
+ * @memberof UserProfileApi
7532
+ */
7533
+ updateProfileVisibility(requestParameters, options) {
7534
+ return UserProfileApiFp(this.configuration).updateProfileVisibility(requestParameters.updateProfileVisibilityRequestBody, options).then((request) => request(this.axios, this.basePath));
7535
+ }
6446
7536
  /**
6447
7537
  *
6448
7538
  * @summary Met à jour les données de l\'utilisateur connecté
@@ -6454,6 +7544,28 @@ export class UserProfileApi extends BaseAPI {
6454
7544
  updateUser(requestParameters, options) {
6455
7545
  return UserProfileApiFp(this.configuration).updateUser(requestParameters.updateUserRequestBody, options).then((request) => request(this.axios, this.basePath));
6456
7546
  }
7547
+ /**
7548
+ *
7549
+ * @summary Met à jour la ville de l\'utilisateur connecté
7550
+ * @param {UserProfileApiUpdateUserCityRequest} requestParameters Request parameters.
7551
+ * @param {*} [options] Override http request option.
7552
+ * @throws {RequiredError}
7553
+ * @memberof UserProfileApi
7554
+ */
7555
+ updateUserCity(requestParameters, options) {
7556
+ return UserProfileApiFp(this.configuration).updateUserCity(requestParameters.updateUserCityRequestBody, options).then((request) => request(this.axios, this.basePath));
7557
+ }
7558
+ /**
7559
+ *
7560
+ * @summary Met à jour la description de l\'utilisateur connecté
7561
+ * @param {UserProfileApiUpdateUserDescriptionRequest} requestParameters Request parameters.
7562
+ * @param {*} [options] Override http request option.
7563
+ * @throws {RequiredError}
7564
+ * @memberof UserProfileApi
7565
+ */
7566
+ updateUserDescription(requestParameters, options) {
7567
+ return UserProfileApiFp(this.configuration).updateUserDescription(requestParameters.updateUserDescriptionRequestBody, options).then((request) => request(this.axios, this.basePath));
7568
+ }
6457
7569
  }
6458
7570
  /**
6459
7571
  * UserSubscriptionsApi - axios parameter creator