@tennac-booking/sdk 1.0.33 → 1.0.35

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 (54) hide show
  1. package/.openapi-generator/FILES +12 -2
  2. package/README.md +21 -4
  3. package/api.ts +1575 -146
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +1054 -77
  8. package/dist/api.js +759 -4
  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 +1054 -77
  16. package/dist/esm/api.js +748 -1
  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/ActiveClub.md +4 -0
  28. package/docs/BookingHistoryResponse.md +22 -0
  29. package/docs/BookingHistoryResponseHistoryInner.md +32 -0
  30. package/docs/BookingPopulated.md +2 -0
  31. package/docs/BookingsApi.md +113 -0
  32. package/docs/BookingsStaffWeeklyWeekIdGet200Response.md +20 -0
  33. package/docs/Club.md +2 -2
  34. package/docs/CourtWithNameResponse.md +48 -0
  35. package/docs/{SportsResponse.md → CourtsWithNameResponse.md} +5 -5
  36. package/docs/GenderPercentage.md +26 -0
  37. package/docs/Location.md +32 -0
  38. package/docs/ManagerClubCourtsApi.md +2 -2
  39. package/docs/PaymentStatus.md +30 -0
  40. package/docs/Sport.md +0 -2
  41. package/docs/SportResponse.md +4 -0
  42. package/docs/StaffClubAnalyticsApi.md +49 -2
  43. package/docs/StaffClubsApi.md +2 -2
  44. package/docs/UpdateUserRequestBody.md +8 -2
  45. package/docs/UpdateUserRequestBodyLevelBySportsInner.md +22 -0
  46. package/docs/UserBookingItem.md +46 -0
  47. package/docs/UserBookingsApi.md +46 -0
  48. package/docs/UserClubSportsApi.md +2 -2
  49. package/docs/UserProfileApi.md +53 -0
  50. package/docs/UserStaffResponse.md +6 -0
  51. package/docs/UsersApi.md +243 -0
  52. package/index.ts +1 -1
  53. package/package.json +1 -1
  54. package/docs/GetClubPlayers200Response.md +0 -22
package/dist/esm/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Pandook API
5
5
  * API for managing pickle ball games and players
6
6
  *
7
- * The version of the OpenAPI document: 1.0.33
7
+ * The version of the OpenAPI document: 1.0.35
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -75,6 +75,11 @@ export const CourtStatus = {
75
75
  Maintenance: 'maintenance',
76
76
  Inactive: 'inactive'
77
77
  };
78
+ export const CourtWithNameResponseSurfaceEnum = {
79
+ Clay: 'clay',
80
+ Grass: 'grass',
81
+ Hard: 'hard'
82
+ };
78
83
  export const CreatePriceRequestIntervalEnum = {
79
84
  Day: 'day',
80
85
  Week: 'week',
@@ -94,6 +99,9 @@ export const InvoicesResponseInvoicesInnerStatusEnum = {
94
99
  Canceled: 'canceled',
95
100
  Expired: 'expired'
96
101
  };
102
+ export const LocationTypeEnum = {
103
+ Point: 'Point'
104
+ };
97
105
  export const ManagerCancelBookingResponseBookingStatusEnum = {
98
106
  Cancelled: 'cancelled'
99
107
  };
@@ -114,6 +122,12 @@ export const PaymentMethod = {
114
122
  Online: 'online',
115
123
  Onsite: 'onsite'
116
124
  };
125
+ export const PaymentStatusInvoiceStatusEnum = {
126
+ Paid: 'paid',
127
+ Pending: 'pending',
128
+ Failed: 'failed',
129
+ Canceled: 'canceled'
130
+ };
117
131
  /**
118
132
  *
119
133
  * @export
@@ -144,6 +158,188 @@ export const UpdateCourtRequestSurfaceEnum = {
144
158
  Grass: 'grass',
145
159
  Hard: 'hard'
146
160
  };
161
+ export const UserBookingItemMyPaymentStatusEnum = {
162
+ Paid: 'paid',
163
+ Pending: 'pending',
164
+ Failed: 'failed'
165
+ };
166
+ export const UserBookingItemBookingStatusEnum = {
167
+ Confirmed: 'confirmed',
168
+ Cancelled: 'cancelled',
169
+ Pending: 'pending'
170
+ };
171
+ /**
172
+ * BookingsApi - axios parameter creator
173
+ * @export
174
+ */
175
+ export const BookingsApiAxiosParamCreator = function (configuration) {
176
+ return {
177
+ /**
178
+ * Retourne une liste de réservations pour une date donnée, avec les joueurs et terrains (incluant le sport) peuplés.
179
+ * @summary Récupérer les réservations journalières
180
+ * @param {string} date Date au format YYYY-MM-DD
181
+ * @param {*} [options] Override http request option.
182
+ * @throws {RequiredError}
183
+ */
184
+ bookingsStaffDailyDateGet: (date_1, ...args_1) => __awaiter(this, [date_1, ...args_1], void 0, function* (date, options = {}) {
185
+ // verify required parameter 'date' is not null or undefined
186
+ assertParamExists('bookingsStaffDailyDateGet', 'date', date);
187
+ const localVarPath = `/bookings/staff/daily/{date}`
188
+ .replace(`{${"date"}}`, encodeURIComponent(String(date)));
189
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
190
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
191
+ let baseOptions;
192
+ if (configuration) {
193
+ baseOptions = configuration.baseOptions;
194
+ }
195
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
196
+ const localVarHeaderParameter = {};
197
+ const localVarQueryParameter = {};
198
+ // authentication bearerAuth required
199
+ // http bearer authentication required
200
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
201
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
202
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
203
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
204
+ return {
205
+ url: toPathString(localVarUrlObj),
206
+ options: localVarRequestOptions,
207
+ };
208
+ }),
209
+ /**
210
+ * Retourne une liste de réservations pour une semaine donnée, avec les joueurs et terrains (incluant le sport) peuplés.
211
+ * @summary Récupérer les réservations hebdomadaires
212
+ * @param {string} weekId ID de la semaine
213
+ * @param {*} [options] Override http request option.
214
+ * @throws {RequiredError}
215
+ */
216
+ bookingsStaffWeeklyWeekIdGet: (weekId_1, ...args_1) => __awaiter(this, [weekId_1, ...args_1], void 0, function* (weekId, options = {}) {
217
+ // verify required parameter 'weekId' is not null or undefined
218
+ assertParamExists('bookingsStaffWeeklyWeekIdGet', 'weekId', weekId);
219
+ const localVarPath = `/bookings/staff/weekly/{weekId}`
220
+ .replace(`{${"weekId"}}`, encodeURIComponent(String(weekId)));
221
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
222
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
223
+ let baseOptions;
224
+ if (configuration) {
225
+ baseOptions = configuration.baseOptions;
226
+ }
227
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
228
+ const localVarHeaderParameter = {};
229
+ const localVarQueryParameter = {};
230
+ // authentication bearerAuth required
231
+ // http bearer authentication required
232
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
233
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
234
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
235
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
236
+ return {
237
+ url: toPathString(localVarUrlObj),
238
+ options: localVarRequestOptions,
239
+ };
240
+ }),
241
+ };
242
+ };
243
+ /**
244
+ * BookingsApi - functional programming interface
245
+ * @export
246
+ */
247
+ export const BookingsApiFp = function (configuration) {
248
+ const localVarAxiosParamCreator = BookingsApiAxiosParamCreator(configuration);
249
+ return {
250
+ /**
251
+ * Retourne une liste de réservations pour une date donnée, avec les joueurs et terrains (incluant le sport) peuplés.
252
+ * @summary Récupérer les réservations journalières
253
+ * @param {string} date Date au format YYYY-MM-DD
254
+ * @param {*} [options] Override http request option.
255
+ * @throws {RequiredError}
256
+ */
257
+ bookingsStaffDailyDateGet(date, options) {
258
+ return __awaiter(this, void 0, void 0, function* () {
259
+ var _a, _b, _c;
260
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.bookingsStaffDailyDateGet(date, options);
261
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
262
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.bookingsStaffDailyDateGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
263
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
264
+ });
265
+ },
266
+ /**
267
+ * Retourne une liste de réservations pour une semaine donnée, avec les joueurs et terrains (incluant le sport) peuplés.
268
+ * @summary Récupérer les réservations hebdomadaires
269
+ * @param {string} weekId ID de la semaine
270
+ * @param {*} [options] Override http request option.
271
+ * @throws {RequiredError}
272
+ */
273
+ bookingsStaffWeeklyWeekIdGet(weekId, options) {
274
+ return __awaiter(this, void 0, void 0, function* () {
275
+ var _a, _b, _c;
276
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.bookingsStaffWeeklyWeekIdGet(weekId, options);
277
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
278
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.bookingsStaffWeeklyWeekIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
279
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
280
+ });
281
+ },
282
+ };
283
+ };
284
+ /**
285
+ * BookingsApi - factory interface
286
+ * @export
287
+ */
288
+ export const BookingsApiFactory = function (configuration, basePath, axios) {
289
+ const localVarFp = BookingsApiFp(configuration);
290
+ return {
291
+ /**
292
+ * Retourne une liste de réservations pour une date donnée, avec les joueurs et terrains (incluant le sport) peuplés.
293
+ * @summary Récupérer les réservations journalières
294
+ * @param {BookingsApiBookingsStaffDailyDateGetRequest} requestParameters Request parameters.
295
+ * @param {*} [options] Override http request option.
296
+ * @throws {RequiredError}
297
+ */
298
+ bookingsStaffDailyDateGet(requestParameters, options) {
299
+ return localVarFp.bookingsStaffDailyDateGet(requestParameters.date, options).then((request) => request(axios, basePath));
300
+ },
301
+ /**
302
+ * Retourne une liste de réservations pour une semaine donnée, avec les joueurs et terrains (incluant le sport) peuplés.
303
+ * @summary Récupérer les réservations hebdomadaires
304
+ * @param {BookingsApiBookingsStaffWeeklyWeekIdGetRequest} requestParameters Request parameters.
305
+ * @param {*} [options] Override http request option.
306
+ * @throws {RequiredError}
307
+ */
308
+ bookingsStaffWeeklyWeekIdGet(requestParameters, options) {
309
+ return localVarFp.bookingsStaffWeeklyWeekIdGet(requestParameters.weekId, options).then((request) => request(axios, basePath));
310
+ },
311
+ };
312
+ };
313
+ /**
314
+ * BookingsApi - object-oriented interface
315
+ * @export
316
+ * @class BookingsApi
317
+ * @extends {BaseAPI}
318
+ */
319
+ export class BookingsApi extends BaseAPI {
320
+ /**
321
+ * Retourne une liste de réservations pour une date donnée, avec les joueurs et terrains (incluant le sport) peuplés.
322
+ * @summary Récupérer les réservations journalières
323
+ * @param {BookingsApiBookingsStaffDailyDateGetRequest} requestParameters Request parameters.
324
+ * @param {*} [options] Override http request option.
325
+ * @throws {RequiredError}
326
+ * @memberof BookingsApi
327
+ */
328
+ bookingsStaffDailyDateGet(requestParameters, options) {
329
+ return BookingsApiFp(this.configuration).bookingsStaffDailyDateGet(requestParameters.date, options).then((request) => request(this.axios, this.basePath));
330
+ }
331
+ /**
332
+ * Retourne une liste de réservations pour une semaine donnée, avec les joueurs et terrains (incluant le sport) peuplés.
333
+ * @summary Récupérer les réservations hebdomadaires
334
+ * @param {BookingsApiBookingsStaffWeeklyWeekIdGetRequest} requestParameters Request parameters.
335
+ * @param {*} [options] Override http request option.
336
+ * @throws {RequiredError}
337
+ * @memberof BookingsApi
338
+ */
339
+ bookingsStaffWeeklyWeekIdGet(requestParameters, options) {
340
+ return BookingsApiFp(this.configuration).bookingsStaffWeeklyWeekIdGet(requestParameters.weekId, options).then((request) => request(this.axios, this.basePath));
341
+ }
342
+ }
147
343
  /**
148
344
  * ClubAnalyticsApi - axios parameter creator
149
345
  * @export
@@ -3261,6 +3457,34 @@ export const StaffClubAnalyticsApiAxiosParamCreator = function (configuration) {
3261
3457
  options: localVarRequestOptions,
3262
3458
  };
3263
3459
  }),
3460
+ /**
3461
+ *
3462
+ * @summary Récupère le pourcentage de joueurs par genre pour le club courant
3463
+ * @param {*} [options] Override http request option.
3464
+ * @throws {RequiredError}
3465
+ */
3466
+ getGenderPercentage: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3467
+ const localVarPath = `/api/analytics/gender`;
3468
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3469
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3470
+ let baseOptions;
3471
+ if (configuration) {
3472
+ baseOptions = configuration.baseOptions;
3473
+ }
3474
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3475
+ const localVarHeaderParameter = {};
3476
+ const localVarQueryParameter = {};
3477
+ // authentication bearerAuth required
3478
+ // http bearer authentication required
3479
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3480
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3481
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3482
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3483
+ return {
3484
+ url: toPathString(localVarUrlObj),
3485
+ options: localVarRequestOptions,
3486
+ };
3487
+ }),
3264
3488
  /**
3265
3489
  *
3266
3490
  * @summary Get monthly turnover for the last six months (club courant)
@@ -3343,6 +3567,21 @@ export const StaffClubAnalyticsApiFp = function (configuration) {
3343
3567
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3344
3568
  });
3345
3569
  },
3570
+ /**
3571
+ *
3572
+ * @summary Récupère le pourcentage de joueurs par genre pour le club courant
3573
+ * @param {*} [options] Override http request option.
3574
+ * @throws {RequiredError}
3575
+ */
3576
+ getGenderPercentage(options) {
3577
+ return __awaiter(this, void 0, void 0, function* () {
3578
+ var _a, _b, _c;
3579
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getGenderPercentage(options);
3580
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3581
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StaffClubAnalyticsApi.getGenderPercentage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3582
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3583
+ });
3584
+ },
3346
3585
  /**
3347
3586
  *
3348
3587
  * @summary Get monthly turnover for the last six months (club courant)
@@ -3392,6 +3631,15 @@ export const StaffClubAnalyticsApiFactory = function (configuration, basePath, a
3392
3631
  getClubPlayers(options) {
3393
3632
  return localVarFp.getClubPlayers(options).then((request) => request(axios, basePath));
3394
3633
  },
3634
+ /**
3635
+ *
3636
+ * @summary Récupère le pourcentage de joueurs par genre pour le club courant
3637
+ * @param {*} [options] Override http request option.
3638
+ * @throws {RequiredError}
3639
+ */
3640
+ getGenderPercentage(options) {
3641
+ return localVarFp.getGenderPercentage(options).then((request) => request(axios, basePath));
3642
+ },
3395
3643
  /**
3396
3644
  *
3397
3645
  * @summary Get monthly turnover for the last six months (club courant)
@@ -3430,6 +3678,16 @@ export class StaffClubAnalyticsApi extends BaseAPI {
3430
3678
  getClubPlayers(options) {
3431
3679
  return StaffClubAnalyticsApiFp(this.configuration).getClubPlayers(options).then((request) => request(this.axios, this.basePath));
3432
3680
  }
3681
+ /**
3682
+ *
3683
+ * @summary Récupère le pourcentage de joueurs par genre pour le club courant
3684
+ * @param {*} [options] Override http request option.
3685
+ * @throws {RequiredError}
3686
+ * @memberof StaffClubAnalyticsApi
3687
+ */
3688
+ getGenderPercentage(options) {
3689
+ return StaffClubAnalyticsApiFp(this.configuration).getGenderPercentage(options).then((request) => request(this.axios, this.basePath));
3690
+ }
3433
3691
  /**
3434
3692
  *
3435
3693
  * @summary Get monthly turnover for the last six months (club courant)
@@ -4449,6 +4707,34 @@ export const UserBookingsApiAxiosParamCreator = function (configuration) {
4449
4707
  options: localVarRequestOptions,
4450
4708
  };
4451
4709
  }),
4710
+ /**
4711
+ *
4712
+ * @summary Récupère l\'historique des réservations de l\'utilisateur connecté
4713
+ * @param {*} [options] Override http request option.
4714
+ * @throws {RequiredError}
4715
+ */
4716
+ getBookingHistory: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
4717
+ const localVarPath = `/api/users/me/booking-history`;
4718
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4719
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4720
+ let baseOptions;
4721
+ if (configuration) {
4722
+ baseOptions = configuration.baseOptions;
4723
+ }
4724
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4725
+ const localVarHeaderParameter = {};
4726
+ const localVarQueryParameter = {};
4727
+ // authentication bearerAuth required
4728
+ // http bearer authentication required
4729
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4730
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4731
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4732
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4733
+ return {
4734
+ url: toPathString(localVarUrlObj),
4735
+ options: localVarRequestOptions,
4736
+ };
4737
+ }),
4452
4738
  };
4453
4739
  };
4454
4740
  /**
@@ -4490,6 +4776,21 @@ export const UserBookingsApiFp = function (configuration) {
4490
4776
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4491
4777
  });
4492
4778
  },
4779
+ /**
4780
+ *
4781
+ * @summary Récupère l\'historique des réservations de l\'utilisateur connecté
4782
+ * @param {*} [options] Override http request option.
4783
+ * @throws {RequiredError}
4784
+ */
4785
+ getBookingHistory(options) {
4786
+ return __awaiter(this, void 0, void 0, function* () {
4787
+ var _a, _b, _c;
4788
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingHistory(options);
4789
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4790
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserBookingsApi.getBookingHistory']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4791
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4792
+ });
4793
+ },
4493
4794
  };
4494
4795
  };
4495
4796
  /**
@@ -4519,6 +4820,15 @@ export const UserBookingsApiFactory = function (configuration, basePath, axios)
4519
4820
  createBooking(requestParameters, options) {
4520
4821
  return localVarFp.createBooking(requestParameters.createBookingRequest, options).then((request) => request(axios, basePath));
4521
4822
  },
4823
+ /**
4824
+ *
4825
+ * @summary Récupère l\'historique des réservations de l\'utilisateur connecté
4826
+ * @param {*} [options] Override http request option.
4827
+ * @throws {RequiredError}
4828
+ */
4829
+ getBookingHistory(options) {
4830
+ return localVarFp.getBookingHistory(options).then((request) => request(axios, basePath));
4831
+ },
4522
4832
  };
4523
4833
  };
4524
4834
  /**
@@ -4550,6 +4860,16 @@ export class UserBookingsApi extends BaseAPI {
4550
4860
  createBooking(requestParameters, options) {
4551
4861
  return UserBookingsApiFp(this.configuration).createBooking(requestParameters.createBookingRequest, options).then((request) => request(this.axios, this.basePath));
4552
4862
  }
4863
+ /**
4864
+ *
4865
+ * @summary Récupère l\'historique des réservations de l\'utilisateur connecté
4866
+ * @param {*} [options] Override http request option.
4867
+ * @throws {RequiredError}
4868
+ * @memberof UserBookingsApi
4869
+ */
4870
+ getBookingHistory(options) {
4871
+ return UserBookingsApiFp(this.configuration).getBookingHistory(options).then((request) => request(this.axios, this.basePath));
4872
+ }
4553
4873
  }
4554
4874
  /**
4555
4875
  * UserClubCourtsApi - axios parameter creator
@@ -5689,6 +6009,38 @@ export const UserProfileApiAxiosParamCreator = function (configuration) {
5689
6009
  options: localVarRequestOptions,
5690
6010
  };
5691
6011
  }),
6012
+ /**
6013
+ *
6014
+ * @summary Récupère le detéail d\'une réservation
6015
+ * @param {string} bookingId ID de la réservation
6016
+ * @param {*} [options] Override http request option.
6017
+ * @throws {RequiredError}
6018
+ */
6019
+ getUserBookingDetail: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
6020
+ // verify required parameter 'bookingId' is not null or undefined
6021
+ assertParamExists('getUserBookingDetail', 'bookingId', bookingId);
6022
+ const localVarPath = `/api/users/me/booking-detail/{bookingId}`
6023
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
6024
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6025
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6026
+ let baseOptions;
6027
+ if (configuration) {
6028
+ baseOptions = configuration.baseOptions;
6029
+ }
6030
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6031
+ const localVarHeaderParameter = {};
6032
+ const localVarQueryParameter = {};
6033
+ // authentication bearerAuth required
6034
+ // http bearer authentication required
6035
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6036
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6037
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6038
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6039
+ return {
6040
+ url: toPathString(localVarUrlObj),
6041
+ options: localVarRequestOptions,
6042
+ };
6043
+ }),
5692
6044
  /**
5693
6045
  *
5694
6046
  * @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
@@ -6265,6 +6617,22 @@ export const UserProfileApiFp = function (configuration) {
6265
6617
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6266
6618
  });
6267
6619
  },
6620
+ /**
6621
+ *
6622
+ * @summary Récupère le detéail d\'une réservation
6623
+ * @param {string} bookingId ID de la réservation
6624
+ * @param {*} [options] Override http request option.
6625
+ * @throws {RequiredError}
6626
+ */
6627
+ getUserBookingDetail(bookingId, options) {
6628
+ return __awaiter(this, void 0, void 0, function* () {
6629
+ var _a, _b, _c;
6630
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserBookingDetail(bookingId, options);
6631
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6632
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.getUserBookingDetail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6633
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6634
+ });
6635
+ },
6268
6636
  /**
6269
6637
  *
6270
6638
  * @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
@@ -6574,6 +6942,16 @@ export const UserProfileApiFactory = function (configuration, basePath, axios) {
6574
6942
  getPublicUserProfile(requestParameters, options) {
6575
6943
  return localVarFp.getPublicUserProfile(requestParameters.id, options).then((request) => request(axios, basePath));
6576
6944
  },
6945
+ /**
6946
+ *
6947
+ * @summary Récupère le detéail d\'une réservation
6948
+ * @param {UserProfileApiGetUserBookingDetailRequest} requestParameters Request parameters.
6949
+ * @param {*} [options] Override http request option.
6950
+ * @throws {RequiredError}
6951
+ */
6952
+ getUserBookingDetail(requestParameters, options) {
6953
+ return localVarFp.getUserBookingDetail(requestParameters.bookingId, options).then((request) => request(axios, basePath));
6954
+ },
6577
6955
  /**
6578
6956
  *
6579
6957
  * @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
@@ -6814,6 +7192,17 @@ export class UserProfileApi extends BaseAPI {
6814
7192
  getPublicUserProfile(requestParameters, options) {
6815
7193
  return UserProfileApiFp(this.configuration).getPublicUserProfile(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
6816
7194
  }
7195
+ /**
7196
+ *
7197
+ * @summary Récupère le detéail d\'une réservation
7198
+ * @param {UserProfileApiGetUserBookingDetailRequest} requestParameters Request parameters.
7199
+ * @param {*} [options] Override http request option.
7200
+ * @throws {RequiredError}
7201
+ * @memberof UserProfileApi
7202
+ */
7203
+ getUserBookingDetail(requestParameters, options) {
7204
+ return UserProfileApiFp(this.configuration).getUserBookingDetail(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
7205
+ }
6817
7206
  /**
6818
7207
  *
6819
7208
  * @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
@@ -7268,3 +7657,361 @@ export class UserSubscriptionsApi extends BaseAPI {
7268
7657
  return UserSubscriptionsApiFp(this.configuration).resumeSubscription(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
7269
7658
  }
7270
7659
  }
7660
+ /**
7661
+ * UsersApi - axios parameter creator
7662
+ * @export
7663
+ */
7664
+ export const UsersApiAxiosParamCreator = function (configuration) {
7665
+ return {
7666
+ /**
7667
+ *
7668
+ * @summary Récupère les clubs proches de l’utilisateur connecté
7669
+ * @param {number} [radiusInKm] Rayon de recherche en kilomètres
7670
+ * @param {number} [limit] Nombre maximum de résultats
7671
+ * @param {*} [options] Override http request option.
7672
+ * @throws {RequiredError}
7673
+ */
7674
+ apiUsersMeNearestClubsGet: (radiusInKm_1, limit_1, ...args_1) => __awaiter(this, [radiusInKm_1, limit_1, ...args_1], void 0, function* (radiusInKm, limit, options = {}) {
7675
+ const localVarPath = `/api/users/me/nearest-clubs/`;
7676
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7677
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7678
+ let baseOptions;
7679
+ if (configuration) {
7680
+ baseOptions = configuration.baseOptions;
7681
+ }
7682
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7683
+ const localVarHeaderParameter = {};
7684
+ const localVarQueryParameter = {};
7685
+ // authentication bearerAuth required
7686
+ // http bearer authentication required
7687
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
7688
+ if (radiusInKm !== undefined) {
7689
+ localVarQueryParameter['radiusInKm'] = radiusInKm;
7690
+ }
7691
+ if (limit !== undefined) {
7692
+ localVarQueryParameter['limit'] = limit;
7693
+ }
7694
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7695
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7696
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7697
+ return {
7698
+ url: toPathString(localVarUrlObj),
7699
+ options: localVarRequestOptions,
7700
+ };
7701
+ }),
7702
+ /**
7703
+ *
7704
+ * @summary Récupère les utilisateurs proches de l’utilisateur connecté
7705
+ * @param {number} [radiusInKm] Rayon de recherche en kilomètres
7706
+ * @param {number} [limit] Nombre maximum de résultats
7707
+ * @param {*} [options] Override http request option.
7708
+ * @throws {RequiredError}
7709
+ */
7710
+ apiUsersMeNearestPlayersGet: (radiusInKm_1, limit_1, ...args_1) => __awaiter(this, [radiusInKm_1, limit_1, ...args_1], void 0, function* (radiusInKm, limit, options = {}) {
7711
+ const localVarPath = `/api/users/me/nearest-players/`;
7712
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7713
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7714
+ let baseOptions;
7715
+ if (configuration) {
7716
+ baseOptions = configuration.baseOptions;
7717
+ }
7718
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7719
+ const localVarHeaderParameter = {};
7720
+ const localVarQueryParameter = {};
7721
+ // authentication bearerAuth required
7722
+ // http bearer authentication required
7723
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
7724
+ if (radiusInKm !== undefined) {
7725
+ localVarQueryParameter['radiusInKm'] = radiusInKm;
7726
+ }
7727
+ if (limit !== undefined) {
7728
+ localVarQueryParameter['limit'] = limit;
7729
+ }
7730
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7731
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7732
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7733
+ return {
7734
+ url: toPathString(localVarUrlObj),
7735
+ options: localVarRequestOptions,
7736
+ };
7737
+ }),
7738
+ /**
7739
+ *
7740
+ * @summary Récupère les clubs proches d’une position donnée
7741
+ * @param {number} latitude Latitude de la position
7742
+ * @param {number} longitude Longitude de la position
7743
+ * @param {number} [radiusInKm] Rayon de recherche en kilomètres
7744
+ * @param {number} [limit] Nombre maximum de résultats
7745
+ * @param {*} [options] Override http request option.
7746
+ * @throws {RequiredError}
7747
+ */
7748
+ apiUsersNearestClubsCoordinatesGet: (latitude_1, longitude_1, radiusInKm_1, limit_1, ...args_1) => __awaiter(this, [latitude_1, longitude_1, radiusInKm_1, limit_1, ...args_1], void 0, function* (latitude, longitude, radiusInKm, limit, options = {}) {
7749
+ // verify required parameter 'latitude' is not null or undefined
7750
+ assertParamExists('apiUsersNearestClubsCoordinatesGet', 'latitude', latitude);
7751
+ // verify required parameter 'longitude' is not null or undefined
7752
+ assertParamExists('apiUsersNearestClubsCoordinatesGet', 'longitude', longitude);
7753
+ const localVarPath = `/api/users/nearest-clubs/coordinates`;
7754
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7755
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7756
+ let baseOptions;
7757
+ if (configuration) {
7758
+ baseOptions = configuration.baseOptions;
7759
+ }
7760
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7761
+ const localVarHeaderParameter = {};
7762
+ const localVarQueryParameter = {};
7763
+ // authentication bearerAuth required
7764
+ // http bearer authentication required
7765
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
7766
+ if (latitude !== undefined) {
7767
+ localVarQueryParameter['latitude'] = latitude;
7768
+ }
7769
+ if (longitude !== undefined) {
7770
+ localVarQueryParameter['longitude'] = longitude;
7771
+ }
7772
+ if (radiusInKm !== undefined) {
7773
+ localVarQueryParameter['radiusInKm'] = radiusInKm;
7774
+ }
7775
+ if (limit !== undefined) {
7776
+ localVarQueryParameter['limit'] = limit;
7777
+ }
7778
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7779
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7780
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7781
+ return {
7782
+ url: toPathString(localVarUrlObj),
7783
+ options: localVarRequestOptions,
7784
+ };
7785
+ }),
7786
+ /**
7787
+ *
7788
+ * @summary Récupère les utilisateurs proches d’une position donnée
7789
+ * @param {number} latitude Latitude de la position
7790
+ * @param {number} longitude Longitude de la position
7791
+ * @param {number} [radiusInKm] Rayon de recherche en kilomètres
7792
+ * @param {number} [limit] Nombre maximum de résultats
7793
+ * @param {*} [options] Override http request option.
7794
+ * @throws {RequiredError}
7795
+ */
7796
+ apiUsersNearestPlayersCoordinatesGet: (latitude_1, longitude_1, radiusInKm_1, limit_1, ...args_1) => __awaiter(this, [latitude_1, longitude_1, radiusInKm_1, limit_1, ...args_1], void 0, function* (latitude, longitude, radiusInKm, limit, options = {}) {
7797
+ // verify required parameter 'latitude' is not null or undefined
7798
+ assertParamExists('apiUsersNearestPlayersCoordinatesGet', 'latitude', latitude);
7799
+ // verify required parameter 'longitude' is not null or undefined
7800
+ assertParamExists('apiUsersNearestPlayersCoordinatesGet', 'longitude', longitude);
7801
+ const localVarPath = `/api/users/nearest-players/coordinates`;
7802
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7803
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7804
+ let baseOptions;
7805
+ if (configuration) {
7806
+ baseOptions = configuration.baseOptions;
7807
+ }
7808
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7809
+ const localVarHeaderParameter = {};
7810
+ const localVarQueryParameter = {};
7811
+ // authentication bearerAuth required
7812
+ // http bearer authentication required
7813
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
7814
+ if (latitude !== undefined) {
7815
+ localVarQueryParameter['latitude'] = latitude;
7816
+ }
7817
+ if (longitude !== undefined) {
7818
+ localVarQueryParameter['longitude'] = longitude;
7819
+ }
7820
+ if (radiusInKm !== undefined) {
7821
+ localVarQueryParameter['radiusInKm'] = radiusInKm;
7822
+ }
7823
+ if (limit !== undefined) {
7824
+ localVarQueryParameter['limit'] = limit;
7825
+ }
7826
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7827
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7828
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7829
+ return {
7830
+ url: toPathString(localVarUrlObj),
7831
+ options: localVarRequestOptions,
7832
+ };
7833
+ }),
7834
+ };
7835
+ };
7836
+ /**
7837
+ * UsersApi - functional programming interface
7838
+ * @export
7839
+ */
7840
+ export const UsersApiFp = function (configuration) {
7841
+ const localVarAxiosParamCreator = UsersApiAxiosParamCreator(configuration);
7842
+ return {
7843
+ /**
7844
+ *
7845
+ * @summary Récupère les clubs proches de l’utilisateur connecté
7846
+ * @param {number} [radiusInKm] Rayon de recherche en kilomètres
7847
+ * @param {number} [limit] Nombre maximum de résultats
7848
+ * @param {*} [options] Override http request option.
7849
+ * @throws {RequiredError}
7850
+ */
7851
+ apiUsersMeNearestClubsGet(radiusInKm, limit, options) {
7852
+ return __awaiter(this, void 0, void 0, function* () {
7853
+ var _a, _b, _c;
7854
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.apiUsersMeNearestClubsGet(radiusInKm, limit, options);
7855
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7856
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.apiUsersMeNearestClubsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7857
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7858
+ });
7859
+ },
7860
+ /**
7861
+ *
7862
+ * @summary Récupère les utilisateurs proches de l’utilisateur connecté
7863
+ * @param {number} [radiusInKm] Rayon de recherche en kilomètres
7864
+ * @param {number} [limit] Nombre maximum de résultats
7865
+ * @param {*} [options] Override http request option.
7866
+ * @throws {RequiredError}
7867
+ */
7868
+ apiUsersMeNearestPlayersGet(radiusInKm, limit, options) {
7869
+ return __awaiter(this, void 0, void 0, function* () {
7870
+ var _a, _b, _c;
7871
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.apiUsersMeNearestPlayersGet(radiusInKm, limit, options);
7872
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7873
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.apiUsersMeNearestPlayersGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7874
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7875
+ });
7876
+ },
7877
+ /**
7878
+ *
7879
+ * @summary Récupère les clubs proches d’une position donnée
7880
+ * @param {number} latitude Latitude de la position
7881
+ * @param {number} longitude Longitude de la position
7882
+ * @param {number} [radiusInKm] Rayon de recherche en kilomètres
7883
+ * @param {number} [limit] Nombre maximum de résultats
7884
+ * @param {*} [options] Override http request option.
7885
+ * @throws {RequiredError}
7886
+ */
7887
+ apiUsersNearestClubsCoordinatesGet(latitude, longitude, radiusInKm, limit, options) {
7888
+ return __awaiter(this, void 0, void 0, function* () {
7889
+ var _a, _b, _c;
7890
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.apiUsersNearestClubsCoordinatesGet(latitude, longitude, radiusInKm, limit, options);
7891
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7892
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.apiUsersNearestClubsCoordinatesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7893
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7894
+ });
7895
+ },
7896
+ /**
7897
+ *
7898
+ * @summary Récupère les utilisateurs proches d’une position donnée
7899
+ * @param {number} latitude Latitude de la position
7900
+ * @param {number} longitude Longitude de la position
7901
+ * @param {number} [radiusInKm] Rayon de recherche en kilomètres
7902
+ * @param {number} [limit] Nombre maximum de résultats
7903
+ * @param {*} [options] Override http request option.
7904
+ * @throws {RequiredError}
7905
+ */
7906
+ apiUsersNearestPlayersCoordinatesGet(latitude, longitude, radiusInKm, limit, options) {
7907
+ return __awaiter(this, void 0, void 0, function* () {
7908
+ var _a, _b, _c;
7909
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.apiUsersNearestPlayersCoordinatesGet(latitude, longitude, radiusInKm, limit, options);
7910
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7911
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.apiUsersNearestPlayersCoordinatesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7912
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7913
+ });
7914
+ },
7915
+ };
7916
+ };
7917
+ /**
7918
+ * UsersApi - factory interface
7919
+ * @export
7920
+ */
7921
+ export const UsersApiFactory = function (configuration, basePath, axios) {
7922
+ const localVarFp = UsersApiFp(configuration);
7923
+ return {
7924
+ /**
7925
+ *
7926
+ * @summary Récupère les clubs proches de l’utilisateur connecté
7927
+ * @param {UsersApiApiUsersMeNearestClubsGetRequest} requestParameters Request parameters.
7928
+ * @param {*} [options] Override http request option.
7929
+ * @throws {RequiredError}
7930
+ */
7931
+ apiUsersMeNearestClubsGet(requestParameters = {}, options) {
7932
+ return localVarFp.apiUsersMeNearestClubsGet(requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(axios, basePath));
7933
+ },
7934
+ /**
7935
+ *
7936
+ * @summary Récupère les utilisateurs proches de l’utilisateur connecté
7937
+ * @param {UsersApiApiUsersMeNearestPlayersGetRequest} requestParameters Request parameters.
7938
+ * @param {*} [options] Override http request option.
7939
+ * @throws {RequiredError}
7940
+ */
7941
+ apiUsersMeNearestPlayersGet(requestParameters = {}, options) {
7942
+ return localVarFp.apiUsersMeNearestPlayersGet(requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(axios, basePath));
7943
+ },
7944
+ /**
7945
+ *
7946
+ * @summary Récupère les clubs proches d’une position donnée
7947
+ * @param {UsersApiApiUsersNearestClubsCoordinatesGetRequest} requestParameters Request parameters.
7948
+ * @param {*} [options] Override http request option.
7949
+ * @throws {RequiredError}
7950
+ */
7951
+ apiUsersNearestClubsCoordinatesGet(requestParameters, options) {
7952
+ return localVarFp.apiUsersNearestClubsCoordinatesGet(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(axios, basePath));
7953
+ },
7954
+ /**
7955
+ *
7956
+ * @summary Récupère les utilisateurs proches d’une position donnée
7957
+ * @param {UsersApiApiUsersNearestPlayersCoordinatesGetRequest} requestParameters Request parameters.
7958
+ * @param {*} [options] Override http request option.
7959
+ * @throws {RequiredError}
7960
+ */
7961
+ apiUsersNearestPlayersCoordinatesGet(requestParameters, options) {
7962
+ return localVarFp.apiUsersNearestPlayersCoordinatesGet(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(axios, basePath));
7963
+ },
7964
+ };
7965
+ };
7966
+ /**
7967
+ * UsersApi - object-oriented interface
7968
+ * @export
7969
+ * @class UsersApi
7970
+ * @extends {BaseAPI}
7971
+ */
7972
+ export class UsersApi extends BaseAPI {
7973
+ /**
7974
+ *
7975
+ * @summary Récupère les clubs proches de l’utilisateur connecté
7976
+ * @param {UsersApiApiUsersMeNearestClubsGetRequest} requestParameters Request parameters.
7977
+ * @param {*} [options] Override http request option.
7978
+ * @throws {RequiredError}
7979
+ * @memberof UsersApi
7980
+ */
7981
+ apiUsersMeNearestClubsGet(requestParameters = {}, options) {
7982
+ return UsersApiFp(this.configuration).apiUsersMeNearestClubsGet(requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
7983
+ }
7984
+ /**
7985
+ *
7986
+ * @summary Récupère les utilisateurs proches de l’utilisateur connecté
7987
+ * @param {UsersApiApiUsersMeNearestPlayersGetRequest} requestParameters Request parameters.
7988
+ * @param {*} [options] Override http request option.
7989
+ * @throws {RequiredError}
7990
+ * @memberof UsersApi
7991
+ */
7992
+ apiUsersMeNearestPlayersGet(requestParameters = {}, options) {
7993
+ return UsersApiFp(this.configuration).apiUsersMeNearestPlayersGet(requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
7994
+ }
7995
+ /**
7996
+ *
7997
+ * @summary Récupère les clubs proches d’une position donnée
7998
+ * @param {UsersApiApiUsersNearestClubsCoordinatesGetRequest} requestParameters Request parameters.
7999
+ * @param {*} [options] Override http request option.
8000
+ * @throws {RequiredError}
8001
+ * @memberof UsersApi
8002
+ */
8003
+ apiUsersNearestClubsCoordinatesGet(requestParameters, options) {
8004
+ return UsersApiFp(this.configuration).apiUsersNearestClubsCoordinatesGet(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
8005
+ }
8006
+ /**
8007
+ *
8008
+ * @summary Récupère les utilisateurs proches d’une position donnée
8009
+ * @param {UsersApiApiUsersNearestPlayersCoordinatesGetRequest} requestParameters Request parameters.
8010
+ * @param {*} [options] Override http request option.
8011
+ * @throws {RequiredError}
8012
+ * @memberof UsersApi
8013
+ */
8014
+ apiUsersNearestPlayersCoordinatesGet(requestParameters, options) {
8015
+ return UsersApiFp(this.configuration).apiUsersNearestPlayersCoordinatesGet(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
8016
+ }
8017
+ }