@tennac-booking/sdk 1.0.23 → 1.0.25

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 +16 -2
  2. package/README.md +31 -7
  3. package/api.ts +1397 -512
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +806 -259
  8. package/dist/api.js +964 -420
  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 +806 -259
  16. package/dist/esm/api.js +962 -414
  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/AddPaymentMethodSetupRequestBody.md +20 -0
  29. package/docs/AddPaymentMethodSetupResponse.md +24 -0
  30. package/docs/BlockSlotResponse.md +1 -1
  31. package/docs/ClubSettings.md +14 -8
  32. package/docs/ConfirmPaymentMethodSetupRequestBody.md +0 -2
  33. package/docs/{DeleteClubSettings200Response.md → FavoriteClubResponse.md} +5 -3
  34. package/docs/FrequentlyPlayedWithItem.md +28 -0
  35. package/docs/FrequentlyVisitedClubItem.md +24 -0
  36. package/docs/LevelBySportsItem.md +22 -0
  37. package/docs/ProfilePictureResponse.md +20 -0
  38. package/docs/ProfileVisibilityResponse.md +20 -0
  39. package/docs/SetupPaymentMethodRequestBody.md +0 -2
  40. package/docs/StaffClubsApi.md +56 -0
  41. package/docs/UpdateLevelBySportsRequestBody.md +20 -0
  42. package/docs/UpdateProfilePictureRequestBody.md +20 -0
  43. package/docs/UpdateProfileVisibilityRequestBody.md +20 -0
  44. package/docs/UpdateUserCityRequestBody.md +20 -0
  45. package/docs/UpdateUserDescriptionRequestBody.md +20 -0
  46. package/docs/UserApi.md +0 -56
  47. package/docs/UserCityResponse.md +20 -0
  48. package/docs/UserDescriptionResponse.md +20 -0
  49. package/docs/UserPaymentApi.md +55 -0
  50. package/docs/UserProfileApi.md +556 -0
  51. package/index.ts +1 -1
  52. package/package.json +1 -1
  53. package/docs/ManagerClubSettingsApi.md +0 -172
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.23
8
+ * The version of the OpenAPI document: 1.0.25
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -23,8 +23,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
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.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 = exports.ManagerClubSettingsApi = exports.ManagerClubSettingsApiFactory = exports.ManagerClubSettingsApiFp = exports.ManagerClubSettingsApiAxiosParamCreator = 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 = 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;
28
28
  const axios_1 = require("axios");
29
29
  // Some imports not used depending on template conditions
30
30
  // @ts-ignore
@@ -2710,254 +2710,6 @@ class ManagerClubRolesApi extends base_1.BaseAPI {
2710
2710
  }
2711
2711
  }
2712
2712
  exports.ManagerClubRolesApi = ManagerClubRolesApi;
2713
- /**
2714
- * ManagerClubSettingsApi - axios parameter creator
2715
- * @export
2716
- */
2717
- const ManagerClubSettingsApiAxiosParamCreator = function (configuration) {
2718
- return {
2719
- /**
2720
- *
2721
- * @summary Créer les paramètres d\'un club
2722
- * @param {CreateClubSettingsRequest} createClubSettingsRequest
2723
- * @param {*} [options] Override http request option.
2724
- * @throws {RequiredError}
2725
- */
2726
- createClubSettings: (createClubSettingsRequest_1, ...args_1) => __awaiter(this, [createClubSettingsRequest_1, ...args_1], void 0, function* (createClubSettingsRequest, options = {}) {
2727
- // verify required parameter 'createClubSettingsRequest' is not null or undefined
2728
- (0, common_1.assertParamExists)('createClubSettings', 'createClubSettingsRequest', createClubSettingsRequest);
2729
- const localVarPath = `/api/club-settings`;
2730
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2731
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2732
- let baseOptions;
2733
- if (configuration) {
2734
- baseOptions = configuration.baseOptions;
2735
- }
2736
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2737
- const localVarHeaderParameter = {};
2738
- const localVarQueryParameter = {};
2739
- // authentication bearerAuth required
2740
- // http bearer authentication required
2741
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2742
- localVarHeaderParameter['Content-Type'] = 'application/json';
2743
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2744
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2745
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2746
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createClubSettingsRequest, localVarRequestOptions, configuration);
2747
- return {
2748
- url: (0, common_1.toPathString)(localVarUrlObj),
2749
- options: localVarRequestOptions,
2750
- };
2751
- }),
2752
- /**
2753
- *
2754
- * @summary Supprimer les paramètres d\'un club
2755
- * @param {DeleteClubSettingsRequest} deleteClubSettingsRequest
2756
- * @param {*} [options] Override http request option.
2757
- * @throws {RequiredError}
2758
- */
2759
- deleteClubSettings: (deleteClubSettingsRequest_1, ...args_1) => __awaiter(this, [deleteClubSettingsRequest_1, ...args_1], void 0, function* (deleteClubSettingsRequest, options = {}) {
2760
- // verify required parameter 'deleteClubSettingsRequest' is not null or undefined
2761
- (0, common_1.assertParamExists)('deleteClubSettings', 'deleteClubSettingsRequest', deleteClubSettingsRequest);
2762
- const localVarPath = `/api/club-settings`;
2763
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2764
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2765
- let baseOptions;
2766
- if (configuration) {
2767
- baseOptions = configuration.baseOptions;
2768
- }
2769
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
2770
- const localVarHeaderParameter = {};
2771
- const localVarQueryParameter = {};
2772
- // authentication bearerAuth required
2773
- // http bearer authentication required
2774
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2775
- localVarHeaderParameter['Content-Type'] = 'application/json';
2776
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2777
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2778
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2779
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(deleteClubSettingsRequest, localVarRequestOptions, configuration);
2780
- return {
2781
- url: (0, common_1.toPathString)(localVarUrlObj),
2782
- options: localVarRequestOptions,
2783
- };
2784
- }),
2785
- /**
2786
- *
2787
- * @summary Mettre à jour les paramètres d\'un club
2788
- * @param {UpdateClubSettingsRequest} updateClubSettingsRequest
2789
- * @param {*} [options] Override http request option.
2790
- * @throws {RequiredError}
2791
- */
2792
- updateClubSettings: (updateClubSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubSettingsRequest_1, ...args_1], void 0, function* (updateClubSettingsRequest, options = {}) {
2793
- // verify required parameter 'updateClubSettingsRequest' is not null or undefined
2794
- (0, common_1.assertParamExists)('updateClubSettings', 'updateClubSettingsRequest', updateClubSettingsRequest);
2795
- const localVarPath = `/api/club-settings`;
2796
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2797
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2798
- let baseOptions;
2799
- if (configuration) {
2800
- baseOptions = configuration.baseOptions;
2801
- }
2802
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
2803
- const localVarHeaderParameter = {};
2804
- const localVarQueryParameter = {};
2805
- // authentication bearerAuth required
2806
- // http bearer authentication required
2807
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2808
- localVarHeaderParameter['Content-Type'] = 'application/json';
2809
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2810
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2811
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2812
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubSettingsRequest, localVarRequestOptions, configuration);
2813
- return {
2814
- url: (0, common_1.toPathString)(localVarUrlObj),
2815
- options: localVarRequestOptions,
2816
- };
2817
- }),
2818
- };
2819
- };
2820
- exports.ManagerClubSettingsApiAxiosParamCreator = ManagerClubSettingsApiAxiosParamCreator;
2821
- /**
2822
- * ManagerClubSettingsApi - functional programming interface
2823
- * @export
2824
- */
2825
- const ManagerClubSettingsApiFp = function (configuration) {
2826
- const localVarAxiosParamCreator = (0, exports.ManagerClubSettingsApiAxiosParamCreator)(configuration);
2827
- return {
2828
- /**
2829
- *
2830
- * @summary Créer les paramètres d\'un club
2831
- * @param {CreateClubSettingsRequest} createClubSettingsRequest
2832
- * @param {*} [options] Override http request option.
2833
- * @throws {RequiredError}
2834
- */
2835
- createClubSettings(createClubSettingsRequest, options) {
2836
- return __awaiter(this, void 0, void 0, function* () {
2837
- var _a, _b, _c;
2838
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createClubSettings(createClubSettingsRequest, options);
2839
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2840
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubSettingsApi.createClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2841
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2842
- });
2843
- },
2844
- /**
2845
- *
2846
- * @summary Supprimer les paramètres d\'un club
2847
- * @param {DeleteClubSettingsRequest} deleteClubSettingsRequest
2848
- * @param {*} [options] Override http request option.
2849
- * @throws {RequiredError}
2850
- */
2851
- deleteClubSettings(deleteClubSettingsRequest, options) {
2852
- return __awaiter(this, void 0, void 0, function* () {
2853
- var _a, _b, _c;
2854
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteClubSettings(deleteClubSettingsRequest, options);
2855
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2856
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubSettingsApi.deleteClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2857
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2858
- });
2859
- },
2860
- /**
2861
- *
2862
- * @summary Mettre à jour les paramètres d\'un club
2863
- * @param {UpdateClubSettingsRequest} updateClubSettingsRequest
2864
- * @param {*} [options] Override http request option.
2865
- * @throws {RequiredError}
2866
- */
2867
- updateClubSettings(updateClubSettingsRequest, options) {
2868
- return __awaiter(this, void 0, void 0, function* () {
2869
- var _a, _b, _c;
2870
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubSettings(updateClubSettingsRequest, options);
2871
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2872
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubSettingsApi.updateClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2873
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2874
- });
2875
- },
2876
- };
2877
- };
2878
- exports.ManagerClubSettingsApiFp = ManagerClubSettingsApiFp;
2879
- /**
2880
- * ManagerClubSettingsApi - factory interface
2881
- * @export
2882
- */
2883
- const ManagerClubSettingsApiFactory = function (configuration, basePath, axios) {
2884
- const localVarFp = (0, exports.ManagerClubSettingsApiFp)(configuration);
2885
- return {
2886
- /**
2887
- *
2888
- * @summary Créer les paramètres d\'un club
2889
- * @param {ManagerClubSettingsApiCreateClubSettingsRequest} requestParameters Request parameters.
2890
- * @param {*} [options] Override http request option.
2891
- * @throws {RequiredError}
2892
- */
2893
- createClubSettings(requestParameters, options) {
2894
- return localVarFp.createClubSettings(requestParameters.createClubSettingsRequest, options).then((request) => request(axios, basePath));
2895
- },
2896
- /**
2897
- *
2898
- * @summary Supprimer les paramètres d\'un club
2899
- * @param {ManagerClubSettingsApiDeleteClubSettingsRequest} requestParameters Request parameters.
2900
- * @param {*} [options] Override http request option.
2901
- * @throws {RequiredError}
2902
- */
2903
- deleteClubSettings(requestParameters, options) {
2904
- return localVarFp.deleteClubSettings(requestParameters.deleteClubSettingsRequest, options).then((request) => request(axios, basePath));
2905
- },
2906
- /**
2907
- *
2908
- * @summary Mettre à jour les paramètres d\'un club
2909
- * @param {ManagerClubSettingsApiUpdateClubSettingsRequest} requestParameters Request parameters.
2910
- * @param {*} [options] Override http request option.
2911
- * @throws {RequiredError}
2912
- */
2913
- updateClubSettings(requestParameters, options) {
2914
- return localVarFp.updateClubSettings(requestParameters.updateClubSettingsRequest, options).then((request) => request(axios, basePath));
2915
- },
2916
- };
2917
- };
2918
- exports.ManagerClubSettingsApiFactory = ManagerClubSettingsApiFactory;
2919
- /**
2920
- * ManagerClubSettingsApi - object-oriented interface
2921
- * @export
2922
- * @class ManagerClubSettingsApi
2923
- * @extends {BaseAPI}
2924
- */
2925
- class ManagerClubSettingsApi extends base_1.BaseAPI {
2926
- /**
2927
- *
2928
- * @summary Créer les paramètres d\'un club
2929
- * @param {ManagerClubSettingsApiCreateClubSettingsRequest} requestParameters Request parameters.
2930
- * @param {*} [options] Override http request option.
2931
- * @throws {RequiredError}
2932
- * @memberof ManagerClubSettingsApi
2933
- */
2934
- createClubSettings(requestParameters, options) {
2935
- return (0, exports.ManagerClubSettingsApiFp)(this.configuration).createClubSettings(requestParameters.createClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
2936
- }
2937
- /**
2938
- *
2939
- * @summary Supprimer les paramètres d\'un club
2940
- * @param {ManagerClubSettingsApiDeleteClubSettingsRequest} requestParameters Request parameters.
2941
- * @param {*} [options] Override http request option.
2942
- * @throws {RequiredError}
2943
- * @memberof ManagerClubSettingsApi
2944
- */
2945
- deleteClubSettings(requestParameters, options) {
2946
- return (0, exports.ManagerClubSettingsApiFp)(this.configuration).deleteClubSettings(requestParameters.deleteClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
2947
- }
2948
- /**
2949
- *
2950
- * @summary Mettre à jour les paramètres d\'un club
2951
- * @param {ManagerClubSettingsApiUpdateClubSettingsRequest} requestParameters Request parameters.
2952
- * @param {*} [options] Override http request option.
2953
- * @throws {RequiredError}
2954
- * @memberof ManagerClubSettingsApi
2955
- */
2956
- updateClubSettings(requestParameters, options) {
2957
- return (0, exports.ManagerClubSettingsApiFp)(this.configuration).updateClubSettings(requestParameters.updateClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
2958
- }
2959
- }
2960
- exports.ManagerClubSettingsApi = ManagerClubSettingsApi;
2961
2713
  /**
2962
2714
  * ManagerClubSlotsApi - axios parameter creator
2963
2715
  * @export
@@ -4607,6 +4359,39 @@ const StaffClubsApiAxiosParamCreator = function (configuration) {
4607
4359
  options: localVarRequestOptions,
4608
4360
  };
4609
4361
  }),
4362
+ /**
4363
+ *
4364
+ * @summary Récupère les paramètres d’un club
4365
+ * @param {GetClubSettingsRequest} getClubSettingsRequest
4366
+ * @param {*} [options] Override http request option.
4367
+ * @throws {RequiredError}
4368
+ */
4369
+ getClubSettings: (getClubSettingsRequest_1, ...args_1) => __awaiter(this, [getClubSettingsRequest_1, ...args_1], void 0, function* (getClubSettingsRequest, options = {}) {
4370
+ // verify required parameter 'getClubSettingsRequest' is not null or undefined
4371
+ (0, common_1.assertParamExists)('getClubSettings', 'getClubSettingsRequest', getClubSettingsRequest);
4372
+ const localVarPath = `/api/club-settings`;
4373
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4374
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4375
+ let baseOptions;
4376
+ if (configuration) {
4377
+ baseOptions = configuration.baseOptions;
4378
+ }
4379
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4380
+ const localVarHeaderParameter = {};
4381
+ const localVarQueryParameter = {};
4382
+ // authentication bearerAuth required
4383
+ // http bearer authentication required
4384
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4385
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4386
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4387
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4388
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4389
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(getClubSettingsRequest, localVarRequestOptions, configuration);
4390
+ return {
4391
+ url: (0, common_1.toPathString)(localVarUrlObj),
4392
+ options: localVarRequestOptions,
4393
+ };
4394
+ }),
4610
4395
  };
4611
4396
  };
4612
4397
  exports.StaffClubsApiAxiosParamCreator = StaffClubsApiAxiosParamCreator;
@@ -4632,6 +4417,22 @@ const StaffClubsApiFp = function (configuration) {
4632
4417
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4633
4418
  });
4634
4419
  },
4420
+ /**
4421
+ *
4422
+ * @summary Récupère les paramètres d’un club
4423
+ * @param {GetClubSettingsRequest} getClubSettingsRequest
4424
+ * @param {*} [options] Override http request option.
4425
+ * @throws {RequiredError}
4426
+ */
4427
+ getClubSettings(getClubSettingsRequest, options) {
4428
+ return __awaiter(this, void 0, void 0, function* () {
4429
+ var _a, _b, _c;
4430
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubSettings(getClubSettingsRequest, options);
4431
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4432
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StaffClubsApi.getClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4433
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4434
+ });
4435
+ },
4635
4436
  };
4636
4437
  };
4637
4438
  exports.StaffClubsApiFp = StaffClubsApiFp;
@@ -4651,6 +4452,16 @@ const StaffClubsApiFactory = function (configuration, basePath, axios) {
4651
4452
  getClubInfos(options) {
4652
4453
  return localVarFp.getClubInfos(options).then((request) => request(axios, basePath));
4653
4454
  },
4455
+ /**
4456
+ *
4457
+ * @summary Récupère les paramètres d’un club
4458
+ * @param {StaffClubsApiGetClubSettingsRequest} requestParameters Request parameters.
4459
+ * @param {*} [options] Override http request option.
4460
+ * @throws {RequiredError}
4461
+ */
4462
+ getClubSettings(requestParameters, options) {
4463
+ return localVarFp.getClubSettings(requestParameters.getClubSettingsRequest, options).then((request) => request(axios, basePath));
4464
+ },
4654
4465
  };
4655
4466
  };
4656
4467
  exports.StaffClubsApiFactory = StaffClubsApiFactory;
@@ -4671,6 +4482,17 @@ class StaffClubsApi extends base_1.BaseAPI {
4671
4482
  getClubInfos(options) {
4672
4483
  return (0, exports.StaffClubsApiFp)(this.configuration).getClubInfos(options).then((request) => request(this.axios, this.basePath));
4673
4484
  }
4485
+ /**
4486
+ *
4487
+ * @summary Récupère les paramètres d’un club
4488
+ * @param {StaffClubsApiGetClubSettingsRequest} requestParameters Request parameters.
4489
+ * @param {*} [options] Override http request option.
4490
+ * @throws {RequiredError}
4491
+ * @memberof StaffClubsApi
4492
+ */
4493
+ getClubSettings(requestParameters, options) {
4494
+ return (0, exports.StaffClubsApiFp)(this.configuration).getClubSettings(requestParameters.getClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
4495
+ }
4674
4496
  }
4675
4497
  exports.StaffClubsApi = StaffClubsApi;
4676
4498
  /**
@@ -4779,39 +4601,6 @@ exports.StaffProfileApi = StaffProfileApi;
4779
4601
  */
4780
4602
  const UserApiAxiosParamCreator = function (configuration) {
4781
4603
  return {
4782
- /**
4783
- *
4784
- * @summary Abonne l\'utilisateur connecté à un club
4785
- * @param {SubscribeToClubRequestBody} subscribeToClubRequestBody
4786
- * @param {*} [options] Override http request option.
4787
- * @throws {RequiredError}
4788
- */
4789
- subscribeToClub: (subscribeToClubRequestBody_1, ...args_1) => __awaiter(this, [subscribeToClubRequestBody_1, ...args_1], void 0, function* (subscribeToClubRequestBody, options = {}) {
4790
- // verify required parameter 'subscribeToClubRequestBody' is not null or undefined
4791
- (0, common_1.assertParamExists)('subscribeToClub', 'subscribeToClubRequestBody', subscribeToClubRequestBody);
4792
- const localVarPath = `/api/users/me/subscribe`;
4793
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
4794
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4795
- let baseOptions;
4796
- if (configuration) {
4797
- baseOptions = configuration.baseOptions;
4798
- }
4799
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4800
- const localVarHeaderParameter = {};
4801
- const localVarQueryParameter = {};
4802
- // authentication bearerAuth required
4803
- // http bearer authentication required
4804
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4805
- localVarHeaderParameter['Content-Type'] = 'application/json';
4806
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4807
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4808
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4809
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(subscribeToClubRequestBody, localVarRequestOptions, configuration);
4810
- return {
4811
- url: (0, common_1.toPathString)(localVarUrlObj),
4812
- options: localVarRequestOptions,
4813
- };
4814
- }),
4815
4604
  /**
4816
4605
  *
4817
4606
  * @summary Met à jour le Customer Stripe de l\'utilisateur
@@ -4857,33 +4646,17 @@ const UserApiFp = function (configuration) {
4857
4646
  return {
4858
4647
  /**
4859
4648
  *
4860
- * @summary Abonne l\'utilisateur connecté à un club
4861
- * @param {SubscribeToClubRequestBody} subscribeToClubRequestBody
4649
+ * @summary Met à jour le Customer Stripe de l\'utilisateur
4650
+ * @param {UpdateCustomerRequestBody} updateCustomerRequestBody
4862
4651
  * @param {*} [options] Override http request option.
4863
4652
  * @throws {RequiredError}
4864
4653
  */
4865
- subscribeToClub(subscribeToClubRequestBody, options) {
4654
+ updateCustomer(updateCustomerRequestBody, options) {
4866
4655
  return __awaiter(this, void 0, void 0, function* () {
4867
4656
  var _a, _b, _c;
4868
- const localVarAxiosArgs = yield localVarAxiosParamCreator.subscribeToClub(subscribeToClubRequestBody, options);
4657
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateCustomer(updateCustomerRequestBody, options);
4869
4658
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4870
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserApi.subscribeToClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4871
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4872
- });
4873
- },
4874
- /**
4875
- *
4876
- * @summary Met à jour le Customer Stripe de l\'utilisateur
4877
- * @param {UpdateCustomerRequestBody} updateCustomerRequestBody
4878
- * @param {*} [options] Override http request option.
4879
- * @throws {RequiredError}
4880
- */
4881
- updateCustomer(updateCustomerRequestBody, options) {
4882
- return __awaiter(this, void 0, void 0, function* () {
4883
- var _a, _b, _c;
4884
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateCustomer(updateCustomerRequestBody, options);
4885
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4886
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserApi.updateCustomer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4659
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserApi.updateCustomer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4887
4660
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4888
4661
  });
4889
4662
  },
@@ -4897,16 +4670,6 @@ exports.UserApiFp = UserApiFp;
4897
4670
  const UserApiFactory = function (configuration, basePath, axios) {
4898
4671
  const localVarFp = (0, exports.UserApiFp)(configuration);
4899
4672
  return {
4900
- /**
4901
- *
4902
- * @summary Abonne l\'utilisateur connecté à un club
4903
- * @param {UserApiSubscribeToClubRequest} requestParameters Request parameters.
4904
- * @param {*} [options] Override http request option.
4905
- * @throws {RequiredError}
4906
- */
4907
- subscribeToClub(requestParameters, options) {
4908
- return localVarFp.subscribeToClub(requestParameters.subscribeToClubRequestBody, options).then((request) => request(axios, basePath));
4909
- },
4910
4673
  /**
4911
4674
  *
4912
4675
  * @summary Met à jour le Customer Stripe de l\'utilisateur
@@ -4927,17 +4690,6 @@ exports.UserApiFactory = UserApiFactory;
4927
4690
  * @extends {BaseAPI}
4928
4691
  */
4929
4692
  class UserApi extends base_1.BaseAPI {
4930
- /**
4931
- *
4932
- * @summary Abonne l\'utilisateur connecté à un club
4933
- * @param {UserApiSubscribeToClubRequest} requestParameters Request parameters.
4934
- * @param {*} [options] Override http request option.
4935
- * @throws {RequiredError}
4936
- * @memberof UserApi
4937
- */
4938
- subscribeToClub(requestParameters, options) {
4939
- return (0, exports.UserApiFp)(this.configuration).subscribeToClub(requestParameters.subscribeToClubRequestBody, options).then((request) => request(this.axios, this.basePath));
4940
- }
4941
4693
  /**
4942
4694
  *
4943
4695
  * @summary Met à jour le Customer Stripe de l\'utilisateur
@@ -6045,6 +5797,39 @@ exports.UserClubsApi = UserClubsApi;
6045
5797
  */
6046
5798
  const UserPaymentApiAxiosParamCreator = function (configuration) {
6047
5799
  return {
5800
+ /**
5801
+ *
5802
+ * @summary Ajoute une méthode de paiement Stripe à la liste de l\'utilisateur
5803
+ * @param {AddPaymentMethodSetupRequestBody} addPaymentMethodSetupRequestBody
5804
+ * @param {*} [options] Override http request option.
5805
+ * @throws {RequiredError}
5806
+ */
5807
+ addPaymentMethodSetup: (addPaymentMethodSetupRequestBody_1, ...args_1) => __awaiter(this, [addPaymentMethodSetupRequestBody_1, ...args_1], void 0, function* (addPaymentMethodSetupRequestBody, options = {}) {
5808
+ // verify required parameter 'addPaymentMethodSetupRequestBody' is not null or undefined
5809
+ (0, common_1.assertParamExists)('addPaymentMethodSetup', 'addPaymentMethodSetupRequestBody', addPaymentMethodSetupRequestBody);
5810
+ const localVarPath = `/api/users/addPaymentMethodSetup`;
5811
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5812
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5813
+ let baseOptions;
5814
+ if (configuration) {
5815
+ baseOptions = configuration.baseOptions;
5816
+ }
5817
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5818
+ const localVarHeaderParameter = {};
5819
+ const localVarQueryParameter = {};
5820
+ // authentication bearerAuth required
5821
+ // http bearer authentication required
5822
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5823
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5824
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5825
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5826
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5827
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addPaymentMethodSetupRequestBody, localVarRequestOptions, configuration);
5828
+ return {
5829
+ url: (0, common_1.toPathString)(localVarUrlObj),
5830
+ options: localVarRequestOptions,
5831
+ };
5832
+ }),
6048
5833
  /**
6049
5834
  * Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
6050
5835
  * @summary Confirme la configuration d\'une méthode de paiement
@@ -6121,6 +5906,22 @@ exports.UserPaymentApiAxiosParamCreator = UserPaymentApiAxiosParamCreator;
6121
5906
  const UserPaymentApiFp = function (configuration) {
6122
5907
  const localVarAxiosParamCreator = (0, exports.UserPaymentApiAxiosParamCreator)(configuration);
6123
5908
  return {
5909
+ /**
5910
+ *
5911
+ * @summary Ajoute une méthode de paiement Stripe à la liste de l\'utilisateur
5912
+ * @param {AddPaymentMethodSetupRequestBody} addPaymentMethodSetupRequestBody
5913
+ * @param {*} [options] Override http request option.
5914
+ * @throws {RequiredError}
5915
+ */
5916
+ addPaymentMethodSetup(addPaymentMethodSetupRequestBody, options) {
5917
+ return __awaiter(this, void 0, void 0, function* () {
5918
+ var _a, _b, _c;
5919
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addPaymentMethodSetup(addPaymentMethodSetupRequestBody, options);
5920
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5921
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserPaymentApi.addPaymentMethodSetup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5922
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5923
+ });
5924
+ },
6124
5925
  /**
6125
5926
  * Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
6126
5927
  * @summary Confirme la configuration d\'une méthode de paiement
@@ -6163,6 +5964,16 @@ exports.UserPaymentApiFp = UserPaymentApiFp;
6163
5964
  const UserPaymentApiFactory = function (configuration, basePath, axios) {
6164
5965
  const localVarFp = (0, exports.UserPaymentApiFp)(configuration);
6165
5966
  return {
5967
+ /**
5968
+ *
5969
+ * @summary Ajoute une méthode de paiement Stripe à la liste de l\'utilisateur
5970
+ * @param {UserPaymentApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
5971
+ * @param {*} [options] Override http request option.
5972
+ * @throws {RequiredError}
5973
+ */
5974
+ addPaymentMethodSetup(requestParameters, options) {
5975
+ return localVarFp.addPaymentMethodSetup(requestParameters.addPaymentMethodSetupRequestBody, options).then((request) => request(axios, basePath));
5976
+ },
6166
5977
  /**
6167
5978
  * Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
6168
5979
  * @summary Confirme la configuration d\'une méthode de paiement
@@ -6193,6 +6004,17 @@ exports.UserPaymentApiFactory = UserPaymentApiFactory;
6193
6004
  * @extends {BaseAPI}
6194
6005
  */
6195
6006
  class UserPaymentApi extends base_1.BaseAPI {
6007
+ /**
6008
+ *
6009
+ * @summary Ajoute une méthode de paiement Stripe à la liste de l\'utilisateur
6010
+ * @param {UserPaymentApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
6011
+ * @param {*} [options] Override http request option.
6012
+ * @throws {RequiredError}
6013
+ * @memberof UserPaymentApi
6014
+ */
6015
+ addPaymentMethodSetup(requestParameters, options) {
6016
+ return (0, exports.UserPaymentApiFp)(this.configuration).addPaymentMethodSetup(requestParameters.addPaymentMethodSetupRequestBody, options).then((request) => request(this.axios, this.basePath));
6017
+ }
6196
6018
  /**
6197
6019
  * Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
6198
6020
  * @summary Confirme la configuration d\'une méthode de paiement
@@ -6298,12 +6120,12 @@ const UserProfileApiAxiosParamCreator = function (configuration) {
6298
6120
  }),
6299
6121
  /**
6300
6122
  *
6301
- * @summary Récupère les informations de l\'utilisateur connecté
6123
+ * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
6302
6124
  * @param {*} [options] Override http request option.
6303
6125
  * @throws {RequiredError}
6304
6126
  */
6305
- getUserInfo: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6306
- const localVarPath = `/api/users/me`;
6127
+ getFrequentlyPlayedWith: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6128
+ const localVarPath = `/api/users/me/frequentlyPlayedWith`;
6307
6129
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6308
6130
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6309
6131
  let baseOptions;
@@ -6326,144 +6148,692 @@ const UserProfileApiAxiosParamCreator = function (configuration) {
6326
6148
  }),
6327
6149
  /**
6328
6150
  *
6329
- * @summary Met à jour les données de l\'utilisateur connecté
6330
- * @param {UpdateUserRequestBody} updateUserRequestBody
6151
+ * @summary Clubs les plus fréquemment visités par l\'utilisateur connecté
6331
6152
  * @param {*} [options] Override http request option.
6332
6153
  * @throws {RequiredError}
6333
6154
  */
6334
- updateUser: (updateUserRequestBody_1, ...args_1) => __awaiter(this, [updateUserRequestBody_1, ...args_1], void 0, function* (updateUserRequestBody, options = {}) {
6335
- // verify required parameter 'updateUserRequestBody' is not null or undefined
6336
- (0, common_1.assertParamExists)('updateUser', 'updateUserRequestBody', updateUserRequestBody);
6337
- const localVarPath = `/api/users/me`;
6155
+ getFrequentlyVisitedClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6156
+ const localVarPath = `/api/users/me/frequentlyVisitedClub`;
6338
6157
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6339
6158
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6340
6159
  let baseOptions;
6341
6160
  if (configuration) {
6342
6161
  baseOptions = configuration.baseOptions;
6343
6162
  }
6344
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
6163
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6345
6164
  const localVarHeaderParameter = {};
6346
6165
  const localVarQueryParameter = {};
6347
6166
  // authentication bearerAuth required
6348
6167
  // http bearer authentication required
6349
6168
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6350
- localVarHeaderParameter['Content-Type'] = 'application/json';
6351
6169
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6352
6170
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6353
6171
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6354
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateUserRequestBody, localVarRequestOptions, configuration);
6355
6172
  return {
6356
6173
  url: (0, common_1.toPathString)(localVarUrlObj),
6357
6174
  options: localVarRequestOptions,
6358
6175
  };
6359
6176
  }),
6360
- };
6361
- };
6362
- exports.UserProfileApiAxiosParamCreator = UserProfileApiAxiosParamCreator;
6363
- /**
6364
- * UserProfileApi - functional programming interface
6365
- * @export
6366
- */
6367
- const UserProfileApiFp = function (configuration) {
6368
- const localVarAxiosParamCreator = (0, exports.UserProfileApiAxiosParamCreator)(configuration);
6369
- return {
6370
- /**
6371
- *
6372
- * @summary Modifie le mot de passe de l\'utilisateur connecté
6373
- * @param {ChangePasswordRequestBody} changePasswordRequestBody
6374
- * @param {*} [options] Override http request option.
6375
- * @throws {RequiredError}
6376
- */
6377
- changePassword(changePasswordRequestBody, options) {
6378
- return __awaiter(this, void 0, void 0, function* () {
6379
- var _a, _b, _c;
6380
- const localVarAxiosArgs = yield localVarAxiosParamCreator.changePassword(changePasswordRequestBody, options);
6381
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6382
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.changePassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6383
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6384
- });
6385
- },
6386
6177
  /**
6387
6178
  *
6388
- * @summary Récupère la liste des utilisateurs avec filtres et pagination
6389
- * @param {number} [limit] Nombre maximum d\'utilisateurs à retourner
6390
- * @param {number} [skip] Nombre d\'utilisateurs à ignorer (pagination)
6391
- * @param {string} [search] Recherche dans firstName, lastName, email
6179
+ * @summary Récupère l\'URL de la photo de profil de l\'utilisateur connecté
6392
6180
  * @param {*} [options] Override http request option.
6393
6181
  * @throws {RequiredError}
6394
6182
  */
6395
- getAllUsers(limit, skip, search, options) {
6396
- return __awaiter(this, void 0, void 0, function* () {
6397
- var _a, _b, _c;
6398
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllUsers(limit, skip, search, options);
6399
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6400
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.getAllUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6401
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6402
- });
6403
- },
6183
+ getProfilePicture: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6184
+ const localVarPath = `/api/users/me/profile-picture`;
6185
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6186
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6187
+ let baseOptions;
6188
+ if (configuration) {
6189
+ baseOptions = configuration.baseOptions;
6190
+ }
6191
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6192
+ const localVarHeaderParameter = {};
6193
+ const localVarQueryParameter = {};
6194
+ // authentication bearerAuth required
6195
+ // http bearer authentication required
6196
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6197
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6198
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6199
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6200
+ return {
6201
+ url: (0, common_1.toPathString)(localVarUrlObj),
6202
+ options: localVarRequestOptions,
6203
+ };
6204
+ }),
6404
6205
  /**
6405
6206
  *
6406
- * @summary Récupère les informations de l\'utilisateur connecté
6207
+ * @summary Récupère la ville de l\'utilisateur connecté
6407
6208
  * @param {*} [options] Override http request option.
6408
6209
  * @throws {RequiredError}
6409
6210
  */
6410
- getUserInfo(options) {
6411
- return __awaiter(this, void 0, void 0, function* () {
6412
- var _a, _b, _c;
6413
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserInfo(options);
6414
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6415
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.getUserInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6416
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6417
- });
6418
- },
6211
+ getUserCity: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6212
+ const localVarPath = `/api/users/me/city`;
6213
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6214
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6215
+ let baseOptions;
6216
+ if (configuration) {
6217
+ baseOptions = configuration.baseOptions;
6218
+ }
6219
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6220
+ const localVarHeaderParameter = {};
6221
+ const localVarQueryParameter = {};
6222
+ // authentication bearerAuth required
6223
+ // http bearer authentication required
6224
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6225
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6226
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6227
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6228
+ return {
6229
+ url: (0, common_1.toPathString)(localVarUrlObj),
6230
+ options: localVarRequestOptions,
6231
+ };
6232
+ }),
6419
6233
  /**
6420
6234
  *
6421
- * @summary Met à jour les données de l\'utilisateur connecté
6422
- * @param {UpdateUserRequestBody} updateUserRequestBody
6235
+ * @summary Récupère la description de l\'utilisateur connecté
6423
6236
  * @param {*} [options] Override http request option.
6424
6237
  * @throws {RequiredError}
6425
6238
  */
6426
- updateUser(updateUserRequestBody, options) {
6427
- return __awaiter(this, void 0, void 0, function* () {
6428
- var _a, _b, _c;
6429
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUser(updateUserRequestBody, options);
6430
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6431
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.updateUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6432
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6433
- });
6434
- },
6435
- };
6436
- };
6437
- exports.UserProfileApiFp = UserProfileApiFp;
6438
- /**
6439
- * UserProfileApi - factory interface
6440
- * @export
6441
- */
6442
- const UserProfileApiFactory = function (configuration, basePath, axios) {
6443
- const localVarFp = (0, exports.UserProfileApiFp)(configuration);
6444
- return {
6239
+ getUserDescription: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6240
+ const localVarPath = `/api/users/me/description`;
6241
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6242
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6243
+ let baseOptions;
6244
+ if (configuration) {
6245
+ baseOptions = configuration.baseOptions;
6246
+ }
6247
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6248
+ const localVarHeaderParameter = {};
6249
+ const localVarQueryParameter = {};
6250
+ // authentication bearerAuth required
6251
+ // http bearer authentication required
6252
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6253
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6254
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6255
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6256
+ return {
6257
+ url: (0, common_1.toPathString)(localVarUrlObj),
6258
+ options: localVarRequestOptions,
6259
+ };
6260
+ }),
6445
6261
  /**
6446
6262
  *
6447
- * @summary Modifie le mot de passe de l\'utilisateur connecté
6448
- * @param {UserProfileApiChangePasswordRequest} requestParameters Request parameters.
6263
+ * @summary Récupère les informations de l\'utilisateur connecté
6449
6264
  * @param {*} [options] Override http request option.
6450
6265
  * @throws {RequiredError}
6451
6266
  */
6452
- changePassword(requestParameters, options) {
6453
- return localVarFp.changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(axios, basePath));
6454
- },
6267
+ getUserInfo: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6268
+ const localVarPath = `/api/users/me`;
6269
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6270
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6271
+ let baseOptions;
6272
+ if (configuration) {
6273
+ baseOptions = configuration.baseOptions;
6274
+ }
6275
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6276
+ const localVarHeaderParameter = {};
6277
+ const localVarQueryParameter = {};
6278
+ // authentication bearerAuth required
6279
+ // http bearer authentication required
6280
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6281
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6282
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6283
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6284
+ return {
6285
+ url: (0, common_1.toPathString)(localVarUrlObj),
6286
+ options: localVarRequestOptions,
6287
+ };
6288
+ }),
6455
6289
  /**
6456
6290
  *
6457
- * @summary Récupère la liste des utilisateurs avec filtres et pagination
6458
- * @param {UserProfileApiGetAllUsersRequest} requestParameters Request parameters.
6291
+ * @summary Récupère la visibilité du profil de l\'utilisateur connecté
6459
6292
  * @param {*} [options] Override http request option.
6460
6293
  * @throws {RequiredError}
6461
6294
  */
6462
- getAllUsers(requestParameters = {}, options) {
6463
- return localVarFp.getAllUsers(requestParameters.limit, requestParameters.skip, requestParameters.search, options).then((request) => request(axios, basePath));
6464
- },
6465
- /**
6466
- *
6295
+ getUserProfileVisibility: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6296
+ const localVarPath = `/api/users/me/profile-visibility`;
6297
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6298
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6299
+ let baseOptions;
6300
+ if (configuration) {
6301
+ baseOptions = configuration.baseOptions;
6302
+ }
6303
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6304
+ const localVarHeaderParameter = {};
6305
+ const localVarQueryParameter = {};
6306
+ // authentication bearerAuth required
6307
+ // http bearer authentication required
6308
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6309
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6310
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6311
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6312
+ return {
6313
+ url: (0, common_1.toPathString)(localVarUrlObj),
6314
+ options: localVarRequestOptions,
6315
+ };
6316
+ }),
6317
+ /**
6318
+ *
6319
+ * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
6320
+ * @param {UpdateLevelBySportsRequestBody} updateLevelBySportsRequestBody
6321
+ * @param {*} [options] Override http request option.
6322
+ * @throws {RequiredError}
6323
+ */
6324
+ updateLevelBySports: (updateLevelBySportsRequestBody_1, ...args_1) => __awaiter(this, [updateLevelBySportsRequestBody_1, ...args_1], void 0, function* (updateLevelBySportsRequestBody, options = {}) {
6325
+ // verify required parameter 'updateLevelBySportsRequestBody' is not null or undefined
6326
+ (0, common_1.assertParamExists)('updateLevelBySports', 'updateLevelBySportsRequestBody', updateLevelBySportsRequestBody);
6327
+ const localVarPath = `/api/users/me/level-by-sports`;
6328
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6329
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6330
+ let baseOptions;
6331
+ if (configuration) {
6332
+ baseOptions = configuration.baseOptions;
6333
+ }
6334
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
6335
+ const localVarHeaderParameter = {};
6336
+ const localVarQueryParameter = {};
6337
+ // authentication bearerAuth required
6338
+ // http bearer authentication required
6339
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6340
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6341
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6342
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6343
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6344
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateLevelBySportsRequestBody, localVarRequestOptions, configuration);
6345
+ return {
6346
+ url: (0, common_1.toPathString)(localVarUrlObj),
6347
+ options: localVarRequestOptions,
6348
+ };
6349
+ }),
6350
+ /**
6351
+ *
6352
+ * @summary Met à jour l\'URL de la photo de profil de l\'utilisateur connecté
6353
+ * @param {UpdateProfilePictureRequestBody} updateProfilePictureRequestBody
6354
+ * @param {*} [options] Override http request option.
6355
+ * @throws {RequiredError}
6356
+ */
6357
+ updateProfilePicture: (updateProfilePictureRequestBody_1, ...args_1) => __awaiter(this, [updateProfilePictureRequestBody_1, ...args_1], void 0, function* (updateProfilePictureRequestBody, options = {}) {
6358
+ // verify required parameter 'updateProfilePictureRequestBody' is not null or undefined
6359
+ (0, common_1.assertParamExists)('updateProfilePicture', 'updateProfilePictureRequestBody', updateProfilePictureRequestBody);
6360
+ const localVarPath = `/api/users/me/profile-picture`;
6361
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6362
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6363
+ let baseOptions;
6364
+ if (configuration) {
6365
+ baseOptions = configuration.baseOptions;
6366
+ }
6367
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
6368
+ const localVarHeaderParameter = {};
6369
+ const localVarQueryParameter = {};
6370
+ // authentication bearerAuth required
6371
+ // http bearer authentication required
6372
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6373
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6374
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6375
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6376
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6377
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateProfilePictureRequestBody, localVarRequestOptions, configuration);
6378
+ return {
6379
+ url: (0, common_1.toPathString)(localVarUrlObj),
6380
+ options: localVarRequestOptions,
6381
+ };
6382
+ }),
6383
+ /**
6384
+ *
6385
+ * @summary Met à jour la visibilité du profil de l\'utilisateur connecté
6386
+ * @param {UpdateProfileVisibilityRequestBody} updateProfileVisibilityRequestBody
6387
+ * @param {*} [options] Override http request option.
6388
+ * @throws {RequiredError}
6389
+ */
6390
+ updateProfileVisibility: (updateProfileVisibilityRequestBody_1, ...args_1) => __awaiter(this, [updateProfileVisibilityRequestBody_1, ...args_1], void 0, function* (updateProfileVisibilityRequestBody, options = {}) {
6391
+ // verify required parameter 'updateProfileVisibilityRequestBody' is not null or undefined
6392
+ (0, common_1.assertParamExists)('updateProfileVisibility', 'updateProfileVisibilityRequestBody', updateProfileVisibilityRequestBody);
6393
+ const localVarPath = `/api/users/me/profile-visibility`;
6394
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6395
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6396
+ let baseOptions;
6397
+ if (configuration) {
6398
+ baseOptions = configuration.baseOptions;
6399
+ }
6400
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
6401
+ const localVarHeaderParameter = {};
6402
+ const localVarQueryParameter = {};
6403
+ // authentication bearerAuth required
6404
+ // http bearer authentication required
6405
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6406
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6407
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6408
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6409
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6410
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateProfileVisibilityRequestBody, localVarRequestOptions, configuration);
6411
+ return {
6412
+ url: (0, common_1.toPathString)(localVarUrlObj),
6413
+ options: localVarRequestOptions,
6414
+ };
6415
+ }),
6416
+ /**
6417
+ *
6418
+ * @summary Met à jour les données de l\'utilisateur connecté
6419
+ * @param {UpdateUserRequestBody} updateUserRequestBody
6420
+ * @param {*} [options] Override http request option.
6421
+ * @throws {RequiredError}
6422
+ */
6423
+ updateUser: (updateUserRequestBody_1, ...args_1) => __awaiter(this, [updateUserRequestBody_1, ...args_1], void 0, function* (updateUserRequestBody, options = {}) {
6424
+ // verify required parameter 'updateUserRequestBody' is not null or undefined
6425
+ (0, common_1.assertParamExists)('updateUser', 'updateUserRequestBody', updateUserRequestBody);
6426
+ const localVarPath = `/api/users/me`;
6427
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6428
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6429
+ let baseOptions;
6430
+ if (configuration) {
6431
+ baseOptions = configuration.baseOptions;
6432
+ }
6433
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
6434
+ const localVarHeaderParameter = {};
6435
+ const localVarQueryParameter = {};
6436
+ // authentication bearerAuth required
6437
+ // http bearer authentication required
6438
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6439
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6440
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6441
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6442
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6443
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateUserRequestBody, localVarRequestOptions, configuration);
6444
+ return {
6445
+ url: (0, common_1.toPathString)(localVarUrlObj),
6446
+ options: localVarRequestOptions,
6447
+ };
6448
+ }),
6449
+ /**
6450
+ *
6451
+ * @summary Met à jour la ville de l\'utilisateur connecté
6452
+ * @param {UpdateUserCityRequestBody} updateUserCityRequestBody
6453
+ * @param {*} [options] Override http request option.
6454
+ * @throws {RequiredError}
6455
+ */
6456
+ updateUserCity: (updateUserCityRequestBody_1, ...args_1) => __awaiter(this, [updateUserCityRequestBody_1, ...args_1], void 0, function* (updateUserCityRequestBody, options = {}) {
6457
+ // verify required parameter 'updateUserCityRequestBody' is not null or undefined
6458
+ (0, common_1.assertParamExists)('updateUserCity', 'updateUserCityRequestBody', updateUserCityRequestBody);
6459
+ const localVarPath = `/api/users/me/city`;
6460
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6461
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6462
+ let baseOptions;
6463
+ if (configuration) {
6464
+ baseOptions = configuration.baseOptions;
6465
+ }
6466
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
6467
+ const localVarHeaderParameter = {};
6468
+ const localVarQueryParameter = {};
6469
+ // authentication bearerAuth required
6470
+ // http bearer authentication required
6471
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6472
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6473
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6474
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6475
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6476
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateUserCityRequestBody, localVarRequestOptions, configuration);
6477
+ return {
6478
+ url: (0, common_1.toPathString)(localVarUrlObj),
6479
+ options: localVarRequestOptions,
6480
+ };
6481
+ }),
6482
+ /**
6483
+ *
6484
+ * @summary Met à jour la description de l\'utilisateur connecté
6485
+ * @param {UpdateUserDescriptionRequestBody} updateUserDescriptionRequestBody
6486
+ * @param {*} [options] Override http request option.
6487
+ * @throws {RequiredError}
6488
+ */
6489
+ updateUserDescription: (updateUserDescriptionRequestBody_1, ...args_1) => __awaiter(this, [updateUserDescriptionRequestBody_1, ...args_1], void 0, function* (updateUserDescriptionRequestBody, options = {}) {
6490
+ // verify required parameter 'updateUserDescriptionRequestBody' is not null or undefined
6491
+ (0, common_1.assertParamExists)('updateUserDescription', 'updateUserDescriptionRequestBody', updateUserDescriptionRequestBody);
6492
+ const localVarPath = `/api/users/me/description`;
6493
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6494
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6495
+ let baseOptions;
6496
+ if (configuration) {
6497
+ baseOptions = configuration.baseOptions;
6498
+ }
6499
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
6500
+ const localVarHeaderParameter = {};
6501
+ const localVarQueryParameter = {};
6502
+ // authentication bearerAuth required
6503
+ // http bearer authentication required
6504
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6505
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6506
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6507
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6508
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6509
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateUserDescriptionRequestBody, localVarRequestOptions, configuration);
6510
+ return {
6511
+ url: (0, common_1.toPathString)(localVarUrlObj),
6512
+ options: localVarRequestOptions,
6513
+ };
6514
+ }),
6515
+ };
6516
+ };
6517
+ exports.UserProfileApiAxiosParamCreator = UserProfileApiAxiosParamCreator;
6518
+ /**
6519
+ * UserProfileApi - functional programming interface
6520
+ * @export
6521
+ */
6522
+ const UserProfileApiFp = function (configuration) {
6523
+ const localVarAxiosParamCreator = (0, exports.UserProfileApiAxiosParamCreator)(configuration);
6524
+ return {
6525
+ /**
6526
+ *
6527
+ * @summary Modifie le mot de passe de l\'utilisateur connecté
6528
+ * @param {ChangePasswordRequestBody} changePasswordRequestBody
6529
+ * @param {*} [options] Override http request option.
6530
+ * @throws {RequiredError}
6531
+ */
6532
+ changePassword(changePasswordRequestBody, options) {
6533
+ return __awaiter(this, void 0, void 0, function* () {
6534
+ var _a, _b, _c;
6535
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.changePassword(changePasswordRequestBody, options);
6536
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6537
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.changePassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6538
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6539
+ });
6540
+ },
6541
+ /**
6542
+ *
6543
+ * @summary Récupère la liste des utilisateurs avec filtres et pagination
6544
+ * @param {number} [limit] Nombre maximum d\'utilisateurs à retourner
6545
+ * @param {number} [skip] Nombre d\'utilisateurs à ignorer (pagination)
6546
+ * @param {string} [search] Recherche dans firstName, lastName, email
6547
+ * @param {*} [options] Override http request option.
6548
+ * @throws {RequiredError}
6549
+ */
6550
+ getAllUsers(limit, skip, search, options) {
6551
+ return __awaiter(this, void 0, void 0, function* () {
6552
+ var _a, _b, _c;
6553
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllUsers(limit, skip, search, options);
6554
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6555
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.getAllUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6556
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6557
+ });
6558
+ },
6559
+ /**
6560
+ *
6561
+ * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
6562
+ * @param {*} [options] Override http request option.
6563
+ * @throws {RequiredError}
6564
+ */
6565
+ getFrequentlyPlayedWith(options) {
6566
+ return __awaiter(this, void 0, void 0, function* () {
6567
+ var _a, _b, _c;
6568
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getFrequentlyPlayedWith(options);
6569
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6570
+ 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;
6571
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6572
+ });
6573
+ },
6574
+ /**
6575
+ *
6576
+ * @summary Clubs les plus fréquemment visités par l\'utilisateur connecté
6577
+ * @param {*} [options] Override http request option.
6578
+ * @throws {RequiredError}
6579
+ */
6580
+ getFrequentlyVisitedClub(options) {
6581
+ return __awaiter(this, void 0, void 0, function* () {
6582
+ var _a, _b, _c;
6583
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getFrequentlyVisitedClub(options);
6584
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6585
+ 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;
6586
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6587
+ });
6588
+ },
6589
+ /**
6590
+ *
6591
+ * @summary Récupère l\'URL de la photo de profil de l\'utilisateur connecté
6592
+ * @param {*} [options] Override http request option.
6593
+ * @throws {RequiredError}
6594
+ */
6595
+ getProfilePicture(options) {
6596
+ return __awaiter(this, void 0, void 0, function* () {
6597
+ var _a, _b, _c;
6598
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getProfilePicture(options);
6599
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6600
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.getProfilePicture']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6601
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6602
+ });
6603
+ },
6604
+ /**
6605
+ *
6606
+ * @summary Récupère la ville de l\'utilisateur connecté
6607
+ * @param {*} [options] Override http request option.
6608
+ * @throws {RequiredError}
6609
+ */
6610
+ getUserCity(options) {
6611
+ return __awaiter(this, void 0, void 0, function* () {
6612
+ var _a, _b, _c;
6613
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserCity(options);
6614
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6615
+ 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;
6616
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6617
+ });
6618
+ },
6619
+ /**
6620
+ *
6621
+ * @summary Récupère la description de l\'utilisateur connecté
6622
+ * @param {*} [options] Override http request option.
6623
+ * @throws {RequiredError}
6624
+ */
6625
+ getUserDescription(options) {
6626
+ return __awaiter(this, void 0, void 0, function* () {
6627
+ var _a, _b, _c;
6628
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserDescription(options);
6629
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6630
+ 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;
6631
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6632
+ });
6633
+ },
6634
+ /**
6635
+ *
6636
+ * @summary Récupère les informations de l\'utilisateur connecté
6637
+ * @param {*} [options] Override http request option.
6638
+ * @throws {RequiredError}
6639
+ */
6640
+ getUserInfo(options) {
6641
+ return __awaiter(this, void 0, void 0, function* () {
6642
+ var _a, _b, _c;
6643
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserInfo(options);
6644
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6645
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.getUserInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6646
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6647
+ });
6648
+ },
6649
+ /**
6650
+ *
6651
+ * @summary Récupère la visibilité du profil de l\'utilisateur connecté
6652
+ * @param {*} [options] Override http request option.
6653
+ * @throws {RequiredError}
6654
+ */
6655
+ getUserProfileVisibility(options) {
6656
+ return __awaiter(this, void 0, void 0, function* () {
6657
+ var _a, _b, _c;
6658
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserProfileVisibility(options);
6659
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6660
+ 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;
6661
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6662
+ });
6663
+ },
6664
+ /**
6665
+ *
6666
+ * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
6667
+ * @param {UpdateLevelBySportsRequestBody} updateLevelBySportsRequestBody
6668
+ * @param {*} [options] Override http request option.
6669
+ * @throws {RequiredError}
6670
+ */
6671
+ updateLevelBySports(updateLevelBySportsRequestBody, options) {
6672
+ return __awaiter(this, void 0, void 0, function* () {
6673
+ var _a, _b, _c;
6674
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateLevelBySports(updateLevelBySportsRequestBody, options);
6675
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6676
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.updateLevelBySports']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6677
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6678
+ });
6679
+ },
6680
+ /**
6681
+ *
6682
+ * @summary Met à jour l\'URL de la photo de profil de l\'utilisateur connecté
6683
+ * @param {UpdateProfilePictureRequestBody} updateProfilePictureRequestBody
6684
+ * @param {*} [options] Override http request option.
6685
+ * @throws {RequiredError}
6686
+ */
6687
+ updateProfilePicture(updateProfilePictureRequestBody, options) {
6688
+ return __awaiter(this, void 0, void 0, function* () {
6689
+ var _a, _b, _c;
6690
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateProfilePicture(updateProfilePictureRequestBody, options);
6691
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6692
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.updateProfilePicture']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6693
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6694
+ });
6695
+ },
6696
+ /**
6697
+ *
6698
+ * @summary Met à jour la visibilité du profil de l\'utilisateur connecté
6699
+ * @param {UpdateProfileVisibilityRequestBody} updateProfileVisibilityRequestBody
6700
+ * @param {*} [options] Override http request option.
6701
+ * @throws {RequiredError}
6702
+ */
6703
+ updateProfileVisibility(updateProfileVisibilityRequestBody, options) {
6704
+ return __awaiter(this, void 0, void 0, function* () {
6705
+ var _a, _b, _c;
6706
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateProfileVisibility(updateProfileVisibilityRequestBody, options);
6707
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6708
+ 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;
6709
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6710
+ });
6711
+ },
6712
+ /**
6713
+ *
6714
+ * @summary Met à jour les données de l\'utilisateur connecté
6715
+ * @param {UpdateUserRequestBody} updateUserRequestBody
6716
+ * @param {*} [options] Override http request option.
6717
+ * @throws {RequiredError}
6718
+ */
6719
+ updateUser(updateUserRequestBody, options) {
6720
+ return __awaiter(this, void 0, void 0, function* () {
6721
+ var _a, _b, _c;
6722
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUser(updateUserRequestBody, options);
6723
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6724
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.updateUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6725
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6726
+ });
6727
+ },
6728
+ /**
6729
+ *
6730
+ * @summary Met à jour la ville de l\'utilisateur connecté
6731
+ * @param {UpdateUserCityRequestBody} updateUserCityRequestBody
6732
+ * @param {*} [options] Override http request option.
6733
+ * @throws {RequiredError}
6734
+ */
6735
+ updateUserCity(updateUserCityRequestBody, options) {
6736
+ return __awaiter(this, void 0, void 0, function* () {
6737
+ var _a, _b, _c;
6738
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserCity(updateUserCityRequestBody, options);
6739
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6740
+ 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;
6741
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6742
+ });
6743
+ },
6744
+ /**
6745
+ *
6746
+ * @summary Met à jour la description de l\'utilisateur connecté
6747
+ * @param {UpdateUserDescriptionRequestBody} updateUserDescriptionRequestBody
6748
+ * @param {*} [options] Override http request option.
6749
+ * @throws {RequiredError}
6750
+ */
6751
+ updateUserDescription(updateUserDescriptionRequestBody, options) {
6752
+ return __awaiter(this, void 0, void 0, function* () {
6753
+ var _a, _b, _c;
6754
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserDescription(updateUserDescriptionRequestBody, options);
6755
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6756
+ 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;
6757
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6758
+ });
6759
+ },
6760
+ };
6761
+ };
6762
+ exports.UserProfileApiFp = UserProfileApiFp;
6763
+ /**
6764
+ * UserProfileApi - factory interface
6765
+ * @export
6766
+ */
6767
+ const UserProfileApiFactory = function (configuration, basePath, axios) {
6768
+ const localVarFp = (0, exports.UserProfileApiFp)(configuration);
6769
+ return {
6770
+ /**
6771
+ *
6772
+ * @summary Modifie le mot de passe de l\'utilisateur connecté
6773
+ * @param {UserProfileApiChangePasswordRequest} requestParameters Request parameters.
6774
+ * @param {*} [options] Override http request option.
6775
+ * @throws {RequiredError}
6776
+ */
6777
+ changePassword(requestParameters, options) {
6778
+ return localVarFp.changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(axios, basePath));
6779
+ },
6780
+ /**
6781
+ *
6782
+ * @summary Récupère la liste des utilisateurs avec filtres et pagination
6783
+ * @param {UserProfileApiGetAllUsersRequest} requestParameters Request parameters.
6784
+ * @param {*} [options] Override http request option.
6785
+ * @throws {RequiredError}
6786
+ */
6787
+ getAllUsers(requestParameters = {}, options) {
6788
+ return localVarFp.getAllUsers(requestParameters.limit, requestParameters.skip, requestParameters.search, options).then((request) => request(axios, basePath));
6789
+ },
6790
+ /**
6791
+ *
6792
+ * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
6793
+ * @param {*} [options] Override http request option.
6794
+ * @throws {RequiredError}
6795
+ */
6796
+ getFrequentlyPlayedWith(options) {
6797
+ return localVarFp.getFrequentlyPlayedWith(options).then((request) => request(axios, basePath));
6798
+ },
6799
+ /**
6800
+ *
6801
+ * @summary Clubs les plus fréquemment visités par l\'utilisateur connecté
6802
+ * @param {*} [options] Override http request option.
6803
+ * @throws {RequiredError}
6804
+ */
6805
+ getFrequentlyVisitedClub(options) {
6806
+ return localVarFp.getFrequentlyVisitedClub(options).then((request) => request(axios, basePath));
6807
+ },
6808
+ /**
6809
+ *
6810
+ * @summary Récupère l\'URL de la photo de profil de l\'utilisateur connecté
6811
+ * @param {*} [options] Override http request option.
6812
+ * @throws {RequiredError}
6813
+ */
6814
+ getProfilePicture(options) {
6815
+ return localVarFp.getProfilePicture(options).then((request) => request(axios, basePath));
6816
+ },
6817
+ /**
6818
+ *
6819
+ * @summary Récupère la ville de l\'utilisateur connecté
6820
+ * @param {*} [options] Override http request option.
6821
+ * @throws {RequiredError}
6822
+ */
6823
+ getUserCity(options) {
6824
+ return localVarFp.getUserCity(options).then((request) => request(axios, basePath));
6825
+ },
6826
+ /**
6827
+ *
6828
+ * @summary Récupère la description de l\'utilisateur connecté
6829
+ * @param {*} [options] Override http request option.
6830
+ * @throws {RequiredError}
6831
+ */
6832
+ getUserDescription(options) {
6833
+ return localVarFp.getUserDescription(options).then((request) => request(axios, basePath));
6834
+ },
6835
+ /**
6836
+ *
6467
6837
  * @summary Récupère les informations de l\'utilisateur connecté
6468
6838
  * @param {*} [options] Override http request option.
6469
6839
  * @throws {RequiredError}
@@ -6471,6 +6841,45 @@ const UserProfileApiFactory = function (configuration, basePath, axios) {
6471
6841
  getUserInfo(options) {
6472
6842
  return localVarFp.getUserInfo(options).then((request) => request(axios, basePath));
6473
6843
  },
6844
+ /**
6845
+ *
6846
+ * @summary Récupère la visibilité du profil de l\'utilisateur connecté
6847
+ * @param {*} [options] Override http request option.
6848
+ * @throws {RequiredError}
6849
+ */
6850
+ getUserProfileVisibility(options) {
6851
+ return localVarFp.getUserProfileVisibility(options).then((request) => request(axios, basePath));
6852
+ },
6853
+ /**
6854
+ *
6855
+ * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
6856
+ * @param {UserProfileApiUpdateLevelBySportsRequest} requestParameters Request parameters.
6857
+ * @param {*} [options] Override http request option.
6858
+ * @throws {RequiredError}
6859
+ */
6860
+ updateLevelBySports(requestParameters, options) {
6861
+ return localVarFp.updateLevelBySports(requestParameters.updateLevelBySportsRequestBody, options).then((request) => request(axios, basePath));
6862
+ },
6863
+ /**
6864
+ *
6865
+ * @summary Met à jour l\'URL de la photo de profil de l\'utilisateur connecté
6866
+ * @param {UserProfileApiUpdateProfilePictureRequest} requestParameters Request parameters.
6867
+ * @param {*} [options] Override http request option.
6868
+ * @throws {RequiredError}
6869
+ */
6870
+ updateProfilePicture(requestParameters, options) {
6871
+ return localVarFp.updateProfilePicture(requestParameters.updateProfilePictureRequestBody, options).then((request) => request(axios, basePath));
6872
+ },
6873
+ /**
6874
+ *
6875
+ * @summary Met à jour la visibilité du profil de l\'utilisateur connecté
6876
+ * @param {UserProfileApiUpdateProfileVisibilityRequest} requestParameters Request parameters.
6877
+ * @param {*} [options] Override http request option.
6878
+ * @throws {RequiredError}
6879
+ */
6880
+ updateProfileVisibility(requestParameters, options) {
6881
+ return localVarFp.updateProfileVisibility(requestParameters.updateProfileVisibilityRequestBody, options).then((request) => request(axios, basePath));
6882
+ },
6474
6883
  /**
6475
6884
  *
6476
6885
  * @summary Met à jour les données de l\'utilisateur connecté
@@ -6481,6 +6890,26 @@ const UserProfileApiFactory = function (configuration, basePath, axios) {
6481
6890
  updateUser(requestParameters, options) {
6482
6891
  return localVarFp.updateUser(requestParameters.updateUserRequestBody, options).then((request) => request(axios, basePath));
6483
6892
  },
6893
+ /**
6894
+ *
6895
+ * @summary Met à jour la ville de l\'utilisateur connecté
6896
+ * @param {UserProfileApiUpdateUserCityRequest} requestParameters Request parameters.
6897
+ * @param {*} [options] Override http request option.
6898
+ * @throws {RequiredError}
6899
+ */
6900
+ updateUserCity(requestParameters, options) {
6901
+ return localVarFp.updateUserCity(requestParameters.updateUserCityRequestBody, options).then((request) => request(axios, basePath));
6902
+ },
6903
+ /**
6904
+ *
6905
+ * @summary Met à jour la description de l\'utilisateur connecté
6906
+ * @param {UserProfileApiUpdateUserDescriptionRequest} requestParameters Request parameters.
6907
+ * @param {*} [options] Override http request option.
6908
+ * @throws {RequiredError}
6909
+ */
6910
+ updateUserDescription(requestParameters, options) {
6911
+ return localVarFp.updateUserDescription(requestParameters.updateUserDescriptionRequestBody, options).then((request) => request(axios, basePath));
6912
+ },
6484
6913
  };
6485
6914
  };
6486
6915
  exports.UserProfileApiFactory = UserProfileApiFactory;
@@ -6513,6 +6942,56 @@ class UserProfileApi extends base_1.BaseAPI {
6513
6942
  getAllUsers(requestParameters = {}, options) {
6514
6943
  return (0, exports.UserProfileApiFp)(this.configuration).getAllUsers(requestParameters.limit, requestParameters.skip, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
6515
6944
  }
6945
+ /**
6946
+ *
6947
+ * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
6948
+ * @param {*} [options] Override http request option.
6949
+ * @throws {RequiredError}
6950
+ * @memberof UserProfileApi
6951
+ */
6952
+ getFrequentlyPlayedWith(options) {
6953
+ return (0, exports.UserProfileApiFp)(this.configuration).getFrequentlyPlayedWith(options).then((request) => request(this.axios, this.basePath));
6954
+ }
6955
+ /**
6956
+ *
6957
+ * @summary Clubs les plus fréquemment visités par l\'utilisateur connecté
6958
+ * @param {*} [options] Override http request option.
6959
+ * @throws {RequiredError}
6960
+ * @memberof UserProfileApi
6961
+ */
6962
+ getFrequentlyVisitedClub(options) {
6963
+ return (0, exports.UserProfileApiFp)(this.configuration).getFrequentlyVisitedClub(options).then((request) => request(this.axios, this.basePath));
6964
+ }
6965
+ /**
6966
+ *
6967
+ * @summary Récupère l\'URL de la photo de profil de l\'utilisateur connecté
6968
+ * @param {*} [options] Override http request option.
6969
+ * @throws {RequiredError}
6970
+ * @memberof UserProfileApi
6971
+ */
6972
+ getProfilePicture(options) {
6973
+ return (0, exports.UserProfileApiFp)(this.configuration).getProfilePicture(options).then((request) => request(this.axios, this.basePath));
6974
+ }
6975
+ /**
6976
+ *
6977
+ * @summary Récupère la ville de l\'utilisateur connecté
6978
+ * @param {*} [options] Override http request option.
6979
+ * @throws {RequiredError}
6980
+ * @memberof UserProfileApi
6981
+ */
6982
+ getUserCity(options) {
6983
+ return (0, exports.UserProfileApiFp)(this.configuration).getUserCity(options).then((request) => request(this.axios, this.basePath));
6984
+ }
6985
+ /**
6986
+ *
6987
+ * @summary Récupère la description de l\'utilisateur connecté
6988
+ * @param {*} [options] Override http request option.
6989
+ * @throws {RequiredError}
6990
+ * @memberof UserProfileApi
6991
+ */
6992
+ getUserDescription(options) {
6993
+ return (0, exports.UserProfileApiFp)(this.configuration).getUserDescription(options).then((request) => request(this.axios, this.basePath));
6994
+ }
6516
6995
  /**
6517
6996
  *
6518
6997
  * @summary Récupère les informations de l\'utilisateur connecté
@@ -6523,6 +7002,49 @@ class UserProfileApi extends base_1.BaseAPI {
6523
7002
  getUserInfo(options) {
6524
7003
  return (0, exports.UserProfileApiFp)(this.configuration).getUserInfo(options).then((request) => request(this.axios, this.basePath));
6525
7004
  }
7005
+ /**
7006
+ *
7007
+ * @summary Récupère la visibilité du profil de l\'utilisateur connecté
7008
+ * @param {*} [options] Override http request option.
7009
+ * @throws {RequiredError}
7010
+ * @memberof UserProfileApi
7011
+ */
7012
+ getUserProfileVisibility(options) {
7013
+ return (0, exports.UserProfileApiFp)(this.configuration).getUserProfileVisibility(options).then((request) => request(this.axios, this.basePath));
7014
+ }
7015
+ /**
7016
+ *
7017
+ * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
7018
+ * @param {UserProfileApiUpdateLevelBySportsRequest} requestParameters Request parameters.
7019
+ * @param {*} [options] Override http request option.
7020
+ * @throws {RequiredError}
7021
+ * @memberof UserProfileApi
7022
+ */
7023
+ updateLevelBySports(requestParameters, options) {
7024
+ return (0, exports.UserProfileApiFp)(this.configuration).updateLevelBySports(requestParameters.updateLevelBySportsRequestBody, options).then((request) => request(this.axios, this.basePath));
7025
+ }
7026
+ /**
7027
+ *
7028
+ * @summary Met à jour l\'URL de la photo de profil de l\'utilisateur connecté
7029
+ * @param {UserProfileApiUpdateProfilePictureRequest} requestParameters Request parameters.
7030
+ * @param {*} [options] Override http request option.
7031
+ * @throws {RequiredError}
7032
+ * @memberof UserProfileApi
7033
+ */
7034
+ updateProfilePicture(requestParameters, options) {
7035
+ return (0, exports.UserProfileApiFp)(this.configuration).updateProfilePicture(requestParameters.updateProfilePictureRequestBody, options).then((request) => request(this.axios, this.basePath));
7036
+ }
7037
+ /**
7038
+ *
7039
+ * @summary Met à jour la visibilité du profil de l\'utilisateur connecté
7040
+ * @param {UserProfileApiUpdateProfileVisibilityRequest} requestParameters Request parameters.
7041
+ * @param {*} [options] Override http request option.
7042
+ * @throws {RequiredError}
7043
+ * @memberof UserProfileApi
7044
+ */
7045
+ updateProfileVisibility(requestParameters, options) {
7046
+ return (0, exports.UserProfileApiFp)(this.configuration).updateProfileVisibility(requestParameters.updateProfileVisibilityRequestBody, options).then((request) => request(this.axios, this.basePath));
7047
+ }
6526
7048
  /**
6527
7049
  *
6528
7050
  * @summary Met à jour les données de l\'utilisateur connecté
@@ -6534,6 +7056,28 @@ class UserProfileApi extends base_1.BaseAPI {
6534
7056
  updateUser(requestParameters, options) {
6535
7057
  return (0, exports.UserProfileApiFp)(this.configuration).updateUser(requestParameters.updateUserRequestBody, options).then((request) => request(this.axios, this.basePath));
6536
7058
  }
7059
+ /**
7060
+ *
7061
+ * @summary Met à jour la ville de l\'utilisateur connecté
7062
+ * @param {UserProfileApiUpdateUserCityRequest} requestParameters Request parameters.
7063
+ * @param {*} [options] Override http request option.
7064
+ * @throws {RequiredError}
7065
+ * @memberof UserProfileApi
7066
+ */
7067
+ updateUserCity(requestParameters, options) {
7068
+ return (0, exports.UserProfileApiFp)(this.configuration).updateUserCity(requestParameters.updateUserCityRequestBody, options).then((request) => request(this.axios, this.basePath));
7069
+ }
7070
+ /**
7071
+ *
7072
+ * @summary Met à jour la description de l\'utilisateur connecté
7073
+ * @param {UserProfileApiUpdateUserDescriptionRequest} requestParameters Request parameters.
7074
+ * @param {*} [options] Override http request option.
7075
+ * @throws {RequiredError}
7076
+ * @memberof UserProfileApi
7077
+ */
7078
+ updateUserDescription(requestParameters, options) {
7079
+ return (0, exports.UserProfileApiFp)(this.configuration).updateUserDescription(requestParameters.updateUserDescriptionRequestBody, options).then((request) => request(this.axios, this.basePath));
7080
+ }
6537
7081
  }
6538
7082
  exports.UserProfileApi = UserProfileApi;
6539
7083
  /**