@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/api.ts 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).
@@ -99,6 +99,57 @@ export interface AddClubMemberResponse {
99
99
  */
100
100
  'member'?: ClubMember;
101
101
  }
102
+ /**
103
+ *
104
+ * @export
105
+ * @interface AddFavoriteClubRequestBody
106
+ */
107
+ export interface AddFavoriteClubRequestBody {
108
+ /**
109
+ * ID du club à ajouter aux favoris
110
+ * @type {string}
111
+ * @memberof AddFavoriteClubRequestBody
112
+ */
113
+ 'clubId': string;
114
+ }
115
+ /**
116
+ *
117
+ * @export
118
+ * @interface AddPaymentMethodSetupRequestBody
119
+ */
120
+ export interface AddPaymentMethodSetupRequestBody {
121
+ /**
122
+ * ID Stripe du moyen de paiement à ajouter
123
+ * @type {string}
124
+ * @memberof AddPaymentMethodSetupRequestBody
125
+ */
126
+ 'paymentMethodId': string;
127
+ }
128
+ /**
129
+ *
130
+ * @export
131
+ * @interface AddPaymentMethodSetupResponse
132
+ */
133
+ export interface AddPaymentMethodSetupResponse {
134
+ /**
135
+ *
136
+ * @type {string}
137
+ * @memberof AddPaymentMethodSetupResponse
138
+ */
139
+ 'message'?: string;
140
+ /**
141
+ *
142
+ * @type {Array<string>}
143
+ * @memberof AddPaymentMethodSetupResponse
144
+ */
145
+ 'paymentMethods'?: Array<string>;
146
+ /**
147
+ *
148
+ * @type {string}
149
+ * @memberof AddPaymentMethodSetupResponse
150
+ */
151
+ 'defaultPaymentMethodId'?: string;
152
+ }
102
153
  /**
103
154
  *
104
155
  * @export
@@ -125,7 +176,7 @@ export interface ApiErrorResponse {
125
176
  */
126
177
  export interface BlockSlotResponse {
127
178
  /**
128
- * Message de confirmation
179
+ *
129
180
  * @type {string}
130
181
  * @memberof BlockSlotResponse
131
182
  */
@@ -1270,28 +1321,46 @@ export interface ClubSettings {
1270
1321
  'clubId'?: string;
1271
1322
  /**
1272
1323
  *
1273
- * @type {string}
1324
+ * @type {number}
1274
1325
  * @memberof ClubSettings
1275
1326
  */
1276
- 'reservationStartTime'?: string;
1327
+ 'maxWeeklyBookings'?: number;
1277
1328
  /**
1278
1329
  *
1279
- * @type {string}
1330
+ * @type {boolean}
1280
1331
  * @memberof ClubSettings
1281
1332
  */
1282
- 'reservationEndTime'?: string;
1333
+ 'allowMultipleBookingsAtTheSameTime'?: boolean;
1283
1334
  /**
1284
1335
  *
1285
1336
  * @type {number}
1286
1337
  * @memberof ClubSettings
1287
1338
  */
1288
- 'maxSimultaneousReservations'?: number;
1339
+ 'sameTimeBookingsLimit'?: number | null;
1289
1340
  /**
1290
1341
  *
1291
- * @type {boolean}
1342
+ * @type {number}
1292
1343
  * @memberof ClubSettings
1293
1344
  */
1294
- 'allowWeekendReservations'?: boolean;
1345
+ 'cancellationLimitHours'?: number;
1346
+ /**
1347
+ *
1348
+ * @type {number}
1349
+ * @memberof ClubSettings
1350
+ */
1351
+ 'availabilityPeriodInDays'?: number;
1352
+ /**
1353
+ *
1354
+ * @type {Array<string>}
1355
+ * @memberof ClubSettings
1356
+ */
1357
+ 'sponsors'?: Array<string>;
1358
+ /**
1359
+ * Minutes before payment is required
1360
+ * @type {number}
1361
+ * @memberof ClubSettings
1362
+ */
1363
+ 'timeBeforePayment'?: number;
1295
1364
  /**
1296
1365
  *
1297
1366
  * @type {string}
@@ -1330,12 +1399,6 @@ export interface ClubsResponse {
1330
1399
  * @interface ConfirmPaymentMethodSetupRequestBody
1331
1400
  */
1332
1401
  export interface ConfirmPaymentMethodSetupRequestBody {
1333
- /**
1334
- * ID de l\'utilisateur
1335
- * @type {string}
1336
- * @memberof ConfirmPaymentMethodSetupRequestBody
1337
- */
1338
- 'userId': string;
1339
1402
  /**
1340
1403
  * ID du Setup Intent à confirmer
1341
1404
  * @type {string}
@@ -1938,19 +2001,6 @@ export interface DeleteClubRole200Response {
1938
2001
  */
1939
2002
  'message'?: string;
1940
2003
  }
1941
- /**
1942
- *
1943
- * @export
1944
- * @interface DeleteClubSettings200Response
1945
- */
1946
- export interface DeleteClubSettings200Response {
1947
- /**
1948
- *
1949
- * @type {string}
1950
- * @memberof DeleteClubSettings200Response
1951
- */
1952
- 'message'?: string;
1953
- }
1954
2004
  /**
1955
2005
  *
1956
2006
  * @export
@@ -2003,6 +2053,87 @@ export interface DeleteSport200Response {
2003
2053
  */
2004
2054
  'message'?: string;
2005
2055
  }
2056
+ /**
2057
+ *
2058
+ * @export
2059
+ * @interface FavoriteClubResponse
2060
+ */
2061
+ export interface FavoriteClubResponse {
2062
+ /**
2063
+ *
2064
+ * @type {string}
2065
+ * @memberof FavoriteClubResponse
2066
+ */
2067
+ 'message'?: string;
2068
+ /**
2069
+ *
2070
+ * @type {Array<string>}
2071
+ * @memberof FavoriteClubResponse
2072
+ */
2073
+ 'favoriteClubs'?: Array<string>;
2074
+ }
2075
+ /**
2076
+ *
2077
+ * @export
2078
+ * @interface FrequentlyPlayedWithItem
2079
+ */
2080
+ export interface FrequentlyPlayedWithItem {
2081
+ /**
2082
+ *
2083
+ * @type {string}
2084
+ * @memberof FrequentlyPlayedWithItem
2085
+ */
2086
+ 'userId'?: string;
2087
+ /**
2088
+ *
2089
+ * @type {string}
2090
+ * @memberof FrequentlyPlayedWithItem
2091
+ */
2092
+ 'firstName'?: string;
2093
+ /**
2094
+ *
2095
+ * @type {string}
2096
+ * @memberof FrequentlyPlayedWithItem
2097
+ */
2098
+ 'lastName'?: string;
2099
+ /**
2100
+ *
2101
+ * @type {string}
2102
+ * @memberof FrequentlyPlayedWithItem
2103
+ */
2104
+ 'profilePicture'?: string;
2105
+ /**
2106
+ *
2107
+ * @type {number}
2108
+ * @memberof FrequentlyPlayedWithItem
2109
+ */
2110
+ 'playCount'?: number;
2111
+ }
2112
+ /**
2113
+ *
2114
+ * @export
2115
+ * @interface FrequentlyVisitedClubItem
2116
+ */
2117
+ export interface FrequentlyVisitedClubItem {
2118
+ /**
2119
+ *
2120
+ * @type {string}
2121
+ * @memberof FrequentlyVisitedClubItem
2122
+ */
2123
+ 'clubId'?: string;
2124
+ /**
2125
+ *
2126
+ * @type {string}
2127
+ * @memberof FrequentlyVisitedClubItem
2128
+ */
2129
+ 'name'?: string;
2130
+ /**
2131
+ *
2132
+ * @type {number}
2133
+ * @memberof FrequentlyVisitedClubItem
2134
+ */
2135
+ 'visitCount'?: number;
2136
+ }
2006
2137
  /**
2007
2138
  *
2008
2139
  * @export
@@ -2416,6 +2547,25 @@ export interface InvoicesResponsePagination {
2416
2547
  */
2417
2548
  'totalPages'?: number;
2418
2549
  }
2550
+ /**
2551
+ *
2552
+ * @export
2553
+ * @interface LevelBySportsItem
2554
+ */
2555
+ export interface LevelBySportsItem {
2556
+ /**
2557
+ *
2558
+ * @type {string}
2559
+ * @memberof LevelBySportsItem
2560
+ */
2561
+ 'sport': string;
2562
+ /**
2563
+ *
2564
+ * @type {string}
2565
+ * @memberof LevelBySportsItem
2566
+ */
2567
+ 'level': string;
2568
+ }
2419
2569
  /**
2420
2570
  *
2421
2571
  * @export
@@ -2800,6 +2950,32 @@ export interface PriceResponse {
2800
2950
  */
2801
2951
  'createdAt'?: string;
2802
2952
  }
2953
+ /**
2954
+ *
2955
+ * @export
2956
+ * @interface ProfilePictureResponse
2957
+ */
2958
+ export interface ProfilePictureResponse {
2959
+ /**
2960
+ * URL de la photo de profil
2961
+ * @type {string}
2962
+ * @memberof ProfilePictureResponse
2963
+ */
2964
+ 'profilePicture'?: string;
2965
+ }
2966
+ /**
2967
+ *
2968
+ * @export
2969
+ * @interface ProfileVisibilityResponse
2970
+ */
2971
+ export interface ProfileVisibilityResponse {
2972
+ /**
2973
+ *
2974
+ * @type {boolean}
2975
+ * @memberof ProfileVisibilityResponse
2976
+ */
2977
+ 'isProfileVisible'?: boolean;
2978
+ }
2803
2979
  /**
2804
2980
  *
2805
2981
  * @export
@@ -2912,12 +3088,6 @@ export interface RestoreSubscriptionPlanForClub200Response {
2912
3088
  * @interface SetupPaymentMethodRequestBody
2913
3089
  */
2914
3090
  export interface SetupPaymentMethodRequestBody {
2915
- /**
2916
- * ID de l\'utilisateur
2917
- * @type {string}
2918
- * @memberof SetupPaymentMethodRequestBody
2919
- */
2920
- 'userId': string;
2921
3091
  /**
2922
3092
  * ID du club
2923
3093
  * @type {string}
@@ -3658,6 +3828,45 @@ export interface UpdateCustomerResponseCustomer {
3658
3828
  */
3659
3829
  'address'?: object;
3660
3830
  }
3831
+ /**
3832
+ *
3833
+ * @export
3834
+ * @interface UpdateLevelBySportsRequestBody
3835
+ */
3836
+ export interface UpdateLevelBySportsRequestBody {
3837
+ /**
3838
+ *
3839
+ * @type {Array<LevelBySportsItem>}
3840
+ * @memberof UpdateLevelBySportsRequestBody
3841
+ */
3842
+ 'levelBySports': Array<LevelBySportsItem>;
3843
+ }
3844
+ /**
3845
+ *
3846
+ * @export
3847
+ * @interface UpdateProfilePictureRequestBody
3848
+ */
3849
+ export interface UpdateProfilePictureRequestBody {
3850
+ /**
3851
+ * URL distante de la photo de profil (AWS/GCP)
3852
+ * @type {string}
3853
+ * @memberof UpdateProfilePictureRequestBody
3854
+ */
3855
+ 'profilePicture': string;
3856
+ }
3857
+ /**
3858
+ *
3859
+ * @export
3860
+ * @interface UpdateProfileVisibilityRequestBody
3861
+ */
3862
+ export interface UpdateProfileVisibilityRequestBody {
3863
+ /**
3864
+ * Indique si le profil est visible aux autres utilisateurs
3865
+ * @type {boolean}
3866
+ * @memberof UpdateProfileVisibilityRequestBody
3867
+ */
3868
+ 'isProfileVisible': boolean;
3869
+ }
3661
3870
  /**
3662
3871
  *
3663
3872
  * @export
@@ -3727,6 +3936,32 @@ export interface UpdateSubscriptionPlanResponse {
3727
3936
  */
3728
3937
  'plan'?: SubscriptionPlan;
3729
3938
  }
3939
+ /**
3940
+ *
3941
+ * @export
3942
+ * @interface UpdateUserCityRequestBody
3943
+ */
3944
+ export interface UpdateUserCityRequestBody {
3945
+ /**
3946
+ * Nouvelle ville de l\'utilisateur
3947
+ * @type {string}
3948
+ * @memberof UpdateUserCityRequestBody
3949
+ */
3950
+ 'city': string;
3951
+ }
3952
+ /**
3953
+ *
3954
+ * @export
3955
+ * @interface UpdateUserDescriptionRequestBody
3956
+ */
3957
+ export interface UpdateUserDescriptionRequestBody {
3958
+ /**
3959
+ * Nouvelle description de l\'utilisateur
3960
+ * @type {string}
3961
+ * @memberof UpdateUserDescriptionRequestBody
3962
+ */
3963
+ 'description': string;
3964
+ }
3730
3965
  /**
3731
3966
  *
3732
3967
  * @export
@@ -3849,6 +4084,32 @@ export interface User {
3849
4084
  */
3850
4085
  'isAdmin'?: boolean;
3851
4086
  }
4087
+ /**
4088
+ *
4089
+ * @export
4090
+ * @interface UserCityResponse
4091
+ */
4092
+ export interface UserCityResponse {
4093
+ /**
4094
+ *
4095
+ * @type {string}
4096
+ * @memberof UserCityResponse
4097
+ */
4098
+ 'city'?: string | null;
4099
+ }
4100
+ /**
4101
+ *
4102
+ * @export
4103
+ * @interface UserDescriptionResponse
4104
+ */
4105
+ export interface UserDescriptionResponse {
4106
+ /**
4107
+ *
4108
+ * @type {string}
4109
+ * @memberof UserDescriptionResponse
4110
+ */
4111
+ 'description'?: string | null;
4112
+ }
3852
4113
  /**
3853
4114
  *
3854
4115
  * @export
@@ -7335,22 +7596,25 @@ export class ManagerClubRolesApi extends BaseAPI {
7335
7596
 
7336
7597
 
7337
7598
  /**
7338
- * ManagerClubSettingsApi - axios parameter creator
7599
+ * ManagerClubSlotsApi - axios parameter creator
7339
7600
  * @export
7340
7601
  */
7341
- export const ManagerClubSettingsApiAxiosParamCreator = function (configuration?: Configuration) {
7602
+ export const ManagerClubSlotsApiAxiosParamCreator = function (configuration?: Configuration) {
7342
7603
  return {
7343
7604
  /**
7344
7605
  *
7345
- * @summary Créer les paramètres d\'un club
7346
- * @param {CreateClubSettingsRequest} createClubSettingsRequest
7606
+ * @summary Supprimer des créneaux pour le club courant sur une plage de dates
7607
+ * @param {string} start Date de début (format ISO)
7608
+ * @param {string} end Date de fin (format ISO)
7347
7609
  * @param {*} [options] Override http request option.
7348
7610
  * @throws {RequiredError}
7349
7611
  */
7350
- createClubSettings: async (createClubSettingsRequest: CreateClubSettingsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7351
- // verify required parameter 'createClubSettingsRequest' is not null or undefined
7352
- assertParamExists('createClubSettings', 'createClubSettingsRequest', createClubSettingsRequest)
7353
- const localVarPath = `/api/club-settings`;
7612
+ deleteSlotsByClubInRange: async (start: string, end: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7613
+ // verify required parameter 'start' is not null or undefined
7614
+ assertParamExists('deleteSlotsByClubInRange', 'start', start)
7615
+ // verify required parameter 'end' is not null or undefined
7616
+ assertParamExists('deleteSlotsByClubInRange', 'end', end)
7617
+ const localVarPath = `/api/clubs/slots`;
7354
7618
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7355
7619
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7356
7620
  let baseOptions;
@@ -7358,7 +7622,7 @@ export const ManagerClubSettingsApiAxiosParamCreator = function (configuration?:
7358
7622
  baseOptions = configuration.baseOptions;
7359
7623
  }
7360
7624
 
7361
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
7625
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
7362
7626
  const localVarHeaderParameter = {} as any;
7363
7627
  const localVarQueryParameter = {} as any;
7364
7628
 
@@ -7366,320 +7630,11 @@ export const ManagerClubSettingsApiAxiosParamCreator = function (configuration?:
7366
7630
  // http bearer authentication required
7367
7631
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
7368
7632
 
7369
-
7370
-
7371
- localVarHeaderParameter['Content-Type'] = 'application/json';
7372
-
7373
- setSearchParams(localVarUrlObj, localVarQueryParameter);
7374
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7375
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7376
- localVarRequestOptions.data = serializeDataIfNeeded(createClubSettingsRequest, localVarRequestOptions, configuration)
7377
-
7378
- return {
7379
- url: toPathString(localVarUrlObj),
7380
- options: localVarRequestOptions,
7381
- };
7382
- },
7383
- /**
7384
- *
7385
- * @summary Supprimer les paramètres d\'un club
7386
- * @param {DeleteClubSettingsRequest} deleteClubSettingsRequest
7387
- * @param {*} [options] Override http request option.
7388
- * @throws {RequiredError}
7389
- */
7390
- deleteClubSettings: async (deleteClubSettingsRequest: DeleteClubSettingsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7391
- // verify required parameter 'deleteClubSettingsRequest' is not null or undefined
7392
- assertParamExists('deleteClubSettings', 'deleteClubSettingsRequest', deleteClubSettingsRequest)
7393
- const localVarPath = `/api/club-settings`;
7394
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
7395
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7396
- let baseOptions;
7397
- if (configuration) {
7398
- baseOptions = configuration.baseOptions;
7399
- }
7400
-
7401
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
7402
- const localVarHeaderParameter = {} as any;
7403
- const localVarQueryParameter = {} as any;
7404
-
7405
- // authentication bearerAuth required
7406
- // http bearer authentication required
7407
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
7408
-
7409
-
7410
-
7411
- localVarHeaderParameter['Content-Type'] = 'application/json';
7412
-
7413
- setSearchParams(localVarUrlObj, localVarQueryParameter);
7414
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7415
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7416
- localVarRequestOptions.data = serializeDataIfNeeded(deleteClubSettingsRequest, localVarRequestOptions, configuration)
7417
-
7418
- return {
7419
- url: toPathString(localVarUrlObj),
7420
- options: localVarRequestOptions,
7421
- };
7422
- },
7423
- /**
7424
- *
7425
- * @summary Mettre à jour les paramètres d\'un club
7426
- * @param {UpdateClubSettingsRequest} updateClubSettingsRequest
7427
- * @param {*} [options] Override http request option.
7428
- * @throws {RequiredError}
7429
- */
7430
- updateClubSettings: async (updateClubSettingsRequest: UpdateClubSettingsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7431
- // verify required parameter 'updateClubSettingsRequest' is not null or undefined
7432
- assertParamExists('updateClubSettings', 'updateClubSettingsRequest', updateClubSettingsRequest)
7433
- const localVarPath = `/api/club-settings`;
7434
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
7435
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7436
- let baseOptions;
7437
- if (configuration) {
7438
- baseOptions = configuration.baseOptions;
7439
- }
7440
-
7441
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
7442
- const localVarHeaderParameter = {} as any;
7443
- const localVarQueryParameter = {} as any;
7444
-
7445
- // authentication bearerAuth required
7446
- // http bearer authentication required
7447
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
7448
-
7449
-
7450
-
7451
- localVarHeaderParameter['Content-Type'] = 'application/json';
7452
-
7453
- setSearchParams(localVarUrlObj, localVarQueryParameter);
7454
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7455
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7456
- localVarRequestOptions.data = serializeDataIfNeeded(updateClubSettingsRequest, localVarRequestOptions, configuration)
7457
-
7458
- return {
7459
- url: toPathString(localVarUrlObj),
7460
- options: localVarRequestOptions,
7461
- };
7462
- },
7463
- }
7464
- };
7465
-
7466
- /**
7467
- * ManagerClubSettingsApi - functional programming interface
7468
- * @export
7469
- */
7470
- export const ManagerClubSettingsApiFp = function(configuration?: Configuration) {
7471
- const localVarAxiosParamCreator = ManagerClubSettingsApiAxiosParamCreator(configuration)
7472
- return {
7473
- /**
7474
- *
7475
- * @summary Créer les paramètres d\'un club
7476
- * @param {CreateClubSettingsRequest} createClubSettingsRequest
7477
- * @param {*} [options] Override http request option.
7478
- * @throws {RequiredError}
7479
- */
7480
- async createClubSettings(createClubSettingsRequest: CreateClubSettingsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubSettings>> {
7481
- const localVarAxiosArgs = await localVarAxiosParamCreator.createClubSettings(createClubSettingsRequest, options);
7482
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7483
- const localVarOperationServerBasePath = operationServerMap['ManagerClubSettingsApi.createClubSettings']?.[localVarOperationServerIndex]?.url;
7484
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7485
- },
7486
- /**
7487
- *
7488
- * @summary Supprimer les paramètres d\'un club
7489
- * @param {DeleteClubSettingsRequest} deleteClubSettingsRequest
7490
- * @param {*} [options] Override http request option.
7491
- * @throws {RequiredError}
7492
- */
7493
- async deleteClubSettings(deleteClubSettingsRequest: DeleteClubSettingsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteClubSettings200Response>> {
7494
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteClubSettings(deleteClubSettingsRequest, options);
7495
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7496
- const localVarOperationServerBasePath = operationServerMap['ManagerClubSettingsApi.deleteClubSettings']?.[localVarOperationServerIndex]?.url;
7497
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7498
- },
7499
- /**
7500
- *
7501
- * @summary Mettre à jour les paramètres d\'un club
7502
- * @param {UpdateClubSettingsRequest} updateClubSettingsRequest
7503
- * @param {*} [options] Override http request option.
7504
- * @throws {RequiredError}
7505
- */
7506
- async updateClubSettings(updateClubSettingsRequest: UpdateClubSettingsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubSettings>> {
7507
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateClubSettings(updateClubSettingsRequest, options);
7508
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7509
- const localVarOperationServerBasePath = operationServerMap['ManagerClubSettingsApi.updateClubSettings']?.[localVarOperationServerIndex]?.url;
7510
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7511
- },
7512
- }
7513
- };
7514
-
7515
- /**
7516
- * ManagerClubSettingsApi - factory interface
7517
- * @export
7518
- */
7519
- export const ManagerClubSettingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
7520
- const localVarFp = ManagerClubSettingsApiFp(configuration)
7521
- return {
7522
- /**
7523
- *
7524
- * @summary Créer les paramètres d\'un club
7525
- * @param {ManagerClubSettingsApiCreateClubSettingsRequest} requestParameters Request parameters.
7526
- * @param {*} [options] Override http request option.
7527
- * @throws {RequiredError}
7528
- */
7529
- createClubSettings(requestParameters: ManagerClubSettingsApiCreateClubSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubSettings> {
7530
- return localVarFp.createClubSettings(requestParameters.createClubSettingsRequest, options).then((request) => request(axios, basePath));
7531
- },
7532
- /**
7533
- *
7534
- * @summary Supprimer les paramètres d\'un club
7535
- * @param {ManagerClubSettingsApiDeleteClubSettingsRequest} requestParameters Request parameters.
7536
- * @param {*} [options] Override http request option.
7537
- * @throws {RequiredError}
7538
- */
7539
- deleteClubSettings(requestParameters: ManagerClubSettingsApiDeleteClubSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeleteClubSettings200Response> {
7540
- return localVarFp.deleteClubSettings(requestParameters.deleteClubSettingsRequest, options).then((request) => request(axios, basePath));
7541
- },
7542
- /**
7543
- *
7544
- * @summary Mettre à jour les paramètres d\'un club
7545
- * @param {ManagerClubSettingsApiUpdateClubSettingsRequest} requestParameters Request parameters.
7546
- * @param {*} [options] Override http request option.
7547
- * @throws {RequiredError}
7548
- */
7549
- updateClubSettings(requestParameters: ManagerClubSettingsApiUpdateClubSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubSettings> {
7550
- return localVarFp.updateClubSettings(requestParameters.updateClubSettingsRequest, options).then((request) => request(axios, basePath));
7551
- },
7552
- };
7553
- };
7554
-
7555
- /**
7556
- * Request parameters for createClubSettings operation in ManagerClubSettingsApi.
7557
- * @export
7558
- * @interface ManagerClubSettingsApiCreateClubSettingsRequest
7559
- */
7560
- export interface ManagerClubSettingsApiCreateClubSettingsRequest {
7561
- /**
7562
- *
7563
- * @type {CreateClubSettingsRequest}
7564
- * @memberof ManagerClubSettingsApiCreateClubSettings
7565
- */
7566
- readonly createClubSettingsRequest: CreateClubSettingsRequest
7567
- }
7568
-
7569
- /**
7570
- * Request parameters for deleteClubSettings operation in ManagerClubSettingsApi.
7571
- * @export
7572
- * @interface ManagerClubSettingsApiDeleteClubSettingsRequest
7573
- */
7574
- export interface ManagerClubSettingsApiDeleteClubSettingsRequest {
7575
- /**
7576
- *
7577
- * @type {DeleteClubSettingsRequest}
7578
- * @memberof ManagerClubSettingsApiDeleteClubSettings
7579
- */
7580
- readonly deleteClubSettingsRequest: DeleteClubSettingsRequest
7581
- }
7582
-
7583
- /**
7584
- * Request parameters for updateClubSettings operation in ManagerClubSettingsApi.
7585
- * @export
7586
- * @interface ManagerClubSettingsApiUpdateClubSettingsRequest
7587
- */
7588
- export interface ManagerClubSettingsApiUpdateClubSettingsRequest {
7589
- /**
7590
- *
7591
- * @type {UpdateClubSettingsRequest}
7592
- * @memberof ManagerClubSettingsApiUpdateClubSettings
7593
- */
7594
- readonly updateClubSettingsRequest: UpdateClubSettingsRequest
7595
- }
7596
-
7597
- /**
7598
- * ManagerClubSettingsApi - object-oriented interface
7599
- * @export
7600
- * @class ManagerClubSettingsApi
7601
- * @extends {BaseAPI}
7602
- */
7603
- export class ManagerClubSettingsApi extends BaseAPI {
7604
- /**
7605
- *
7606
- * @summary Créer les paramètres d\'un club
7607
- * @param {ManagerClubSettingsApiCreateClubSettingsRequest} requestParameters Request parameters.
7608
- * @param {*} [options] Override http request option.
7609
- * @throws {RequiredError}
7610
- * @memberof ManagerClubSettingsApi
7611
- */
7612
- public createClubSettings(requestParameters: ManagerClubSettingsApiCreateClubSettingsRequest, options?: RawAxiosRequestConfig) {
7613
- return ManagerClubSettingsApiFp(this.configuration).createClubSettings(requestParameters.createClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
7614
- }
7615
-
7616
- /**
7617
- *
7618
- * @summary Supprimer les paramètres d\'un club
7619
- * @param {ManagerClubSettingsApiDeleteClubSettingsRequest} requestParameters Request parameters.
7620
- * @param {*} [options] Override http request option.
7621
- * @throws {RequiredError}
7622
- * @memberof ManagerClubSettingsApi
7623
- */
7624
- public deleteClubSettings(requestParameters: ManagerClubSettingsApiDeleteClubSettingsRequest, options?: RawAxiosRequestConfig) {
7625
- return ManagerClubSettingsApiFp(this.configuration).deleteClubSettings(requestParameters.deleteClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
7626
- }
7627
-
7628
- /**
7629
- *
7630
- * @summary Mettre à jour les paramètres d\'un club
7631
- * @param {ManagerClubSettingsApiUpdateClubSettingsRequest} requestParameters Request parameters.
7632
- * @param {*} [options] Override http request option.
7633
- * @throws {RequiredError}
7634
- * @memberof ManagerClubSettingsApi
7635
- */
7636
- public updateClubSettings(requestParameters: ManagerClubSettingsApiUpdateClubSettingsRequest, options?: RawAxiosRequestConfig) {
7637
- return ManagerClubSettingsApiFp(this.configuration).updateClubSettings(requestParameters.updateClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
7638
- }
7639
- }
7640
-
7641
-
7642
-
7643
- /**
7644
- * ManagerClubSlotsApi - axios parameter creator
7645
- * @export
7646
- */
7647
- export const ManagerClubSlotsApiAxiosParamCreator = function (configuration?: Configuration) {
7648
- return {
7649
- /**
7650
- *
7651
- * @summary Supprimer des créneaux pour le club courant sur une plage de dates
7652
- * @param {string} start Date de début (format ISO)
7653
- * @param {string} end Date de fin (format ISO)
7654
- * @param {*} [options] Override http request option.
7655
- * @throws {RequiredError}
7656
- */
7657
- deleteSlotsByClubInRange: async (start: string, end: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7658
- // verify required parameter 'start' is not null or undefined
7659
- assertParamExists('deleteSlotsByClubInRange', 'start', start)
7660
- // verify required parameter 'end' is not null or undefined
7661
- assertParamExists('deleteSlotsByClubInRange', 'end', end)
7662
- const localVarPath = `/api/clubs/slots`;
7663
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
7664
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7665
- let baseOptions;
7666
- if (configuration) {
7667
- baseOptions = configuration.baseOptions;
7668
- }
7669
-
7670
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
7671
- const localVarHeaderParameter = {} as any;
7672
- const localVarQueryParameter = {} as any;
7673
-
7674
- // authentication bearerAuth required
7675
- // http bearer authentication required
7676
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
7677
-
7678
- if (start !== undefined) {
7679
- localVarQueryParameter['start'] = (start as any instanceof Date) ?
7680
- (start as any).toISOString() :
7681
- start;
7682
- }
7633
+ if (start !== undefined) {
7634
+ localVarQueryParameter['start'] = (start as any instanceof Date) ?
7635
+ (start as any).toISOString() :
7636
+ start;
7637
+ }
7683
7638
 
7684
7639
  if (end !== undefined) {
7685
7640
  localVarQueryParameter['end'] = (end as any instanceof Date) ?
@@ -9637,36 +9592,89 @@ export const StaffClubsApiAxiosParamCreator = function (configuration?: Configur
9637
9592
  options: localVarRequestOptions,
9638
9593
  };
9639
9594
  },
9640
- }
9641
- };
9642
-
9643
- /**
9644
- * StaffClubsApi - functional programming interface
9645
- * @export
9646
- */
9647
- export const StaffClubsApiFp = function(configuration?: Configuration) {
9648
- const localVarAxiosParamCreator = StaffClubsApiAxiosParamCreator(configuration)
9649
- return {
9650
9595
  /**
9651
9596
  *
9652
- * @summary Get current club information
9597
+ * @summary Récupère les paramètres d’un club
9598
+ * @param {GetClubSettingsRequest} getClubSettingsRequest
9653
9599
  * @param {*} [options] Override http request option.
9654
9600
  * @throws {RequiredError}
9655
9601
  */
9656
- async getClubInfos(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetClubInfos200Response>> {
9657
- const localVarAxiosArgs = await localVarAxiosParamCreator.getClubInfos(options);
9658
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9659
- const localVarOperationServerBasePath = operationServerMap['StaffClubsApi.getClubInfos']?.[localVarOperationServerIndex]?.url;
9660
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9661
- },
9662
- }
9663
- };
9664
-
9665
- /**
9666
- * StaffClubsApi - factory interface
9667
- * @export
9668
- */
9669
- export const StaffClubsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
9602
+ getClubSettings: async (getClubSettingsRequest: GetClubSettingsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9603
+ // verify required parameter 'getClubSettingsRequest' is not null or undefined
9604
+ assertParamExists('getClubSettings', 'getClubSettingsRequest', getClubSettingsRequest)
9605
+ const localVarPath = `/api/club-settings`;
9606
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9607
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9608
+ let baseOptions;
9609
+ if (configuration) {
9610
+ baseOptions = configuration.baseOptions;
9611
+ }
9612
+
9613
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
9614
+ const localVarHeaderParameter = {} as any;
9615
+ const localVarQueryParameter = {} as any;
9616
+
9617
+ // authentication bearerAuth required
9618
+ // http bearer authentication required
9619
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
9620
+
9621
+
9622
+
9623
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9624
+
9625
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9626
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9627
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9628
+ localVarRequestOptions.data = serializeDataIfNeeded(getClubSettingsRequest, localVarRequestOptions, configuration)
9629
+
9630
+ return {
9631
+ url: toPathString(localVarUrlObj),
9632
+ options: localVarRequestOptions,
9633
+ };
9634
+ },
9635
+ }
9636
+ };
9637
+
9638
+ /**
9639
+ * StaffClubsApi - functional programming interface
9640
+ * @export
9641
+ */
9642
+ export const StaffClubsApiFp = function(configuration?: Configuration) {
9643
+ const localVarAxiosParamCreator = StaffClubsApiAxiosParamCreator(configuration)
9644
+ return {
9645
+ /**
9646
+ *
9647
+ * @summary Get current club information
9648
+ * @param {*} [options] Override http request option.
9649
+ * @throws {RequiredError}
9650
+ */
9651
+ async getClubInfos(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetClubInfos200Response>> {
9652
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClubInfos(options);
9653
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9654
+ const localVarOperationServerBasePath = operationServerMap['StaffClubsApi.getClubInfos']?.[localVarOperationServerIndex]?.url;
9655
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9656
+ },
9657
+ /**
9658
+ *
9659
+ * @summary Récupère les paramètres d’un club
9660
+ * @param {GetClubSettingsRequest} getClubSettingsRequest
9661
+ * @param {*} [options] Override http request option.
9662
+ * @throws {RequiredError}
9663
+ */
9664
+ async getClubSettings(getClubSettingsRequest: GetClubSettingsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubSettings>> {
9665
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClubSettings(getClubSettingsRequest, options);
9666
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9667
+ const localVarOperationServerBasePath = operationServerMap['StaffClubsApi.getClubSettings']?.[localVarOperationServerIndex]?.url;
9668
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9669
+ },
9670
+ }
9671
+ };
9672
+
9673
+ /**
9674
+ * StaffClubsApi - factory interface
9675
+ * @export
9676
+ */
9677
+ export const StaffClubsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
9670
9678
  const localVarFp = StaffClubsApiFp(configuration)
9671
9679
  return {
9672
9680
  /**
@@ -9678,9 +9686,33 @@ export const StaffClubsApiFactory = function (configuration?: Configuration, bas
9678
9686
  getClubInfos(options?: RawAxiosRequestConfig): AxiosPromise<GetClubInfos200Response> {
9679
9687
  return localVarFp.getClubInfos(options).then((request) => request(axios, basePath));
9680
9688
  },
9689
+ /**
9690
+ *
9691
+ * @summary Récupère les paramètres d’un club
9692
+ * @param {StaffClubsApiGetClubSettingsRequest} requestParameters Request parameters.
9693
+ * @param {*} [options] Override http request option.
9694
+ * @throws {RequiredError}
9695
+ */
9696
+ getClubSettings(requestParameters: StaffClubsApiGetClubSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubSettings> {
9697
+ return localVarFp.getClubSettings(requestParameters.getClubSettingsRequest, options).then((request) => request(axios, basePath));
9698
+ },
9681
9699
  };
9682
9700
  };
9683
9701
 
9702
+ /**
9703
+ * Request parameters for getClubSettings operation in StaffClubsApi.
9704
+ * @export
9705
+ * @interface StaffClubsApiGetClubSettingsRequest
9706
+ */
9707
+ export interface StaffClubsApiGetClubSettingsRequest {
9708
+ /**
9709
+ *
9710
+ * @type {GetClubSettingsRequest}
9711
+ * @memberof StaffClubsApiGetClubSettings
9712
+ */
9713
+ readonly getClubSettingsRequest: GetClubSettingsRequest
9714
+ }
9715
+
9684
9716
  /**
9685
9717
  * StaffClubsApi - object-oriented interface
9686
9718
  * @export
@@ -9698,6 +9730,18 @@ export class StaffClubsApi extends BaseAPI {
9698
9730
  public getClubInfos(options?: RawAxiosRequestConfig) {
9699
9731
  return StaffClubsApiFp(this.configuration).getClubInfos(options).then((request) => request(this.axios, this.basePath));
9700
9732
  }
9733
+
9734
+ /**
9735
+ *
9736
+ * @summary Récupère les paramètres d’un club
9737
+ * @param {StaffClubsApiGetClubSettingsRequest} requestParameters Request parameters.
9738
+ * @param {*} [options] Override http request option.
9739
+ * @throws {RequiredError}
9740
+ * @memberof StaffClubsApi
9741
+ */
9742
+ public getClubSettings(requestParameters: StaffClubsApiGetClubSettingsRequest, options?: RawAxiosRequestConfig) {
9743
+ return StaffClubsApiFp(this.configuration).getClubSettings(requestParameters.getClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
9744
+ }
9701
9745
  }
9702
9746
 
9703
9747
 
@@ -9813,46 +9857,6 @@ export class StaffProfileApi extends BaseAPI {
9813
9857
  */
9814
9858
  export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
9815
9859
  return {
9816
- /**
9817
- *
9818
- * @summary Abonne l\'utilisateur connecté à un club
9819
- * @param {SubscribeToClubRequestBody} subscribeToClubRequestBody
9820
- * @param {*} [options] Override http request option.
9821
- * @throws {RequiredError}
9822
- */
9823
- subscribeToClub: async (subscribeToClubRequestBody: SubscribeToClubRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9824
- // verify required parameter 'subscribeToClubRequestBody' is not null or undefined
9825
- assertParamExists('subscribeToClub', 'subscribeToClubRequestBody', subscribeToClubRequestBody)
9826
- const localVarPath = `/api/users/me/subscribe`;
9827
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
9828
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9829
- let baseOptions;
9830
- if (configuration) {
9831
- baseOptions = configuration.baseOptions;
9832
- }
9833
-
9834
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
9835
- const localVarHeaderParameter = {} as any;
9836
- const localVarQueryParameter = {} as any;
9837
-
9838
- // authentication bearerAuth required
9839
- // http bearer authentication required
9840
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
9841
-
9842
-
9843
-
9844
- localVarHeaderParameter['Content-Type'] = 'application/json';
9845
-
9846
- setSearchParams(localVarUrlObj, localVarQueryParameter);
9847
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9848
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9849
- localVarRequestOptions.data = serializeDataIfNeeded(subscribeToClubRequestBody, localVarRequestOptions, configuration)
9850
-
9851
- return {
9852
- url: toPathString(localVarUrlObj),
9853
- options: localVarRequestOptions,
9854
- };
9855
- },
9856
9860
  /**
9857
9861
  *
9858
9862
  * @summary Met à jour le Customer Stripe de l\'utilisateur
@@ -9903,19 +9907,6 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
9903
9907
  export const UserApiFp = function(configuration?: Configuration) {
9904
9908
  const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
9905
9909
  return {
9906
- /**
9907
- *
9908
- * @summary Abonne l\'utilisateur connecté à un club
9909
- * @param {SubscribeToClubRequestBody} subscribeToClubRequestBody
9910
- * @param {*} [options] Override http request option.
9911
- * @throws {RequiredError}
9912
- */
9913
- async subscribeToClub(subscribeToClubRequestBody: SubscribeToClubRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubscriptionResponse>> {
9914
- const localVarAxiosArgs = await localVarAxiosParamCreator.subscribeToClub(subscribeToClubRequestBody, options);
9915
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9916
- const localVarOperationServerBasePath = operationServerMap['UserApi.subscribeToClub']?.[localVarOperationServerIndex]?.url;
9917
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9918
- },
9919
9910
  /**
9920
9911
  *
9921
9912
  * @summary Met à jour le Customer Stripe de l\'utilisateur
@@ -9939,16 +9930,6 @@ export const UserApiFp = function(configuration?: Configuration) {
9939
9930
  export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
9940
9931
  const localVarFp = UserApiFp(configuration)
9941
9932
  return {
9942
- /**
9943
- *
9944
- * @summary Abonne l\'utilisateur connecté à un club
9945
- * @param {UserApiSubscribeToClubRequest} requestParameters Request parameters.
9946
- * @param {*} [options] Override http request option.
9947
- * @throws {RequiredError}
9948
- */
9949
- subscribeToClub(requestParameters: UserApiSubscribeToClubRequest, options?: RawAxiosRequestConfig): AxiosPromise<SubscriptionResponse> {
9950
- return localVarFp.subscribeToClub(requestParameters.subscribeToClubRequestBody, options).then((request) => request(axios, basePath));
9951
- },
9952
9933
  /**
9953
9934
  *
9954
9935
  * @summary Met à jour le Customer Stripe de l\'utilisateur
@@ -9962,20 +9943,6 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
9962
9943
  };
9963
9944
  };
9964
9945
 
9965
- /**
9966
- * Request parameters for subscribeToClub operation in UserApi.
9967
- * @export
9968
- * @interface UserApiSubscribeToClubRequest
9969
- */
9970
- export interface UserApiSubscribeToClubRequest {
9971
- /**
9972
- *
9973
- * @type {SubscribeToClubRequestBody}
9974
- * @memberof UserApiSubscribeToClub
9975
- */
9976
- readonly subscribeToClubRequestBody: SubscribeToClubRequestBody
9977
- }
9978
-
9979
9946
  /**
9980
9947
  * Request parameters for updateCustomer operation in UserApi.
9981
9948
  * @export
@@ -9997,18 +9964,6 @@ export interface UserApiUpdateCustomerRequest {
9997
9964
  * @extends {BaseAPI}
9998
9965
  */
9999
9966
  export class UserApi extends BaseAPI {
10000
- /**
10001
- *
10002
- * @summary Abonne l\'utilisateur connecté à un club
10003
- * @param {UserApiSubscribeToClubRequest} requestParameters Request parameters.
10004
- * @param {*} [options] Override http request option.
10005
- * @throws {RequiredError}
10006
- * @memberof UserApi
10007
- */
10008
- public subscribeToClub(requestParameters: UserApiSubscribeToClubRequest, options?: RawAxiosRequestConfig) {
10009
- return UserApiFp(this.configuration).subscribeToClub(requestParameters.subscribeToClubRequestBody, options).then((request) => request(this.axios, this.basePath));
10010
- }
10011
-
10012
9967
  /**
10013
9968
  *
10014
9969
  * @summary Met à jour le Customer Stripe de l\'utilisateur
@@ -11375,6 +11330,46 @@ export class UserClubsApi extends BaseAPI {
11375
11330
  */
11376
11331
  export const UserPaymentApiAxiosParamCreator = function (configuration?: Configuration) {
11377
11332
  return {
11333
+ /**
11334
+ *
11335
+ * @summary Ajoute une méthode de paiement Stripe à la liste de l\'utilisateur
11336
+ * @param {AddPaymentMethodSetupRequestBody} addPaymentMethodSetupRequestBody
11337
+ * @param {*} [options] Override http request option.
11338
+ * @throws {RequiredError}
11339
+ */
11340
+ addPaymentMethodSetup: async (addPaymentMethodSetupRequestBody: AddPaymentMethodSetupRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11341
+ // verify required parameter 'addPaymentMethodSetupRequestBody' is not null or undefined
11342
+ assertParamExists('addPaymentMethodSetup', 'addPaymentMethodSetupRequestBody', addPaymentMethodSetupRequestBody)
11343
+ const localVarPath = `/api/users/addPaymentMethodSetup`;
11344
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11345
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11346
+ let baseOptions;
11347
+ if (configuration) {
11348
+ baseOptions = configuration.baseOptions;
11349
+ }
11350
+
11351
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
11352
+ const localVarHeaderParameter = {} as any;
11353
+ const localVarQueryParameter = {} as any;
11354
+
11355
+ // authentication bearerAuth required
11356
+ // http bearer authentication required
11357
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
11358
+
11359
+
11360
+
11361
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11362
+
11363
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11364
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11365
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11366
+ localVarRequestOptions.data = serializeDataIfNeeded(addPaymentMethodSetupRequestBody, localVarRequestOptions, configuration)
11367
+
11368
+ return {
11369
+ url: toPathString(localVarUrlObj),
11370
+ options: localVarRequestOptions,
11371
+ };
11372
+ },
11378
11373
  /**
11379
11374
  * Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
11380
11375
  * @summary Confirme la configuration d\'une méthode de paiement
@@ -11465,6 +11460,19 @@ export const UserPaymentApiAxiosParamCreator = function (configuration?: Configu
11465
11460
  export const UserPaymentApiFp = function(configuration?: Configuration) {
11466
11461
  const localVarAxiosParamCreator = UserPaymentApiAxiosParamCreator(configuration)
11467
11462
  return {
11463
+ /**
11464
+ *
11465
+ * @summary Ajoute une méthode de paiement Stripe à la liste de l\'utilisateur
11466
+ * @param {AddPaymentMethodSetupRequestBody} addPaymentMethodSetupRequestBody
11467
+ * @param {*} [options] Override http request option.
11468
+ * @throws {RequiredError}
11469
+ */
11470
+ async addPaymentMethodSetup(addPaymentMethodSetupRequestBody: AddPaymentMethodSetupRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AddPaymentMethodSetupResponse>> {
11471
+ const localVarAxiosArgs = await localVarAxiosParamCreator.addPaymentMethodSetup(addPaymentMethodSetupRequestBody, options);
11472
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11473
+ const localVarOperationServerBasePath = operationServerMap['UserPaymentApi.addPaymentMethodSetup']?.[localVarOperationServerIndex]?.url;
11474
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11475
+ },
11468
11476
  /**
11469
11477
  * Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
11470
11478
  * @summary Confirme la configuration d\'une méthode de paiement
@@ -11501,6 +11509,16 @@ export const UserPaymentApiFp = function(configuration?: Configuration) {
11501
11509
  export const UserPaymentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
11502
11510
  const localVarFp = UserPaymentApiFp(configuration)
11503
11511
  return {
11512
+ /**
11513
+ *
11514
+ * @summary Ajoute une méthode de paiement Stripe à la liste de l\'utilisateur
11515
+ * @param {UserPaymentApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
11516
+ * @param {*} [options] Override http request option.
11517
+ * @throws {RequiredError}
11518
+ */
11519
+ addPaymentMethodSetup(requestParameters: UserPaymentApiAddPaymentMethodSetupRequest, options?: RawAxiosRequestConfig): AxiosPromise<AddPaymentMethodSetupResponse> {
11520
+ return localVarFp.addPaymentMethodSetup(requestParameters.addPaymentMethodSetupRequestBody, options).then((request) => request(axios, basePath));
11521
+ },
11504
11522
  /**
11505
11523
  * Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
11506
11524
  * @summary Confirme la configuration d\'une méthode de paiement
@@ -11524,6 +11542,20 @@ export const UserPaymentApiFactory = function (configuration?: Configuration, ba
11524
11542
  };
11525
11543
  };
11526
11544
 
11545
+ /**
11546
+ * Request parameters for addPaymentMethodSetup operation in UserPaymentApi.
11547
+ * @export
11548
+ * @interface UserPaymentApiAddPaymentMethodSetupRequest
11549
+ */
11550
+ export interface UserPaymentApiAddPaymentMethodSetupRequest {
11551
+ /**
11552
+ *
11553
+ * @type {AddPaymentMethodSetupRequestBody}
11554
+ * @memberof UserPaymentApiAddPaymentMethodSetup
11555
+ */
11556
+ readonly addPaymentMethodSetupRequestBody: AddPaymentMethodSetupRequestBody
11557
+ }
11558
+
11527
11559
  /**
11528
11560
  * Request parameters for confirmPaymentMethodSetup operation in UserPaymentApi.
11529
11561
  * @export
@@ -11559,6 +11591,18 @@ export interface UserPaymentApiSetupPaymentMethodRequest {
11559
11591
  * @extends {BaseAPI}
11560
11592
  */
11561
11593
  export class UserPaymentApi extends BaseAPI {
11594
+ /**
11595
+ *
11596
+ * @summary Ajoute une méthode de paiement Stripe à la liste de l\'utilisateur
11597
+ * @param {UserPaymentApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
11598
+ * @param {*} [options] Override http request option.
11599
+ * @throws {RequiredError}
11600
+ * @memberof UserPaymentApi
11601
+ */
11602
+ public addPaymentMethodSetup(requestParameters: UserPaymentApiAddPaymentMethodSetupRequest, options?: RawAxiosRequestConfig) {
11603
+ return UserPaymentApiFp(this.configuration).addPaymentMethodSetup(requestParameters.addPaymentMethodSetupRequestBody, options).then((request) => request(this.axios, this.basePath));
11604
+ }
11605
+
11562
11606
  /**
11563
11607
  * Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
11564
11608
  * @summary Confirme la configuration d\'une méthode de paiement
@@ -11683,12 +11727,12 @@ export const UserProfileApiAxiosParamCreator = function (configuration?: Configu
11683
11727
  },
11684
11728
  /**
11685
11729
  *
11686
- * @summary Récupère les informations de l\'utilisateur connecté
11730
+ * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
11687
11731
  * @param {*} [options] Override http request option.
11688
11732
  * @throws {RequiredError}
11689
11733
  */
11690
- getUserInfo: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11691
- const localVarPath = `/api/users/me`;
11734
+ getFrequentlyPlayedWith: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11735
+ const localVarPath = `/api/users/me/frequentlyPlayedWith`;
11692
11736
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11693
11737
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11694
11738
  let baseOptions;
@@ -11717,15 +11761,12 @@ export const UserProfileApiAxiosParamCreator = function (configuration?: Configu
11717
11761
  },
11718
11762
  /**
11719
11763
  *
11720
- * @summary Met à jour les données de l\'utilisateur connecté
11721
- * @param {UpdateUserRequestBody} updateUserRequestBody
11764
+ * @summary Clubs les plus fréquemment visités par l\'utilisateur connecté
11722
11765
  * @param {*} [options] Override http request option.
11723
11766
  * @throws {RequiredError}
11724
11767
  */
11725
- updateUser: async (updateUserRequestBody: UpdateUserRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11726
- // verify required parameter 'updateUserRequestBody' is not null or undefined
11727
- assertParamExists('updateUser', 'updateUserRequestBody', updateUserRequestBody)
11728
- const localVarPath = `/api/users/me`;
11768
+ getFrequentlyVisitedClub: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11769
+ const localVarPath = `/api/users/me/frequentlyVisitedClub`;
11729
11770
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11730
11771
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11731
11772
  let baseOptions;
@@ -11733,7 +11774,7 @@ export const UserProfileApiAxiosParamCreator = function (configuration?: Configu
11733
11774
  baseOptions = configuration.baseOptions;
11734
11775
  }
11735
11776
 
11736
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
11777
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11737
11778
  const localVarHeaderParameter = {} as any;
11738
11779
  const localVarQueryParameter = {} as any;
11739
11780
 
@@ -11743,54 +11784,521 @@ export const UserProfileApiAxiosParamCreator = function (configuration?: Configu
11743
11784
 
11744
11785
 
11745
11786
 
11746
- localVarHeaderParameter['Content-Type'] = 'application/json';
11747
-
11748
11787
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11749
11788
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11750
11789
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11751
- localVarRequestOptions.data = serializeDataIfNeeded(updateUserRequestBody, localVarRequestOptions, configuration)
11752
11790
 
11753
11791
  return {
11754
11792
  url: toPathString(localVarUrlObj),
11755
11793
  options: localVarRequestOptions,
11756
11794
  };
11757
11795
  },
11758
- }
11759
- };
11760
-
11761
- /**
11762
- * UserProfileApi - functional programming interface
11763
- * @export
11764
- */
11765
- export const UserProfileApiFp = function(configuration?: Configuration) {
11766
- const localVarAxiosParamCreator = UserProfileApiAxiosParamCreator(configuration)
11767
- return {
11768
- /**
11769
- *
11770
- * @summary Modifie le mot de passe de l\'utilisateur connecté
11771
- * @param {ChangePasswordRequestBody} changePasswordRequestBody
11772
- * @param {*} [options] Override http request option.
11773
- * @throws {RequiredError}
11774
- */
11775
- async changePassword(changePasswordRequestBody: ChangePasswordRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChangePasswordResponse>> {
11776
- const localVarAxiosArgs = await localVarAxiosParamCreator.changePassword(changePasswordRequestBody, options);
11777
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11778
- const localVarOperationServerBasePath = operationServerMap['UserProfileApi.changePassword']?.[localVarOperationServerIndex]?.url;
11779
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11780
- },
11781
11796
  /**
11782
11797
  *
11783
- * @summary Récupère la liste des utilisateurs avec filtres et pagination
11784
- * @param {number} [limit] Nombre maximum d\&#39;utilisateurs à retourner
11785
- * @param {number} [skip] Nombre d\&#39;utilisateurs à ignorer (pagination)
11786
- * @param {string} [search] Recherche dans firstName, lastName, email
11798
+ * @summary Récupère l\'URL de la photo de profil de l\'utilisateur connecté
11799
+ * @param {*} [options] Override http request option.
11800
+ * @throws {RequiredError}
11801
+ */
11802
+ getProfilePicture: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11803
+ const localVarPath = `/api/users/me/profile-picture`;
11804
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11805
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11806
+ let baseOptions;
11807
+ if (configuration) {
11808
+ baseOptions = configuration.baseOptions;
11809
+ }
11810
+
11811
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11812
+ const localVarHeaderParameter = {} as any;
11813
+ const localVarQueryParameter = {} as any;
11814
+
11815
+ // authentication bearerAuth required
11816
+ // http bearer authentication required
11817
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
11818
+
11819
+
11820
+
11821
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11822
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11823
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11824
+
11825
+ return {
11826
+ url: toPathString(localVarUrlObj),
11827
+ options: localVarRequestOptions,
11828
+ };
11829
+ },
11830
+ /**
11831
+ *
11832
+ * @summary Récupère la ville de l\'utilisateur connecté
11833
+ * @param {*} [options] Override http request option.
11834
+ * @throws {RequiredError}
11835
+ */
11836
+ getUserCity: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11837
+ const localVarPath = `/api/users/me/city`;
11838
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11839
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11840
+ let baseOptions;
11841
+ if (configuration) {
11842
+ baseOptions = configuration.baseOptions;
11843
+ }
11844
+
11845
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11846
+ const localVarHeaderParameter = {} as any;
11847
+ const localVarQueryParameter = {} as any;
11848
+
11849
+ // authentication bearerAuth required
11850
+ // http bearer authentication required
11851
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
11852
+
11853
+
11854
+
11855
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11856
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11857
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11858
+
11859
+ return {
11860
+ url: toPathString(localVarUrlObj),
11861
+ options: localVarRequestOptions,
11862
+ };
11863
+ },
11864
+ /**
11865
+ *
11866
+ * @summary Récupère la description de l\'utilisateur connecté
11867
+ * @param {*} [options] Override http request option.
11868
+ * @throws {RequiredError}
11869
+ */
11870
+ getUserDescription: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11871
+ const localVarPath = `/api/users/me/description`;
11872
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11873
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11874
+ let baseOptions;
11875
+ if (configuration) {
11876
+ baseOptions = configuration.baseOptions;
11877
+ }
11878
+
11879
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11880
+ const localVarHeaderParameter = {} as any;
11881
+ const localVarQueryParameter = {} as any;
11882
+
11883
+ // authentication bearerAuth required
11884
+ // http bearer authentication required
11885
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
11886
+
11887
+
11888
+
11889
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11890
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11891
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11892
+
11893
+ return {
11894
+ url: toPathString(localVarUrlObj),
11895
+ options: localVarRequestOptions,
11896
+ };
11897
+ },
11898
+ /**
11899
+ *
11900
+ * @summary Récupère les informations de l\'utilisateur connecté
11901
+ * @param {*} [options] Override http request option.
11902
+ * @throws {RequiredError}
11903
+ */
11904
+ getUserInfo: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11905
+ const localVarPath = `/api/users/me`;
11906
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11907
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11908
+ let baseOptions;
11909
+ if (configuration) {
11910
+ baseOptions = configuration.baseOptions;
11911
+ }
11912
+
11913
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11914
+ const localVarHeaderParameter = {} as any;
11915
+ const localVarQueryParameter = {} as any;
11916
+
11917
+ // authentication bearerAuth required
11918
+ // http bearer authentication required
11919
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
11920
+
11921
+
11922
+
11923
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11924
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11925
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11926
+
11927
+ return {
11928
+ url: toPathString(localVarUrlObj),
11929
+ options: localVarRequestOptions,
11930
+ };
11931
+ },
11932
+ /**
11933
+ *
11934
+ * @summary Récupère la visibilité du profil de l\'utilisateur connecté
11935
+ * @param {*} [options] Override http request option.
11936
+ * @throws {RequiredError}
11937
+ */
11938
+ getUserProfileVisibility: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11939
+ const localVarPath = `/api/users/me/profile-visibility`;
11940
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11941
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11942
+ let baseOptions;
11943
+ if (configuration) {
11944
+ baseOptions = configuration.baseOptions;
11945
+ }
11946
+
11947
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11948
+ const localVarHeaderParameter = {} as any;
11949
+ const localVarQueryParameter = {} as any;
11950
+
11951
+ // authentication bearerAuth required
11952
+ // http bearer authentication required
11953
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
11954
+
11955
+
11956
+
11957
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11958
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11959
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11960
+
11961
+ return {
11962
+ url: toPathString(localVarUrlObj),
11963
+ options: localVarRequestOptions,
11964
+ };
11965
+ },
11966
+ /**
11967
+ *
11968
+ * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
11969
+ * @param {UpdateLevelBySportsRequestBody} updateLevelBySportsRequestBody
11970
+ * @param {*} [options] Override http request option.
11971
+ * @throws {RequiredError}
11972
+ */
11973
+ updateLevelBySports: async (updateLevelBySportsRequestBody: UpdateLevelBySportsRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11974
+ // verify required parameter 'updateLevelBySportsRequestBody' is not null or undefined
11975
+ assertParamExists('updateLevelBySports', 'updateLevelBySportsRequestBody', updateLevelBySportsRequestBody)
11976
+ const localVarPath = `/api/users/me/level-by-sports`;
11977
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11978
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11979
+ let baseOptions;
11980
+ if (configuration) {
11981
+ baseOptions = configuration.baseOptions;
11982
+ }
11983
+
11984
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
11985
+ const localVarHeaderParameter = {} as any;
11986
+ const localVarQueryParameter = {} as any;
11987
+
11988
+ // authentication bearerAuth required
11989
+ // http bearer authentication required
11990
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
11991
+
11992
+
11993
+
11994
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11995
+
11996
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11997
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11998
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11999
+ localVarRequestOptions.data = serializeDataIfNeeded(updateLevelBySportsRequestBody, localVarRequestOptions, configuration)
12000
+
12001
+ return {
12002
+ url: toPathString(localVarUrlObj),
12003
+ options: localVarRequestOptions,
12004
+ };
12005
+ },
12006
+ /**
12007
+ *
12008
+ * @summary Met à jour l\'URL de la photo de profil de l\'utilisateur connecté
12009
+ * @param {UpdateProfilePictureRequestBody} updateProfilePictureRequestBody
12010
+ * @param {*} [options] Override http request option.
12011
+ * @throws {RequiredError}
12012
+ */
12013
+ updateProfilePicture: async (updateProfilePictureRequestBody: UpdateProfilePictureRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12014
+ // verify required parameter 'updateProfilePictureRequestBody' is not null or undefined
12015
+ assertParamExists('updateProfilePicture', 'updateProfilePictureRequestBody', updateProfilePictureRequestBody)
12016
+ const localVarPath = `/api/users/me/profile-picture`;
12017
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12018
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12019
+ let baseOptions;
12020
+ if (configuration) {
12021
+ baseOptions = configuration.baseOptions;
12022
+ }
12023
+
12024
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
12025
+ const localVarHeaderParameter = {} as any;
12026
+ const localVarQueryParameter = {} as any;
12027
+
12028
+ // authentication bearerAuth required
12029
+ // http bearer authentication required
12030
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12031
+
12032
+
12033
+
12034
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12035
+
12036
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12037
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12038
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12039
+ localVarRequestOptions.data = serializeDataIfNeeded(updateProfilePictureRequestBody, localVarRequestOptions, configuration)
12040
+
12041
+ return {
12042
+ url: toPathString(localVarUrlObj),
12043
+ options: localVarRequestOptions,
12044
+ };
12045
+ },
12046
+ /**
12047
+ *
12048
+ * @summary Met à jour la visibilité du profil de l\'utilisateur connecté
12049
+ * @param {UpdateProfileVisibilityRequestBody} updateProfileVisibilityRequestBody
12050
+ * @param {*} [options] Override http request option.
12051
+ * @throws {RequiredError}
12052
+ */
12053
+ updateProfileVisibility: async (updateProfileVisibilityRequestBody: UpdateProfileVisibilityRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12054
+ // verify required parameter 'updateProfileVisibilityRequestBody' is not null or undefined
12055
+ assertParamExists('updateProfileVisibility', 'updateProfileVisibilityRequestBody', updateProfileVisibilityRequestBody)
12056
+ const localVarPath = `/api/users/me/profile-visibility`;
12057
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12058
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12059
+ let baseOptions;
12060
+ if (configuration) {
12061
+ baseOptions = configuration.baseOptions;
12062
+ }
12063
+
12064
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
12065
+ const localVarHeaderParameter = {} as any;
12066
+ const localVarQueryParameter = {} as any;
12067
+
12068
+ // authentication bearerAuth required
12069
+ // http bearer authentication required
12070
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12071
+
12072
+
12073
+
12074
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12075
+
12076
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12077
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12078
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12079
+ localVarRequestOptions.data = serializeDataIfNeeded(updateProfileVisibilityRequestBody, localVarRequestOptions, configuration)
12080
+
12081
+ return {
12082
+ url: toPathString(localVarUrlObj),
12083
+ options: localVarRequestOptions,
12084
+ };
12085
+ },
12086
+ /**
12087
+ *
12088
+ * @summary Met à jour les données de l\'utilisateur connecté
12089
+ * @param {UpdateUserRequestBody} updateUserRequestBody
12090
+ * @param {*} [options] Override http request option.
12091
+ * @throws {RequiredError}
12092
+ */
12093
+ updateUser: async (updateUserRequestBody: UpdateUserRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12094
+ // verify required parameter 'updateUserRequestBody' is not null or undefined
12095
+ assertParamExists('updateUser', 'updateUserRequestBody', updateUserRequestBody)
12096
+ const localVarPath = `/api/users/me`;
12097
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12098
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12099
+ let baseOptions;
12100
+ if (configuration) {
12101
+ baseOptions = configuration.baseOptions;
12102
+ }
12103
+
12104
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
12105
+ const localVarHeaderParameter = {} as any;
12106
+ const localVarQueryParameter = {} as any;
12107
+
12108
+ // authentication bearerAuth required
12109
+ // http bearer authentication required
12110
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12111
+
12112
+
12113
+
12114
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12115
+
12116
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12117
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12118
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12119
+ localVarRequestOptions.data = serializeDataIfNeeded(updateUserRequestBody, localVarRequestOptions, configuration)
12120
+
12121
+ return {
12122
+ url: toPathString(localVarUrlObj),
12123
+ options: localVarRequestOptions,
12124
+ };
12125
+ },
12126
+ /**
12127
+ *
12128
+ * @summary Met à jour la ville de l\'utilisateur connecté
12129
+ * @param {UpdateUserCityRequestBody} updateUserCityRequestBody
12130
+ * @param {*} [options] Override http request option.
12131
+ * @throws {RequiredError}
12132
+ */
12133
+ updateUserCity: async (updateUserCityRequestBody: UpdateUserCityRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12134
+ // verify required parameter 'updateUserCityRequestBody' is not null or undefined
12135
+ assertParamExists('updateUserCity', 'updateUserCityRequestBody', updateUserCityRequestBody)
12136
+ const localVarPath = `/api/users/me/city`;
12137
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12138
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12139
+ let baseOptions;
12140
+ if (configuration) {
12141
+ baseOptions = configuration.baseOptions;
12142
+ }
12143
+
12144
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
12145
+ const localVarHeaderParameter = {} as any;
12146
+ const localVarQueryParameter = {} as any;
12147
+
12148
+ // authentication bearerAuth required
12149
+ // http bearer authentication required
12150
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12151
+
12152
+
12153
+
12154
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12155
+
12156
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12157
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12158
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12159
+ localVarRequestOptions.data = serializeDataIfNeeded(updateUserCityRequestBody, localVarRequestOptions, configuration)
12160
+
12161
+ return {
12162
+ url: toPathString(localVarUrlObj),
12163
+ options: localVarRequestOptions,
12164
+ };
12165
+ },
12166
+ /**
12167
+ *
12168
+ * @summary Met à jour la description de l\'utilisateur connecté
12169
+ * @param {UpdateUserDescriptionRequestBody} updateUserDescriptionRequestBody
12170
+ * @param {*} [options] Override http request option.
12171
+ * @throws {RequiredError}
12172
+ */
12173
+ updateUserDescription: async (updateUserDescriptionRequestBody: UpdateUserDescriptionRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12174
+ // verify required parameter 'updateUserDescriptionRequestBody' is not null or undefined
12175
+ assertParamExists('updateUserDescription', 'updateUserDescriptionRequestBody', updateUserDescriptionRequestBody)
12176
+ const localVarPath = `/api/users/me/description`;
12177
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12178
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12179
+ let baseOptions;
12180
+ if (configuration) {
12181
+ baseOptions = configuration.baseOptions;
12182
+ }
12183
+
12184
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
12185
+ const localVarHeaderParameter = {} as any;
12186
+ const localVarQueryParameter = {} as any;
12187
+
12188
+ // authentication bearerAuth required
12189
+ // http bearer authentication required
12190
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12191
+
12192
+
12193
+
12194
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12195
+
12196
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12197
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12198
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12199
+ localVarRequestOptions.data = serializeDataIfNeeded(updateUserDescriptionRequestBody, localVarRequestOptions, configuration)
12200
+
12201
+ return {
12202
+ url: toPathString(localVarUrlObj),
12203
+ options: localVarRequestOptions,
12204
+ };
12205
+ },
12206
+ }
12207
+ };
12208
+
12209
+ /**
12210
+ * UserProfileApi - functional programming interface
12211
+ * @export
12212
+ */
12213
+ export const UserProfileApiFp = function(configuration?: Configuration) {
12214
+ const localVarAxiosParamCreator = UserProfileApiAxiosParamCreator(configuration)
12215
+ return {
12216
+ /**
12217
+ *
12218
+ * @summary Modifie le mot de passe de l\'utilisateur connecté
12219
+ * @param {ChangePasswordRequestBody} changePasswordRequestBody
12220
+ * @param {*} [options] Override http request option.
12221
+ * @throws {RequiredError}
12222
+ */
12223
+ async changePassword(changePasswordRequestBody: ChangePasswordRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChangePasswordResponse>> {
12224
+ const localVarAxiosArgs = await localVarAxiosParamCreator.changePassword(changePasswordRequestBody, options);
12225
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12226
+ const localVarOperationServerBasePath = operationServerMap['UserProfileApi.changePassword']?.[localVarOperationServerIndex]?.url;
12227
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12228
+ },
12229
+ /**
12230
+ *
12231
+ * @summary Récupère la liste des utilisateurs avec filtres et pagination
12232
+ * @param {number} [limit] Nombre maximum d\&#39;utilisateurs à retourner
12233
+ * @param {number} [skip] Nombre d\&#39;utilisateurs à ignorer (pagination)
12234
+ * @param {string} [search] Recherche dans firstName, lastName, email
11787
12235
  * @param {*} [options] Override http request option.
11788
12236
  * @throws {RequiredError}
11789
12237
  */
11790
12238
  async getAllUsers(limit?: number, skip?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserResponse>>> {
11791
12239
  const localVarAxiosArgs = await localVarAxiosParamCreator.getAllUsers(limit, skip, search, options);
11792
12240
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11793
- const localVarOperationServerBasePath = operationServerMap['UserProfileApi.getAllUsers']?.[localVarOperationServerIndex]?.url;
12241
+ const localVarOperationServerBasePath = operationServerMap['UserProfileApi.getAllUsers']?.[localVarOperationServerIndex]?.url;
12242
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12243
+ },
12244
+ /**
12245
+ *
12246
+ * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
12247
+ * @param {*} [options] Override http request option.
12248
+ * @throws {RequiredError}
12249
+ */
12250
+ async getFrequentlyPlayedWith(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<FrequentlyPlayedWithItem>>> {
12251
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getFrequentlyPlayedWith(options);
12252
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12253
+ const localVarOperationServerBasePath = operationServerMap['UserProfileApi.getFrequentlyPlayedWith']?.[localVarOperationServerIndex]?.url;
12254
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12255
+ },
12256
+ /**
12257
+ *
12258
+ * @summary Clubs les plus fréquemment visités par l\'utilisateur connecté
12259
+ * @param {*} [options] Override http request option.
12260
+ * @throws {RequiredError}
12261
+ */
12262
+ async getFrequentlyVisitedClub(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<FrequentlyVisitedClubItem>>> {
12263
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getFrequentlyVisitedClub(options);
12264
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12265
+ const localVarOperationServerBasePath = operationServerMap['UserProfileApi.getFrequentlyVisitedClub']?.[localVarOperationServerIndex]?.url;
12266
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12267
+ },
12268
+ /**
12269
+ *
12270
+ * @summary Récupère l\'URL de la photo de profil de l\'utilisateur connecté
12271
+ * @param {*} [options] Override http request option.
12272
+ * @throws {RequiredError}
12273
+ */
12274
+ async getProfilePicture(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProfilePictureResponse>> {
12275
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProfilePicture(options);
12276
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12277
+ const localVarOperationServerBasePath = operationServerMap['UserProfileApi.getProfilePicture']?.[localVarOperationServerIndex]?.url;
12278
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12279
+ },
12280
+ /**
12281
+ *
12282
+ * @summary Récupère la ville de l\'utilisateur connecté
12283
+ * @param {*} [options] Override http request option.
12284
+ * @throws {RequiredError}
12285
+ */
12286
+ async getUserCity(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserCityResponse>> {
12287
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getUserCity(options);
12288
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12289
+ const localVarOperationServerBasePath = operationServerMap['UserProfileApi.getUserCity']?.[localVarOperationServerIndex]?.url;
12290
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12291
+ },
12292
+ /**
12293
+ *
12294
+ * @summary Récupère la description de l\'utilisateur connecté
12295
+ * @param {*} [options] Override http request option.
12296
+ * @throws {RequiredError}
12297
+ */
12298
+ async getUserDescription(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserDescriptionResponse>> {
12299
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getUserDescription(options);
12300
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12301
+ const localVarOperationServerBasePath = operationServerMap['UserProfileApi.getUserDescription']?.[localVarOperationServerIndex]?.url;
11794
12302
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11795
12303
  },
11796
12304
  /**
@@ -11805,6 +12313,57 @@ export const UserProfileApiFp = function(configuration?: Configuration) {
11805
12313
  const localVarOperationServerBasePath = operationServerMap['UserProfileApi.getUserInfo']?.[localVarOperationServerIndex]?.url;
11806
12314
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11807
12315
  },
12316
+ /**
12317
+ *
12318
+ * @summary Récupère la visibilité du profil de l\'utilisateur connecté
12319
+ * @param {*} [options] Override http request option.
12320
+ * @throws {RequiredError}
12321
+ */
12322
+ async getUserProfileVisibility(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProfileVisibilityResponse>> {
12323
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getUserProfileVisibility(options);
12324
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12325
+ const localVarOperationServerBasePath = operationServerMap['UserProfileApi.getUserProfileVisibility']?.[localVarOperationServerIndex]?.url;
12326
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12327
+ },
12328
+ /**
12329
+ *
12330
+ * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
12331
+ * @param {UpdateLevelBySportsRequestBody} updateLevelBySportsRequestBody
12332
+ * @param {*} [options] Override http request option.
12333
+ * @throws {RequiredError}
12334
+ */
12335
+ async updateLevelBySports(updateLevelBySportsRequestBody: UpdateLevelBySportsRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponse>> {
12336
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateLevelBySports(updateLevelBySportsRequestBody, options);
12337
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12338
+ const localVarOperationServerBasePath = operationServerMap['UserProfileApi.updateLevelBySports']?.[localVarOperationServerIndex]?.url;
12339
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12340
+ },
12341
+ /**
12342
+ *
12343
+ * @summary Met à jour l\'URL de la photo de profil de l\'utilisateur connecté
12344
+ * @param {UpdateProfilePictureRequestBody} updateProfilePictureRequestBody
12345
+ * @param {*} [options] Override http request option.
12346
+ * @throws {RequiredError}
12347
+ */
12348
+ async updateProfilePicture(updateProfilePictureRequestBody: UpdateProfilePictureRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProfilePictureResponse>> {
12349
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateProfilePicture(updateProfilePictureRequestBody, options);
12350
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12351
+ const localVarOperationServerBasePath = operationServerMap['UserProfileApi.updateProfilePicture']?.[localVarOperationServerIndex]?.url;
12352
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12353
+ },
12354
+ /**
12355
+ *
12356
+ * @summary Met à jour la visibilité du profil de l\'utilisateur connecté
12357
+ * @param {UpdateProfileVisibilityRequestBody} updateProfileVisibilityRequestBody
12358
+ * @param {*} [options] Override http request option.
12359
+ * @throws {RequiredError}
12360
+ */
12361
+ async updateProfileVisibility(updateProfileVisibilityRequestBody: UpdateProfileVisibilityRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponse>> {
12362
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateProfileVisibility(updateProfileVisibilityRequestBody, options);
12363
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12364
+ const localVarOperationServerBasePath = operationServerMap['UserProfileApi.updateProfileVisibility']?.[localVarOperationServerIndex]?.url;
12365
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12366
+ },
11808
12367
  /**
11809
12368
  *
11810
12369
  * @summary Met à jour les données de l\'utilisateur connecté
@@ -11818,6 +12377,32 @@ export const UserProfileApiFp = function(configuration?: Configuration) {
11818
12377
  const localVarOperationServerBasePath = operationServerMap['UserProfileApi.updateUser']?.[localVarOperationServerIndex]?.url;
11819
12378
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11820
12379
  },
12380
+ /**
12381
+ *
12382
+ * @summary Met à jour la ville de l\'utilisateur connecté
12383
+ * @param {UpdateUserCityRequestBody} updateUserCityRequestBody
12384
+ * @param {*} [options] Override http request option.
12385
+ * @throws {RequiredError}
12386
+ */
12387
+ async updateUserCity(updateUserCityRequestBody: UpdateUserCityRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponse>> {
12388
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateUserCity(updateUserCityRequestBody, options);
12389
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12390
+ const localVarOperationServerBasePath = operationServerMap['UserProfileApi.updateUserCity']?.[localVarOperationServerIndex]?.url;
12391
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12392
+ },
12393
+ /**
12394
+ *
12395
+ * @summary Met à jour la description de l\'utilisateur connecté
12396
+ * @param {UpdateUserDescriptionRequestBody} updateUserDescriptionRequestBody
12397
+ * @param {*} [options] Override http request option.
12398
+ * @throws {RequiredError}
12399
+ */
12400
+ async updateUserDescription(updateUserDescriptionRequestBody: UpdateUserDescriptionRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponse>> {
12401
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateUserDescription(updateUserDescriptionRequestBody, options);
12402
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12403
+ const localVarOperationServerBasePath = operationServerMap['UserProfileApi.updateUserDescription']?.[localVarOperationServerIndex]?.url;
12404
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12405
+ },
11821
12406
  }
11822
12407
  };
11823
12408
 
@@ -11848,6 +12433,51 @@ export const UserProfileApiFactory = function (configuration?: Configuration, ba
11848
12433
  getAllUsers(requestParameters: UserProfileApiGetAllUsersRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<Array<UserResponse>> {
11849
12434
  return localVarFp.getAllUsers(requestParameters.limit, requestParameters.skip, requestParameters.search, options).then((request) => request(axios, basePath));
11850
12435
  },
12436
+ /**
12437
+ *
12438
+ * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
12439
+ * @param {*} [options] Override http request option.
12440
+ * @throws {RequiredError}
12441
+ */
12442
+ getFrequentlyPlayedWith(options?: RawAxiosRequestConfig): AxiosPromise<Array<FrequentlyPlayedWithItem>> {
12443
+ return localVarFp.getFrequentlyPlayedWith(options).then((request) => request(axios, basePath));
12444
+ },
12445
+ /**
12446
+ *
12447
+ * @summary Clubs les plus fréquemment visités par l\'utilisateur connecté
12448
+ * @param {*} [options] Override http request option.
12449
+ * @throws {RequiredError}
12450
+ */
12451
+ getFrequentlyVisitedClub(options?: RawAxiosRequestConfig): AxiosPromise<Array<FrequentlyVisitedClubItem>> {
12452
+ return localVarFp.getFrequentlyVisitedClub(options).then((request) => request(axios, basePath));
12453
+ },
12454
+ /**
12455
+ *
12456
+ * @summary Récupère l\'URL de la photo de profil de l\'utilisateur connecté
12457
+ * @param {*} [options] Override http request option.
12458
+ * @throws {RequiredError}
12459
+ */
12460
+ getProfilePicture(options?: RawAxiosRequestConfig): AxiosPromise<ProfilePictureResponse> {
12461
+ return localVarFp.getProfilePicture(options).then((request) => request(axios, basePath));
12462
+ },
12463
+ /**
12464
+ *
12465
+ * @summary Récupère la ville de l\'utilisateur connecté
12466
+ * @param {*} [options] Override http request option.
12467
+ * @throws {RequiredError}
12468
+ */
12469
+ getUserCity(options?: RawAxiosRequestConfig): AxiosPromise<UserCityResponse> {
12470
+ return localVarFp.getUserCity(options).then((request) => request(axios, basePath));
12471
+ },
12472
+ /**
12473
+ *
12474
+ * @summary Récupère la description de l\'utilisateur connecté
12475
+ * @param {*} [options] Override http request option.
12476
+ * @throws {RequiredError}
12477
+ */
12478
+ getUserDescription(options?: RawAxiosRequestConfig): AxiosPromise<UserDescriptionResponse> {
12479
+ return localVarFp.getUserDescription(options).then((request) => request(axios, basePath));
12480
+ },
11851
12481
  /**
11852
12482
  *
11853
12483
  * @summary Récupère les informations de l\'utilisateur connecté
@@ -11857,6 +12487,45 @@ export const UserProfileApiFactory = function (configuration?: Configuration, ba
11857
12487
  getUserInfo(options?: RawAxiosRequestConfig): AxiosPromise<UserResponse> {
11858
12488
  return localVarFp.getUserInfo(options).then((request) => request(axios, basePath));
11859
12489
  },
12490
+ /**
12491
+ *
12492
+ * @summary Récupère la visibilité du profil de l\'utilisateur connecté
12493
+ * @param {*} [options] Override http request option.
12494
+ * @throws {RequiredError}
12495
+ */
12496
+ getUserProfileVisibility(options?: RawAxiosRequestConfig): AxiosPromise<ProfileVisibilityResponse> {
12497
+ return localVarFp.getUserProfileVisibility(options).then((request) => request(axios, basePath));
12498
+ },
12499
+ /**
12500
+ *
12501
+ * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
12502
+ * @param {UserProfileApiUpdateLevelBySportsRequest} requestParameters Request parameters.
12503
+ * @param {*} [options] Override http request option.
12504
+ * @throws {RequiredError}
12505
+ */
12506
+ updateLevelBySports(requestParameters: UserProfileApiUpdateLevelBySportsRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserResponse> {
12507
+ return localVarFp.updateLevelBySports(requestParameters.updateLevelBySportsRequestBody, options).then((request) => request(axios, basePath));
12508
+ },
12509
+ /**
12510
+ *
12511
+ * @summary Met à jour l\'URL de la photo de profil de l\'utilisateur connecté
12512
+ * @param {UserProfileApiUpdateProfilePictureRequest} requestParameters Request parameters.
12513
+ * @param {*} [options] Override http request option.
12514
+ * @throws {RequiredError}
12515
+ */
12516
+ updateProfilePicture(requestParameters: UserProfileApiUpdateProfilePictureRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProfilePictureResponse> {
12517
+ return localVarFp.updateProfilePicture(requestParameters.updateProfilePictureRequestBody, options).then((request) => request(axios, basePath));
12518
+ },
12519
+ /**
12520
+ *
12521
+ * @summary Met à jour la visibilité du profil de l\'utilisateur connecté
12522
+ * @param {UserProfileApiUpdateProfileVisibilityRequest} requestParameters Request parameters.
12523
+ * @param {*} [options] Override http request option.
12524
+ * @throws {RequiredError}
12525
+ */
12526
+ updateProfileVisibility(requestParameters: UserProfileApiUpdateProfileVisibilityRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserResponse> {
12527
+ return localVarFp.updateProfileVisibility(requestParameters.updateProfileVisibilityRequestBody, options).then((request) => request(axios, basePath));
12528
+ },
11860
12529
  /**
11861
12530
  *
11862
12531
  * @summary Met à jour les données de l\'utilisateur connecté
@@ -11867,6 +12536,26 @@ export const UserProfileApiFactory = function (configuration?: Configuration, ba
11867
12536
  updateUser(requestParameters: UserProfileApiUpdateUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserResponse> {
11868
12537
  return localVarFp.updateUser(requestParameters.updateUserRequestBody, options).then((request) => request(axios, basePath));
11869
12538
  },
12539
+ /**
12540
+ *
12541
+ * @summary Met à jour la ville de l\'utilisateur connecté
12542
+ * @param {UserProfileApiUpdateUserCityRequest} requestParameters Request parameters.
12543
+ * @param {*} [options] Override http request option.
12544
+ * @throws {RequiredError}
12545
+ */
12546
+ updateUserCity(requestParameters: UserProfileApiUpdateUserCityRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserResponse> {
12547
+ return localVarFp.updateUserCity(requestParameters.updateUserCityRequestBody, options).then((request) => request(axios, basePath));
12548
+ },
12549
+ /**
12550
+ *
12551
+ * @summary Met à jour la description de l\'utilisateur connecté
12552
+ * @param {UserProfileApiUpdateUserDescriptionRequest} requestParameters Request parameters.
12553
+ * @param {*} [options] Override http request option.
12554
+ * @throws {RequiredError}
12555
+ */
12556
+ updateUserDescription(requestParameters: UserProfileApiUpdateUserDescriptionRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserResponse> {
12557
+ return localVarFp.updateUserDescription(requestParameters.updateUserDescriptionRequestBody, options).then((request) => request(axios, basePath));
12558
+ },
11870
12559
  };
11871
12560
  };
11872
12561
 
@@ -11912,6 +12601,48 @@ export interface UserProfileApiGetAllUsersRequest {
11912
12601
  readonly search?: string
11913
12602
  }
11914
12603
 
12604
+ /**
12605
+ * Request parameters for updateLevelBySports operation in UserProfileApi.
12606
+ * @export
12607
+ * @interface UserProfileApiUpdateLevelBySportsRequest
12608
+ */
12609
+ export interface UserProfileApiUpdateLevelBySportsRequest {
12610
+ /**
12611
+ *
12612
+ * @type {UpdateLevelBySportsRequestBody}
12613
+ * @memberof UserProfileApiUpdateLevelBySports
12614
+ */
12615
+ readonly updateLevelBySportsRequestBody: UpdateLevelBySportsRequestBody
12616
+ }
12617
+
12618
+ /**
12619
+ * Request parameters for updateProfilePicture operation in UserProfileApi.
12620
+ * @export
12621
+ * @interface UserProfileApiUpdateProfilePictureRequest
12622
+ */
12623
+ export interface UserProfileApiUpdateProfilePictureRequest {
12624
+ /**
12625
+ *
12626
+ * @type {UpdateProfilePictureRequestBody}
12627
+ * @memberof UserProfileApiUpdateProfilePicture
12628
+ */
12629
+ readonly updateProfilePictureRequestBody: UpdateProfilePictureRequestBody
12630
+ }
12631
+
12632
+ /**
12633
+ * Request parameters for updateProfileVisibility operation in UserProfileApi.
12634
+ * @export
12635
+ * @interface UserProfileApiUpdateProfileVisibilityRequest
12636
+ */
12637
+ export interface UserProfileApiUpdateProfileVisibilityRequest {
12638
+ /**
12639
+ *
12640
+ * @type {UpdateProfileVisibilityRequestBody}
12641
+ * @memberof UserProfileApiUpdateProfileVisibility
12642
+ */
12643
+ readonly updateProfileVisibilityRequestBody: UpdateProfileVisibilityRequestBody
12644
+ }
12645
+
11915
12646
  /**
11916
12647
  * Request parameters for updateUser operation in UserProfileApi.
11917
12648
  * @export
@@ -11926,6 +12657,34 @@ export interface UserProfileApiUpdateUserRequest {
11926
12657
  readonly updateUserRequestBody: UpdateUserRequestBody
11927
12658
  }
11928
12659
 
12660
+ /**
12661
+ * Request parameters for updateUserCity operation in UserProfileApi.
12662
+ * @export
12663
+ * @interface UserProfileApiUpdateUserCityRequest
12664
+ */
12665
+ export interface UserProfileApiUpdateUserCityRequest {
12666
+ /**
12667
+ *
12668
+ * @type {UpdateUserCityRequestBody}
12669
+ * @memberof UserProfileApiUpdateUserCity
12670
+ */
12671
+ readonly updateUserCityRequestBody: UpdateUserCityRequestBody
12672
+ }
12673
+
12674
+ /**
12675
+ * Request parameters for updateUserDescription operation in UserProfileApi.
12676
+ * @export
12677
+ * @interface UserProfileApiUpdateUserDescriptionRequest
12678
+ */
12679
+ export interface UserProfileApiUpdateUserDescriptionRequest {
12680
+ /**
12681
+ *
12682
+ * @type {UpdateUserDescriptionRequestBody}
12683
+ * @memberof UserProfileApiUpdateUserDescription
12684
+ */
12685
+ readonly updateUserDescriptionRequestBody: UpdateUserDescriptionRequestBody
12686
+ }
12687
+
11929
12688
  /**
11930
12689
  * UserProfileApi - object-oriented interface
11931
12690
  * @export
@@ -11957,6 +12716,61 @@ export class UserProfileApi extends BaseAPI {
11957
12716
  return UserProfileApiFp(this.configuration).getAllUsers(requestParameters.limit, requestParameters.skip, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
11958
12717
  }
11959
12718
 
12719
+ /**
12720
+ *
12721
+ * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
12722
+ * @param {*} [options] Override http request option.
12723
+ * @throws {RequiredError}
12724
+ * @memberof UserProfileApi
12725
+ */
12726
+ public getFrequentlyPlayedWith(options?: RawAxiosRequestConfig) {
12727
+ return UserProfileApiFp(this.configuration).getFrequentlyPlayedWith(options).then((request) => request(this.axios, this.basePath));
12728
+ }
12729
+
12730
+ /**
12731
+ *
12732
+ * @summary Clubs les plus fréquemment visités par l\'utilisateur connecté
12733
+ * @param {*} [options] Override http request option.
12734
+ * @throws {RequiredError}
12735
+ * @memberof UserProfileApi
12736
+ */
12737
+ public getFrequentlyVisitedClub(options?: RawAxiosRequestConfig) {
12738
+ return UserProfileApiFp(this.configuration).getFrequentlyVisitedClub(options).then((request) => request(this.axios, this.basePath));
12739
+ }
12740
+
12741
+ /**
12742
+ *
12743
+ * @summary Récupère l\'URL de la photo de profil de l\'utilisateur connecté
12744
+ * @param {*} [options] Override http request option.
12745
+ * @throws {RequiredError}
12746
+ * @memberof UserProfileApi
12747
+ */
12748
+ public getProfilePicture(options?: RawAxiosRequestConfig) {
12749
+ return UserProfileApiFp(this.configuration).getProfilePicture(options).then((request) => request(this.axios, this.basePath));
12750
+ }
12751
+
12752
+ /**
12753
+ *
12754
+ * @summary Récupère la ville de l\'utilisateur connecté
12755
+ * @param {*} [options] Override http request option.
12756
+ * @throws {RequiredError}
12757
+ * @memberof UserProfileApi
12758
+ */
12759
+ public getUserCity(options?: RawAxiosRequestConfig) {
12760
+ return UserProfileApiFp(this.configuration).getUserCity(options).then((request) => request(this.axios, this.basePath));
12761
+ }
12762
+
12763
+ /**
12764
+ *
12765
+ * @summary Récupère la description de l\'utilisateur connecté
12766
+ * @param {*} [options] Override http request option.
12767
+ * @throws {RequiredError}
12768
+ * @memberof UserProfileApi
12769
+ */
12770
+ public getUserDescription(options?: RawAxiosRequestConfig) {
12771
+ return UserProfileApiFp(this.configuration).getUserDescription(options).then((request) => request(this.axios, this.basePath));
12772
+ }
12773
+
11960
12774
  /**
11961
12775
  *
11962
12776
  * @summary Récupère les informations de l\'utilisateur connecté
@@ -11968,6 +12782,53 @@ export class UserProfileApi extends BaseAPI {
11968
12782
  return UserProfileApiFp(this.configuration).getUserInfo(options).then((request) => request(this.axios, this.basePath));
11969
12783
  }
11970
12784
 
12785
+ /**
12786
+ *
12787
+ * @summary Récupère la visibilité du profil de l\'utilisateur connecté
12788
+ * @param {*} [options] Override http request option.
12789
+ * @throws {RequiredError}
12790
+ * @memberof UserProfileApi
12791
+ */
12792
+ public getUserProfileVisibility(options?: RawAxiosRequestConfig) {
12793
+ return UserProfileApiFp(this.configuration).getUserProfileVisibility(options).then((request) => request(this.axios, this.basePath));
12794
+ }
12795
+
12796
+ /**
12797
+ *
12798
+ * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
12799
+ * @param {UserProfileApiUpdateLevelBySportsRequest} requestParameters Request parameters.
12800
+ * @param {*} [options] Override http request option.
12801
+ * @throws {RequiredError}
12802
+ * @memberof UserProfileApi
12803
+ */
12804
+ public updateLevelBySports(requestParameters: UserProfileApiUpdateLevelBySportsRequest, options?: RawAxiosRequestConfig) {
12805
+ return UserProfileApiFp(this.configuration).updateLevelBySports(requestParameters.updateLevelBySportsRequestBody, options).then((request) => request(this.axios, this.basePath));
12806
+ }
12807
+
12808
+ /**
12809
+ *
12810
+ * @summary Met à jour l\'URL de la photo de profil de l\'utilisateur connecté
12811
+ * @param {UserProfileApiUpdateProfilePictureRequest} requestParameters Request parameters.
12812
+ * @param {*} [options] Override http request option.
12813
+ * @throws {RequiredError}
12814
+ * @memberof UserProfileApi
12815
+ */
12816
+ public updateProfilePicture(requestParameters: UserProfileApiUpdateProfilePictureRequest, options?: RawAxiosRequestConfig) {
12817
+ return UserProfileApiFp(this.configuration).updateProfilePicture(requestParameters.updateProfilePictureRequestBody, options).then((request) => request(this.axios, this.basePath));
12818
+ }
12819
+
12820
+ /**
12821
+ *
12822
+ * @summary Met à jour la visibilité du profil de l\'utilisateur connecté
12823
+ * @param {UserProfileApiUpdateProfileVisibilityRequest} requestParameters Request parameters.
12824
+ * @param {*} [options] Override http request option.
12825
+ * @throws {RequiredError}
12826
+ * @memberof UserProfileApi
12827
+ */
12828
+ public updateProfileVisibility(requestParameters: UserProfileApiUpdateProfileVisibilityRequest, options?: RawAxiosRequestConfig) {
12829
+ return UserProfileApiFp(this.configuration).updateProfileVisibility(requestParameters.updateProfileVisibilityRequestBody, options).then((request) => request(this.axios, this.basePath));
12830
+ }
12831
+
11971
12832
  /**
11972
12833
  *
11973
12834
  * @summary Met à jour les données de l\'utilisateur connecté
@@ -11979,6 +12840,30 @@ export class UserProfileApi extends BaseAPI {
11979
12840
  public updateUser(requestParameters: UserProfileApiUpdateUserRequest, options?: RawAxiosRequestConfig) {
11980
12841
  return UserProfileApiFp(this.configuration).updateUser(requestParameters.updateUserRequestBody, options).then((request) => request(this.axios, this.basePath));
11981
12842
  }
12843
+
12844
+ /**
12845
+ *
12846
+ * @summary Met à jour la ville de l\'utilisateur connecté
12847
+ * @param {UserProfileApiUpdateUserCityRequest} requestParameters Request parameters.
12848
+ * @param {*} [options] Override http request option.
12849
+ * @throws {RequiredError}
12850
+ * @memberof UserProfileApi
12851
+ */
12852
+ public updateUserCity(requestParameters: UserProfileApiUpdateUserCityRequest, options?: RawAxiosRequestConfig) {
12853
+ return UserProfileApiFp(this.configuration).updateUserCity(requestParameters.updateUserCityRequestBody, options).then((request) => request(this.axios, this.basePath));
12854
+ }
12855
+
12856
+ /**
12857
+ *
12858
+ * @summary Met à jour la description de l\'utilisateur connecté
12859
+ * @param {UserProfileApiUpdateUserDescriptionRequest} requestParameters Request parameters.
12860
+ * @param {*} [options] Override http request option.
12861
+ * @throws {RequiredError}
12862
+ * @memberof UserProfileApi
12863
+ */
12864
+ public updateUserDescription(requestParameters: UserProfileApiUpdateUserDescriptionRequest, options?: RawAxiosRequestConfig) {
12865
+ return UserProfileApiFp(this.configuration).updateUserDescription(requestParameters.updateUserDescriptionRequestBody, options).then((request) => request(this.axios, this.basePath));
12866
+ }
11982
12867
  }
11983
12868
 
11984
12869