@tennac-booking/sdk 1.0.18 → 1.0.20

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 (58) hide show
  1. package/.openapi-generator/FILES +22 -0
  2. package/README.md +31 -3
  3. package/api.ts +1983 -271
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +1472 -245
  8. package/dist/api.js +944 -116
  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 +1472 -245
  16. package/dist/esm/api.js +927 -111
  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/BookingPaymentStatusResponse.md +24 -0
  28. package/docs/BookingPaymentStatusResponseBooking.md +26 -0
  29. package/docs/BookingPaymentStatusResponsePaymentStatusInner.md +36 -0
  30. package/docs/BookingPaymentStatusResponseSummary.md +28 -0
  31. package/docs/BookingsApi.md +68 -0
  32. package/docs/CancelBookingRequest.md +20 -0
  33. package/docs/CancelBookingResponse.md +2 -2
  34. package/docs/CancelBookingResponseBooking.md +6 -6
  35. package/docs/CheckInPlayersRequest.md +20 -0
  36. package/docs/CheckInPlayersResponse.md +30 -0
  37. package/docs/CheckInPlayersResponseCheckedInPlayersInner.md +34 -0
  38. package/docs/ClubAnalyticsApi.md +253 -0
  39. package/docs/ClubInfoResponse.md +2 -0
  40. package/docs/DailyTurnoverResponse.md +24 -0
  41. package/docs/GetLastSixMonthsTurnover200ResponseInner.md +1 -1
  42. package/docs/InvoicesResponse.md +22 -0
  43. package/docs/InvoicesResponseInvoicesInner.md +34 -0
  44. package/docs/InvoicesResponsePagination.md +26 -0
  45. package/docs/ManagerBookingsApi.md +243 -0
  46. package/docs/ManagerCancelBookingRequest.md +20 -0
  47. package/docs/ManagerCancelBookingResponse.md +2 -2
  48. package/docs/ManagerCancelBookingResponseBooking.md +6 -6
  49. package/docs/MonthlyTurnoverResponse.md +28 -0
  50. package/docs/NoShowFeeResponse.md +30 -0
  51. package/docs/NoShowFeeResponseCaptureResultsInner.md +30 -0
  52. package/docs/NoShowFeeResponseCreatorChargeResult.md +26 -0
  53. package/docs/StaffClubAnalyticsApi.md +3 -10
  54. package/docs/StaffClubSettingsApi.md +5 -13
  55. package/docs/YearlyTurnoverResponse.md +26 -0
  56. package/docs/YearlyTurnoverResponseMonthlyBreakdownInner.md +24 -0
  57. package/index.ts +1 -1
  58. package/package.json +1 -1
package/dist/esm/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Pickle Ball API
5
5
  * API for managing pickle ball games and players
6
6
  *
7
- * The version of the OpenAPI document: 1.0.17
7
+ * The version of the OpenAPI document: 1.0.19
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -26,6 +26,10 @@ import globalAxios from 'axios';
26
26
  import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
27
27
  // @ts-ignore
28
28
  import { BASE_PATH, BaseAPI, operationServerMap } from './base';
29
+ export const BookingPaymentStatusResponsePaymentStatusInnerPaymentMethodEnum = {
30
+ Stripe: 'stripe',
31
+ Onsite: 'onsite'
32
+ };
29
33
  /**
30
34
  *
31
35
  * @export
@@ -63,9 +67,25 @@ export const CreatePriceRequestIntervalEnum = {
63
67
  Month: 'month',
64
68
  Year: 'year'
65
69
  };
70
+ export const InvoicesResponseInvoicesInnerStatusEnum = {
71
+ Pending: 'pending',
72
+ Paid: 'paid',
73
+ Failed: 'failed',
74
+ Authorized: 'authorized',
75
+ Canceled: 'canceled',
76
+ Expired: 'expired'
77
+ };
66
78
  export const ManagerCancelBookingResponseBookingStatusEnum = {
67
79
  Cancelled: 'cancelled'
68
80
  };
81
+ export const NoShowFeeResponseCaptureResultsInnerTypeEnum = {
82
+ CreatorPayment: 'creator_payment',
83
+ PlayerPayment: 'player_payment'
84
+ };
85
+ export const NoShowFeeResponseCaptureResultsInnerStatusEnum = {
86
+ Captured: 'captured',
87
+ Failed: 'failed'
88
+ };
69
89
  /**
70
90
  * Méthode de paiement
71
91
  * @export
@@ -109,10 +129,531 @@ export const AdminClubSlotsApiAxiosParamCreator = function (configuration) {
109
129
  * @param {*} [options] Override http request option.
110
130
  * @throws {RequiredError}
111
131
  */
112
- generateSlotsForNextThreeWeeks: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
132
+ generateSlotsForNextThreeWeeks: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
133
+ // verify required parameter 'id' is not null or undefined
134
+ assertParamExists('generateSlotsForNextThreeWeeks', 'id', id);
135
+ const localVarPath = `/api/clubs/{id}/generate-slots`
136
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
137
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
138
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
139
+ let baseOptions;
140
+ if (configuration) {
141
+ baseOptions = configuration.baseOptions;
142
+ }
143
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
144
+ const localVarHeaderParameter = {};
145
+ const localVarQueryParameter = {};
146
+ // authentication bearerAuth required
147
+ // http bearer authentication required
148
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
149
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
150
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
151
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
152
+ return {
153
+ url: toPathString(localVarUrlObj),
154
+ options: localVarRequestOptions,
155
+ };
156
+ }),
157
+ };
158
+ };
159
+ /**
160
+ * AdminClubSlotsApi - functional programming interface
161
+ * @export
162
+ */
163
+ export const AdminClubSlotsApiFp = function (configuration) {
164
+ const localVarAxiosParamCreator = AdminClubSlotsApiAxiosParamCreator(configuration);
165
+ return {
166
+ /**
167
+ *
168
+ * @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
169
+ * @param {string} id ID du club
170
+ * @param {*} [options] Override http request option.
171
+ * @throws {RequiredError}
172
+ */
173
+ generateSlotsForNextThreeWeeks(id, options) {
174
+ return __awaiter(this, void 0, void 0, function* () {
175
+ var _a, _b, _c;
176
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.generateSlotsForNextThreeWeeks(id, options);
177
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
178
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClubSlotsApi.generateSlotsForNextThreeWeeks']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
179
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
180
+ });
181
+ },
182
+ };
183
+ };
184
+ /**
185
+ * AdminClubSlotsApi - factory interface
186
+ * @export
187
+ */
188
+ export const AdminClubSlotsApiFactory = function (configuration, basePath, axios) {
189
+ const localVarFp = AdminClubSlotsApiFp(configuration);
190
+ return {
191
+ /**
192
+ *
193
+ * @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
194
+ * @param {AdminClubSlotsApiGenerateSlotsForNextThreeWeeksRequest} requestParameters Request parameters.
195
+ * @param {*} [options] Override http request option.
196
+ * @throws {RequiredError}
197
+ */
198
+ generateSlotsForNextThreeWeeks(requestParameters, options) {
199
+ return localVarFp.generateSlotsForNextThreeWeeks(requestParameters.id, options).then((request) => request(axios, basePath));
200
+ },
201
+ };
202
+ };
203
+ /**
204
+ * AdminClubSlotsApi - object-oriented interface
205
+ * @export
206
+ * @class AdminClubSlotsApi
207
+ * @extends {BaseAPI}
208
+ */
209
+ export class AdminClubSlotsApi extends BaseAPI {
210
+ /**
211
+ *
212
+ * @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
213
+ * @param {AdminClubSlotsApiGenerateSlotsForNextThreeWeeksRequest} requestParameters Request parameters.
214
+ * @param {*} [options] Override http request option.
215
+ * @throws {RequiredError}
216
+ * @memberof AdminClubSlotsApi
217
+ */
218
+ generateSlotsForNextThreeWeeks(requestParameters, options) {
219
+ return AdminClubSlotsApiFp(this.configuration).generateSlotsForNextThreeWeeks(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
220
+ }
221
+ }
222
+ /**
223
+ * AdminClubsApi - axios parameter creator
224
+ * @export
225
+ */
226
+ export const AdminClubsApiAxiosParamCreator = function (configuration) {
227
+ return {
228
+ /**
229
+ *
230
+ * @summary Créer un nouveau club (Admin uniquement)
231
+ * @param {CreateClubRequest} createClubRequest
232
+ * @param {*} [options] Override http request option.
233
+ * @throws {RequiredError}
234
+ */
235
+ createClub: (createClubRequest_1, ...args_1) => __awaiter(this, [createClubRequest_1, ...args_1], void 0, function* (createClubRequest, options = {}) {
236
+ // verify required parameter 'createClubRequest' is not null or undefined
237
+ assertParamExists('createClub', 'createClubRequest', createClubRequest);
238
+ const localVarPath = `/api/clubs`;
239
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
240
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
241
+ let baseOptions;
242
+ if (configuration) {
243
+ baseOptions = configuration.baseOptions;
244
+ }
245
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
246
+ const localVarHeaderParameter = {};
247
+ const localVarQueryParameter = {};
248
+ // authentication bearerAuth required
249
+ // http bearer authentication required
250
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
251
+ localVarHeaderParameter['Content-Type'] = 'application/json';
252
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
253
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
254
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
255
+ localVarRequestOptions.data = serializeDataIfNeeded(createClubRequest, localVarRequestOptions, configuration);
256
+ return {
257
+ url: toPathString(localVarUrlObj),
258
+ options: localVarRequestOptions,
259
+ };
260
+ }),
261
+ /**
262
+ *
263
+ * @summary Récupérer tous les clubs (Admin uniquement)
264
+ * @param {*} [options] Override http request option.
265
+ * @throws {RequiredError}
266
+ */
267
+ getAllClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
268
+ const localVarPath = `/api/clubs`;
269
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
270
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
271
+ let baseOptions;
272
+ if (configuration) {
273
+ baseOptions = configuration.baseOptions;
274
+ }
275
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
276
+ const localVarHeaderParameter = {};
277
+ const localVarQueryParameter = {};
278
+ // authentication bearerAuth required
279
+ // http bearer authentication required
280
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
281
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
282
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
283
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
284
+ return {
285
+ url: toPathString(localVarUrlObj),
286
+ options: localVarRequestOptions,
287
+ };
288
+ }),
289
+ };
290
+ };
291
+ /**
292
+ * AdminClubsApi - functional programming interface
293
+ * @export
294
+ */
295
+ export const AdminClubsApiFp = function (configuration) {
296
+ const localVarAxiosParamCreator = AdminClubsApiAxiosParamCreator(configuration);
297
+ return {
298
+ /**
299
+ *
300
+ * @summary Créer un nouveau club (Admin uniquement)
301
+ * @param {CreateClubRequest} createClubRequest
302
+ * @param {*} [options] Override http request option.
303
+ * @throws {RequiredError}
304
+ */
305
+ createClub(createClubRequest, options) {
306
+ return __awaiter(this, void 0, void 0, function* () {
307
+ var _a, _b, _c;
308
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createClub(createClubRequest, options);
309
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
310
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClubsApi.createClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
311
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
312
+ });
313
+ },
314
+ /**
315
+ *
316
+ * @summary Récupérer tous les clubs (Admin uniquement)
317
+ * @param {*} [options] Override http request option.
318
+ * @throws {RequiredError}
319
+ */
320
+ getAllClubs(options) {
321
+ return __awaiter(this, void 0, void 0, function* () {
322
+ var _a, _b, _c;
323
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllClubs(options);
324
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
325
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClubsApi.getAllClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
326
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
327
+ });
328
+ },
329
+ };
330
+ };
331
+ /**
332
+ * AdminClubsApi - factory interface
333
+ * @export
334
+ */
335
+ export const AdminClubsApiFactory = function (configuration, basePath, axios) {
336
+ const localVarFp = AdminClubsApiFp(configuration);
337
+ return {
338
+ /**
339
+ *
340
+ * @summary Créer un nouveau club (Admin uniquement)
341
+ * @param {AdminClubsApiCreateClubRequest} requestParameters Request parameters.
342
+ * @param {*} [options] Override http request option.
343
+ * @throws {RequiredError}
344
+ */
345
+ createClub(requestParameters, options) {
346
+ return localVarFp.createClub(requestParameters.createClubRequest, options).then((request) => request(axios, basePath));
347
+ },
348
+ /**
349
+ *
350
+ * @summary Récupérer tous les clubs (Admin uniquement)
351
+ * @param {*} [options] Override http request option.
352
+ * @throws {RequiredError}
353
+ */
354
+ getAllClubs(options) {
355
+ return localVarFp.getAllClubs(options).then((request) => request(axios, basePath));
356
+ },
357
+ };
358
+ };
359
+ /**
360
+ * AdminClubsApi - object-oriented interface
361
+ * @export
362
+ * @class AdminClubsApi
363
+ * @extends {BaseAPI}
364
+ */
365
+ export class AdminClubsApi extends BaseAPI {
366
+ /**
367
+ *
368
+ * @summary Créer un nouveau club (Admin uniquement)
369
+ * @param {AdminClubsApiCreateClubRequest} requestParameters Request parameters.
370
+ * @param {*} [options] Override http request option.
371
+ * @throws {RequiredError}
372
+ * @memberof AdminClubsApi
373
+ */
374
+ createClub(requestParameters, options) {
375
+ return AdminClubsApiFp(this.configuration).createClub(requestParameters.createClubRequest, options).then((request) => request(this.axios, this.basePath));
376
+ }
377
+ /**
378
+ *
379
+ * @summary Récupérer tous les clubs (Admin uniquement)
380
+ * @param {*} [options] Override http request option.
381
+ * @throws {RequiredError}
382
+ * @memberof AdminClubsApi
383
+ */
384
+ getAllClubs(options) {
385
+ return AdminClubsApiFp(this.configuration).getAllClubs(options).then((request) => request(this.axios, this.basePath));
386
+ }
387
+ }
388
+ /**
389
+ * BookingsApi - axios parameter creator
390
+ * @export
391
+ */
392
+ export const BookingsApiAxiosParamCreator = function (configuration) {
393
+ return {
394
+ /**
395
+ * Permet au créateur d\'une réservation de l\'annuler. Rouvre automatiquement le créneau et envoie des emails de notification à tous les participants.
396
+ * @summary Annuler une réservation (créateur uniquement)
397
+ * @param {string} bookingId ID MongoDB de la réservation à annuler
398
+ * @param {CancelBookingRequest} cancelBookingRequest
399
+ * @param {*} [options] Override http request option.
400
+ * @throws {RequiredError}
401
+ */
402
+ cancelBooking: (bookingId_1, cancelBookingRequest_1, ...args_1) => __awaiter(this, [bookingId_1, cancelBookingRequest_1, ...args_1], void 0, function* (bookingId, cancelBookingRequest, options = {}) {
403
+ // verify required parameter 'bookingId' is not null or undefined
404
+ assertParamExists('cancelBooking', 'bookingId', bookingId);
405
+ // verify required parameter 'cancelBookingRequest' is not null or undefined
406
+ assertParamExists('cancelBooking', 'cancelBookingRequest', cancelBookingRequest);
407
+ const localVarPath = `/api/bookings/{bookingId}/cancel`
408
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
409
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
410
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
411
+ let baseOptions;
412
+ if (configuration) {
413
+ baseOptions = configuration.baseOptions;
414
+ }
415
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
416
+ const localVarHeaderParameter = {};
417
+ const localVarQueryParameter = {};
418
+ // authentication bearerAuth required
419
+ // http bearer authentication required
420
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
421
+ localVarHeaderParameter['Content-Type'] = 'application/json';
422
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
423
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
424
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
425
+ localVarRequestOptions.data = serializeDataIfNeeded(cancelBookingRequest, localVarRequestOptions, configuration);
426
+ return {
427
+ url: toPathString(localVarUrlObj),
428
+ options: localVarRequestOptions,
429
+ };
430
+ }),
431
+ };
432
+ };
433
+ /**
434
+ * BookingsApi - functional programming interface
435
+ * @export
436
+ */
437
+ export const BookingsApiFp = function (configuration) {
438
+ const localVarAxiosParamCreator = BookingsApiAxiosParamCreator(configuration);
439
+ return {
440
+ /**
441
+ * Permet au créateur d\'une réservation de l\'annuler. Rouvre automatiquement le créneau et envoie des emails de notification à tous les participants.
442
+ * @summary Annuler une réservation (créateur uniquement)
443
+ * @param {string} bookingId ID MongoDB de la réservation à annuler
444
+ * @param {CancelBookingRequest} cancelBookingRequest
445
+ * @param {*} [options] Override http request option.
446
+ * @throws {RequiredError}
447
+ */
448
+ cancelBooking(bookingId, cancelBookingRequest, options) {
449
+ return __awaiter(this, void 0, void 0, function* () {
450
+ var _a, _b, _c;
451
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelBooking(bookingId, cancelBookingRequest, options);
452
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
453
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.cancelBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
454
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
455
+ });
456
+ },
457
+ };
458
+ };
459
+ /**
460
+ * BookingsApi - factory interface
461
+ * @export
462
+ */
463
+ export const BookingsApiFactory = function (configuration, basePath, axios) {
464
+ const localVarFp = BookingsApiFp(configuration);
465
+ return {
466
+ /**
467
+ * Permet au créateur d\'une réservation de l\'annuler. Rouvre automatiquement le créneau et envoie des emails de notification à tous les participants.
468
+ * @summary Annuler une réservation (créateur uniquement)
469
+ * @param {BookingsApiCancelBookingRequest} requestParameters Request parameters.
470
+ * @param {*} [options] Override http request option.
471
+ * @throws {RequiredError}
472
+ */
473
+ cancelBooking(requestParameters, options) {
474
+ return localVarFp.cancelBooking(requestParameters.bookingId, requestParameters.cancelBookingRequest, options).then((request) => request(axios, basePath));
475
+ },
476
+ };
477
+ };
478
+ /**
479
+ * BookingsApi - object-oriented interface
480
+ * @export
481
+ * @class BookingsApi
482
+ * @extends {BaseAPI}
483
+ */
484
+ export class BookingsApi extends BaseAPI {
485
+ /**
486
+ * Permet au créateur d\'une réservation de l\'annuler. Rouvre automatiquement le créneau et envoie des emails de notification à tous les participants.
487
+ * @summary Annuler une réservation (créateur uniquement)
488
+ * @param {BookingsApiCancelBookingRequest} requestParameters Request parameters.
489
+ * @param {*} [options] Override http request option.
490
+ * @throws {RequiredError}
491
+ * @memberof BookingsApi
492
+ */
493
+ cancelBooking(requestParameters, options) {
494
+ return BookingsApiFp(this.configuration).cancelBooking(requestParameters.bookingId, requestParameters.cancelBookingRequest, options).then((request) => request(this.axios, this.basePath));
495
+ }
496
+ }
497
+ /**
498
+ * ClubAnalyticsApi - axios parameter creator
499
+ * @export
500
+ */
501
+ export const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
502
+ return {
503
+ /**
504
+ *
505
+ * @summary Chiffre d\'affaires quotidien
506
+ * @param {string} id ID du club
507
+ * @param {string} date Date (format YYYY-MM-DD)
508
+ * @param {*} [options] Override http request option.
509
+ * @throws {RequiredError}
510
+ */
511
+ getDailyTurnOver: (id_1, date_1, ...args_1) => __awaiter(this, [id_1, date_1, ...args_1], void 0, function* (id, date, options = {}) {
512
+ // verify required parameter 'id' is not null or undefined
513
+ assertParamExists('getDailyTurnOver', 'id', id);
514
+ // verify required parameter 'date' is not null or undefined
515
+ assertParamExists('getDailyTurnOver', 'date', date);
516
+ const localVarPath = `/api/clubs/{id}/turnover/daily`
517
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
518
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
519
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
520
+ let baseOptions;
521
+ if (configuration) {
522
+ baseOptions = configuration.baseOptions;
523
+ }
524
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
525
+ const localVarHeaderParameter = {};
526
+ const localVarQueryParameter = {};
527
+ // authentication bearerAuth required
528
+ // http bearer authentication required
529
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
530
+ if (date !== undefined) {
531
+ localVarQueryParameter['date'] = (date instanceof Date) ?
532
+ date.toISOString().substring(0, 10) :
533
+ date;
534
+ }
535
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
536
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
537
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
538
+ return {
539
+ url: toPathString(localVarUrlObj),
540
+ options: localVarRequestOptions,
541
+ };
542
+ }),
543
+ /**
544
+ *
545
+ * @summary Récupérer les factures du club
546
+ * @param {string} id ID du club
547
+ * @param {number} [page] Numéro de page
548
+ * @param {number} [limit] Nombre d\'éléments par page
549
+ * @param {GetInvoicesStatusEnum} [status] Filtrer par statut
550
+ * @param {string} [startDate] Date de début (ISO format)
551
+ * @param {string} [endDate] Date de fin (ISO format)
552
+ * @param {*} [options] Override http request option.
553
+ * @throws {RequiredError}
554
+ */
555
+ getInvoices: (id_1, page_1, limit_1, status_1, startDate_1, endDate_1, ...args_1) => __awaiter(this, [id_1, page_1, limit_1, status_1, startDate_1, endDate_1, ...args_1], void 0, function* (id, page, limit, status, startDate, endDate, options = {}) {
556
+ // verify required parameter 'id' is not null or undefined
557
+ assertParamExists('getInvoices', 'id', id);
558
+ const localVarPath = `/api/clubs/{id}/invoices`
559
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
560
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
561
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
562
+ let baseOptions;
563
+ if (configuration) {
564
+ baseOptions = configuration.baseOptions;
565
+ }
566
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
567
+ const localVarHeaderParameter = {};
568
+ const localVarQueryParameter = {};
569
+ // authentication bearerAuth required
570
+ // http bearer authentication required
571
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
572
+ if (page !== undefined) {
573
+ localVarQueryParameter['page'] = page;
574
+ }
575
+ if (limit !== undefined) {
576
+ localVarQueryParameter['limit'] = limit;
577
+ }
578
+ if (status !== undefined) {
579
+ localVarQueryParameter['status'] = status;
580
+ }
581
+ if (startDate !== undefined) {
582
+ localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
583
+ startDate.toISOString() :
584
+ startDate;
585
+ }
586
+ if (endDate !== undefined) {
587
+ localVarQueryParameter['endDate'] = (endDate instanceof Date) ?
588
+ endDate.toISOString() :
589
+ endDate;
590
+ }
591
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
592
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
593
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
594
+ return {
595
+ url: toPathString(localVarUrlObj),
596
+ options: localVarRequestOptions,
597
+ };
598
+ }),
599
+ /**
600
+ *
601
+ * @summary Chiffre d\'affaires mensuel
602
+ * @param {string} id ID du club
603
+ * @param {number} year Année
604
+ * @param {number} month Mois (1-12)
605
+ * @param {*} [options] Override http request option.
606
+ * @throws {RequiredError}
607
+ */
608
+ getMonthlyTurnOver: (id_1, year_1, month_1, ...args_1) => __awaiter(this, [id_1, year_1, month_1, ...args_1], void 0, function* (id, year, month, options = {}) {
609
+ // verify required parameter 'id' is not null or undefined
610
+ assertParamExists('getMonthlyTurnOver', 'id', id);
611
+ // verify required parameter 'year' is not null or undefined
612
+ assertParamExists('getMonthlyTurnOver', 'year', year);
613
+ // verify required parameter 'month' is not null or undefined
614
+ assertParamExists('getMonthlyTurnOver', 'month', month);
615
+ const localVarPath = `/api/clubs/{id}/turnover/monthly`
616
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
617
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
618
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
619
+ let baseOptions;
620
+ if (configuration) {
621
+ baseOptions = configuration.baseOptions;
622
+ }
623
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
624
+ const localVarHeaderParameter = {};
625
+ const localVarQueryParameter = {};
626
+ // authentication bearerAuth required
627
+ // http bearer authentication required
628
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
629
+ if (year !== undefined) {
630
+ localVarQueryParameter['year'] = year;
631
+ }
632
+ if (month !== undefined) {
633
+ localVarQueryParameter['month'] = month;
634
+ }
635
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
636
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
637
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
638
+ return {
639
+ url: toPathString(localVarUrlObj),
640
+ options: localVarRequestOptions,
641
+ };
642
+ }),
643
+ /**
644
+ *
645
+ * @summary Chiffre d\'affaires annuel
646
+ * @param {string} id ID du club
647
+ * @param {number} year Année
648
+ * @param {*} [options] Override http request option.
649
+ * @throws {RequiredError}
650
+ */
651
+ getYearlyTurnOver: (id_1, year_1, ...args_1) => __awaiter(this, [id_1, year_1, ...args_1], void 0, function* (id, year, options = {}) {
113
652
  // verify required parameter 'id' is not null or undefined
114
- assertParamExists('generateSlotsForNextThreeWeeks', 'id', id);
115
- const localVarPath = `/api/clubs/{id}/generate-slots`
653
+ assertParamExists('getYearlyTurnOver', 'id', id);
654
+ // verify required parameter 'year' is not null or undefined
655
+ assertParamExists('getYearlyTurnOver', 'year', year);
656
+ const localVarPath = `/api/clubs/{id}/turnover/yearly`
116
657
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
117
658
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
118
659
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -120,12 +661,15 @@ export const AdminClubSlotsApiAxiosParamCreator = function (configuration) {
120
661
  if (configuration) {
121
662
  baseOptions = configuration.baseOptions;
122
663
  }
123
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
664
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
124
665
  const localVarHeaderParameter = {};
125
666
  const localVarQueryParameter = {};
126
667
  // authentication bearerAuth required
127
668
  // http bearer authentication required
128
669
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
670
+ if (year !== undefined) {
671
+ localVarQueryParameter['year'] = year;
672
+ }
129
673
  setSearchParams(localVarUrlObj, localVarQueryParameter);
130
674
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
131
675
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -137,85 +681,252 @@ export const AdminClubSlotsApiAxiosParamCreator = function (configuration) {
137
681
  };
138
682
  };
139
683
  /**
140
- * AdminClubSlotsApi - functional programming interface
684
+ * ClubAnalyticsApi - functional programming interface
141
685
  * @export
142
686
  */
143
- export const AdminClubSlotsApiFp = function (configuration) {
144
- const localVarAxiosParamCreator = AdminClubSlotsApiAxiosParamCreator(configuration);
687
+ export const ClubAnalyticsApiFp = function (configuration) {
688
+ const localVarAxiosParamCreator = ClubAnalyticsApiAxiosParamCreator(configuration);
145
689
  return {
146
690
  /**
147
691
  *
148
- * @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
692
+ * @summary Chiffre d\'affaires quotidien
149
693
  * @param {string} id ID du club
694
+ * @param {string} date Date (format YYYY-MM-DD)
150
695
  * @param {*} [options] Override http request option.
151
696
  * @throws {RequiredError}
152
697
  */
153
- generateSlotsForNextThreeWeeks(id, options) {
698
+ getDailyTurnOver(id, date, options) {
154
699
  return __awaiter(this, void 0, void 0, function* () {
155
700
  var _a, _b, _c;
156
- const localVarAxiosArgs = yield localVarAxiosParamCreator.generateSlotsForNextThreeWeeks(id, options);
701
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDailyTurnOver(id, date, options);
157
702
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
158
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClubSlotsApi.generateSlotsForNextThreeWeeks']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
703
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsApi.getDailyTurnOver']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
704
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
705
+ });
706
+ },
707
+ /**
708
+ *
709
+ * @summary Récupérer les factures du club
710
+ * @param {string} id ID du club
711
+ * @param {number} [page] Numéro de page
712
+ * @param {number} [limit] Nombre d\'éléments par page
713
+ * @param {GetInvoicesStatusEnum} [status] Filtrer par statut
714
+ * @param {string} [startDate] Date de début (ISO format)
715
+ * @param {string} [endDate] Date de fin (ISO format)
716
+ * @param {*} [options] Override http request option.
717
+ * @throws {RequiredError}
718
+ */
719
+ getInvoices(id, page, limit, status, startDate, endDate, options) {
720
+ return __awaiter(this, void 0, void 0, function* () {
721
+ var _a, _b, _c;
722
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvoices(id, page, limit, status, startDate, endDate, options);
723
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
724
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsApi.getInvoices']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
725
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
726
+ });
727
+ },
728
+ /**
729
+ *
730
+ * @summary Chiffre d\'affaires mensuel
731
+ * @param {string} id ID du club
732
+ * @param {number} year Année
733
+ * @param {number} month Mois (1-12)
734
+ * @param {*} [options] Override http request option.
735
+ * @throws {RequiredError}
736
+ */
737
+ getMonthlyTurnOver(id, year, month, options) {
738
+ return __awaiter(this, void 0, void 0, function* () {
739
+ var _a, _b, _c;
740
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getMonthlyTurnOver(id, year, month, options);
741
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
742
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsApi.getMonthlyTurnOver']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
743
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
744
+ });
745
+ },
746
+ /**
747
+ *
748
+ * @summary Chiffre d\'affaires annuel
749
+ * @param {string} id ID du club
750
+ * @param {number} year Année
751
+ * @param {*} [options] Override http request option.
752
+ * @throws {RequiredError}
753
+ */
754
+ getYearlyTurnOver(id, year, options) {
755
+ return __awaiter(this, void 0, void 0, function* () {
756
+ var _a, _b, _c;
757
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getYearlyTurnOver(id, year, options);
758
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
759
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsApi.getYearlyTurnOver']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
159
760
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
160
761
  });
161
762
  },
162
763
  };
163
764
  };
164
765
  /**
165
- * AdminClubSlotsApi - factory interface
766
+ * ClubAnalyticsApi - factory interface
166
767
  * @export
167
768
  */
168
- export const AdminClubSlotsApiFactory = function (configuration, basePath, axios) {
169
- const localVarFp = AdminClubSlotsApiFp(configuration);
769
+ export const ClubAnalyticsApiFactory = function (configuration, basePath, axios) {
770
+ const localVarFp = ClubAnalyticsApiFp(configuration);
170
771
  return {
171
772
  /**
172
773
  *
173
- * @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
174
- * @param {AdminClubSlotsApiGenerateSlotsForNextThreeWeeksRequest} requestParameters Request parameters.
774
+ * @summary Chiffre d\'affaires quotidien
775
+ * @param {ClubAnalyticsApiGetDailyTurnOverRequest} requestParameters Request parameters.
175
776
  * @param {*} [options] Override http request option.
176
777
  * @throws {RequiredError}
177
778
  */
178
- generateSlotsForNextThreeWeeks(requestParameters, options) {
179
- return localVarFp.generateSlotsForNextThreeWeeks(requestParameters.id, options).then((request) => request(axios, basePath));
779
+ getDailyTurnOver(requestParameters, options) {
780
+ return localVarFp.getDailyTurnOver(requestParameters.id, requestParameters.date, options).then((request) => request(axios, basePath));
781
+ },
782
+ /**
783
+ *
784
+ * @summary Récupérer les factures du club
785
+ * @param {ClubAnalyticsApiGetInvoicesRequest} requestParameters Request parameters.
786
+ * @param {*} [options] Override http request option.
787
+ * @throws {RequiredError}
788
+ */
789
+ getInvoices(requestParameters, options) {
790
+ return localVarFp.getInvoices(requestParameters.id, requestParameters.page, requestParameters.limit, requestParameters.status, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
791
+ },
792
+ /**
793
+ *
794
+ * @summary Chiffre d\'affaires mensuel
795
+ * @param {ClubAnalyticsApiGetMonthlyTurnOverRequest} requestParameters Request parameters.
796
+ * @param {*} [options] Override http request option.
797
+ * @throws {RequiredError}
798
+ */
799
+ getMonthlyTurnOver(requestParameters, options) {
800
+ return localVarFp.getMonthlyTurnOver(requestParameters.id, requestParameters.year, requestParameters.month, options).then((request) => request(axios, basePath));
801
+ },
802
+ /**
803
+ *
804
+ * @summary Chiffre d\'affaires annuel
805
+ * @param {ClubAnalyticsApiGetYearlyTurnOverRequest} requestParameters Request parameters.
806
+ * @param {*} [options] Override http request option.
807
+ * @throws {RequiredError}
808
+ */
809
+ getYearlyTurnOver(requestParameters, options) {
810
+ return localVarFp.getYearlyTurnOver(requestParameters.id, requestParameters.year, options).then((request) => request(axios, basePath));
180
811
  },
181
812
  };
182
813
  };
183
814
  /**
184
- * AdminClubSlotsApi - object-oriented interface
815
+ * ClubAnalyticsApi - object-oriented interface
185
816
  * @export
186
- * @class AdminClubSlotsApi
817
+ * @class ClubAnalyticsApi
187
818
  * @extends {BaseAPI}
188
819
  */
189
- export class AdminClubSlotsApi extends BaseAPI {
820
+ export class ClubAnalyticsApi extends BaseAPI {
190
821
  /**
191
822
  *
192
- * @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
193
- * @param {AdminClubSlotsApiGenerateSlotsForNextThreeWeeksRequest} requestParameters Request parameters.
823
+ * @summary Chiffre d\'affaires quotidien
824
+ * @param {ClubAnalyticsApiGetDailyTurnOverRequest} requestParameters Request parameters.
194
825
  * @param {*} [options] Override http request option.
195
826
  * @throws {RequiredError}
196
- * @memberof AdminClubSlotsApi
827
+ * @memberof ClubAnalyticsApi
197
828
  */
198
- generateSlotsForNextThreeWeeks(requestParameters, options) {
199
- return AdminClubSlotsApiFp(this.configuration).generateSlotsForNextThreeWeeks(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
829
+ getDailyTurnOver(requestParameters, options) {
830
+ return ClubAnalyticsApiFp(this.configuration).getDailyTurnOver(requestParameters.id, requestParameters.date, options).then((request) => request(this.axios, this.basePath));
831
+ }
832
+ /**
833
+ *
834
+ * @summary Récupérer les factures du club
835
+ * @param {ClubAnalyticsApiGetInvoicesRequest} requestParameters Request parameters.
836
+ * @param {*} [options] Override http request option.
837
+ * @throws {RequiredError}
838
+ * @memberof ClubAnalyticsApi
839
+ */
840
+ getInvoices(requestParameters, options) {
841
+ return ClubAnalyticsApiFp(this.configuration).getInvoices(requestParameters.id, requestParameters.page, requestParameters.limit, requestParameters.status, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
842
+ }
843
+ /**
844
+ *
845
+ * @summary Chiffre d\'affaires mensuel
846
+ * @param {ClubAnalyticsApiGetMonthlyTurnOverRequest} requestParameters Request parameters.
847
+ * @param {*} [options] Override http request option.
848
+ * @throws {RequiredError}
849
+ * @memberof ClubAnalyticsApi
850
+ */
851
+ getMonthlyTurnOver(requestParameters, options) {
852
+ return ClubAnalyticsApiFp(this.configuration).getMonthlyTurnOver(requestParameters.id, requestParameters.year, requestParameters.month, options).then((request) => request(this.axios, this.basePath));
853
+ }
854
+ /**
855
+ *
856
+ * @summary Chiffre d\'affaires annuel
857
+ * @param {ClubAnalyticsApiGetYearlyTurnOverRequest} requestParameters Request parameters.
858
+ * @param {*} [options] Override http request option.
859
+ * @throws {RequiredError}
860
+ * @memberof ClubAnalyticsApi
861
+ */
862
+ getYearlyTurnOver(requestParameters, options) {
863
+ return ClubAnalyticsApiFp(this.configuration).getYearlyTurnOver(requestParameters.id, requestParameters.year, options).then((request) => request(this.axios, this.basePath));
200
864
  }
201
865
  }
202
866
  /**
203
- * AdminClubsApi - axios parameter creator
204
867
  * @export
205
868
  */
206
- export const AdminClubsApiAxiosParamCreator = function (configuration) {
869
+ export const GetInvoicesStatusEnum = {
870
+ Pending: 'pending',
871
+ Paid: 'paid',
872
+ Failed: 'failed',
873
+ Authorized: 'authorized',
874
+ Canceled: 'canceled',
875
+ Expired: 'expired'
876
+ };
877
+ /**
878
+ * ManagerBookingsApi - axios parameter creator
879
+ * @export
880
+ */
881
+ export const ManagerBookingsApiAxiosParamCreator = function (configuration) {
207
882
  return {
208
883
  /**
209
- *
210
- * @summary Créer un nouveau club (Admin uniquement)
211
- * @param {CreateClubRequest} createClubRequest
884
+ * Applique les frais de no-show à une réservation. Capture automatiquement les paiements autorisés et charge le créateur pour le montant manquant.
885
+ * @summary Appliquer les frais de no-show
886
+ * @param {string} bookingId ID MongoDB de la réservation
212
887
  * @param {*} [options] Override http request option.
213
888
  * @throws {RequiredError}
214
889
  */
215
- createClub: (createClubRequest_1, ...args_1) => __awaiter(this, [createClubRequest_1, ...args_1], void 0, function* (createClubRequest, options = {}) {
216
- // verify required parameter 'createClubRequest' is not null or undefined
217
- assertParamExists('createClub', 'createClubRequest', createClubRequest);
218
- const localVarPath = `/api/clubs`;
890
+ applyNoShowFee: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
891
+ // verify required parameter 'bookingId' is not null or undefined
892
+ assertParamExists('applyNoShowFee', 'bookingId', bookingId);
893
+ const localVarPath = `/api/bookings/{bookingId}/apply-noshow-fee`
894
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
895
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
896
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
897
+ let baseOptions;
898
+ if (configuration) {
899
+ baseOptions = configuration.baseOptions;
900
+ }
901
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
902
+ const localVarHeaderParameter = {};
903
+ const localVarQueryParameter = {};
904
+ // authentication bearerAuth required
905
+ // http bearer authentication required
906
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
907
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
908
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
909
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
910
+ return {
911
+ url: toPathString(localVarUrlObj),
912
+ options: localVarRequestOptions,
913
+ };
914
+ }),
915
+ /**
916
+ * Enregistre l\'arrivée et le paiement des joueurs pour une réservation avec paiement sur place. Met à jour le statut des factures.
917
+ * @summary Enregistrer l\'arrivée des joueurs
918
+ * @param {string} bookingId ID MongoDB de la réservation
919
+ * @param {CheckInPlayersRequest} checkInPlayersRequest
920
+ * @param {*} [options] Override http request option.
921
+ * @throws {RequiredError}
922
+ */
923
+ checkInPlayers: (bookingId_1, checkInPlayersRequest_1, ...args_1) => __awaiter(this, [bookingId_1, checkInPlayersRequest_1, ...args_1], void 0, function* (bookingId, checkInPlayersRequest, options = {}) {
924
+ // verify required parameter 'bookingId' is not null or undefined
925
+ assertParamExists('checkInPlayers', 'bookingId', bookingId);
926
+ // verify required parameter 'checkInPlayersRequest' is not null or undefined
927
+ assertParamExists('checkInPlayers', 'checkInPlayersRequest', checkInPlayersRequest);
928
+ const localVarPath = `/api/bookings/{bookingId}/checkin-players`
929
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
219
930
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
220
931
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
221
932
  let baseOptions;
@@ -232,20 +943,24 @@ export const AdminClubsApiAxiosParamCreator = function (configuration) {
232
943
  setSearchParams(localVarUrlObj, localVarQueryParameter);
233
944
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
234
945
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
235
- localVarRequestOptions.data = serializeDataIfNeeded(createClubRequest, localVarRequestOptions, configuration);
946
+ localVarRequestOptions.data = serializeDataIfNeeded(checkInPlayersRequest, localVarRequestOptions, configuration);
236
947
  return {
237
948
  url: toPathString(localVarUrlObj),
238
949
  options: localVarRequestOptions,
239
950
  };
240
951
  }),
241
952
  /**
242
- *
243
- * @summary Récupérer tous les clubs (Admin uniquement)
953
+ * Récupère le statut détaillé des paiements pour tous les joueurs d\'une réservation. Utile pour l\'interface de check-in.
954
+ * @summary Obtenir le statut des paiements d\'une réservation
955
+ * @param {string} bookingId ID MongoDB de la réservation
244
956
  * @param {*} [options] Override http request option.
245
957
  * @throws {RequiredError}
246
958
  */
247
- getAllClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
248
- const localVarPath = `/api/clubs`;
959
+ getBookingPaymentStatus: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
960
+ // verify required parameter 'bookingId' is not null or undefined
961
+ assertParamExists('getBookingPaymentStatus', 'bookingId', bookingId);
962
+ const localVarPath = `/api/bookings/{bookingId}/payment-status`
963
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
249
964
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
250
965
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
251
966
  let baseOptions;
@@ -266,103 +981,219 @@ export const AdminClubsApiAxiosParamCreator = function (configuration) {
266
981
  options: localVarRequestOptions,
267
982
  };
268
983
  }),
984
+ /**
985
+ * Permet à un gestionnaire d\'annuler n\'importe quelle réservation avec une raison obligatoire. Effectue un remboursement automatique si le paiement a été fait en ligne.
986
+ * @summary Annuler une réservation (gestionnaire)
987
+ * @param {string} bookingId ID MongoDB de la réservation à annuler
988
+ * @param {ManagerCancelBookingRequest} managerCancelBookingRequest
989
+ * @param {*} [options] Override http request option.
990
+ * @throws {RequiredError}
991
+ */
992
+ managerCancelBooking: (bookingId_1, managerCancelBookingRequest_1, ...args_1) => __awaiter(this, [bookingId_1, managerCancelBookingRequest_1, ...args_1], void 0, function* (bookingId, managerCancelBookingRequest, options = {}) {
993
+ // verify required parameter 'bookingId' is not null or undefined
994
+ assertParamExists('managerCancelBooking', 'bookingId', bookingId);
995
+ // verify required parameter 'managerCancelBookingRequest' is not null or undefined
996
+ assertParamExists('managerCancelBooking', 'managerCancelBookingRequest', managerCancelBookingRequest);
997
+ const localVarPath = `/api/bookings/{bookingId}/manager-cancel`
998
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
999
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1000
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1001
+ let baseOptions;
1002
+ if (configuration) {
1003
+ baseOptions = configuration.baseOptions;
1004
+ }
1005
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
1006
+ const localVarHeaderParameter = {};
1007
+ const localVarQueryParameter = {};
1008
+ // authentication bearerAuth required
1009
+ // http bearer authentication required
1010
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1011
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1012
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1013
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1014
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1015
+ localVarRequestOptions.data = serializeDataIfNeeded(managerCancelBookingRequest, localVarRequestOptions, configuration);
1016
+ return {
1017
+ url: toPathString(localVarUrlObj),
1018
+ options: localVarRequestOptions,
1019
+ };
1020
+ }),
269
1021
  };
270
1022
  };
271
1023
  /**
272
- * AdminClubsApi - functional programming interface
1024
+ * ManagerBookingsApi - functional programming interface
273
1025
  * @export
274
1026
  */
275
- export const AdminClubsApiFp = function (configuration) {
276
- const localVarAxiosParamCreator = AdminClubsApiAxiosParamCreator(configuration);
1027
+ export const ManagerBookingsApiFp = function (configuration) {
1028
+ const localVarAxiosParamCreator = ManagerBookingsApiAxiosParamCreator(configuration);
277
1029
  return {
278
1030
  /**
279
- *
280
- * @summary Créer un nouveau club (Admin uniquement)
281
- * @param {CreateClubRequest} createClubRequest
1031
+ * Applique les frais de no-show à une réservation. Capture automatiquement les paiements autorisés et charge le créateur pour le montant manquant.
1032
+ * @summary Appliquer les frais de no-show
1033
+ * @param {string} bookingId ID MongoDB de la réservation
282
1034
  * @param {*} [options] Override http request option.
283
1035
  * @throws {RequiredError}
284
1036
  */
285
- createClub(createClubRequest, options) {
1037
+ applyNoShowFee(bookingId, options) {
286
1038
  return __awaiter(this, void 0, void 0, function* () {
287
1039
  var _a, _b, _c;
288
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createClub(createClubRequest, options);
1040
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.applyNoShowFee(bookingId, options);
289
1041
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
290
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClubsApi.createClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1042
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerBookingsApi.applyNoShowFee']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
291
1043
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
292
1044
  });
293
1045
  },
294
1046
  /**
295
- *
296
- * @summary Récupérer tous les clubs (Admin uniquement)
1047
+ * Enregistre l\'arrivée et le paiement des joueurs pour une réservation avec paiement sur place. Met à jour le statut des factures.
1048
+ * @summary Enregistrer l\'arrivée des joueurs
1049
+ * @param {string} bookingId ID MongoDB de la réservation
1050
+ * @param {CheckInPlayersRequest} checkInPlayersRequest
297
1051
  * @param {*} [options] Override http request option.
298
1052
  * @throws {RequiredError}
299
1053
  */
300
- getAllClubs(options) {
1054
+ checkInPlayers(bookingId, checkInPlayersRequest, options) {
301
1055
  return __awaiter(this, void 0, void 0, function* () {
302
1056
  var _a, _b, _c;
303
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllClubs(options);
1057
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.checkInPlayers(bookingId, checkInPlayersRequest, options);
304
1058
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
305
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClubsApi.getAllClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1059
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerBookingsApi.checkInPlayers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1060
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1061
+ });
1062
+ },
1063
+ /**
1064
+ * Récupère le statut détaillé des paiements pour tous les joueurs d\'une réservation. Utile pour l\'interface de check-in.
1065
+ * @summary Obtenir le statut des paiements d\'une réservation
1066
+ * @param {string} bookingId ID MongoDB de la réservation
1067
+ * @param {*} [options] Override http request option.
1068
+ * @throws {RequiredError}
1069
+ */
1070
+ getBookingPaymentStatus(bookingId, options) {
1071
+ return __awaiter(this, void 0, void 0, function* () {
1072
+ var _a, _b, _c;
1073
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingPaymentStatus(bookingId, options);
1074
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1075
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerBookingsApi.getBookingPaymentStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1076
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1077
+ });
1078
+ },
1079
+ /**
1080
+ * Permet à un gestionnaire d\'annuler n\'importe quelle réservation avec une raison obligatoire. Effectue un remboursement automatique si le paiement a été fait en ligne.
1081
+ * @summary Annuler une réservation (gestionnaire)
1082
+ * @param {string} bookingId ID MongoDB de la réservation à annuler
1083
+ * @param {ManagerCancelBookingRequest} managerCancelBookingRequest
1084
+ * @param {*} [options] Override http request option.
1085
+ * @throws {RequiredError}
1086
+ */
1087
+ managerCancelBooking(bookingId, managerCancelBookingRequest, options) {
1088
+ return __awaiter(this, void 0, void 0, function* () {
1089
+ var _a, _b, _c;
1090
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.managerCancelBooking(bookingId, managerCancelBookingRequest, options);
1091
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1092
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerBookingsApi.managerCancelBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
306
1093
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
307
1094
  });
308
1095
  },
309
1096
  };
310
1097
  };
311
1098
  /**
312
- * AdminClubsApi - factory interface
1099
+ * ManagerBookingsApi - factory interface
313
1100
  * @export
314
1101
  */
315
- export const AdminClubsApiFactory = function (configuration, basePath, axios) {
316
- const localVarFp = AdminClubsApiFp(configuration);
1102
+ export const ManagerBookingsApiFactory = function (configuration, basePath, axios) {
1103
+ const localVarFp = ManagerBookingsApiFp(configuration);
317
1104
  return {
318
1105
  /**
319
- *
320
- * @summary Créer un nouveau club (Admin uniquement)
321
- * @param {AdminClubsApiCreateClubRequest} requestParameters Request parameters.
1106
+ * Applique les frais de no-show à une réservation. Capture automatiquement les paiements autorisés et charge le créateur pour le montant manquant.
1107
+ * @summary Appliquer les frais de no-show
1108
+ * @param {ManagerBookingsApiApplyNoShowFeeRequest} requestParameters Request parameters.
322
1109
  * @param {*} [options] Override http request option.
323
1110
  * @throws {RequiredError}
324
1111
  */
325
- createClub(requestParameters, options) {
326
- return localVarFp.createClub(requestParameters.createClubRequest, options).then((request) => request(axios, basePath));
1112
+ applyNoShowFee(requestParameters, options) {
1113
+ return localVarFp.applyNoShowFee(requestParameters.bookingId, options).then((request) => request(axios, basePath));
327
1114
  },
328
1115
  /**
329
- *
330
- * @summary Récupérer tous les clubs (Admin uniquement)
1116
+ * Enregistre l\'arrivée et le paiement des joueurs pour une réservation avec paiement sur place. Met à jour le statut des factures.
1117
+ * @summary Enregistrer l\'arrivée des joueurs
1118
+ * @param {ManagerBookingsApiCheckInPlayersRequest} requestParameters Request parameters.
331
1119
  * @param {*} [options] Override http request option.
332
1120
  * @throws {RequiredError}
333
1121
  */
334
- getAllClubs(options) {
335
- return localVarFp.getAllClubs(options).then((request) => request(axios, basePath));
1122
+ checkInPlayers(requestParameters, options) {
1123
+ return localVarFp.checkInPlayers(requestParameters.bookingId, requestParameters.checkInPlayersRequest, options).then((request) => request(axios, basePath));
1124
+ },
1125
+ /**
1126
+ * Récupère le statut détaillé des paiements pour tous les joueurs d\'une réservation. Utile pour l\'interface de check-in.
1127
+ * @summary Obtenir le statut des paiements d\'une réservation
1128
+ * @param {ManagerBookingsApiGetBookingPaymentStatusRequest} requestParameters Request parameters.
1129
+ * @param {*} [options] Override http request option.
1130
+ * @throws {RequiredError}
1131
+ */
1132
+ getBookingPaymentStatus(requestParameters, options) {
1133
+ return localVarFp.getBookingPaymentStatus(requestParameters.bookingId, options).then((request) => request(axios, basePath));
1134
+ },
1135
+ /**
1136
+ * Permet à un gestionnaire d\'annuler n\'importe quelle réservation avec une raison obligatoire. Effectue un remboursement automatique si le paiement a été fait en ligne.
1137
+ * @summary Annuler une réservation (gestionnaire)
1138
+ * @param {ManagerBookingsApiManagerCancelBookingRequest} requestParameters Request parameters.
1139
+ * @param {*} [options] Override http request option.
1140
+ * @throws {RequiredError}
1141
+ */
1142
+ managerCancelBooking(requestParameters, options) {
1143
+ return localVarFp.managerCancelBooking(requestParameters.bookingId, requestParameters.managerCancelBookingRequest, options).then((request) => request(axios, basePath));
336
1144
  },
337
1145
  };
338
1146
  };
339
1147
  /**
340
- * AdminClubsApi - object-oriented interface
1148
+ * ManagerBookingsApi - object-oriented interface
341
1149
  * @export
342
- * @class AdminClubsApi
1150
+ * @class ManagerBookingsApi
343
1151
  * @extends {BaseAPI}
344
1152
  */
345
- export class AdminClubsApi extends BaseAPI {
1153
+ export class ManagerBookingsApi extends BaseAPI {
346
1154
  /**
347
- *
348
- * @summary Créer un nouveau club (Admin uniquement)
349
- * @param {AdminClubsApiCreateClubRequest} requestParameters Request parameters.
1155
+ * Applique les frais de no-show à une réservation. Capture automatiquement les paiements autorisés et charge le créateur pour le montant manquant.
1156
+ * @summary Appliquer les frais de no-show
1157
+ * @param {ManagerBookingsApiApplyNoShowFeeRequest} requestParameters Request parameters.
350
1158
  * @param {*} [options] Override http request option.
351
1159
  * @throws {RequiredError}
352
- * @memberof AdminClubsApi
1160
+ * @memberof ManagerBookingsApi
353
1161
  */
354
- createClub(requestParameters, options) {
355
- return AdminClubsApiFp(this.configuration).createClub(requestParameters.createClubRequest, options).then((request) => request(this.axios, this.basePath));
1162
+ applyNoShowFee(requestParameters, options) {
1163
+ return ManagerBookingsApiFp(this.configuration).applyNoShowFee(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
356
1164
  }
357
1165
  /**
358
- *
359
- * @summary Récupérer tous les clubs (Admin uniquement)
1166
+ * Enregistre l\'arrivée et le paiement des joueurs pour une réservation avec paiement sur place. Met à jour le statut des factures.
1167
+ * @summary Enregistrer l\'arrivée des joueurs
1168
+ * @param {ManagerBookingsApiCheckInPlayersRequest} requestParameters Request parameters.
360
1169
  * @param {*} [options] Override http request option.
361
1170
  * @throws {RequiredError}
362
- * @memberof AdminClubsApi
1171
+ * @memberof ManagerBookingsApi
363
1172
  */
364
- getAllClubs(options) {
365
- return AdminClubsApiFp(this.configuration).getAllClubs(options).then((request) => request(this.axios, this.basePath));
1173
+ checkInPlayers(requestParameters, options) {
1174
+ return ManagerBookingsApiFp(this.configuration).checkInPlayers(requestParameters.bookingId, requestParameters.checkInPlayersRequest, options).then((request) => request(this.axios, this.basePath));
1175
+ }
1176
+ /**
1177
+ * Récupère le statut détaillé des paiements pour tous les joueurs d\'une réservation. Utile pour l\'interface de check-in.
1178
+ * @summary Obtenir le statut des paiements d\'une réservation
1179
+ * @param {ManagerBookingsApiGetBookingPaymentStatusRequest} requestParameters Request parameters.
1180
+ * @param {*} [options] Override http request option.
1181
+ * @throws {RequiredError}
1182
+ * @memberof ManagerBookingsApi
1183
+ */
1184
+ getBookingPaymentStatus(requestParameters, options) {
1185
+ return ManagerBookingsApiFp(this.configuration).getBookingPaymentStatus(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
1186
+ }
1187
+ /**
1188
+ * Permet à un gestionnaire d\'annuler n\'importe quelle réservation avec une raison obligatoire. Effectue un remboursement automatique si le paiement a été fait en ligne.
1189
+ * @summary Annuler une réservation (gestionnaire)
1190
+ * @param {ManagerBookingsApiManagerCancelBookingRequest} requestParameters Request parameters.
1191
+ * @param {*} [options] Override http request option.
1192
+ * @throws {RequiredError}
1193
+ * @memberof ManagerBookingsApi
1194
+ */
1195
+ managerCancelBooking(requestParameters, options) {
1196
+ return ManagerBookingsApiFp(this.configuration).managerCancelBooking(requestParameters.bookingId, requestParameters.managerCancelBookingRequest, options).then((request) => request(this.axios, this.basePath));
366
1197
  }
367
1198
  }
368
1199
  /**
@@ -2301,15 +3132,11 @@ export const StaffClubAnalyticsApiAxiosParamCreator = function (configuration) {
2301
3132
  /**
2302
3133
  *
2303
3134
  * @summary Get number of users subscribed to the club
2304
- * @param {string} id ID du club
2305
3135
  * @param {*} [options] Override http request option.
2306
3136
  * @throws {RequiredError}
2307
3137
  */
2308
- getNumberOfClubUsers: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
2309
- // verify required parameter 'id' is not null or undefined
2310
- assertParamExists('getNumberOfClubUsers', 'id', id);
2311
- const localVarPath = `/api/clubs/{id}/user-count`
2312
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
3138
+ getNumberOfClubUsers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3139
+ const localVarPath = `/api/clubs/user-count`;
2313
3140
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2314
3141
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2315
3142
  let baseOptions;
@@ -2358,14 +3185,13 @@ export const StaffClubAnalyticsApiFp = function (configuration) {
2358
3185
  /**
2359
3186
  *
2360
3187
  * @summary Get number of users subscribed to the club
2361
- * @param {string} id ID du club
2362
3188
  * @param {*} [options] Override http request option.
2363
3189
  * @throws {RequiredError}
2364
3190
  */
2365
- getNumberOfClubUsers(id, options) {
3191
+ getNumberOfClubUsers(options) {
2366
3192
  return __awaiter(this, void 0, void 0, function* () {
2367
3193
  var _a, _b, _c;
2368
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getNumberOfClubUsers(id, options);
3194
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getNumberOfClubUsers(options);
2369
3195
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2370
3196
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StaffClubAnalyticsApi.getNumberOfClubUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2371
3197
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2393,12 +3219,11 @@ export const StaffClubAnalyticsApiFactory = function (configuration, basePath, a
2393
3219
  /**
2394
3220
  *
2395
3221
  * @summary Get number of users subscribed to the club
2396
- * @param {StaffClubAnalyticsApiGetNumberOfClubUsersRequest} requestParameters Request parameters.
2397
3222
  * @param {*} [options] Override http request option.
2398
3223
  * @throws {RequiredError}
2399
3224
  */
2400
- getNumberOfClubUsers(requestParameters, options) {
2401
- return localVarFp.getNumberOfClubUsers(requestParameters.id, options).then((request) => request(axios, basePath));
3225
+ getNumberOfClubUsers(options) {
3226
+ return localVarFp.getNumberOfClubUsers(options).then((request) => request(axios, basePath));
2402
3227
  },
2403
3228
  };
2404
3229
  };
@@ -2423,13 +3248,12 @@ export class StaffClubAnalyticsApi extends BaseAPI {
2423
3248
  /**
2424
3249
  *
2425
3250
  * @summary Get number of users subscribed to the club
2426
- * @param {StaffClubAnalyticsApiGetNumberOfClubUsersRequest} requestParameters Request parameters.
2427
3251
  * @param {*} [options] Override http request option.
2428
3252
  * @throws {RequiredError}
2429
3253
  * @memberof StaffClubAnalyticsApi
2430
3254
  */
2431
- getNumberOfClubUsers(requestParameters, options) {
2432
- return StaffClubAnalyticsApiFp(this.configuration).getNumberOfClubUsers(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
3255
+ getNumberOfClubUsers(options) {
3256
+ return StaffClubAnalyticsApiFp(this.configuration).getNumberOfClubUsers(options).then((request) => request(this.axios, this.basePath));
2433
3257
  }
2434
3258
  }
2435
3259
  /**
@@ -2544,13 +3368,10 @@ export const StaffClubSettingsApiAxiosParamCreator = function (configuration) {
2544
3368
  /**
2545
3369
  *
2546
3370
  * @summary Récupère les paramètres d\'un club
2547
- * @param {GetClubSettingsRequest} getClubSettingsRequest
2548
3371
  * @param {*} [options] Override http request option.
2549
3372
  * @throws {RequiredError}
2550
3373
  */
2551
- getClubSettings: (getClubSettingsRequest_1, ...args_1) => __awaiter(this, [getClubSettingsRequest_1, ...args_1], void 0, function* (getClubSettingsRequest, options = {}) {
2552
- // verify required parameter 'getClubSettingsRequest' is not null or undefined
2553
- assertParamExists('getClubSettings', 'getClubSettingsRequest', getClubSettingsRequest);
3374
+ getClubSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2554
3375
  const localVarPath = `/api/club-settings`;
2555
3376
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2556
3377
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2564,11 +3385,9 @@ export const StaffClubSettingsApiAxiosParamCreator = function (configuration) {
2564
3385
  // authentication bearerAuth required
2565
3386
  // http bearer authentication required
2566
3387
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2567
- localVarHeaderParameter['Content-Type'] = 'application/json';
2568
3388
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2569
3389
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2570
3390
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2571
- localVarRequestOptions.data = serializeDataIfNeeded(getClubSettingsRequest, localVarRequestOptions, configuration);
2572
3391
  return {
2573
3392
  url: toPathString(localVarUrlObj),
2574
3393
  options: localVarRequestOptions,
@@ -2586,14 +3405,13 @@ export const StaffClubSettingsApiFp = function (configuration) {
2586
3405
  /**
2587
3406
  *
2588
3407
  * @summary Récupère les paramètres d\'un club
2589
- * @param {GetClubSettingsRequest} getClubSettingsRequest
2590
3408
  * @param {*} [options] Override http request option.
2591
3409
  * @throws {RequiredError}
2592
3410
  */
2593
- getClubSettings(getClubSettingsRequest, options) {
3411
+ getClubSettings(options) {
2594
3412
  return __awaiter(this, void 0, void 0, function* () {
2595
3413
  var _a, _b, _c;
2596
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubSettings(getClubSettingsRequest, options);
3414
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubSettings(options);
2597
3415
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2598
3416
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StaffClubSettingsApi.getClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2599
3417
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2611,12 +3429,11 @@ export const StaffClubSettingsApiFactory = function (configuration, basePath, ax
2611
3429
  /**
2612
3430
  *
2613
3431
  * @summary Récupère les paramètres d\'un club
2614
- * @param {StaffClubSettingsApiGetClubSettingsRequest} requestParameters Request parameters.
2615
3432
  * @param {*} [options] Override http request option.
2616
3433
  * @throws {RequiredError}
2617
3434
  */
2618
- getClubSettings(requestParameters, options) {
2619
- return localVarFp.getClubSettings(requestParameters.getClubSettingsRequest, options).then((request) => request(axios, basePath));
3435
+ getClubSettings(options) {
3436
+ return localVarFp.getClubSettings(options).then((request) => request(axios, basePath));
2620
3437
  },
2621
3438
  };
2622
3439
  };
@@ -2630,13 +3447,12 @@ export class StaffClubSettingsApi extends BaseAPI {
2630
3447
  /**
2631
3448
  *
2632
3449
  * @summary Récupère les paramètres d\'un club
2633
- * @param {StaffClubSettingsApiGetClubSettingsRequest} requestParameters Request parameters.
2634
3450
  * @param {*} [options] Override http request option.
2635
3451
  * @throws {RequiredError}
2636
3452
  * @memberof StaffClubSettingsApi
2637
3453
  */
2638
- getClubSettings(requestParameters, options) {
2639
- return StaffClubSettingsApiFp(this.configuration).getClubSettings(requestParameters.getClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
3454
+ getClubSettings(options) {
3455
+ return StaffClubSettingsApiFp(this.configuration).getClubSettings(options).then((request) => request(this.axios, this.basePath));
2640
3456
  }
2641
3457
  }
2642
3458
  /**