@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/esm/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Pandook API
5
5
  * API for managing pickle ball games and players
6
6
  *
7
- * The version of the OpenAPI document: 1.0.23
7
+ * The version of the OpenAPI document: 1.0.25
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2673,250 +2673,6 @@ export class ManagerClubRolesApi extends BaseAPI {
2673
2673
  return ManagerClubRolesApiFp(this.configuration).updateClubRole(requestParameters.id, requestParameters.updateClubRoleRequestBody, options).then((request) => request(this.axios, this.basePath));
2674
2674
  }
2675
2675
  }
2676
- /**
2677
- * ManagerClubSettingsApi - axios parameter creator
2678
- * @export
2679
- */
2680
- export const ManagerClubSettingsApiAxiosParamCreator = function (configuration) {
2681
- return {
2682
- /**
2683
- *
2684
- * @summary Créer les paramètres d\'un club
2685
- * @param {CreateClubSettingsRequest} createClubSettingsRequest
2686
- * @param {*} [options] Override http request option.
2687
- * @throws {RequiredError}
2688
- */
2689
- createClubSettings: (createClubSettingsRequest_1, ...args_1) => __awaiter(this, [createClubSettingsRequest_1, ...args_1], void 0, function* (createClubSettingsRequest, options = {}) {
2690
- // verify required parameter 'createClubSettingsRequest' is not null or undefined
2691
- assertParamExists('createClubSettings', 'createClubSettingsRequest', createClubSettingsRequest);
2692
- const localVarPath = `/api/club-settings`;
2693
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2694
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2695
- let baseOptions;
2696
- if (configuration) {
2697
- baseOptions = configuration.baseOptions;
2698
- }
2699
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2700
- const localVarHeaderParameter = {};
2701
- const localVarQueryParameter = {};
2702
- // authentication bearerAuth required
2703
- // http bearer authentication required
2704
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2705
- localVarHeaderParameter['Content-Type'] = 'application/json';
2706
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2707
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2708
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2709
- localVarRequestOptions.data = serializeDataIfNeeded(createClubSettingsRequest, localVarRequestOptions, configuration);
2710
- return {
2711
- url: toPathString(localVarUrlObj),
2712
- options: localVarRequestOptions,
2713
- };
2714
- }),
2715
- /**
2716
- *
2717
- * @summary Supprimer les paramètres d\'un club
2718
- * @param {DeleteClubSettingsRequest} deleteClubSettingsRequest
2719
- * @param {*} [options] Override http request option.
2720
- * @throws {RequiredError}
2721
- */
2722
- deleteClubSettings: (deleteClubSettingsRequest_1, ...args_1) => __awaiter(this, [deleteClubSettingsRequest_1, ...args_1], void 0, function* (deleteClubSettingsRequest, options = {}) {
2723
- // verify required parameter 'deleteClubSettingsRequest' is not null or undefined
2724
- assertParamExists('deleteClubSettings', 'deleteClubSettingsRequest', deleteClubSettingsRequest);
2725
- const localVarPath = `/api/club-settings`;
2726
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2727
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2728
- let baseOptions;
2729
- if (configuration) {
2730
- baseOptions = configuration.baseOptions;
2731
- }
2732
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
2733
- const localVarHeaderParameter = {};
2734
- const localVarQueryParameter = {};
2735
- // authentication bearerAuth required
2736
- // http bearer authentication required
2737
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2738
- localVarHeaderParameter['Content-Type'] = 'application/json';
2739
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2740
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2741
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2742
- localVarRequestOptions.data = serializeDataIfNeeded(deleteClubSettingsRequest, localVarRequestOptions, configuration);
2743
- return {
2744
- url: toPathString(localVarUrlObj),
2745
- options: localVarRequestOptions,
2746
- };
2747
- }),
2748
- /**
2749
- *
2750
- * @summary Mettre à jour les paramètres d\'un club
2751
- * @param {UpdateClubSettingsRequest} updateClubSettingsRequest
2752
- * @param {*} [options] Override http request option.
2753
- * @throws {RequiredError}
2754
- */
2755
- updateClubSettings: (updateClubSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubSettingsRequest_1, ...args_1], void 0, function* (updateClubSettingsRequest, options = {}) {
2756
- // verify required parameter 'updateClubSettingsRequest' is not null or undefined
2757
- assertParamExists('updateClubSettings', 'updateClubSettingsRequest', updateClubSettingsRequest);
2758
- const localVarPath = `/api/club-settings`;
2759
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2760
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2761
- let baseOptions;
2762
- if (configuration) {
2763
- baseOptions = configuration.baseOptions;
2764
- }
2765
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
2766
- const localVarHeaderParameter = {};
2767
- const localVarQueryParameter = {};
2768
- // authentication bearerAuth required
2769
- // http bearer authentication required
2770
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2771
- localVarHeaderParameter['Content-Type'] = 'application/json';
2772
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2773
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2774
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2775
- localVarRequestOptions.data = serializeDataIfNeeded(updateClubSettingsRequest, localVarRequestOptions, configuration);
2776
- return {
2777
- url: toPathString(localVarUrlObj),
2778
- options: localVarRequestOptions,
2779
- };
2780
- }),
2781
- };
2782
- };
2783
- /**
2784
- * ManagerClubSettingsApi - functional programming interface
2785
- * @export
2786
- */
2787
- export const ManagerClubSettingsApiFp = function (configuration) {
2788
- const localVarAxiosParamCreator = ManagerClubSettingsApiAxiosParamCreator(configuration);
2789
- return {
2790
- /**
2791
- *
2792
- * @summary Créer les paramètres d\'un club
2793
- * @param {CreateClubSettingsRequest} createClubSettingsRequest
2794
- * @param {*} [options] Override http request option.
2795
- * @throws {RequiredError}
2796
- */
2797
- createClubSettings(createClubSettingsRequest, options) {
2798
- return __awaiter(this, void 0, void 0, function* () {
2799
- var _a, _b, _c;
2800
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createClubSettings(createClubSettingsRequest, options);
2801
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2802
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubSettingsApi.createClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2803
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2804
- });
2805
- },
2806
- /**
2807
- *
2808
- * @summary Supprimer les paramètres d\'un club
2809
- * @param {DeleteClubSettingsRequest} deleteClubSettingsRequest
2810
- * @param {*} [options] Override http request option.
2811
- * @throws {RequiredError}
2812
- */
2813
- deleteClubSettings(deleteClubSettingsRequest, options) {
2814
- return __awaiter(this, void 0, void 0, function* () {
2815
- var _a, _b, _c;
2816
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteClubSettings(deleteClubSettingsRequest, options);
2817
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2818
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubSettingsApi.deleteClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2819
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2820
- });
2821
- },
2822
- /**
2823
- *
2824
- * @summary Mettre à jour les paramètres d\'un club
2825
- * @param {UpdateClubSettingsRequest} updateClubSettingsRequest
2826
- * @param {*} [options] Override http request option.
2827
- * @throws {RequiredError}
2828
- */
2829
- updateClubSettings(updateClubSettingsRequest, options) {
2830
- return __awaiter(this, void 0, void 0, function* () {
2831
- var _a, _b, _c;
2832
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubSettings(updateClubSettingsRequest, options);
2833
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2834
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubSettingsApi.updateClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2835
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2836
- });
2837
- },
2838
- };
2839
- };
2840
- /**
2841
- * ManagerClubSettingsApi - factory interface
2842
- * @export
2843
- */
2844
- export const ManagerClubSettingsApiFactory = function (configuration, basePath, axios) {
2845
- const localVarFp = ManagerClubSettingsApiFp(configuration);
2846
- return {
2847
- /**
2848
- *
2849
- * @summary Créer les paramètres d\'un club
2850
- * @param {ManagerClubSettingsApiCreateClubSettingsRequest} requestParameters Request parameters.
2851
- * @param {*} [options] Override http request option.
2852
- * @throws {RequiredError}
2853
- */
2854
- createClubSettings(requestParameters, options) {
2855
- return localVarFp.createClubSettings(requestParameters.createClubSettingsRequest, options).then((request) => request(axios, basePath));
2856
- },
2857
- /**
2858
- *
2859
- * @summary Supprimer les paramètres d\'un club
2860
- * @param {ManagerClubSettingsApiDeleteClubSettingsRequest} requestParameters Request parameters.
2861
- * @param {*} [options] Override http request option.
2862
- * @throws {RequiredError}
2863
- */
2864
- deleteClubSettings(requestParameters, options) {
2865
- return localVarFp.deleteClubSettings(requestParameters.deleteClubSettingsRequest, options).then((request) => request(axios, basePath));
2866
- },
2867
- /**
2868
- *
2869
- * @summary Mettre à jour les paramètres d\'un club
2870
- * @param {ManagerClubSettingsApiUpdateClubSettingsRequest} requestParameters Request parameters.
2871
- * @param {*} [options] Override http request option.
2872
- * @throws {RequiredError}
2873
- */
2874
- updateClubSettings(requestParameters, options) {
2875
- return localVarFp.updateClubSettings(requestParameters.updateClubSettingsRequest, options).then((request) => request(axios, basePath));
2876
- },
2877
- };
2878
- };
2879
- /**
2880
- * ManagerClubSettingsApi - object-oriented interface
2881
- * @export
2882
- * @class ManagerClubSettingsApi
2883
- * @extends {BaseAPI}
2884
- */
2885
- export class ManagerClubSettingsApi extends BaseAPI {
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
- * @memberof ManagerClubSettingsApi
2893
- */
2894
- createClubSettings(requestParameters, options) {
2895
- return ManagerClubSettingsApiFp(this.configuration).createClubSettings(requestParameters.createClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
2896
- }
2897
- /**
2898
- *
2899
- * @summary Supprimer les paramètres d\'un club
2900
- * @param {ManagerClubSettingsApiDeleteClubSettingsRequest} requestParameters Request parameters.
2901
- * @param {*} [options] Override http request option.
2902
- * @throws {RequiredError}
2903
- * @memberof ManagerClubSettingsApi
2904
- */
2905
- deleteClubSettings(requestParameters, options) {
2906
- return ManagerClubSettingsApiFp(this.configuration).deleteClubSettings(requestParameters.deleteClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
2907
- }
2908
- /**
2909
- *
2910
- * @summary Mettre à jour les paramètres d\'un club
2911
- * @param {ManagerClubSettingsApiUpdateClubSettingsRequest} requestParameters Request parameters.
2912
- * @param {*} [options] Override http request option.
2913
- * @throws {RequiredError}
2914
- * @memberof ManagerClubSettingsApi
2915
- */
2916
- updateClubSettings(requestParameters, options) {
2917
- return ManagerClubSettingsApiFp(this.configuration).updateClubSettings(requestParameters.updateClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
2918
- }
2919
- }
2920
2676
  /**
2921
2677
  * ManagerClubSlotsApi - axios parameter creator
2922
2678
  * @export
@@ -4542,6 +4298,39 @@ export const StaffClubsApiAxiosParamCreator = function (configuration) {
4542
4298
  options: localVarRequestOptions,
4543
4299
  };
4544
4300
  }),
4301
+ /**
4302
+ *
4303
+ * @summary Récupère les paramètres d’un club
4304
+ * @param {GetClubSettingsRequest} getClubSettingsRequest
4305
+ * @param {*} [options] Override http request option.
4306
+ * @throws {RequiredError}
4307
+ */
4308
+ getClubSettings: (getClubSettingsRequest_1, ...args_1) => __awaiter(this, [getClubSettingsRequest_1, ...args_1], void 0, function* (getClubSettingsRequest, options = {}) {
4309
+ // verify required parameter 'getClubSettingsRequest' is not null or undefined
4310
+ assertParamExists('getClubSettings', 'getClubSettingsRequest', getClubSettingsRequest);
4311
+ const localVarPath = `/api/club-settings`;
4312
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4313
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4314
+ let baseOptions;
4315
+ if (configuration) {
4316
+ baseOptions = configuration.baseOptions;
4317
+ }
4318
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4319
+ const localVarHeaderParameter = {};
4320
+ const localVarQueryParameter = {};
4321
+ // authentication bearerAuth required
4322
+ // http bearer authentication required
4323
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4324
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4325
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4326
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4327
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4328
+ localVarRequestOptions.data = serializeDataIfNeeded(getClubSettingsRequest, localVarRequestOptions, configuration);
4329
+ return {
4330
+ url: toPathString(localVarUrlObj),
4331
+ options: localVarRequestOptions,
4332
+ };
4333
+ }),
4545
4334
  };
4546
4335
  };
4547
4336
  /**
@@ -4566,6 +4355,22 @@ export const StaffClubsApiFp = function (configuration) {
4566
4355
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4567
4356
  });
4568
4357
  },
4358
+ /**
4359
+ *
4360
+ * @summary Récupère les paramètres d’un club
4361
+ * @param {GetClubSettingsRequest} getClubSettingsRequest
4362
+ * @param {*} [options] Override http request option.
4363
+ * @throws {RequiredError}
4364
+ */
4365
+ getClubSettings(getClubSettingsRequest, options) {
4366
+ return __awaiter(this, void 0, void 0, function* () {
4367
+ var _a, _b, _c;
4368
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubSettings(getClubSettingsRequest, options);
4369
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4370
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StaffClubsApi.getClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4371
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4372
+ });
4373
+ },
4569
4374
  };
4570
4375
  };
4571
4376
  /**
@@ -4584,6 +4389,16 @@ export const StaffClubsApiFactory = function (configuration, basePath, axios) {
4584
4389
  getClubInfos(options) {
4585
4390
  return localVarFp.getClubInfos(options).then((request) => request(axios, basePath));
4586
4391
  },
4392
+ /**
4393
+ *
4394
+ * @summary Récupère les paramètres d’un club
4395
+ * @param {StaffClubsApiGetClubSettingsRequest} requestParameters Request parameters.
4396
+ * @param {*} [options] Override http request option.
4397
+ * @throws {RequiredError}
4398
+ */
4399
+ getClubSettings(requestParameters, options) {
4400
+ return localVarFp.getClubSettings(requestParameters.getClubSettingsRequest, options).then((request) => request(axios, basePath));
4401
+ },
4587
4402
  };
4588
4403
  };
4589
4404
  /**
@@ -4603,6 +4418,17 @@ export class StaffClubsApi extends BaseAPI {
4603
4418
  getClubInfos(options) {
4604
4419
  return StaffClubsApiFp(this.configuration).getClubInfos(options).then((request) => request(this.axios, this.basePath));
4605
4420
  }
4421
+ /**
4422
+ *
4423
+ * @summary Récupère les paramètres d’un club
4424
+ * @param {StaffClubsApiGetClubSettingsRequest} requestParameters Request parameters.
4425
+ * @param {*} [options] Override http request option.
4426
+ * @throws {RequiredError}
4427
+ * @memberof StaffClubsApi
4428
+ */
4429
+ getClubSettings(requestParameters, options) {
4430
+ return StaffClubsApiFp(this.configuration).getClubSettings(requestParameters.getClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
4431
+ }
4606
4432
  }
4607
4433
  /**
4608
4434
  * StaffProfileApi - axios parameter creator
@@ -4706,39 +4532,6 @@ export class StaffProfileApi extends BaseAPI {
4706
4532
  */
4707
4533
  export const UserApiAxiosParamCreator = function (configuration) {
4708
4534
  return {
4709
- /**
4710
- *
4711
- * @summary Abonne l\'utilisateur connecté à un club
4712
- * @param {SubscribeToClubRequestBody} subscribeToClubRequestBody
4713
- * @param {*} [options] Override http request option.
4714
- * @throws {RequiredError}
4715
- */
4716
- subscribeToClub: (subscribeToClubRequestBody_1, ...args_1) => __awaiter(this, [subscribeToClubRequestBody_1, ...args_1], void 0, function* (subscribeToClubRequestBody, options = {}) {
4717
- // verify required parameter 'subscribeToClubRequestBody' is not null or undefined
4718
- assertParamExists('subscribeToClub', 'subscribeToClubRequestBody', subscribeToClubRequestBody);
4719
- const localVarPath = `/api/users/me/subscribe`;
4720
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
4721
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4722
- let baseOptions;
4723
- if (configuration) {
4724
- baseOptions = configuration.baseOptions;
4725
- }
4726
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4727
- const localVarHeaderParameter = {};
4728
- const localVarQueryParameter = {};
4729
- // authentication bearerAuth required
4730
- // http bearer authentication required
4731
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4732
- localVarHeaderParameter['Content-Type'] = 'application/json';
4733
- setSearchParams(localVarUrlObj, localVarQueryParameter);
4734
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4735
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4736
- localVarRequestOptions.data = serializeDataIfNeeded(subscribeToClubRequestBody, localVarRequestOptions, configuration);
4737
- return {
4738
- url: toPathString(localVarUrlObj),
4739
- options: localVarRequestOptions,
4740
- };
4741
- }),
4742
4535
  /**
4743
4536
  *
4744
4537
  * @summary Met à jour le Customer Stripe de l\'utilisateur
@@ -4783,33 +4576,17 @@ export const UserApiFp = function (configuration) {
4783
4576
  return {
4784
4577
  /**
4785
4578
  *
4786
- * @summary Abonne l\'utilisateur connecté à un club
4787
- * @param {SubscribeToClubRequestBody} subscribeToClubRequestBody
4579
+ * @summary Met à jour le Customer Stripe de l\'utilisateur
4580
+ * @param {UpdateCustomerRequestBody} updateCustomerRequestBody
4788
4581
  * @param {*} [options] Override http request option.
4789
4582
  * @throws {RequiredError}
4790
4583
  */
4791
- subscribeToClub(subscribeToClubRequestBody, options) {
4584
+ updateCustomer(updateCustomerRequestBody, options) {
4792
4585
  return __awaiter(this, void 0, void 0, function* () {
4793
4586
  var _a, _b, _c;
4794
- const localVarAxiosArgs = yield localVarAxiosParamCreator.subscribeToClub(subscribeToClubRequestBody, options);
4587
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateCustomer(updateCustomerRequestBody, options);
4795
4588
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4796
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.subscribeToClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4797
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4798
- });
4799
- },
4800
- /**
4801
- *
4802
- * @summary Met à jour le Customer Stripe de l\'utilisateur
4803
- * @param {UpdateCustomerRequestBody} updateCustomerRequestBody
4804
- * @param {*} [options] Override http request option.
4805
- * @throws {RequiredError}
4806
- */
4807
- updateCustomer(updateCustomerRequestBody, options) {
4808
- return __awaiter(this, void 0, void 0, function* () {
4809
- var _a, _b, _c;
4810
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateCustomer(updateCustomerRequestBody, options);
4811
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4812
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.updateCustomer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4589
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.updateCustomer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4813
4590
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4814
4591
  });
4815
4592
  },
@@ -4822,16 +4599,6 @@ export const UserApiFp = function (configuration) {
4822
4599
  export const UserApiFactory = function (configuration, basePath, axios) {
4823
4600
  const localVarFp = UserApiFp(configuration);
4824
4601
  return {
4825
- /**
4826
- *
4827
- * @summary Abonne l\'utilisateur connecté à un club
4828
- * @param {UserApiSubscribeToClubRequest} requestParameters Request parameters.
4829
- * @param {*} [options] Override http request option.
4830
- * @throws {RequiredError}
4831
- */
4832
- subscribeToClub(requestParameters, options) {
4833
- return localVarFp.subscribeToClub(requestParameters.subscribeToClubRequestBody, options).then((request) => request(axios, basePath));
4834
- },
4835
4602
  /**
4836
4603
  *
4837
4604
  * @summary Met à jour le Customer Stripe de l\'utilisateur
@@ -4851,17 +4618,6 @@ export const UserApiFactory = function (configuration, basePath, axios) {
4851
4618
  * @extends {BaseAPI}
4852
4619
  */
4853
4620
  export class UserApi extends BaseAPI {
4854
- /**
4855
- *
4856
- * @summary Abonne l\'utilisateur connecté à un club
4857
- * @param {UserApiSubscribeToClubRequest} requestParameters Request parameters.
4858
- * @param {*} [options] Override http request option.
4859
- * @throws {RequiredError}
4860
- * @memberof UserApi
4861
- */
4862
- subscribeToClub(requestParameters, options) {
4863
- return UserApiFp(this.configuration).subscribeToClub(requestParameters.subscribeToClubRequestBody, options).then((request) => request(this.axios, this.basePath));
4864
- }
4865
4621
  /**
4866
4622
  *
4867
4623
  * @summary Met à jour le Customer Stripe de l\'utilisateur
@@ -5944,6 +5700,39 @@ export class UserClubsApi extends BaseAPI {
5944
5700
  */
5945
5701
  export const UserPaymentApiAxiosParamCreator = function (configuration) {
5946
5702
  return {
5703
+ /**
5704
+ *
5705
+ * @summary Ajoute une méthode de paiement Stripe à la liste de l\'utilisateur
5706
+ * @param {AddPaymentMethodSetupRequestBody} addPaymentMethodSetupRequestBody
5707
+ * @param {*} [options] Override http request option.
5708
+ * @throws {RequiredError}
5709
+ */
5710
+ addPaymentMethodSetup: (addPaymentMethodSetupRequestBody_1, ...args_1) => __awaiter(this, [addPaymentMethodSetupRequestBody_1, ...args_1], void 0, function* (addPaymentMethodSetupRequestBody, options = {}) {
5711
+ // verify required parameter 'addPaymentMethodSetupRequestBody' is not null or undefined
5712
+ assertParamExists('addPaymentMethodSetup', 'addPaymentMethodSetupRequestBody', addPaymentMethodSetupRequestBody);
5713
+ const localVarPath = `/api/users/addPaymentMethodSetup`;
5714
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5715
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5716
+ let baseOptions;
5717
+ if (configuration) {
5718
+ baseOptions = configuration.baseOptions;
5719
+ }
5720
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5721
+ const localVarHeaderParameter = {};
5722
+ const localVarQueryParameter = {};
5723
+ // authentication bearerAuth required
5724
+ // http bearer authentication required
5725
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5726
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5727
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5728
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5729
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5730
+ localVarRequestOptions.data = serializeDataIfNeeded(addPaymentMethodSetupRequestBody, localVarRequestOptions, configuration);
5731
+ return {
5732
+ url: toPathString(localVarUrlObj),
5733
+ options: localVarRequestOptions,
5734
+ };
5735
+ }),
5947
5736
  /**
5948
5737
  * Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
5949
5738
  * @summary Confirme la configuration d\'une méthode de paiement
@@ -6019,6 +5808,22 @@ export const UserPaymentApiAxiosParamCreator = function (configuration) {
6019
5808
  export const UserPaymentApiFp = function (configuration) {
6020
5809
  const localVarAxiosParamCreator = UserPaymentApiAxiosParamCreator(configuration);
6021
5810
  return {
5811
+ /**
5812
+ *
5813
+ * @summary Ajoute une méthode de paiement Stripe à la liste de l\'utilisateur
5814
+ * @param {AddPaymentMethodSetupRequestBody} addPaymentMethodSetupRequestBody
5815
+ * @param {*} [options] Override http request option.
5816
+ * @throws {RequiredError}
5817
+ */
5818
+ addPaymentMethodSetup(addPaymentMethodSetupRequestBody, options) {
5819
+ return __awaiter(this, void 0, void 0, function* () {
5820
+ var _a, _b, _c;
5821
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addPaymentMethodSetup(addPaymentMethodSetupRequestBody, options);
5822
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5823
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserPaymentApi.addPaymentMethodSetup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5824
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5825
+ });
5826
+ },
6022
5827
  /**
6023
5828
  * Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
6024
5829
  * @summary Confirme la configuration d\'une méthode de paiement
@@ -6060,6 +5865,16 @@ export const UserPaymentApiFp = function (configuration) {
6060
5865
  export const UserPaymentApiFactory = function (configuration, basePath, axios) {
6061
5866
  const localVarFp = UserPaymentApiFp(configuration);
6062
5867
  return {
5868
+ /**
5869
+ *
5870
+ * @summary Ajoute une méthode de paiement Stripe à la liste de l\'utilisateur
5871
+ * @param {UserPaymentApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
5872
+ * @param {*} [options] Override http request option.
5873
+ * @throws {RequiredError}
5874
+ */
5875
+ addPaymentMethodSetup(requestParameters, options) {
5876
+ return localVarFp.addPaymentMethodSetup(requestParameters.addPaymentMethodSetupRequestBody, options).then((request) => request(axios, basePath));
5877
+ },
6063
5878
  /**
6064
5879
  * Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
6065
5880
  * @summary Confirme la configuration d\'une méthode de paiement
@@ -6089,6 +5904,17 @@ export const UserPaymentApiFactory = function (configuration, basePath, axios) {
6089
5904
  * @extends {BaseAPI}
6090
5905
  */
6091
5906
  export class UserPaymentApi extends BaseAPI {
5907
+ /**
5908
+ *
5909
+ * @summary Ajoute une méthode de paiement Stripe à la liste de l\'utilisateur
5910
+ * @param {UserPaymentApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
5911
+ * @param {*} [options] Override http request option.
5912
+ * @throws {RequiredError}
5913
+ * @memberof UserPaymentApi
5914
+ */
5915
+ addPaymentMethodSetup(requestParameters, options) {
5916
+ return UserPaymentApiFp(this.configuration).addPaymentMethodSetup(requestParameters.addPaymentMethodSetupRequestBody, options).then((request) => request(this.axios, this.basePath));
5917
+ }
6092
5918
  /**
6093
5919
  * Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
6094
5920
  * @summary Confirme la configuration d\'une méthode de paiement
@@ -6193,12 +6019,12 @@ export const UserProfileApiAxiosParamCreator = function (configuration) {
6193
6019
  }),
6194
6020
  /**
6195
6021
  *
6196
- * @summary Récupère les informations de l\'utilisateur connecté
6022
+ * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
6197
6023
  * @param {*} [options] Override http request option.
6198
6024
  * @throws {RequiredError}
6199
6025
  */
6200
- getUserInfo: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6201
- const localVarPath = `/api/users/me`;
6026
+ getFrequentlyPlayedWith: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6027
+ const localVarPath = `/api/users/me/frequentlyPlayedWith`;
6202
6028
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6203
6029
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6204
6030
  let baseOptions;
@@ -6221,149 +6047,736 @@ export const UserProfileApiAxiosParamCreator = function (configuration) {
6221
6047
  }),
6222
6048
  /**
6223
6049
  *
6224
- * @summary Met à jour les données de l\'utilisateur connecté
6225
- * @param {UpdateUserRequestBody} updateUserRequestBody
6050
+ * @summary Clubs les plus fréquemment visités par l\'utilisateur connecté
6226
6051
  * @param {*} [options] Override http request option.
6227
6052
  * @throws {RequiredError}
6228
6053
  */
6229
- updateUser: (updateUserRequestBody_1, ...args_1) => __awaiter(this, [updateUserRequestBody_1, ...args_1], void 0, function* (updateUserRequestBody, options = {}) {
6230
- // verify required parameter 'updateUserRequestBody' is not null or undefined
6231
- assertParamExists('updateUser', 'updateUserRequestBody', updateUserRequestBody);
6232
- const localVarPath = `/api/users/me`;
6054
+ getFrequentlyVisitedClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6055
+ const localVarPath = `/api/users/me/frequentlyVisitedClub`;
6233
6056
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6234
6057
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6235
6058
  let baseOptions;
6236
6059
  if (configuration) {
6237
6060
  baseOptions = configuration.baseOptions;
6238
6061
  }
6239
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
6062
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6240
6063
  const localVarHeaderParameter = {};
6241
6064
  const localVarQueryParameter = {};
6242
6065
  // authentication bearerAuth required
6243
6066
  // http bearer authentication required
6244
6067
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6245
- localVarHeaderParameter['Content-Type'] = 'application/json';
6246
6068
  setSearchParams(localVarUrlObj, localVarQueryParameter);
6247
6069
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6248
6070
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6249
- localVarRequestOptions.data = serializeDataIfNeeded(updateUserRequestBody, localVarRequestOptions, configuration);
6250
6071
  return {
6251
6072
  url: toPathString(localVarUrlObj),
6252
6073
  options: localVarRequestOptions,
6253
6074
  };
6254
6075
  }),
6255
- };
6256
- };
6257
- /**
6258
- * UserProfileApi - functional programming interface
6259
- * @export
6260
- */
6261
- export const UserProfileApiFp = function (configuration) {
6262
- const localVarAxiosParamCreator = UserProfileApiAxiosParamCreator(configuration);
6263
- return {
6264
- /**
6265
- *
6266
- * @summary Modifie le mot de passe de l\'utilisateur connecté
6267
- * @param {ChangePasswordRequestBody} changePasswordRequestBody
6268
- * @param {*} [options] Override http request option.
6269
- * @throws {RequiredError}
6270
- */
6271
- changePassword(changePasswordRequestBody, options) {
6272
- return __awaiter(this, void 0, void 0, function* () {
6273
- var _a, _b, _c;
6274
- const localVarAxiosArgs = yield localVarAxiosParamCreator.changePassword(changePasswordRequestBody, options);
6275
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6276
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.changePassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6277
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6278
- });
6279
- },
6280
6076
  /**
6281
6077
  *
6282
- * @summary Récupère la liste des utilisateurs avec filtres et pagination
6283
- * @param {number} [limit] Nombre maximum d\'utilisateurs à retourner
6284
- * @param {number} [skip] Nombre d\'utilisateurs à ignorer (pagination)
6285
- * @param {string} [search] Recherche dans firstName, lastName, email
6078
+ * @summary Récupère l\'URL de la photo de profil de l\'utilisateur connecté
6286
6079
  * @param {*} [options] Override http request option.
6287
6080
  * @throws {RequiredError}
6288
6081
  */
6289
- getAllUsers(limit, skip, search, options) {
6290
- return __awaiter(this, void 0, void 0, function* () {
6291
- var _a, _b, _c;
6292
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllUsers(limit, skip, search, options);
6293
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6294
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.getAllUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6295
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6296
- });
6297
- },
6082
+ getProfilePicture: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6083
+ const localVarPath = `/api/users/me/profile-picture`;
6084
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6085
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6086
+ let baseOptions;
6087
+ if (configuration) {
6088
+ baseOptions = configuration.baseOptions;
6089
+ }
6090
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6091
+ const localVarHeaderParameter = {};
6092
+ const localVarQueryParameter = {};
6093
+ // authentication bearerAuth required
6094
+ // http bearer authentication required
6095
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6096
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6097
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6098
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6099
+ return {
6100
+ url: toPathString(localVarUrlObj),
6101
+ options: localVarRequestOptions,
6102
+ };
6103
+ }),
6298
6104
  /**
6299
6105
  *
6300
- * @summary Récupère les informations de l\'utilisateur connecté
6106
+ * @summary Récupère la ville de l\'utilisateur connecté
6301
6107
  * @param {*} [options] Override http request option.
6302
6108
  * @throws {RequiredError}
6303
6109
  */
6304
- getUserInfo(options) {
6305
- return __awaiter(this, void 0, void 0, function* () {
6306
- var _a, _b, _c;
6307
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserInfo(options);
6308
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6309
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.getUserInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6310
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6311
- });
6312
- },
6110
+ getUserCity: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6111
+ const localVarPath = `/api/users/me/city`;
6112
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6113
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6114
+ let baseOptions;
6115
+ if (configuration) {
6116
+ baseOptions = configuration.baseOptions;
6117
+ }
6118
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6119
+ const localVarHeaderParameter = {};
6120
+ const localVarQueryParameter = {};
6121
+ // authentication bearerAuth required
6122
+ // http bearer authentication required
6123
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6124
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6125
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6126
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6127
+ return {
6128
+ url: toPathString(localVarUrlObj),
6129
+ options: localVarRequestOptions,
6130
+ };
6131
+ }),
6313
6132
  /**
6314
6133
  *
6315
- * @summary Met à jour les données de l\'utilisateur connecté
6316
- * @param {UpdateUserRequestBody} updateUserRequestBody
6134
+ * @summary Récupère la description de l\'utilisateur connecté
6317
6135
  * @param {*} [options] Override http request option.
6318
6136
  * @throws {RequiredError}
6319
6137
  */
6320
- updateUser(updateUserRequestBody, options) {
6321
- return __awaiter(this, void 0, void 0, function* () {
6322
- var _a, _b, _c;
6323
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUser(updateUserRequestBody, options);
6324
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6325
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.updateUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6326
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6327
- });
6328
- },
6329
- };
6330
- };
6331
- /**
6332
- * UserProfileApi - factory interface
6333
- * @export
6334
- */
6335
- export const UserProfileApiFactory = function (configuration, basePath, axios) {
6336
- const localVarFp = UserProfileApiFp(configuration);
6337
- return {
6138
+ getUserDescription: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6139
+ const localVarPath = `/api/users/me/description`;
6140
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6141
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6142
+ let baseOptions;
6143
+ if (configuration) {
6144
+ baseOptions = configuration.baseOptions;
6145
+ }
6146
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6147
+ const localVarHeaderParameter = {};
6148
+ const localVarQueryParameter = {};
6149
+ // authentication bearerAuth required
6150
+ // http bearer authentication required
6151
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6152
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6153
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6154
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6155
+ return {
6156
+ url: toPathString(localVarUrlObj),
6157
+ options: localVarRequestOptions,
6158
+ };
6159
+ }),
6338
6160
  /**
6339
6161
  *
6340
- * @summary Modifie le mot de passe de l\'utilisateur connecté
6341
- * @param {UserProfileApiChangePasswordRequest} requestParameters Request parameters.
6162
+ * @summary Récupère les informations de l\'utilisateur connecté
6342
6163
  * @param {*} [options] Override http request option.
6343
6164
  * @throws {RequiredError}
6344
6165
  */
6345
- changePassword(requestParameters, options) {
6346
- return localVarFp.changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(axios, basePath));
6347
- },
6166
+ getUserInfo: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6167
+ const localVarPath = `/api/users/me`;
6168
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6169
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6170
+ let baseOptions;
6171
+ if (configuration) {
6172
+ baseOptions = configuration.baseOptions;
6173
+ }
6174
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6175
+ const localVarHeaderParameter = {};
6176
+ const localVarQueryParameter = {};
6177
+ // authentication bearerAuth required
6178
+ // http bearer authentication required
6179
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6180
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6181
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6182
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6183
+ return {
6184
+ url: toPathString(localVarUrlObj),
6185
+ options: localVarRequestOptions,
6186
+ };
6187
+ }),
6348
6188
  /**
6349
6189
  *
6350
- * @summary Récupère la liste des utilisateurs avec filtres et pagination
6351
- * @param {UserProfileApiGetAllUsersRequest} requestParameters Request parameters.
6190
+ * @summary Récupère la visibilité du profil de l\'utilisateur connecté
6352
6191
  * @param {*} [options] Override http request option.
6353
6192
  * @throws {RequiredError}
6354
6193
  */
6355
- getAllUsers(requestParameters = {}, options) {
6356
- return localVarFp.getAllUsers(requestParameters.limit, requestParameters.skip, requestParameters.search, options).then((request) => request(axios, basePath));
6357
- },
6358
- /**
6359
- *
6360
- * @summary Récupère les informations de l\'utilisateur connecté
6361
- * @param {*} [options] Override http request option.
6194
+ getUserProfileVisibility: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6195
+ const localVarPath = `/api/users/me/profile-visibility`;
6196
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6197
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6198
+ let baseOptions;
6199
+ if (configuration) {
6200
+ baseOptions = configuration.baseOptions;
6201
+ }
6202
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6203
+ const localVarHeaderParameter = {};
6204
+ const localVarQueryParameter = {};
6205
+ // authentication bearerAuth required
6206
+ // http bearer authentication required
6207
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6208
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6209
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6210
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6211
+ return {
6212
+ url: toPathString(localVarUrlObj),
6213
+ options: localVarRequestOptions,
6214
+ };
6215
+ }),
6216
+ /**
6217
+ *
6218
+ * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
6219
+ * @param {UpdateLevelBySportsRequestBody} updateLevelBySportsRequestBody
6220
+ * @param {*} [options] Override http request option.
6221
+ * @throws {RequiredError}
6222
+ */
6223
+ updateLevelBySports: (updateLevelBySportsRequestBody_1, ...args_1) => __awaiter(this, [updateLevelBySportsRequestBody_1, ...args_1], void 0, function* (updateLevelBySportsRequestBody, options = {}) {
6224
+ // verify required parameter 'updateLevelBySportsRequestBody' is not null or undefined
6225
+ assertParamExists('updateLevelBySports', 'updateLevelBySportsRequestBody', updateLevelBySportsRequestBody);
6226
+ const localVarPath = `/api/users/me/level-by-sports`;
6227
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6228
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6229
+ let baseOptions;
6230
+ if (configuration) {
6231
+ baseOptions = configuration.baseOptions;
6232
+ }
6233
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
6234
+ const localVarHeaderParameter = {};
6235
+ const localVarQueryParameter = {};
6236
+ // authentication bearerAuth required
6237
+ // http bearer authentication required
6238
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6239
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6240
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6241
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6242
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6243
+ localVarRequestOptions.data = serializeDataIfNeeded(updateLevelBySportsRequestBody, localVarRequestOptions, configuration);
6244
+ return {
6245
+ url: toPathString(localVarUrlObj),
6246
+ options: localVarRequestOptions,
6247
+ };
6248
+ }),
6249
+ /**
6250
+ *
6251
+ * @summary Met à jour l\'URL de la photo de profil de l\'utilisateur connecté
6252
+ * @param {UpdateProfilePictureRequestBody} updateProfilePictureRequestBody
6253
+ * @param {*} [options] Override http request option.
6254
+ * @throws {RequiredError}
6255
+ */
6256
+ updateProfilePicture: (updateProfilePictureRequestBody_1, ...args_1) => __awaiter(this, [updateProfilePictureRequestBody_1, ...args_1], void 0, function* (updateProfilePictureRequestBody, options = {}) {
6257
+ // verify required parameter 'updateProfilePictureRequestBody' is not null or undefined
6258
+ assertParamExists('updateProfilePicture', 'updateProfilePictureRequestBody', updateProfilePictureRequestBody);
6259
+ const localVarPath = `/api/users/me/profile-picture`;
6260
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6261
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6262
+ let baseOptions;
6263
+ if (configuration) {
6264
+ baseOptions = configuration.baseOptions;
6265
+ }
6266
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
6267
+ const localVarHeaderParameter = {};
6268
+ const localVarQueryParameter = {};
6269
+ // authentication bearerAuth required
6270
+ // http bearer authentication required
6271
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6272
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6273
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6274
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6275
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6276
+ localVarRequestOptions.data = serializeDataIfNeeded(updateProfilePictureRequestBody, localVarRequestOptions, configuration);
6277
+ return {
6278
+ url: toPathString(localVarUrlObj),
6279
+ options: localVarRequestOptions,
6280
+ };
6281
+ }),
6282
+ /**
6283
+ *
6284
+ * @summary Met à jour la visibilité du profil de l\'utilisateur connecté
6285
+ * @param {UpdateProfileVisibilityRequestBody} updateProfileVisibilityRequestBody
6286
+ * @param {*} [options] Override http request option.
6287
+ * @throws {RequiredError}
6288
+ */
6289
+ updateProfileVisibility: (updateProfileVisibilityRequestBody_1, ...args_1) => __awaiter(this, [updateProfileVisibilityRequestBody_1, ...args_1], void 0, function* (updateProfileVisibilityRequestBody, options = {}) {
6290
+ // verify required parameter 'updateProfileVisibilityRequestBody' is not null or undefined
6291
+ assertParamExists('updateProfileVisibility', 'updateProfileVisibilityRequestBody', updateProfileVisibilityRequestBody);
6292
+ const localVarPath = `/api/users/me/profile-visibility`;
6293
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6294
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6295
+ let baseOptions;
6296
+ if (configuration) {
6297
+ baseOptions = configuration.baseOptions;
6298
+ }
6299
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
6300
+ const localVarHeaderParameter = {};
6301
+ const localVarQueryParameter = {};
6302
+ // authentication bearerAuth required
6303
+ // http bearer authentication required
6304
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6305
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6306
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6307
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6308
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6309
+ localVarRequestOptions.data = serializeDataIfNeeded(updateProfileVisibilityRequestBody, localVarRequestOptions, configuration);
6310
+ return {
6311
+ url: toPathString(localVarUrlObj),
6312
+ options: localVarRequestOptions,
6313
+ };
6314
+ }),
6315
+ /**
6316
+ *
6317
+ * @summary Met à jour les données de l\'utilisateur connecté
6318
+ * @param {UpdateUserRequestBody} updateUserRequestBody
6319
+ * @param {*} [options] Override http request option.
6320
+ * @throws {RequiredError}
6321
+ */
6322
+ updateUser: (updateUserRequestBody_1, ...args_1) => __awaiter(this, [updateUserRequestBody_1, ...args_1], void 0, function* (updateUserRequestBody, options = {}) {
6323
+ // verify required parameter 'updateUserRequestBody' is not null or undefined
6324
+ assertParamExists('updateUser', 'updateUserRequestBody', updateUserRequestBody);
6325
+ const localVarPath = `/api/users/me`;
6326
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6327
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6328
+ let baseOptions;
6329
+ if (configuration) {
6330
+ baseOptions = configuration.baseOptions;
6331
+ }
6332
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
6333
+ const localVarHeaderParameter = {};
6334
+ const localVarQueryParameter = {};
6335
+ // authentication bearerAuth required
6336
+ // http bearer authentication required
6337
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6338
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6339
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6340
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6341
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6342
+ localVarRequestOptions.data = serializeDataIfNeeded(updateUserRequestBody, localVarRequestOptions, configuration);
6343
+ return {
6344
+ url: toPathString(localVarUrlObj),
6345
+ options: localVarRequestOptions,
6346
+ };
6347
+ }),
6348
+ /**
6349
+ *
6350
+ * @summary Met à jour la ville de l\'utilisateur connecté
6351
+ * @param {UpdateUserCityRequestBody} updateUserCityRequestBody
6352
+ * @param {*} [options] Override http request option.
6353
+ * @throws {RequiredError}
6354
+ */
6355
+ updateUserCity: (updateUserCityRequestBody_1, ...args_1) => __awaiter(this, [updateUserCityRequestBody_1, ...args_1], void 0, function* (updateUserCityRequestBody, options = {}) {
6356
+ // verify required parameter 'updateUserCityRequestBody' is not null or undefined
6357
+ assertParamExists('updateUserCity', 'updateUserCityRequestBody', updateUserCityRequestBody);
6358
+ const localVarPath = `/api/users/me/city`;
6359
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6360
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6361
+ let baseOptions;
6362
+ if (configuration) {
6363
+ baseOptions = configuration.baseOptions;
6364
+ }
6365
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
6366
+ const localVarHeaderParameter = {};
6367
+ const localVarQueryParameter = {};
6368
+ // authentication bearerAuth required
6369
+ // http bearer authentication required
6370
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6371
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6372
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6373
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6374
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6375
+ localVarRequestOptions.data = serializeDataIfNeeded(updateUserCityRequestBody, localVarRequestOptions, configuration);
6376
+ return {
6377
+ url: toPathString(localVarUrlObj),
6378
+ options: localVarRequestOptions,
6379
+ };
6380
+ }),
6381
+ /**
6382
+ *
6383
+ * @summary Met à jour la description de l\'utilisateur connecté
6384
+ * @param {UpdateUserDescriptionRequestBody} updateUserDescriptionRequestBody
6385
+ * @param {*} [options] Override http request option.
6386
+ * @throws {RequiredError}
6387
+ */
6388
+ updateUserDescription: (updateUserDescriptionRequestBody_1, ...args_1) => __awaiter(this, [updateUserDescriptionRequestBody_1, ...args_1], void 0, function* (updateUserDescriptionRequestBody, options = {}) {
6389
+ // verify required parameter 'updateUserDescriptionRequestBody' is not null or undefined
6390
+ assertParamExists('updateUserDescription', 'updateUserDescriptionRequestBody', updateUserDescriptionRequestBody);
6391
+ const localVarPath = `/api/users/me/description`;
6392
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6393
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6394
+ let baseOptions;
6395
+ if (configuration) {
6396
+ baseOptions = configuration.baseOptions;
6397
+ }
6398
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
6399
+ const localVarHeaderParameter = {};
6400
+ const localVarQueryParameter = {};
6401
+ // authentication bearerAuth required
6402
+ // http bearer authentication required
6403
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6404
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6405
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6406
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6407
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6408
+ localVarRequestOptions.data = serializeDataIfNeeded(updateUserDescriptionRequestBody, localVarRequestOptions, configuration);
6409
+ return {
6410
+ url: toPathString(localVarUrlObj),
6411
+ options: localVarRequestOptions,
6412
+ };
6413
+ }),
6414
+ };
6415
+ };
6416
+ /**
6417
+ * UserProfileApi - functional programming interface
6418
+ * @export
6419
+ */
6420
+ export const UserProfileApiFp = function (configuration) {
6421
+ const localVarAxiosParamCreator = UserProfileApiAxiosParamCreator(configuration);
6422
+ return {
6423
+ /**
6424
+ *
6425
+ * @summary Modifie le mot de passe de l\'utilisateur connecté
6426
+ * @param {ChangePasswordRequestBody} changePasswordRequestBody
6427
+ * @param {*} [options] Override http request option.
6428
+ * @throws {RequiredError}
6429
+ */
6430
+ changePassword(changePasswordRequestBody, options) {
6431
+ return __awaiter(this, void 0, void 0, function* () {
6432
+ var _a, _b, _c;
6433
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.changePassword(changePasswordRequestBody, options);
6434
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6435
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.changePassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6436
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6437
+ });
6438
+ },
6439
+ /**
6440
+ *
6441
+ * @summary Récupère la liste des utilisateurs avec filtres et pagination
6442
+ * @param {number} [limit] Nombre maximum d\'utilisateurs à retourner
6443
+ * @param {number} [skip] Nombre d\'utilisateurs à ignorer (pagination)
6444
+ * @param {string} [search] Recherche dans firstName, lastName, email
6445
+ * @param {*} [options] Override http request option.
6446
+ * @throws {RequiredError}
6447
+ */
6448
+ getAllUsers(limit, skip, search, options) {
6449
+ return __awaiter(this, void 0, void 0, function* () {
6450
+ var _a, _b, _c;
6451
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllUsers(limit, skip, search, options);
6452
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6453
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.getAllUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6454
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6455
+ });
6456
+ },
6457
+ /**
6458
+ *
6459
+ * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
6460
+ * @param {*} [options] Override http request option.
6461
+ * @throws {RequiredError}
6462
+ */
6463
+ getFrequentlyPlayedWith(options) {
6464
+ return __awaiter(this, void 0, void 0, function* () {
6465
+ var _a, _b, _c;
6466
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getFrequentlyPlayedWith(options);
6467
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6468
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.getFrequentlyPlayedWith']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6469
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6470
+ });
6471
+ },
6472
+ /**
6473
+ *
6474
+ * @summary Clubs les plus fréquemment visités par l\'utilisateur connecté
6475
+ * @param {*} [options] Override http request option.
6476
+ * @throws {RequiredError}
6477
+ */
6478
+ getFrequentlyVisitedClub(options) {
6479
+ return __awaiter(this, void 0, void 0, function* () {
6480
+ var _a, _b, _c;
6481
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getFrequentlyVisitedClub(options);
6482
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6483
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.getFrequentlyVisitedClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6484
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6485
+ });
6486
+ },
6487
+ /**
6488
+ *
6489
+ * @summary Récupère l\'URL de la photo de profil de l\'utilisateur connecté
6490
+ * @param {*} [options] Override http request option.
6491
+ * @throws {RequiredError}
6492
+ */
6493
+ getProfilePicture(options) {
6494
+ return __awaiter(this, void 0, void 0, function* () {
6495
+ var _a, _b, _c;
6496
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getProfilePicture(options);
6497
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6498
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.getProfilePicture']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6499
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6500
+ });
6501
+ },
6502
+ /**
6503
+ *
6504
+ * @summary Récupère la ville de l\'utilisateur connecté
6505
+ * @param {*} [options] Override http request option.
6506
+ * @throws {RequiredError}
6507
+ */
6508
+ getUserCity(options) {
6509
+ return __awaiter(this, void 0, void 0, function* () {
6510
+ var _a, _b, _c;
6511
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserCity(options);
6512
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6513
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.getUserCity']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6514
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6515
+ });
6516
+ },
6517
+ /**
6518
+ *
6519
+ * @summary Récupère la description de l\'utilisateur connecté
6520
+ * @param {*} [options] Override http request option.
6521
+ * @throws {RequiredError}
6522
+ */
6523
+ getUserDescription(options) {
6524
+ return __awaiter(this, void 0, void 0, function* () {
6525
+ var _a, _b, _c;
6526
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserDescription(options);
6527
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6528
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.getUserDescription']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6529
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6530
+ });
6531
+ },
6532
+ /**
6533
+ *
6534
+ * @summary Récupère les informations de l\'utilisateur connecté
6535
+ * @param {*} [options] Override http request option.
6536
+ * @throws {RequiredError}
6537
+ */
6538
+ getUserInfo(options) {
6539
+ return __awaiter(this, void 0, void 0, function* () {
6540
+ var _a, _b, _c;
6541
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserInfo(options);
6542
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6543
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.getUserInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6544
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6545
+ });
6546
+ },
6547
+ /**
6548
+ *
6549
+ * @summary Récupère la visibilité du profil de l\'utilisateur connecté
6550
+ * @param {*} [options] Override http request option.
6551
+ * @throws {RequiredError}
6552
+ */
6553
+ getUserProfileVisibility(options) {
6554
+ return __awaiter(this, void 0, void 0, function* () {
6555
+ var _a, _b, _c;
6556
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserProfileVisibility(options);
6557
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6558
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.getUserProfileVisibility']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6559
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6560
+ });
6561
+ },
6562
+ /**
6563
+ *
6564
+ * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
6565
+ * @param {UpdateLevelBySportsRequestBody} updateLevelBySportsRequestBody
6566
+ * @param {*} [options] Override http request option.
6567
+ * @throws {RequiredError}
6568
+ */
6569
+ updateLevelBySports(updateLevelBySportsRequestBody, options) {
6570
+ return __awaiter(this, void 0, void 0, function* () {
6571
+ var _a, _b, _c;
6572
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateLevelBySports(updateLevelBySportsRequestBody, options);
6573
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6574
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.updateLevelBySports']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6575
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6576
+ });
6577
+ },
6578
+ /**
6579
+ *
6580
+ * @summary Met à jour l\'URL de la photo de profil de l\'utilisateur connecté
6581
+ * @param {UpdateProfilePictureRequestBody} updateProfilePictureRequestBody
6582
+ * @param {*} [options] Override http request option.
6583
+ * @throws {RequiredError}
6584
+ */
6585
+ updateProfilePicture(updateProfilePictureRequestBody, options) {
6586
+ return __awaiter(this, void 0, void 0, function* () {
6587
+ var _a, _b, _c;
6588
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateProfilePicture(updateProfilePictureRequestBody, options);
6589
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6590
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.updateProfilePicture']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6591
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6592
+ });
6593
+ },
6594
+ /**
6595
+ *
6596
+ * @summary Met à jour la visibilité du profil de l\'utilisateur connecté
6597
+ * @param {UpdateProfileVisibilityRequestBody} updateProfileVisibilityRequestBody
6598
+ * @param {*} [options] Override http request option.
6599
+ * @throws {RequiredError}
6600
+ */
6601
+ updateProfileVisibility(updateProfileVisibilityRequestBody, options) {
6602
+ return __awaiter(this, void 0, void 0, function* () {
6603
+ var _a, _b, _c;
6604
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateProfileVisibility(updateProfileVisibilityRequestBody, options);
6605
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6606
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.updateProfileVisibility']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6607
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6608
+ });
6609
+ },
6610
+ /**
6611
+ *
6612
+ * @summary Met à jour les données de l\'utilisateur connecté
6613
+ * @param {UpdateUserRequestBody} updateUserRequestBody
6614
+ * @param {*} [options] Override http request option.
6615
+ * @throws {RequiredError}
6616
+ */
6617
+ updateUser(updateUserRequestBody, options) {
6618
+ return __awaiter(this, void 0, void 0, function* () {
6619
+ var _a, _b, _c;
6620
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUser(updateUserRequestBody, options);
6621
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6622
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.updateUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6623
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6624
+ });
6625
+ },
6626
+ /**
6627
+ *
6628
+ * @summary Met à jour la ville de l\'utilisateur connecté
6629
+ * @param {UpdateUserCityRequestBody} updateUserCityRequestBody
6630
+ * @param {*} [options] Override http request option.
6631
+ * @throws {RequiredError}
6632
+ */
6633
+ updateUserCity(updateUserCityRequestBody, options) {
6634
+ return __awaiter(this, void 0, void 0, function* () {
6635
+ var _a, _b, _c;
6636
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserCity(updateUserCityRequestBody, options);
6637
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6638
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.updateUserCity']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6639
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6640
+ });
6641
+ },
6642
+ /**
6643
+ *
6644
+ * @summary Met à jour la description de l\'utilisateur connecté
6645
+ * @param {UpdateUserDescriptionRequestBody} updateUserDescriptionRequestBody
6646
+ * @param {*} [options] Override http request option.
6647
+ * @throws {RequiredError}
6648
+ */
6649
+ updateUserDescription(updateUserDescriptionRequestBody, options) {
6650
+ return __awaiter(this, void 0, void 0, function* () {
6651
+ var _a, _b, _c;
6652
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserDescription(updateUserDescriptionRequestBody, options);
6653
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6654
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.updateUserDescription']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6655
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6656
+ });
6657
+ },
6658
+ };
6659
+ };
6660
+ /**
6661
+ * UserProfileApi - factory interface
6662
+ * @export
6663
+ */
6664
+ export const UserProfileApiFactory = function (configuration, basePath, axios) {
6665
+ const localVarFp = UserProfileApiFp(configuration);
6666
+ return {
6667
+ /**
6668
+ *
6669
+ * @summary Modifie le mot de passe de l\'utilisateur connecté
6670
+ * @param {UserProfileApiChangePasswordRequest} requestParameters Request parameters.
6671
+ * @param {*} [options] Override http request option.
6672
+ * @throws {RequiredError}
6673
+ */
6674
+ changePassword(requestParameters, options) {
6675
+ return localVarFp.changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(axios, basePath));
6676
+ },
6677
+ /**
6678
+ *
6679
+ * @summary Récupère la liste des utilisateurs avec filtres et pagination
6680
+ * @param {UserProfileApiGetAllUsersRequest} requestParameters Request parameters.
6681
+ * @param {*} [options] Override http request option.
6682
+ * @throws {RequiredError}
6683
+ */
6684
+ getAllUsers(requestParameters = {}, options) {
6685
+ return localVarFp.getAllUsers(requestParameters.limit, requestParameters.skip, requestParameters.search, options).then((request) => request(axios, basePath));
6686
+ },
6687
+ /**
6688
+ *
6689
+ * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
6690
+ * @param {*} [options] Override http request option.
6691
+ * @throws {RequiredError}
6692
+ */
6693
+ getFrequentlyPlayedWith(options) {
6694
+ return localVarFp.getFrequentlyPlayedWith(options).then((request) => request(axios, basePath));
6695
+ },
6696
+ /**
6697
+ *
6698
+ * @summary Clubs les plus fréquemment visités par l\'utilisateur connecté
6699
+ * @param {*} [options] Override http request option.
6700
+ * @throws {RequiredError}
6701
+ */
6702
+ getFrequentlyVisitedClub(options) {
6703
+ return localVarFp.getFrequentlyVisitedClub(options).then((request) => request(axios, basePath));
6704
+ },
6705
+ /**
6706
+ *
6707
+ * @summary Récupère l\'URL de la photo de profil de l\'utilisateur connecté
6708
+ * @param {*} [options] Override http request option.
6709
+ * @throws {RequiredError}
6710
+ */
6711
+ getProfilePicture(options) {
6712
+ return localVarFp.getProfilePicture(options).then((request) => request(axios, basePath));
6713
+ },
6714
+ /**
6715
+ *
6716
+ * @summary Récupère la ville de l\'utilisateur connecté
6717
+ * @param {*} [options] Override http request option.
6718
+ * @throws {RequiredError}
6719
+ */
6720
+ getUserCity(options) {
6721
+ return localVarFp.getUserCity(options).then((request) => request(axios, basePath));
6722
+ },
6723
+ /**
6724
+ *
6725
+ * @summary Récupère la description de l\'utilisateur connecté
6726
+ * @param {*} [options] Override http request option.
6727
+ * @throws {RequiredError}
6728
+ */
6729
+ getUserDescription(options) {
6730
+ return localVarFp.getUserDescription(options).then((request) => request(axios, basePath));
6731
+ },
6732
+ /**
6733
+ *
6734
+ * @summary Récupère les informations de l\'utilisateur connecté
6735
+ * @param {*} [options] Override http request option.
6362
6736
  * @throws {RequiredError}
6363
6737
  */
6364
6738
  getUserInfo(options) {
6365
6739
  return localVarFp.getUserInfo(options).then((request) => request(axios, basePath));
6366
6740
  },
6741
+ /**
6742
+ *
6743
+ * @summary Récupère la visibilité du profil de l\'utilisateur connecté
6744
+ * @param {*} [options] Override http request option.
6745
+ * @throws {RequiredError}
6746
+ */
6747
+ getUserProfileVisibility(options) {
6748
+ return localVarFp.getUserProfileVisibility(options).then((request) => request(axios, basePath));
6749
+ },
6750
+ /**
6751
+ *
6752
+ * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
6753
+ * @param {UserProfileApiUpdateLevelBySportsRequest} requestParameters Request parameters.
6754
+ * @param {*} [options] Override http request option.
6755
+ * @throws {RequiredError}
6756
+ */
6757
+ updateLevelBySports(requestParameters, options) {
6758
+ return localVarFp.updateLevelBySports(requestParameters.updateLevelBySportsRequestBody, options).then((request) => request(axios, basePath));
6759
+ },
6760
+ /**
6761
+ *
6762
+ * @summary Met à jour l\'URL de la photo de profil de l\'utilisateur connecté
6763
+ * @param {UserProfileApiUpdateProfilePictureRequest} requestParameters Request parameters.
6764
+ * @param {*} [options] Override http request option.
6765
+ * @throws {RequiredError}
6766
+ */
6767
+ updateProfilePicture(requestParameters, options) {
6768
+ return localVarFp.updateProfilePicture(requestParameters.updateProfilePictureRequestBody, options).then((request) => request(axios, basePath));
6769
+ },
6770
+ /**
6771
+ *
6772
+ * @summary Met à jour la visibilité du profil de l\'utilisateur connecté
6773
+ * @param {UserProfileApiUpdateProfileVisibilityRequest} requestParameters Request parameters.
6774
+ * @param {*} [options] Override http request option.
6775
+ * @throws {RequiredError}
6776
+ */
6777
+ updateProfileVisibility(requestParameters, options) {
6778
+ return localVarFp.updateProfileVisibility(requestParameters.updateProfileVisibilityRequestBody, options).then((request) => request(axios, basePath));
6779
+ },
6367
6780
  /**
6368
6781
  *
6369
6782
  * @summary Met à jour les données de l\'utilisateur connecté
@@ -6374,6 +6787,26 @@ export const UserProfileApiFactory = function (configuration, basePath, axios) {
6374
6787
  updateUser(requestParameters, options) {
6375
6788
  return localVarFp.updateUser(requestParameters.updateUserRequestBody, options).then((request) => request(axios, basePath));
6376
6789
  },
6790
+ /**
6791
+ *
6792
+ * @summary Met à jour la ville de l\'utilisateur connecté
6793
+ * @param {UserProfileApiUpdateUserCityRequest} requestParameters Request parameters.
6794
+ * @param {*} [options] Override http request option.
6795
+ * @throws {RequiredError}
6796
+ */
6797
+ updateUserCity(requestParameters, options) {
6798
+ return localVarFp.updateUserCity(requestParameters.updateUserCityRequestBody, options).then((request) => request(axios, basePath));
6799
+ },
6800
+ /**
6801
+ *
6802
+ * @summary Met à jour la description de l\'utilisateur connecté
6803
+ * @param {UserProfileApiUpdateUserDescriptionRequest} requestParameters Request parameters.
6804
+ * @param {*} [options] Override http request option.
6805
+ * @throws {RequiredError}
6806
+ */
6807
+ updateUserDescription(requestParameters, options) {
6808
+ return localVarFp.updateUserDescription(requestParameters.updateUserDescriptionRequestBody, options).then((request) => request(axios, basePath));
6809
+ },
6377
6810
  };
6378
6811
  };
6379
6812
  /**
@@ -6405,6 +6838,56 @@ export class UserProfileApi extends BaseAPI {
6405
6838
  getAllUsers(requestParameters = {}, options) {
6406
6839
  return UserProfileApiFp(this.configuration).getAllUsers(requestParameters.limit, requestParameters.skip, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
6407
6840
  }
6841
+ /**
6842
+ *
6843
+ * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
6844
+ * @param {*} [options] Override http request option.
6845
+ * @throws {RequiredError}
6846
+ * @memberof UserProfileApi
6847
+ */
6848
+ getFrequentlyPlayedWith(options) {
6849
+ return UserProfileApiFp(this.configuration).getFrequentlyPlayedWith(options).then((request) => request(this.axios, this.basePath));
6850
+ }
6851
+ /**
6852
+ *
6853
+ * @summary Clubs les plus fréquemment visités par l\'utilisateur connecté
6854
+ * @param {*} [options] Override http request option.
6855
+ * @throws {RequiredError}
6856
+ * @memberof UserProfileApi
6857
+ */
6858
+ getFrequentlyVisitedClub(options) {
6859
+ return UserProfileApiFp(this.configuration).getFrequentlyVisitedClub(options).then((request) => request(this.axios, this.basePath));
6860
+ }
6861
+ /**
6862
+ *
6863
+ * @summary Récupère l\'URL de la photo de profil de l\'utilisateur connecté
6864
+ * @param {*} [options] Override http request option.
6865
+ * @throws {RequiredError}
6866
+ * @memberof UserProfileApi
6867
+ */
6868
+ getProfilePicture(options) {
6869
+ return UserProfileApiFp(this.configuration).getProfilePicture(options).then((request) => request(this.axios, this.basePath));
6870
+ }
6871
+ /**
6872
+ *
6873
+ * @summary Récupère la ville de l\'utilisateur connecté
6874
+ * @param {*} [options] Override http request option.
6875
+ * @throws {RequiredError}
6876
+ * @memberof UserProfileApi
6877
+ */
6878
+ getUserCity(options) {
6879
+ return UserProfileApiFp(this.configuration).getUserCity(options).then((request) => request(this.axios, this.basePath));
6880
+ }
6881
+ /**
6882
+ *
6883
+ * @summary Récupère la description de l\'utilisateur connecté
6884
+ * @param {*} [options] Override http request option.
6885
+ * @throws {RequiredError}
6886
+ * @memberof UserProfileApi
6887
+ */
6888
+ getUserDescription(options) {
6889
+ return UserProfileApiFp(this.configuration).getUserDescription(options).then((request) => request(this.axios, this.basePath));
6890
+ }
6408
6891
  /**
6409
6892
  *
6410
6893
  * @summary Récupère les informations de l\'utilisateur connecté
@@ -6415,6 +6898,49 @@ export class UserProfileApi extends BaseAPI {
6415
6898
  getUserInfo(options) {
6416
6899
  return UserProfileApiFp(this.configuration).getUserInfo(options).then((request) => request(this.axios, this.basePath));
6417
6900
  }
6901
+ /**
6902
+ *
6903
+ * @summary Récupère la visibilité du profil de l\'utilisateur connecté
6904
+ * @param {*} [options] Override http request option.
6905
+ * @throws {RequiredError}
6906
+ * @memberof UserProfileApi
6907
+ */
6908
+ getUserProfileVisibility(options) {
6909
+ return UserProfileApiFp(this.configuration).getUserProfileVisibility(options).then((request) => request(this.axios, this.basePath));
6910
+ }
6911
+ /**
6912
+ *
6913
+ * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
6914
+ * @param {UserProfileApiUpdateLevelBySportsRequest} requestParameters Request parameters.
6915
+ * @param {*} [options] Override http request option.
6916
+ * @throws {RequiredError}
6917
+ * @memberof UserProfileApi
6918
+ */
6919
+ updateLevelBySports(requestParameters, options) {
6920
+ return UserProfileApiFp(this.configuration).updateLevelBySports(requestParameters.updateLevelBySportsRequestBody, options).then((request) => request(this.axios, this.basePath));
6921
+ }
6922
+ /**
6923
+ *
6924
+ * @summary Met à jour l\'URL de la photo de profil de l\'utilisateur connecté
6925
+ * @param {UserProfileApiUpdateProfilePictureRequest} requestParameters Request parameters.
6926
+ * @param {*} [options] Override http request option.
6927
+ * @throws {RequiredError}
6928
+ * @memberof UserProfileApi
6929
+ */
6930
+ updateProfilePicture(requestParameters, options) {
6931
+ return UserProfileApiFp(this.configuration).updateProfilePicture(requestParameters.updateProfilePictureRequestBody, options).then((request) => request(this.axios, this.basePath));
6932
+ }
6933
+ /**
6934
+ *
6935
+ * @summary Met à jour la visibilité du profil de l\'utilisateur connecté
6936
+ * @param {UserProfileApiUpdateProfileVisibilityRequest} requestParameters Request parameters.
6937
+ * @param {*} [options] Override http request option.
6938
+ * @throws {RequiredError}
6939
+ * @memberof UserProfileApi
6940
+ */
6941
+ updateProfileVisibility(requestParameters, options) {
6942
+ return UserProfileApiFp(this.configuration).updateProfileVisibility(requestParameters.updateProfileVisibilityRequestBody, options).then((request) => request(this.axios, this.basePath));
6943
+ }
6418
6944
  /**
6419
6945
  *
6420
6946
  * @summary Met à jour les données de l\'utilisateur connecté
@@ -6426,6 +6952,28 @@ export class UserProfileApi extends BaseAPI {
6426
6952
  updateUser(requestParameters, options) {
6427
6953
  return UserProfileApiFp(this.configuration).updateUser(requestParameters.updateUserRequestBody, options).then((request) => request(this.axios, this.basePath));
6428
6954
  }
6955
+ /**
6956
+ *
6957
+ * @summary Met à jour la ville de l\'utilisateur connecté
6958
+ * @param {UserProfileApiUpdateUserCityRequest} requestParameters Request parameters.
6959
+ * @param {*} [options] Override http request option.
6960
+ * @throws {RequiredError}
6961
+ * @memberof UserProfileApi
6962
+ */
6963
+ updateUserCity(requestParameters, options) {
6964
+ return UserProfileApiFp(this.configuration).updateUserCity(requestParameters.updateUserCityRequestBody, options).then((request) => request(this.axios, this.basePath));
6965
+ }
6966
+ /**
6967
+ *
6968
+ * @summary Met à jour la description de l\'utilisateur connecté
6969
+ * @param {UserProfileApiUpdateUserDescriptionRequest} requestParameters Request parameters.
6970
+ * @param {*} [options] Override http request option.
6971
+ * @throws {RequiredError}
6972
+ * @memberof UserProfileApi
6973
+ */
6974
+ updateUserDescription(requestParameters, options) {
6975
+ return UserProfileApiFp(this.configuration).updateUserDescription(requestParameters.updateUserDescriptionRequestBody, options).then((request) => request(this.axios, this.basePath));
6976
+ }
6429
6977
  }
6430
6978
  /**
6431
6979
  * UserSubscriptionsApi - axios parameter creator