@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/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Pandook API
6
6
  * API for managing pickle ball games and players
7
7
  *
8
- * The version of the OpenAPI document: 1.0.33
8
+ * The version of the OpenAPI document: 1.0.35
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,9 +22,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.ManagerClubSubscriptionsApiAxiosParamCreator = exports.ManagerClubSlotsApi = exports.ManagerClubSlotsApiFactory = exports.ManagerClubSlotsApiFp = exports.ManagerClubSlotsApiAxiosParamCreator = exports.ManagerClubRolesApi = exports.ManagerClubRolesApiFactory = exports.ManagerClubRolesApiFp = exports.ManagerClubRolesApiAxiosParamCreator = exports.ManagerClubCourtsApi = exports.ManagerClubCourtsApiFactory = exports.ManagerClubCourtsApiFp = exports.ManagerClubCourtsApiAxiosParamCreator = exports.ManagerBookingsApi = exports.ManagerBookingsApiFactory = exports.ManagerBookingsApiFp = exports.ManagerBookingsApiAxiosParamCreator = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = exports.GetInvoicesStatusEnum = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.UpdateCourtRequestSurfaceEnum = exports.UpdateCourtRequestStatusEnum = exports.SubscriptionResponseStatusEnum = exports.StripeStatus = exports.PaymentMethod = exports.NoShowFeeResponseCaptureResultsInnerStatusEnum = exports.NoShowFeeResponseCaptureResultsInnerTypeEnum = exports.ManagerCancelBookingResponseBookingStatusEnum = exports.InvoicesResponseInvoicesInnerStatusEnum = exports.EventBookingStatusEnum = exports.CreatePriceRequestIntervalEnum = exports.CourtStatus = exports.CourtResponseSurfaceEnum = exports.CourtResponseStatusEnum = exports.ClubMemberRoleEnum = exports.CancelBookingResponseBookingStatusEnum = exports.BookingStatus = exports.BookingPopulatedPaymentByPlayersStatusInnerInvoicesInnerStatusEnum = exports.BookingPopulatedStatusEnum = exports.BookingPaymentStatusResponsePaymentStatusInnerPaymentMethodEnum = void 0;
26
- exports.UserClubCourtsApiFactory = exports.UserClubCourtsApiFp = exports.UserClubCourtsApiAxiosParamCreator = exports.UserBookingsApi = exports.UserBookingsApiFactory = exports.UserBookingsApiFp = exports.UserBookingsApiAxiosParamCreator = exports.UserAuthenticationApi = exports.UserAuthenticationApiFactory = exports.UserAuthenticationApiFp = exports.UserAuthenticationApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.StaffProfileApi = exports.StaffProfileApiFactory = exports.StaffProfileApiFp = exports.StaffProfileApiAxiosParamCreator = exports.StaffEventsApi = exports.StaffEventsApiFactory = exports.StaffEventsApiFp = exports.StaffEventsApiAxiosParamCreator = exports.StaffClubsApi = exports.StaffClubsApiFactory = exports.StaffClubsApiFp = exports.StaffClubsApiAxiosParamCreator = exports.StaffClubBookingsApi = exports.StaffClubBookingsApiFactory = exports.StaffClubBookingsApiFp = exports.StaffClubBookingsApiAxiosParamCreator = exports.StaffClubAnalyticsApi = exports.StaffClubAnalyticsApiFactory = exports.StaffClubAnalyticsApiFp = exports.StaffClubAnalyticsApiAxiosParamCreator = exports.ManagerSportsApi = exports.ManagerSportsApiFactory = exports.ManagerSportsApiFp = exports.ManagerSportsApiAxiosParamCreator = exports.ManagerEventsApi = exports.ManagerEventsApiFactory = exports.ManagerEventsApiFp = exports.ManagerEventsApiAxiosParamCreator = exports.ManagerClubsApi = exports.ManagerClubsApiFactory = exports.ManagerClubsApiFp = exports.ManagerClubsApiAxiosParamCreator = exports.ManagerClubSubscriptionsApi = exports.ManagerClubSubscriptionsApiFactory = exports.ManagerClubSubscriptionsApiFp = void 0;
27
- exports.UserSubscriptionsApi = exports.UserSubscriptionsApiFactory = exports.UserSubscriptionsApiFp = exports.UserSubscriptionsApiAxiosParamCreator = exports.UserProfileApi = exports.UserProfileApiFactory = exports.UserProfileApiFp = exports.UserProfileApiAxiosParamCreator = exports.UserPaymentApi = exports.UserPaymentApiFactory = exports.UserPaymentApiFp = exports.UserPaymentApiAxiosParamCreator = exports.UserClubsApi = exports.UserClubsApiFactory = exports.UserClubsApiFp = exports.UserClubsApiAxiosParamCreator = exports.UserClubSportsApi = exports.UserClubSportsApiFactory = exports.UserClubSportsApiFp = exports.UserClubSportsApiAxiosParamCreator = exports.UserClubSlotsApi = exports.UserClubSlotsApiFactory = exports.UserClubSlotsApiFp = exports.UserClubSlotsApiAxiosParamCreator = exports.UserClubCourtsApi = void 0;
25
+ exports.ManagerClubCourtsApi = exports.ManagerClubCourtsApiFactory = exports.ManagerClubCourtsApiFp = exports.ManagerClubCourtsApiAxiosParamCreator = exports.ManagerBookingsApi = exports.ManagerBookingsApiFactory = exports.ManagerBookingsApiFp = exports.ManagerBookingsApiAxiosParamCreator = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = exports.GetInvoicesStatusEnum = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.UserBookingItemBookingStatusEnum = exports.UserBookingItemMyPaymentStatusEnum = exports.UpdateCourtRequestSurfaceEnum = exports.UpdateCourtRequestStatusEnum = exports.SubscriptionResponseStatusEnum = exports.StripeStatus = exports.PaymentStatusInvoiceStatusEnum = exports.PaymentMethod = exports.NoShowFeeResponseCaptureResultsInnerStatusEnum = exports.NoShowFeeResponseCaptureResultsInnerTypeEnum = exports.ManagerCancelBookingResponseBookingStatusEnum = exports.LocationTypeEnum = exports.InvoicesResponseInvoicesInnerStatusEnum = exports.EventBookingStatusEnum = exports.CreatePriceRequestIntervalEnum = exports.CourtWithNameResponseSurfaceEnum = exports.CourtStatus = exports.CourtResponseSurfaceEnum = exports.CourtResponseStatusEnum = exports.ClubMemberRoleEnum = exports.CancelBookingResponseBookingStatusEnum = exports.BookingStatus = exports.BookingPopulatedPaymentByPlayersStatusInnerInvoicesInnerStatusEnum = exports.BookingPopulatedStatusEnum = exports.BookingPaymentStatusResponsePaymentStatusInnerPaymentMethodEnum = void 0;
26
+ exports.UserAuthenticationApiFp = exports.UserAuthenticationApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.StaffProfileApi = exports.StaffProfileApiFactory = exports.StaffProfileApiFp = exports.StaffProfileApiAxiosParamCreator = exports.StaffEventsApi = exports.StaffEventsApiFactory = exports.StaffEventsApiFp = exports.StaffEventsApiAxiosParamCreator = exports.StaffClubsApi = exports.StaffClubsApiFactory = exports.StaffClubsApiFp = exports.StaffClubsApiAxiosParamCreator = exports.StaffClubBookingsApi = exports.StaffClubBookingsApiFactory = exports.StaffClubBookingsApiFp = exports.StaffClubBookingsApiAxiosParamCreator = exports.StaffClubAnalyticsApi = exports.StaffClubAnalyticsApiFactory = exports.StaffClubAnalyticsApiFp = exports.StaffClubAnalyticsApiAxiosParamCreator = exports.ManagerSportsApi = exports.ManagerSportsApiFactory = exports.ManagerSportsApiFp = exports.ManagerSportsApiAxiosParamCreator = exports.ManagerEventsApi = exports.ManagerEventsApiFactory = exports.ManagerEventsApiFp = exports.ManagerEventsApiAxiosParamCreator = exports.ManagerClubsApi = exports.ManagerClubsApiFactory = exports.ManagerClubsApiFp = exports.ManagerClubsApiAxiosParamCreator = exports.ManagerClubSubscriptionsApi = exports.ManagerClubSubscriptionsApiFactory = exports.ManagerClubSubscriptionsApiFp = exports.ManagerClubSubscriptionsApiAxiosParamCreator = exports.ManagerClubSlotsApi = exports.ManagerClubSlotsApiFactory = exports.ManagerClubSlotsApiFp = exports.ManagerClubSlotsApiAxiosParamCreator = exports.ManagerClubRolesApi = exports.ManagerClubRolesApiFactory = exports.ManagerClubRolesApiFp = exports.ManagerClubRolesApiAxiosParamCreator = void 0;
27
+ exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserSubscriptionsApi = exports.UserSubscriptionsApiFactory = exports.UserSubscriptionsApiFp = exports.UserSubscriptionsApiAxiosParamCreator = exports.UserProfileApi = exports.UserProfileApiFactory = exports.UserProfileApiFp = exports.UserProfileApiAxiosParamCreator = exports.UserPaymentApi = exports.UserPaymentApiFactory = exports.UserPaymentApiFp = exports.UserPaymentApiAxiosParamCreator = exports.UserClubsApi = exports.UserClubsApiFactory = exports.UserClubsApiFp = exports.UserClubsApiAxiosParamCreator = exports.UserClubSportsApi = exports.UserClubSportsApiFactory = exports.UserClubSportsApiFp = exports.UserClubSportsApiAxiosParamCreator = exports.UserClubSlotsApi = exports.UserClubSlotsApiFactory = exports.UserClubSlotsApiFp = exports.UserClubSlotsApiAxiosParamCreator = exports.UserClubCourtsApi = exports.UserClubCourtsApiFactory = exports.UserClubCourtsApiFp = exports.UserClubCourtsApiAxiosParamCreator = exports.UserBookingsApi = exports.UserBookingsApiFactory = exports.UserBookingsApiFp = exports.UserBookingsApiAxiosParamCreator = exports.UserAuthenticationApi = exports.UserAuthenticationApiFactory = void 0;
28
28
  const axios_1 = require("axios");
29
29
  // Some imports not used depending on template conditions
30
30
  // @ts-ignore
@@ -80,6 +80,11 @@ exports.CourtStatus = {
80
80
  Maintenance: 'maintenance',
81
81
  Inactive: 'inactive'
82
82
  };
83
+ exports.CourtWithNameResponseSurfaceEnum = {
84
+ Clay: 'clay',
85
+ Grass: 'grass',
86
+ Hard: 'hard'
87
+ };
83
88
  exports.CreatePriceRequestIntervalEnum = {
84
89
  Day: 'day',
85
90
  Week: 'week',
@@ -99,6 +104,9 @@ exports.InvoicesResponseInvoicesInnerStatusEnum = {
99
104
  Canceled: 'canceled',
100
105
  Expired: 'expired'
101
106
  };
107
+ exports.LocationTypeEnum = {
108
+ Point: 'Point'
109
+ };
102
110
  exports.ManagerCancelBookingResponseBookingStatusEnum = {
103
111
  Cancelled: 'cancelled'
104
112
  };
@@ -119,6 +127,12 @@ exports.PaymentMethod = {
119
127
  Online: 'online',
120
128
  Onsite: 'onsite'
121
129
  };
130
+ exports.PaymentStatusInvoiceStatusEnum = {
131
+ Paid: 'paid',
132
+ Pending: 'pending',
133
+ Failed: 'failed',
134
+ Canceled: 'canceled'
135
+ };
122
136
  /**
123
137
  *
124
138
  * @export
@@ -149,6 +163,192 @@ exports.UpdateCourtRequestSurfaceEnum = {
149
163
  Grass: 'grass',
150
164
  Hard: 'hard'
151
165
  };
166
+ exports.UserBookingItemMyPaymentStatusEnum = {
167
+ Paid: 'paid',
168
+ Pending: 'pending',
169
+ Failed: 'failed'
170
+ };
171
+ exports.UserBookingItemBookingStatusEnum = {
172
+ Confirmed: 'confirmed',
173
+ Cancelled: 'cancelled',
174
+ Pending: 'pending'
175
+ };
176
+ /**
177
+ * BookingsApi - axios parameter creator
178
+ * @export
179
+ */
180
+ const BookingsApiAxiosParamCreator = function (configuration) {
181
+ return {
182
+ /**
183
+ * Retourne une liste de réservations pour une date donnée, avec les joueurs et terrains (incluant le sport) peuplés.
184
+ * @summary Récupérer les réservations journalières
185
+ * @param {string} date Date au format YYYY-MM-DD
186
+ * @param {*} [options] Override http request option.
187
+ * @throws {RequiredError}
188
+ */
189
+ bookingsStaffDailyDateGet: (date_1, ...args_1) => __awaiter(this, [date_1, ...args_1], void 0, function* (date, options = {}) {
190
+ // verify required parameter 'date' is not null or undefined
191
+ (0, common_1.assertParamExists)('bookingsStaffDailyDateGet', 'date', date);
192
+ const localVarPath = `/bookings/staff/daily/{date}`
193
+ .replace(`{${"date"}}`, encodeURIComponent(String(date)));
194
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
195
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
196
+ let baseOptions;
197
+ if (configuration) {
198
+ baseOptions = configuration.baseOptions;
199
+ }
200
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
201
+ const localVarHeaderParameter = {};
202
+ const localVarQueryParameter = {};
203
+ // authentication bearerAuth required
204
+ // http bearer authentication required
205
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
206
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
207
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
208
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
209
+ return {
210
+ url: (0, common_1.toPathString)(localVarUrlObj),
211
+ options: localVarRequestOptions,
212
+ };
213
+ }),
214
+ /**
215
+ * Retourne une liste de réservations pour une semaine donnée, avec les joueurs et terrains (incluant le sport) peuplés.
216
+ * @summary Récupérer les réservations hebdomadaires
217
+ * @param {string} weekId ID de la semaine
218
+ * @param {*} [options] Override http request option.
219
+ * @throws {RequiredError}
220
+ */
221
+ bookingsStaffWeeklyWeekIdGet: (weekId_1, ...args_1) => __awaiter(this, [weekId_1, ...args_1], void 0, function* (weekId, options = {}) {
222
+ // verify required parameter 'weekId' is not null or undefined
223
+ (0, common_1.assertParamExists)('bookingsStaffWeeklyWeekIdGet', 'weekId', weekId);
224
+ const localVarPath = `/bookings/staff/weekly/{weekId}`
225
+ .replace(`{${"weekId"}}`, encodeURIComponent(String(weekId)));
226
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
227
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
228
+ let baseOptions;
229
+ if (configuration) {
230
+ baseOptions = configuration.baseOptions;
231
+ }
232
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
233
+ const localVarHeaderParameter = {};
234
+ const localVarQueryParameter = {};
235
+ // authentication bearerAuth required
236
+ // http bearer authentication required
237
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
238
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
239
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
240
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
241
+ return {
242
+ url: (0, common_1.toPathString)(localVarUrlObj),
243
+ options: localVarRequestOptions,
244
+ };
245
+ }),
246
+ };
247
+ };
248
+ exports.BookingsApiAxiosParamCreator = BookingsApiAxiosParamCreator;
249
+ /**
250
+ * BookingsApi - functional programming interface
251
+ * @export
252
+ */
253
+ const BookingsApiFp = function (configuration) {
254
+ const localVarAxiosParamCreator = (0, exports.BookingsApiAxiosParamCreator)(configuration);
255
+ return {
256
+ /**
257
+ * Retourne une liste de réservations pour une date donnée, avec les joueurs et terrains (incluant le sport) peuplés.
258
+ * @summary Récupérer les réservations journalières
259
+ * @param {string} date Date au format YYYY-MM-DD
260
+ * @param {*} [options] Override http request option.
261
+ * @throws {RequiredError}
262
+ */
263
+ bookingsStaffDailyDateGet(date, options) {
264
+ return __awaiter(this, void 0, void 0, function* () {
265
+ var _a, _b, _c;
266
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.bookingsStaffDailyDateGet(date, options);
267
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
268
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.bookingsStaffDailyDateGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
269
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
270
+ });
271
+ },
272
+ /**
273
+ * Retourne une liste de réservations pour une semaine donnée, avec les joueurs et terrains (incluant le sport) peuplés.
274
+ * @summary Récupérer les réservations hebdomadaires
275
+ * @param {string} weekId ID de la semaine
276
+ * @param {*} [options] Override http request option.
277
+ * @throws {RequiredError}
278
+ */
279
+ bookingsStaffWeeklyWeekIdGet(weekId, options) {
280
+ return __awaiter(this, void 0, void 0, function* () {
281
+ var _a, _b, _c;
282
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.bookingsStaffWeeklyWeekIdGet(weekId, options);
283
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
284
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.bookingsStaffWeeklyWeekIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
285
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
286
+ });
287
+ },
288
+ };
289
+ };
290
+ exports.BookingsApiFp = BookingsApiFp;
291
+ /**
292
+ * BookingsApi - factory interface
293
+ * @export
294
+ */
295
+ const BookingsApiFactory = function (configuration, basePath, axios) {
296
+ const localVarFp = (0, exports.BookingsApiFp)(configuration);
297
+ return {
298
+ /**
299
+ * Retourne une liste de réservations pour une date donnée, avec les joueurs et terrains (incluant le sport) peuplés.
300
+ * @summary Récupérer les réservations journalières
301
+ * @param {BookingsApiBookingsStaffDailyDateGetRequest} requestParameters Request parameters.
302
+ * @param {*} [options] Override http request option.
303
+ * @throws {RequiredError}
304
+ */
305
+ bookingsStaffDailyDateGet(requestParameters, options) {
306
+ return localVarFp.bookingsStaffDailyDateGet(requestParameters.date, options).then((request) => request(axios, basePath));
307
+ },
308
+ /**
309
+ * Retourne une liste de réservations pour une semaine donnée, avec les joueurs et terrains (incluant le sport) peuplés.
310
+ * @summary Récupérer les réservations hebdomadaires
311
+ * @param {BookingsApiBookingsStaffWeeklyWeekIdGetRequest} requestParameters Request parameters.
312
+ * @param {*} [options] Override http request option.
313
+ * @throws {RequiredError}
314
+ */
315
+ bookingsStaffWeeklyWeekIdGet(requestParameters, options) {
316
+ return localVarFp.bookingsStaffWeeklyWeekIdGet(requestParameters.weekId, options).then((request) => request(axios, basePath));
317
+ },
318
+ };
319
+ };
320
+ exports.BookingsApiFactory = BookingsApiFactory;
321
+ /**
322
+ * BookingsApi - object-oriented interface
323
+ * @export
324
+ * @class BookingsApi
325
+ * @extends {BaseAPI}
326
+ */
327
+ class BookingsApi extends base_1.BaseAPI {
328
+ /**
329
+ * Retourne une liste de réservations pour une date donnée, avec les joueurs et terrains (incluant le sport) peuplés.
330
+ * @summary Récupérer les réservations journalières
331
+ * @param {BookingsApiBookingsStaffDailyDateGetRequest} requestParameters Request parameters.
332
+ * @param {*} [options] Override http request option.
333
+ * @throws {RequiredError}
334
+ * @memberof BookingsApi
335
+ */
336
+ bookingsStaffDailyDateGet(requestParameters, options) {
337
+ return (0, exports.BookingsApiFp)(this.configuration).bookingsStaffDailyDateGet(requestParameters.date, options).then((request) => request(this.axios, this.basePath));
338
+ }
339
+ /**
340
+ * Retourne une liste de réservations pour une semaine donnée, avec les joueurs et terrains (incluant le sport) peuplés.
341
+ * @summary Récupérer les réservations hebdomadaires
342
+ * @param {BookingsApiBookingsStaffWeeklyWeekIdGetRequest} requestParameters Request parameters.
343
+ * @param {*} [options] Override http request option.
344
+ * @throws {RequiredError}
345
+ * @memberof BookingsApi
346
+ */
347
+ bookingsStaffWeeklyWeekIdGet(requestParameters, options) {
348
+ return (0, exports.BookingsApiFp)(this.configuration).bookingsStaffWeeklyWeekIdGet(requestParameters.weekId, options).then((request) => request(this.axios, this.basePath));
349
+ }
350
+ }
351
+ exports.BookingsApi = BookingsApi;
152
352
  /**
153
353
  * ClubAnalyticsApi - axios parameter creator
154
354
  * @export
@@ -3310,6 +3510,34 @@ const StaffClubAnalyticsApiAxiosParamCreator = function (configuration) {
3310
3510
  options: localVarRequestOptions,
3311
3511
  };
3312
3512
  }),
3513
+ /**
3514
+ *
3515
+ * @summary Récupère le pourcentage de joueurs par genre pour le club courant
3516
+ * @param {*} [options] Override http request option.
3517
+ * @throws {RequiredError}
3518
+ */
3519
+ getGenderPercentage: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3520
+ const localVarPath = `/api/analytics/gender`;
3521
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3522
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3523
+ let baseOptions;
3524
+ if (configuration) {
3525
+ baseOptions = configuration.baseOptions;
3526
+ }
3527
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3528
+ const localVarHeaderParameter = {};
3529
+ const localVarQueryParameter = {};
3530
+ // authentication bearerAuth required
3531
+ // http bearer authentication required
3532
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3533
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3534
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3535
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3536
+ return {
3537
+ url: (0, common_1.toPathString)(localVarUrlObj),
3538
+ options: localVarRequestOptions,
3539
+ };
3540
+ }),
3313
3541
  /**
3314
3542
  *
3315
3543
  * @summary Get monthly turnover for the last six months (club courant)
@@ -3393,6 +3621,21 @@ const StaffClubAnalyticsApiFp = function (configuration) {
3393
3621
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3394
3622
  });
3395
3623
  },
3624
+ /**
3625
+ *
3626
+ * @summary Récupère le pourcentage de joueurs par genre pour le club courant
3627
+ * @param {*} [options] Override http request option.
3628
+ * @throws {RequiredError}
3629
+ */
3630
+ getGenderPercentage(options) {
3631
+ return __awaiter(this, void 0, void 0, function* () {
3632
+ var _a, _b, _c;
3633
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getGenderPercentage(options);
3634
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3635
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StaffClubAnalyticsApi.getGenderPercentage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3636
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3637
+ });
3638
+ },
3396
3639
  /**
3397
3640
  *
3398
3641
  * @summary Get monthly turnover for the last six months (club courant)
@@ -3443,6 +3686,15 @@ const StaffClubAnalyticsApiFactory = function (configuration, basePath, axios) {
3443
3686
  getClubPlayers(options) {
3444
3687
  return localVarFp.getClubPlayers(options).then((request) => request(axios, basePath));
3445
3688
  },
3689
+ /**
3690
+ *
3691
+ * @summary Récupère le pourcentage de joueurs par genre pour le club courant
3692
+ * @param {*} [options] Override http request option.
3693
+ * @throws {RequiredError}
3694
+ */
3695
+ getGenderPercentage(options) {
3696
+ return localVarFp.getGenderPercentage(options).then((request) => request(axios, basePath));
3697
+ },
3446
3698
  /**
3447
3699
  *
3448
3700
  * @summary Get monthly turnover for the last six months (club courant)
@@ -3482,6 +3734,16 @@ class StaffClubAnalyticsApi extends base_1.BaseAPI {
3482
3734
  getClubPlayers(options) {
3483
3735
  return (0, exports.StaffClubAnalyticsApiFp)(this.configuration).getClubPlayers(options).then((request) => request(this.axios, this.basePath));
3484
3736
  }
3737
+ /**
3738
+ *
3739
+ * @summary Récupère le pourcentage de joueurs par genre pour le club courant
3740
+ * @param {*} [options] Override http request option.
3741
+ * @throws {RequiredError}
3742
+ * @memberof StaffClubAnalyticsApi
3743
+ */
3744
+ getGenderPercentage(options) {
3745
+ return (0, exports.StaffClubAnalyticsApiFp)(this.configuration).getGenderPercentage(options).then((request) => request(this.axios, this.basePath));
3746
+ }
3485
3747
  /**
3486
3748
  *
3487
3749
  * @summary Get monthly turnover for the last six months (club courant)
@@ -4526,6 +4788,34 @@ const UserBookingsApiAxiosParamCreator = function (configuration) {
4526
4788
  options: localVarRequestOptions,
4527
4789
  };
4528
4790
  }),
4791
+ /**
4792
+ *
4793
+ * @summary Récupère l\'historique des réservations de l\'utilisateur connecté
4794
+ * @param {*} [options] Override http request option.
4795
+ * @throws {RequiredError}
4796
+ */
4797
+ getBookingHistory: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
4798
+ const localVarPath = `/api/users/me/booking-history`;
4799
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4800
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4801
+ let baseOptions;
4802
+ if (configuration) {
4803
+ baseOptions = configuration.baseOptions;
4804
+ }
4805
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4806
+ const localVarHeaderParameter = {};
4807
+ const localVarQueryParameter = {};
4808
+ // authentication bearerAuth required
4809
+ // http bearer authentication required
4810
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4811
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4812
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4813
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4814
+ return {
4815
+ url: (0, common_1.toPathString)(localVarUrlObj),
4816
+ options: localVarRequestOptions,
4817
+ };
4818
+ }),
4529
4819
  };
4530
4820
  };
4531
4821
  exports.UserBookingsApiAxiosParamCreator = UserBookingsApiAxiosParamCreator;
@@ -4568,6 +4858,21 @@ const UserBookingsApiFp = function (configuration) {
4568
4858
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4569
4859
  });
4570
4860
  },
4861
+ /**
4862
+ *
4863
+ * @summary Récupère l\'historique des réservations de l\'utilisateur connecté
4864
+ * @param {*} [options] Override http request option.
4865
+ * @throws {RequiredError}
4866
+ */
4867
+ getBookingHistory(options) {
4868
+ return __awaiter(this, void 0, void 0, function* () {
4869
+ var _a, _b, _c;
4870
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingHistory(options);
4871
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4872
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserBookingsApi.getBookingHistory']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4873
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4874
+ });
4875
+ },
4571
4876
  };
4572
4877
  };
4573
4878
  exports.UserBookingsApiFp = UserBookingsApiFp;
@@ -4598,6 +4903,15 @@ const UserBookingsApiFactory = function (configuration, basePath, axios) {
4598
4903
  createBooking(requestParameters, options) {
4599
4904
  return localVarFp.createBooking(requestParameters.createBookingRequest, options).then((request) => request(axios, basePath));
4600
4905
  },
4906
+ /**
4907
+ *
4908
+ * @summary Récupère l\'historique des réservations de l\'utilisateur connecté
4909
+ * @param {*} [options] Override http request option.
4910
+ * @throws {RequiredError}
4911
+ */
4912
+ getBookingHistory(options) {
4913
+ return localVarFp.getBookingHistory(options).then((request) => request(axios, basePath));
4914
+ },
4601
4915
  };
4602
4916
  };
4603
4917
  exports.UserBookingsApiFactory = UserBookingsApiFactory;
@@ -4630,6 +4944,16 @@ class UserBookingsApi extends base_1.BaseAPI {
4630
4944
  createBooking(requestParameters, options) {
4631
4945
  return (0, exports.UserBookingsApiFp)(this.configuration).createBooking(requestParameters.createBookingRequest, options).then((request) => request(this.axios, this.basePath));
4632
4946
  }
4947
+ /**
4948
+ *
4949
+ * @summary Récupère l\'historique des réservations de l\'utilisateur connecté
4950
+ * @param {*} [options] Override http request option.
4951
+ * @throws {RequiredError}
4952
+ * @memberof UserBookingsApi
4953
+ */
4954
+ getBookingHistory(options) {
4955
+ return (0, exports.UserBookingsApiFp)(this.configuration).getBookingHistory(options).then((request) => request(this.axios, this.basePath));
4956
+ }
4633
4957
  }
4634
4958
  exports.UserBookingsApi = UserBookingsApi;
4635
4959
  /**
@@ -5790,6 +6114,38 @@ const UserProfileApiAxiosParamCreator = function (configuration) {
5790
6114
  options: localVarRequestOptions,
5791
6115
  };
5792
6116
  }),
6117
+ /**
6118
+ *
6119
+ * @summary Récupère le detéail d\'une réservation
6120
+ * @param {string} bookingId ID de la réservation
6121
+ * @param {*} [options] Override http request option.
6122
+ * @throws {RequiredError}
6123
+ */
6124
+ getUserBookingDetail: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
6125
+ // verify required parameter 'bookingId' is not null or undefined
6126
+ (0, common_1.assertParamExists)('getUserBookingDetail', 'bookingId', bookingId);
6127
+ const localVarPath = `/api/users/me/booking-detail/{bookingId}`
6128
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
6129
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6130
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6131
+ let baseOptions;
6132
+ if (configuration) {
6133
+ baseOptions = configuration.baseOptions;
6134
+ }
6135
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6136
+ const localVarHeaderParameter = {};
6137
+ const localVarQueryParameter = {};
6138
+ // authentication bearerAuth required
6139
+ // http bearer authentication required
6140
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6141
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6142
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6143
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6144
+ return {
6145
+ url: (0, common_1.toPathString)(localVarUrlObj),
6146
+ options: localVarRequestOptions,
6147
+ };
6148
+ }),
5793
6149
  /**
5794
6150
  *
5795
6151
  * @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
@@ -6367,6 +6723,22 @@ const UserProfileApiFp = function (configuration) {
6367
6723
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6368
6724
  });
6369
6725
  },
6726
+ /**
6727
+ *
6728
+ * @summary Récupère le detéail d\'une réservation
6729
+ * @param {string} bookingId ID de la réservation
6730
+ * @param {*} [options] Override http request option.
6731
+ * @throws {RequiredError}
6732
+ */
6733
+ getUserBookingDetail(bookingId, options) {
6734
+ return __awaiter(this, void 0, void 0, function* () {
6735
+ var _a, _b, _c;
6736
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserBookingDetail(bookingId, options);
6737
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6738
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.getUserBookingDetail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6739
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6740
+ });
6741
+ },
6370
6742
  /**
6371
6743
  *
6372
6744
  * @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
@@ -6677,6 +7049,16 @@ const UserProfileApiFactory = function (configuration, basePath, axios) {
6677
7049
  getPublicUserProfile(requestParameters, options) {
6678
7050
  return localVarFp.getPublicUserProfile(requestParameters.id, options).then((request) => request(axios, basePath));
6679
7051
  },
7052
+ /**
7053
+ *
7054
+ * @summary Récupère le detéail d\'une réservation
7055
+ * @param {UserProfileApiGetUserBookingDetailRequest} requestParameters Request parameters.
7056
+ * @param {*} [options] Override http request option.
7057
+ * @throws {RequiredError}
7058
+ */
7059
+ getUserBookingDetail(requestParameters, options) {
7060
+ return localVarFp.getUserBookingDetail(requestParameters.bookingId, options).then((request) => request(axios, basePath));
7061
+ },
6680
7062
  /**
6681
7063
  *
6682
7064
  * @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
@@ -6918,6 +7300,17 @@ class UserProfileApi extends base_1.BaseAPI {
6918
7300
  getPublicUserProfile(requestParameters, options) {
6919
7301
  return (0, exports.UserProfileApiFp)(this.configuration).getPublicUserProfile(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
6920
7302
  }
7303
+ /**
7304
+ *
7305
+ * @summary Récupère le detéail d\'une réservation
7306
+ * @param {UserProfileApiGetUserBookingDetailRequest} requestParameters Request parameters.
7307
+ * @param {*} [options] Override http request option.
7308
+ * @throws {RequiredError}
7309
+ * @memberof UserProfileApi
7310
+ */
7311
+ getUserBookingDetail(requestParameters, options) {
7312
+ return (0, exports.UserProfileApiFp)(this.configuration).getUserBookingDetail(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
7313
+ }
6921
7314
  /**
6922
7315
  *
6923
7316
  * @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
@@ -7377,3 +7770,365 @@ class UserSubscriptionsApi extends base_1.BaseAPI {
7377
7770
  }
7378
7771
  }
7379
7772
  exports.UserSubscriptionsApi = UserSubscriptionsApi;
7773
+ /**
7774
+ * UsersApi - axios parameter creator
7775
+ * @export
7776
+ */
7777
+ const UsersApiAxiosParamCreator = function (configuration) {
7778
+ return {
7779
+ /**
7780
+ *
7781
+ * @summary Récupère les clubs proches de l’utilisateur connecté
7782
+ * @param {number} [radiusInKm] Rayon de recherche en kilomètres
7783
+ * @param {number} [limit] Nombre maximum de résultats
7784
+ * @param {*} [options] Override http request option.
7785
+ * @throws {RequiredError}
7786
+ */
7787
+ apiUsersMeNearestClubsGet: (radiusInKm_1, limit_1, ...args_1) => __awaiter(this, [radiusInKm_1, limit_1, ...args_1], void 0, function* (radiusInKm, limit, options = {}) {
7788
+ const localVarPath = `/api/users/me/nearest-clubs/`;
7789
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7790
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7791
+ let baseOptions;
7792
+ if (configuration) {
7793
+ baseOptions = configuration.baseOptions;
7794
+ }
7795
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7796
+ const localVarHeaderParameter = {};
7797
+ const localVarQueryParameter = {};
7798
+ // authentication bearerAuth required
7799
+ // http bearer authentication required
7800
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
7801
+ if (radiusInKm !== undefined) {
7802
+ localVarQueryParameter['radiusInKm'] = radiusInKm;
7803
+ }
7804
+ if (limit !== undefined) {
7805
+ localVarQueryParameter['limit'] = limit;
7806
+ }
7807
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7808
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7809
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7810
+ return {
7811
+ url: (0, common_1.toPathString)(localVarUrlObj),
7812
+ options: localVarRequestOptions,
7813
+ };
7814
+ }),
7815
+ /**
7816
+ *
7817
+ * @summary Récupère les utilisateurs proches de l’utilisateur connecté
7818
+ * @param {number} [radiusInKm] Rayon de recherche en kilomètres
7819
+ * @param {number} [limit] Nombre maximum de résultats
7820
+ * @param {*} [options] Override http request option.
7821
+ * @throws {RequiredError}
7822
+ */
7823
+ apiUsersMeNearestPlayersGet: (radiusInKm_1, limit_1, ...args_1) => __awaiter(this, [radiusInKm_1, limit_1, ...args_1], void 0, function* (radiusInKm, limit, options = {}) {
7824
+ const localVarPath = `/api/users/me/nearest-players/`;
7825
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7826
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7827
+ let baseOptions;
7828
+ if (configuration) {
7829
+ baseOptions = configuration.baseOptions;
7830
+ }
7831
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7832
+ const localVarHeaderParameter = {};
7833
+ const localVarQueryParameter = {};
7834
+ // authentication bearerAuth required
7835
+ // http bearer authentication required
7836
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
7837
+ if (radiusInKm !== undefined) {
7838
+ localVarQueryParameter['radiusInKm'] = radiusInKm;
7839
+ }
7840
+ if (limit !== undefined) {
7841
+ localVarQueryParameter['limit'] = limit;
7842
+ }
7843
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7844
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7845
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7846
+ return {
7847
+ url: (0, common_1.toPathString)(localVarUrlObj),
7848
+ options: localVarRequestOptions,
7849
+ };
7850
+ }),
7851
+ /**
7852
+ *
7853
+ * @summary Récupère les clubs proches d’une position donnée
7854
+ * @param {number} latitude Latitude de la position
7855
+ * @param {number} longitude Longitude de la position
7856
+ * @param {number} [radiusInKm] Rayon de recherche en kilomètres
7857
+ * @param {number} [limit] Nombre maximum de résultats
7858
+ * @param {*} [options] Override http request option.
7859
+ * @throws {RequiredError}
7860
+ */
7861
+ 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 = {}) {
7862
+ // verify required parameter 'latitude' is not null or undefined
7863
+ (0, common_1.assertParamExists)('apiUsersNearestClubsCoordinatesGet', 'latitude', latitude);
7864
+ // verify required parameter 'longitude' is not null or undefined
7865
+ (0, common_1.assertParamExists)('apiUsersNearestClubsCoordinatesGet', 'longitude', longitude);
7866
+ const localVarPath = `/api/users/nearest-clubs/coordinates`;
7867
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7868
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7869
+ let baseOptions;
7870
+ if (configuration) {
7871
+ baseOptions = configuration.baseOptions;
7872
+ }
7873
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7874
+ const localVarHeaderParameter = {};
7875
+ const localVarQueryParameter = {};
7876
+ // authentication bearerAuth required
7877
+ // http bearer authentication required
7878
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
7879
+ if (latitude !== undefined) {
7880
+ localVarQueryParameter['latitude'] = latitude;
7881
+ }
7882
+ if (longitude !== undefined) {
7883
+ localVarQueryParameter['longitude'] = longitude;
7884
+ }
7885
+ if (radiusInKm !== undefined) {
7886
+ localVarQueryParameter['radiusInKm'] = radiusInKm;
7887
+ }
7888
+ if (limit !== undefined) {
7889
+ localVarQueryParameter['limit'] = limit;
7890
+ }
7891
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7892
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7893
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7894
+ return {
7895
+ url: (0, common_1.toPathString)(localVarUrlObj),
7896
+ options: localVarRequestOptions,
7897
+ };
7898
+ }),
7899
+ /**
7900
+ *
7901
+ * @summary Récupère les utilisateurs proches d’une position donnée
7902
+ * @param {number} latitude Latitude de la position
7903
+ * @param {number} longitude Longitude de la position
7904
+ * @param {number} [radiusInKm] Rayon de recherche en kilomètres
7905
+ * @param {number} [limit] Nombre maximum de résultats
7906
+ * @param {*} [options] Override http request option.
7907
+ * @throws {RequiredError}
7908
+ */
7909
+ 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 = {}) {
7910
+ // verify required parameter 'latitude' is not null or undefined
7911
+ (0, common_1.assertParamExists)('apiUsersNearestPlayersCoordinatesGet', 'latitude', latitude);
7912
+ // verify required parameter 'longitude' is not null or undefined
7913
+ (0, common_1.assertParamExists)('apiUsersNearestPlayersCoordinatesGet', 'longitude', longitude);
7914
+ const localVarPath = `/api/users/nearest-players/coordinates`;
7915
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7916
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7917
+ let baseOptions;
7918
+ if (configuration) {
7919
+ baseOptions = configuration.baseOptions;
7920
+ }
7921
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7922
+ const localVarHeaderParameter = {};
7923
+ const localVarQueryParameter = {};
7924
+ // authentication bearerAuth required
7925
+ // http bearer authentication required
7926
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
7927
+ if (latitude !== undefined) {
7928
+ localVarQueryParameter['latitude'] = latitude;
7929
+ }
7930
+ if (longitude !== undefined) {
7931
+ localVarQueryParameter['longitude'] = longitude;
7932
+ }
7933
+ if (radiusInKm !== undefined) {
7934
+ localVarQueryParameter['radiusInKm'] = radiusInKm;
7935
+ }
7936
+ if (limit !== undefined) {
7937
+ localVarQueryParameter['limit'] = limit;
7938
+ }
7939
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7940
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7941
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7942
+ return {
7943
+ url: (0, common_1.toPathString)(localVarUrlObj),
7944
+ options: localVarRequestOptions,
7945
+ };
7946
+ }),
7947
+ };
7948
+ };
7949
+ exports.UsersApiAxiosParamCreator = UsersApiAxiosParamCreator;
7950
+ /**
7951
+ * UsersApi - functional programming interface
7952
+ * @export
7953
+ */
7954
+ const UsersApiFp = function (configuration) {
7955
+ const localVarAxiosParamCreator = (0, exports.UsersApiAxiosParamCreator)(configuration);
7956
+ return {
7957
+ /**
7958
+ *
7959
+ * @summary Récupère les clubs proches de l’utilisateur connecté
7960
+ * @param {number} [radiusInKm] Rayon de recherche en kilomètres
7961
+ * @param {number} [limit] Nombre maximum de résultats
7962
+ * @param {*} [options] Override http request option.
7963
+ * @throws {RequiredError}
7964
+ */
7965
+ apiUsersMeNearestClubsGet(radiusInKm, limit, options) {
7966
+ return __awaiter(this, void 0, void 0, function* () {
7967
+ var _a, _b, _c;
7968
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.apiUsersMeNearestClubsGet(radiusInKm, limit, options);
7969
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7970
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.apiUsersMeNearestClubsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7971
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7972
+ });
7973
+ },
7974
+ /**
7975
+ *
7976
+ * @summary Récupère les utilisateurs proches de l’utilisateur connecté
7977
+ * @param {number} [radiusInKm] Rayon de recherche en kilomètres
7978
+ * @param {number} [limit] Nombre maximum de résultats
7979
+ * @param {*} [options] Override http request option.
7980
+ * @throws {RequiredError}
7981
+ */
7982
+ apiUsersMeNearestPlayersGet(radiusInKm, limit, options) {
7983
+ return __awaiter(this, void 0, void 0, function* () {
7984
+ var _a, _b, _c;
7985
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.apiUsersMeNearestPlayersGet(radiusInKm, limit, options);
7986
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7987
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.apiUsersMeNearestPlayersGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7988
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7989
+ });
7990
+ },
7991
+ /**
7992
+ *
7993
+ * @summary Récupère les clubs proches d’une position donnée
7994
+ * @param {number} latitude Latitude de la position
7995
+ * @param {number} longitude Longitude de la position
7996
+ * @param {number} [radiusInKm] Rayon de recherche en kilomètres
7997
+ * @param {number} [limit] Nombre maximum de résultats
7998
+ * @param {*} [options] Override http request option.
7999
+ * @throws {RequiredError}
8000
+ */
8001
+ apiUsersNearestClubsCoordinatesGet(latitude, longitude, radiusInKm, limit, options) {
8002
+ return __awaiter(this, void 0, void 0, function* () {
8003
+ var _a, _b, _c;
8004
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.apiUsersNearestClubsCoordinatesGet(latitude, longitude, radiusInKm, limit, options);
8005
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8006
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.apiUsersNearestClubsCoordinatesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8007
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8008
+ });
8009
+ },
8010
+ /**
8011
+ *
8012
+ * @summary Récupère les utilisateurs proches d’une position donnée
8013
+ * @param {number} latitude Latitude de la position
8014
+ * @param {number} longitude Longitude de la position
8015
+ * @param {number} [radiusInKm] Rayon de recherche en kilomètres
8016
+ * @param {number} [limit] Nombre maximum de résultats
8017
+ * @param {*} [options] Override http request option.
8018
+ * @throws {RequiredError}
8019
+ */
8020
+ apiUsersNearestPlayersCoordinatesGet(latitude, longitude, radiusInKm, limit, options) {
8021
+ return __awaiter(this, void 0, void 0, function* () {
8022
+ var _a, _b, _c;
8023
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.apiUsersNearestPlayersCoordinatesGet(latitude, longitude, radiusInKm, limit, options);
8024
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8025
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.apiUsersNearestPlayersCoordinatesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8026
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8027
+ });
8028
+ },
8029
+ };
8030
+ };
8031
+ exports.UsersApiFp = UsersApiFp;
8032
+ /**
8033
+ * UsersApi - factory interface
8034
+ * @export
8035
+ */
8036
+ const UsersApiFactory = function (configuration, basePath, axios) {
8037
+ const localVarFp = (0, exports.UsersApiFp)(configuration);
8038
+ return {
8039
+ /**
8040
+ *
8041
+ * @summary Récupère les clubs proches de l’utilisateur connecté
8042
+ * @param {UsersApiApiUsersMeNearestClubsGetRequest} requestParameters Request parameters.
8043
+ * @param {*} [options] Override http request option.
8044
+ * @throws {RequiredError}
8045
+ */
8046
+ apiUsersMeNearestClubsGet(requestParameters = {}, options) {
8047
+ return localVarFp.apiUsersMeNearestClubsGet(requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(axios, basePath));
8048
+ },
8049
+ /**
8050
+ *
8051
+ * @summary Récupère les utilisateurs proches de l’utilisateur connecté
8052
+ * @param {UsersApiApiUsersMeNearestPlayersGetRequest} requestParameters Request parameters.
8053
+ * @param {*} [options] Override http request option.
8054
+ * @throws {RequiredError}
8055
+ */
8056
+ apiUsersMeNearestPlayersGet(requestParameters = {}, options) {
8057
+ return localVarFp.apiUsersMeNearestPlayersGet(requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(axios, basePath));
8058
+ },
8059
+ /**
8060
+ *
8061
+ * @summary Récupère les clubs proches d’une position donnée
8062
+ * @param {UsersApiApiUsersNearestClubsCoordinatesGetRequest} requestParameters Request parameters.
8063
+ * @param {*} [options] Override http request option.
8064
+ * @throws {RequiredError}
8065
+ */
8066
+ apiUsersNearestClubsCoordinatesGet(requestParameters, options) {
8067
+ return localVarFp.apiUsersNearestClubsCoordinatesGet(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(axios, basePath));
8068
+ },
8069
+ /**
8070
+ *
8071
+ * @summary Récupère les utilisateurs proches d’une position donnée
8072
+ * @param {UsersApiApiUsersNearestPlayersCoordinatesGetRequest} requestParameters Request parameters.
8073
+ * @param {*} [options] Override http request option.
8074
+ * @throws {RequiredError}
8075
+ */
8076
+ apiUsersNearestPlayersCoordinatesGet(requestParameters, options) {
8077
+ return localVarFp.apiUsersNearestPlayersCoordinatesGet(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(axios, basePath));
8078
+ },
8079
+ };
8080
+ };
8081
+ exports.UsersApiFactory = UsersApiFactory;
8082
+ /**
8083
+ * UsersApi - object-oriented interface
8084
+ * @export
8085
+ * @class UsersApi
8086
+ * @extends {BaseAPI}
8087
+ */
8088
+ class UsersApi extends base_1.BaseAPI {
8089
+ /**
8090
+ *
8091
+ * @summary Récupère les clubs proches de l’utilisateur connecté
8092
+ * @param {UsersApiApiUsersMeNearestClubsGetRequest} requestParameters Request parameters.
8093
+ * @param {*} [options] Override http request option.
8094
+ * @throws {RequiredError}
8095
+ * @memberof UsersApi
8096
+ */
8097
+ apiUsersMeNearestClubsGet(requestParameters = {}, options) {
8098
+ return (0, exports.UsersApiFp)(this.configuration).apiUsersMeNearestClubsGet(requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
8099
+ }
8100
+ /**
8101
+ *
8102
+ * @summary Récupère les utilisateurs proches de l’utilisateur connecté
8103
+ * @param {UsersApiApiUsersMeNearestPlayersGetRequest} requestParameters Request parameters.
8104
+ * @param {*} [options] Override http request option.
8105
+ * @throws {RequiredError}
8106
+ * @memberof UsersApi
8107
+ */
8108
+ apiUsersMeNearestPlayersGet(requestParameters = {}, options) {
8109
+ return (0, exports.UsersApiFp)(this.configuration).apiUsersMeNearestPlayersGet(requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
8110
+ }
8111
+ /**
8112
+ *
8113
+ * @summary Récupère les clubs proches d’une position donnée
8114
+ * @param {UsersApiApiUsersNearestClubsCoordinatesGetRequest} requestParameters Request parameters.
8115
+ * @param {*} [options] Override http request option.
8116
+ * @throws {RequiredError}
8117
+ * @memberof UsersApi
8118
+ */
8119
+ apiUsersNearestClubsCoordinatesGet(requestParameters, options) {
8120
+ return (0, exports.UsersApiFp)(this.configuration).apiUsersNearestClubsCoordinatesGet(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
8121
+ }
8122
+ /**
8123
+ *
8124
+ * @summary Récupère les utilisateurs proches d’une position donnée
8125
+ * @param {UsersApiApiUsersNearestPlayersCoordinatesGetRequest} requestParameters Request parameters.
8126
+ * @param {*} [options] Override http request option.
8127
+ * @throws {RequiredError}
8128
+ * @memberof UsersApi
8129
+ */
8130
+ apiUsersNearestPlayersCoordinatesGet(requestParameters, options) {
8131
+ return (0, exports.UsersApiFp)(this.configuration).apiUsersNearestPlayersCoordinatesGet(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
8132
+ }
8133
+ }
8134
+ exports.UsersApi = UsersApi;