@tennac-booking/sdk 1.0.21 → 1.0.23

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 (56) hide show
  1. package/.openapi-generator/FILES +11 -6
  2. package/README.md +54 -36
  3. package/api.ts +2620 -1296
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +1554 -818
  8. package/dist/api.js +1874 -932
  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 +1554 -818
  16. package/dist/esm/api.js +1854 -912
  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 +2 -0
  28. package/docs/AdminClubAnalyticsApi.md +249 -0
  29. package/docs/AdminClubSlotsApi.md +120 -0
  30. package/docs/AdminClubSubscriptionsApi.md +394 -0
  31. package/docs/AdminClubsApi.md +82 -20
  32. package/docs/BookingPopulated.md +28 -0
  33. package/docs/BookingPopulatedPaymentByPlayersStatusInner.md +22 -0
  34. package/docs/BookingPopulatedPaymentByPlayersStatusInnerInvoicesInner.md +24 -0
  35. package/docs/BookingPopulatedSlotId.md +26 -0
  36. package/docs/{CheckInPlayersRequest.md → BookingPopulatedSlotIdCourtId.md} +7 -5
  37. package/docs/BookingPopulatedUserId.md +24 -0
  38. package/docs/ClubAnalyticsApi.md +4 -16
  39. package/docs/{GetAllSportsRequest.md → DeleteClub200Response.md} +5 -5
  40. package/docs/{CancelBookingRequest.md → DeleteClubSettings200Response.md} +5 -5
  41. package/docs/GetLastSixMonthsTurnover200ResponseInner.md +3 -5
  42. package/docs/ManagerBookingsApi.md +0 -118
  43. package/docs/ManagerClubCourtsApi.md +4 -14
  44. package/docs/ManagerClubSettingsApi.md +172 -0
  45. package/docs/ManagerClubSlotsApi.md +2 -8
  46. package/docs/ManagerClubSubscriptionsApi.md +7 -28
  47. package/docs/ManagerClubsApi.md +14 -41
  48. package/docs/ManagerSportsApi.md +55 -0
  49. package/docs/StaffClubAnalyticsApi.md +14 -14
  50. package/docs/StaffClubBookingsApi.md +5 -12
  51. package/docs/StaffClubsApi.md +3 -10
  52. package/index.ts +1 -1
  53. package/package.json +1 -1
  54. package/docs/BookingsApi.md +0 -68
  55. package/docs/StaffClubSettingsApi.md +0 -54
  56. package/docs/StaffSportsApi.md +0 -62
package/dist/esm/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Pandook API
5
5
  * API for managing pickle ball games and players
6
6
  *
7
- * The version of the OpenAPI document: 1.0.21
7
+ * The version of the OpenAPI document: 1.0.23
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -30,6 +30,15 @@ export const BookingPaymentStatusResponsePaymentStatusInnerPaymentMethodEnum = {
30
30
  Stripe: 'stripe',
31
31
  Onsite: 'onsite'
32
32
  };
33
+ export const BookingPopulatedStatusEnum = {
34
+ Active: 'active',
35
+ Inactive: 'inactive'
36
+ };
37
+ export const BookingPopulatedPaymentByPlayersStatusInnerInvoicesInnerStatusEnum = {
38
+ Paid: 'paid',
39
+ Pending: 'pending',
40
+ Failed: 'failed'
41
+ };
33
42
  /**
34
43
  *
35
44
  * @export
@@ -117,22 +126,25 @@ export const SubscriptionResponseStatusEnum = {
117
126
  Unpaid: 'unpaid'
118
127
  };
119
128
  /**
120
- * AdminClubSlotsApi - axios parameter creator
129
+ * AdminClubAnalyticsApi - axios parameter creator
121
130
  * @export
122
131
  */
123
- export const AdminClubSlotsApiAxiosParamCreator = function (configuration) {
132
+ export const AdminClubAnalyticsApiAxiosParamCreator = function (configuration) {
124
133
  return {
125
134
  /**
126
135
  *
127
- * @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
136
+ * @summary Chiffre d\'affaires quotidien (Admin)
128
137
  * @param {string} id ID du club
138
+ * @param {string} date Date (YYYY-MM-DD)
129
139
  * @param {*} [options] Override http request option.
130
140
  * @throws {RequiredError}
131
141
  */
132
- generateSlotsForNextThreeWeeks: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
142
+ getDailyTurnOverAdmin: (id_1, date_1, ...args_1) => __awaiter(this, [id_1, date_1, ...args_1], void 0, function* (id, date, options = {}) {
133
143
  // verify required parameter 'id' is not null or undefined
134
- assertParamExists('generateSlotsForNextThreeWeeks', 'id', id);
135
- const localVarPath = `/api/clubs/{id}/generate-slots`
144
+ assertParamExists('getDailyTurnOverAdmin', 'id', id);
145
+ // verify required parameter 'date' is not null or undefined
146
+ assertParamExists('getDailyTurnOverAdmin', 'date', date);
147
+ const localVarPath = `/api/clubs/{id}/turnover/daily`
136
148
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
137
149
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
138
150
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -140,12 +152,155 @@ export const AdminClubSlotsApiAxiosParamCreator = function (configuration) {
140
152
  if (configuration) {
141
153
  baseOptions = configuration.baseOptions;
142
154
  }
143
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
155
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
156
+ const localVarHeaderParameter = {};
157
+ const localVarQueryParameter = {};
158
+ // authentication bearerAuth required
159
+ // http bearer authentication required
160
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
161
+ if (date !== undefined) {
162
+ localVarQueryParameter['date'] = (date instanceof Date) ?
163
+ date.toISOString().substring(0, 10) :
164
+ date;
165
+ }
166
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
167
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
168
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
169
+ return {
170
+ url: toPathString(localVarUrlObj),
171
+ options: localVarRequestOptions,
172
+ };
173
+ }),
174
+ /**
175
+ *
176
+ * @summary Récupérer les factures d\'un club (Admin)
177
+ * @param {string} id ID du club
178
+ * @param {number} [page]
179
+ * @param {number} [limit]
180
+ * @param {GetInvoicesAdminStatusEnum} [status]
181
+ * @param {string} [startDate]
182
+ * @param {string} [endDate]
183
+ * @param {*} [options] Override http request option.
184
+ * @throws {RequiredError}
185
+ */
186
+ getInvoicesAdmin: (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 = {}) {
187
+ // verify required parameter 'id' is not null or undefined
188
+ assertParamExists('getInvoicesAdmin', 'id', id);
189
+ const localVarPath = `/api/clubs/{id}/invoices`
190
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
191
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
192
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
193
+ let baseOptions;
194
+ if (configuration) {
195
+ baseOptions = configuration.baseOptions;
196
+ }
197
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
198
+ const localVarHeaderParameter = {};
199
+ const localVarQueryParameter = {};
200
+ // authentication bearerAuth required
201
+ // http bearer authentication required
202
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
203
+ if (page !== undefined) {
204
+ localVarQueryParameter['page'] = page;
205
+ }
206
+ if (limit !== undefined) {
207
+ localVarQueryParameter['limit'] = limit;
208
+ }
209
+ if (status !== undefined) {
210
+ localVarQueryParameter['status'] = status;
211
+ }
212
+ if (startDate !== undefined) {
213
+ localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
214
+ startDate.toISOString() :
215
+ startDate;
216
+ }
217
+ if (endDate !== undefined) {
218
+ localVarQueryParameter['endDate'] = (endDate instanceof Date) ?
219
+ endDate.toISOString() :
220
+ endDate;
221
+ }
222
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
223
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
224
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
225
+ return {
226
+ url: toPathString(localVarUrlObj),
227
+ options: localVarRequestOptions,
228
+ };
229
+ }),
230
+ /**
231
+ *
232
+ * @summary Chiffre d\'affaires mensuel (Admin)
233
+ * @param {string} id ID du club
234
+ * @param {number} year Année
235
+ * @param {number} month Mois (1-12)
236
+ * @param {*} [options] Override http request option.
237
+ * @throws {RequiredError}
238
+ */
239
+ getMonthlyTurnOverAdmin: (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 = {}) {
240
+ // verify required parameter 'id' is not null or undefined
241
+ assertParamExists('getMonthlyTurnOverAdmin', 'id', id);
242
+ // verify required parameter 'year' is not null or undefined
243
+ assertParamExists('getMonthlyTurnOverAdmin', 'year', year);
244
+ // verify required parameter 'month' is not null or undefined
245
+ assertParamExists('getMonthlyTurnOverAdmin', 'month', month);
246
+ const localVarPath = `/api/clubs/{id}/turnover/monthly`
247
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
248
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
249
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
250
+ let baseOptions;
251
+ if (configuration) {
252
+ baseOptions = configuration.baseOptions;
253
+ }
254
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
255
+ const localVarHeaderParameter = {};
256
+ const localVarQueryParameter = {};
257
+ // authentication bearerAuth required
258
+ // http bearer authentication required
259
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
260
+ if (year !== undefined) {
261
+ localVarQueryParameter['year'] = year;
262
+ }
263
+ if (month !== undefined) {
264
+ localVarQueryParameter['month'] = month;
265
+ }
266
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
267
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
268
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
269
+ return {
270
+ url: toPathString(localVarUrlObj),
271
+ options: localVarRequestOptions,
272
+ };
273
+ }),
274
+ /**
275
+ *
276
+ * @summary Chiffre d\'affaires annuel (Admin)
277
+ * @param {string} id ID du club
278
+ * @param {number} year Année
279
+ * @param {*} [options] Override http request option.
280
+ * @throws {RequiredError}
281
+ */
282
+ getYearlyTurnOverAdmin: (id_1, year_1, ...args_1) => __awaiter(this, [id_1, year_1, ...args_1], void 0, function* (id, year, options = {}) {
283
+ // verify required parameter 'id' is not null or undefined
284
+ assertParamExists('getYearlyTurnOverAdmin', 'id', id);
285
+ // verify required parameter 'year' is not null or undefined
286
+ assertParamExists('getYearlyTurnOverAdmin', 'year', year);
287
+ const localVarPath = `/api/clubs/{id}/turnover/yearly`
288
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
289
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
290
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
291
+ let baseOptions;
292
+ if (configuration) {
293
+ baseOptions = configuration.baseOptions;
294
+ }
295
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
144
296
  const localVarHeaderParameter = {};
145
297
  const localVarQueryParameter = {};
146
298
  // authentication bearerAuth required
147
299
  // http bearer authentication required
148
300
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
301
+ if (year !== undefined) {
302
+ localVarQueryParameter['year'] = year;
303
+ }
149
304
  setSearchParams(localVarUrlObj, localVarQueryParameter);
150
305
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
151
306
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -157,66 +312,1035 @@ export const AdminClubSlotsApiAxiosParamCreator = function (configuration) {
157
312
  };
158
313
  };
159
314
  /**
160
- * AdminClubSlotsApi - functional programming interface
315
+ * AdminClubAnalyticsApi - functional programming interface
161
316
  * @export
162
317
  */
163
- export const AdminClubSlotsApiFp = function (configuration) {
164
- const localVarAxiosParamCreator = AdminClubSlotsApiAxiosParamCreator(configuration);
318
+ export const AdminClubAnalyticsApiFp = function (configuration) {
319
+ const localVarAxiosParamCreator = AdminClubAnalyticsApiAxiosParamCreator(configuration);
165
320
  return {
166
321
  /**
167
322
  *
168
- * @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
323
+ * @summary Chiffre d\'affaires quotidien (Admin)
169
324
  * @param {string} id ID du club
325
+ * @param {string} date Date (YYYY-MM-DD)
170
326
  * @param {*} [options] Override http request option.
171
327
  * @throws {RequiredError}
172
328
  */
173
- generateSlotsForNextThreeWeeks(id, options) {
329
+ getDailyTurnOverAdmin(id, date, options) {
174
330
  return __awaiter(this, void 0, void 0, function* () {
175
331
  var _a, _b, _c;
176
- const localVarAxiosArgs = yield localVarAxiosParamCreator.generateSlotsForNextThreeWeeks(id, options);
332
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDailyTurnOverAdmin(id, date, options);
177
333
  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;
334
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClubAnalyticsApi.getDailyTurnOverAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
335
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
336
+ });
337
+ },
338
+ /**
339
+ *
340
+ * @summary Récupérer les factures d\'un club (Admin)
341
+ * @param {string} id ID du club
342
+ * @param {number} [page]
343
+ * @param {number} [limit]
344
+ * @param {GetInvoicesAdminStatusEnum} [status]
345
+ * @param {string} [startDate]
346
+ * @param {string} [endDate]
347
+ * @param {*} [options] Override http request option.
348
+ * @throws {RequiredError}
349
+ */
350
+ getInvoicesAdmin(id, page, limit, status, startDate, endDate, options) {
351
+ return __awaiter(this, void 0, void 0, function* () {
352
+ var _a, _b, _c;
353
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvoicesAdmin(id, page, limit, status, startDate, endDate, options);
354
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
355
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClubAnalyticsApi.getInvoicesAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
356
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
357
+ });
358
+ },
359
+ /**
360
+ *
361
+ * @summary Chiffre d\'affaires mensuel (Admin)
362
+ * @param {string} id ID du club
363
+ * @param {number} year Année
364
+ * @param {number} month Mois (1-12)
365
+ * @param {*} [options] Override http request option.
366
+ * @throws {RequiredError}
367
+ */
368
+ getMonthlyTurnOverAdmin(id, year, month, options) {
369
+ return __awaiter(this, void 0, void 0, function* () {
370
+ var _a, _b, _c;
371
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getMonthlyTurnOverAdmin(id, year, month, options);
372
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
373
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClubAnalyticsApi.getMonthlyTurnOverAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
374
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
375
+ });
376
+ },
377
+ /**
378
+ *
379
+ * @summary Chiffre d\'affaires annuel (Admin)
380
+ * @param {string} id ID du club
381
+ * @param {number} year Année
382
+ * @param {*} [options] Override http request option.
383
+ * @throws {RequiredError}
384
+ */
385
+ getYearlyTurnOverAdmin(id, year, options) {
386
+ return __awaiter(this, void 0, void 0, function* () {
387
+ var _a, _b, _c;
388
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getYearlyTurnOverAdmin(id, year, options);
389
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
390
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClubAnalyticsApi.getYearlyTurnOverAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
179
391
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
180
392
  });
181
393
  },
182
394
  };
183
395
  };
184
396
  /**
185
- * AdminClubSlotsApi - factory interface
397
+ * AdminClubAnalyticsApi - factory interface
186
398
  * @export
187
399
  */
188
- export const AdminClubSlotsApiFactory = function (configuration, basePath, axios) {
189
- const localVarFp = AdminClubSlotsApiFp(configuration);
400
+ export const AdminClubAnalyticsApiFactory = function (configuration, basePath, axios) {
401
+ const localVarFp = AdminClubAnalyticsApiFp(configuration);
190
402
  return {
191
403
  /**
192
404
  *
193
- * @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
194
- * @param {AdminClubSlotsApiGenerateSlotsForNextThreeWeeksRequest} requestParameters Request parameters.
405
+ * @summary Chiffre d\'affaires quotidien (Admin)
406
+ * @param {AdminClubAnalyticsApiGetDailyTurnOverAdminRequest} requestParameters Request parameters.
407
+ * @param {*} [options] Override http request option.
408
+ * @throws {RequiredError}
409
+ */
410
+ getDailyTurnOverAdmin(requestParameters, options) {
411
+ return localVarFp.getDailyTurnOverAdmin(requestParameters.id, requestParameters.date, options).then((request) => request(axios, basePath));
412
+ },
413
+ /**
414
+ *
415
+ * @summary Récupérer les factures d\'un club (Admin)
416
+ * @param {AdminClubAnalyticsApiGetInvoicesAdminRequest} requestParameters Request parameters.
417
+ * @param {*} [options] Override http request option.
418
+ * @throws {RequiredError}
419
+ */
420
+ getInvoicesAdmin(requestParameters, options) {
421
+ return localVarFp.getInvoicesAdmin(requestParameters.id, requestParameters.page, requestParameters.limit, requestParameters.status, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
422
+ },
423
+ /**
424
+ *
425
+ * @summary Chiffre d\'affaires mensuel (Admin)
426
+ * @param {AdminClubAnalyticsApiGetMonthlyTurnOverAdminRequest} requestParameters Request parameters.
427
+ * @param {*} [options] Override http request option.
428
+ * @throws {RequiredError}
429
+ */
430
+ getMonthlyTurnOverAdmin(requestParameters, options) {
431
+ return localVarFp.getMonthlyTurnOverAdmin(requestParameters.id, requestParameters.year, requestParameters.month, options).then((request) => request(axios, basePath));
432
+ },
433
+ /**
434
+ *
435
+ * @summary Chiffre d\'affaires annuel (Admin)
436
+ * @param {AdminClubAnalyticsApiGetYearlyTurnOverAdminRequest} requestParameters Request parameters.
437
+ * @param {*} [options] Override http request option.
438
+ * @throws {RequiredError}
439
+ */
440
+ getYearlyTurnOverAdmin(requestParameters, options) {
441
+ return localVarFp.getYearlyTurnOverAdmin(requestParameters.id, requestParameters.year, options).then((request) => request(axios, basePath));
442
+ },
443
+ };
444
+ };
445
+ /**
446
+ * AdminClubAnalyticsApi - object-oriented interface
447
+ * @export
448
+ * @class AdminClubAnalyticsApi
449
+ * @extends {BaseAPI}
450
+ */
451
+ export class AdminClubAnalyticsApi extends BaseAPI {
452
+ /**
453
+ *
454
+ * @summary Chiffre d\'affaires quotidien (Admin)
455
+ * @param {AdminClubAnalyticsApiGetDailyTurnOverAdminRequest} requestParameters Request parameters.
456
+ * @param {*} [options] Override http request option.
457
+ * @throws {RequiredError}
458
+ * @memberof AdminClubAnalyticsApi
459
+ */
460
+ getDailyTurnOverAdmin(requestParameters, options) {
461
+ return AdminClubAnalyticsApiFp(this.configuration).getDailyTurnOverAdmin(requestParameters.id, requestParameters.date, options).then((request) => request(this.axios, this.basePath));
462
+ }
463
+ /**
464
+ *
465
+ * @summary Récupérer les factures d\'un club (Admin)
466
+ * @param {AdminClubAnalyticsApiGetInvoicesAdminRequest} requestParameters Request parameters.
467
+ * @param {*} [options] Override http request option.
468
+ * @throws {RequiredError}
469
+ * @memberof AdminClubAnalyticsApi
470
+ */
471
+ getInvoicesAdmin(requestParameters, options) {
472
+ return AdminClubAnalyticsApiFp(this.configuration).getInvoicesAdmin(requestParameters.id, requestParameters.page, requestParameters.limit, requestParameters.status, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
473
+ }
474
+ /**
475
+ *
476
+ * @summary Chiffre d\'affaires mensuel (Admin)
477
+ * @param {AdminClubAnalyticsApiGetMonthlyTurnOverAdminRequest} requestParameters Request parameters.
478
+ * @param {*} [options] Override http request option.
479
+ * @throws {RequiredError}
480
+ * @memberof AdminClubAnalyticsApi
481
+ */
482
+ getMonthlyTurnOverAdmin(requestParameters, options) {
483
+ return AdminClubAnalyticsApiFp(this.configuration).getMonthlyTurnOverAdmin(requestParameters.id, requestParameters.year, requestParameters.month, options).then((request) => request(this.axios, this.basePath));
484
+ }
485
+ /**
486
+ *
487
+ * @summary Chiffre d\'affaires annuel (Admin)
488
+ * @param {AdminClubAnalyticsApiGetYearlyTurnOverAdminRequest} requestParameters Request parameters.
489
+ * @param {*} [options] Override http request option.
490
+ * @throws {RequiredError}
491
+ * @memberof AdminClubAnalyticsApi
492
+ */
493
+ getYearlyTurnOverAdmin(requestParameters, options) {
494
+ return AdminClubAnalyticsApiFp(this.configuration).getYearlyTurnOverAdmin(requestParameters.id, requestParameters.year, options).then((request) => request(this.axios, this.basePath));
495
+ }
496
+ }
497
+ /**
498
+ * @export
499
+ */
500
+ export const GetInvoicesAdminStatusEnum = {
501
+ Pending: 'pending',
502
+ Paid: 'paid',
503
+ Failed: 'failed',
504
+ Authorized: 'authorized',
505
+ Canceled: 'canceled',
506
+ Expired: 'expired'
507
+ };
508
+ /**
509
+ * AdminClubSlotsApi - axios parameter creator
510
+ * @export
511
+ */
512
+ export const AdminClubSlotsApiAxiosParamCreator = function (configuration) {
513
+ return {
514
+ /**
515
+ *
516
+ * @summary Supprimer des créneaux pour un club sur une plage de dates (Admin uniquement)
517
+ * @param {string} id ID du club
518
+ * @param {string} start Date de début (format ISO)
519
+ * @param {string} end Date de fin (format ISO)
520
+ * @param {*} [options] Override http request option.
521
+ * @throws {RequiredError}
522
+ */
523
+ deleteSlotsByClubInRangeByID: (id_1, start_1, end_1, ...args_1) => __awaiter(this, [id_1, start_1, end_1, ...args_1], void 0, function* (id, start, end, options = {}) {
524
+ // verify required parameter 'id' is not null or undefined
525
+ assertParamExists('deleteSlotsByClubInRangeByID', 'id', id);
526
+ // verify required parameter 'start' is not null or undefined
527
+ assertParamExists('deleteSlotsByClubInRangeByID', 'start', start);
528
+ // verify required parameter 'end' is not null or undefined
529
+ assertParamExists('deleteSlotsByClubInRangeByID', 'end', end);
530
+ const localVarPath = `/api/clubs/{id}/slots`
531
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
532
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
533
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
534
+ let baseOptions;
535
+ if (configuration) {
536
+ baseOptions = configuration.baseOptions;
537
+ }
538
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
539
+ const localVarHeaderParameter = {};
540
+ const localVarQueryParameter = {};
541
+ // authentication bearerAuth required
542
+ // http bearer authentication required
543
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
544
+ if (start !== undefined) {
545
+ localVarQueryParameter['start'] = (start instanceof Date) ?
546
+ start.toISOString() :
547
+ start;
548
+ }
549
+ if (end !== undefined) {
550
+ localVarQueryParameter['end'] = (end instanceof Date) ?
551
+ end.toISOString() :
552
+ end;
553
+ }
554
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
555
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
556
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
557
+ return {
558
+ url: toPathString(localVarUrlObj),
559
+ options: localVarRequestOptions,
560
+ };
561
+ }),
562
+ /**
563
+ *
564
+ * @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
565
+ * @param {string} id ID du club
566
+ * @param {*} [options] Override http request option.
567
+ * @throws {RequiredError}
568
+ */
569
+ generateSlotsForNextThreeWeeks: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
570
+ // verify required parameter 'id' is not null or undefined
571
+ assertParamExists('generateSlotsForNextThreeWeeks', 'id', id);
572
+ const localVarPath = `/api/clubs/{id}/generate-slots`
573
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
574
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
575
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
576
+ let baseOptions;
577
+ if (configuration) {
578
+ baseOptions = configuration.baseOptions;
579
+ }
580
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
581
+ const localVarHeaderParameter = {};
582
+ const localVarQueryParameter = {};
583
+ // authentication bearerAuth required
584
+ // http bearer authentication required
585
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
586
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
587
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
588
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
589
+ return {
590
+ url: toPathString(localVarUrlObj),
591
+ options: localVarRequestOptions,
592
+ };
593
+ }),
594
+ /**
595
+ *
596
+ * @summary Récupérer tous les créneaux d\'un club (Admin)
597
+ * @param {string} id ID du club
598
+ * @param {string} [start] Date de début (format ISO)
599
+ * @param {string} [end] Date de fin (format ISO)
600
+ * @param {*} [options] Override http request option.
601
+ * @throws {RequiredError}
602
+ */
603
+ getSlotsByClubAdmin: (id_1, start_1, end_1, ...args_1) => __awaiter(this, [id_1, start_1, end_1, ...args_1], void 0, function* (id, start, end, options = {}) {
604
+ // verify required parameter 'id' is not null or undefined
605
+ assertParamExists('getSlotsByClubAdmin', 'id', id);
606
+ const localVarPath = `/api/clubs/{id}/slots`
607
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
608
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
609
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
610
+ let baseOptions;
611
+ if (configuration) {
612
+ baseOptions = configuration.baseOptions;
613
+ }
614
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
615
+ const localVarHeaderParameter = {};
616
+ const localVarQueryParameter = {};
617
+ // authentication bearerAuth required
618
+ // http bearer authentication required
619
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
620
+ if (start !== undefined) {
621
+ localVarQueryParameter['start'] = (start instanceof Date) ?
622
+ start.toISOString() :
623
+ start;
624
+ }
625
+ if (end !== undefined) {
626
+ localVarQueryParameter['end'] = (end instanceof Date) ?
627
+ end.toISOString() :
628
+ end;
629
+ }
630
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
631
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
632
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
633
+ return {
634
+ url: toPathString(localVarUrlObj),
635
+ options: localVarRequestOptions,
636
+ };
637
+ }),
638
+ };
639
+ };
640
+ /**
641
+ * AdminClubSlotsApi - functional programming interface
642
+ * @export
643
+ */
644
+ export const AdminClubSlotsApiFp = function (configuration) {
645
+ const localVarAxiosParamCreator = AdminClubSlotsApiAxiosParamCreator(configuration);
646
+ return {
647
+ /**
648
+ *
649
+ * @summary Supprimer des créneaux pour un club sur une plage de dates (Admin uniquement)
650
+ * @param {string} id ID du club
651
+ * @param {string} start Date de début (format ISO)
652
+ * @param {string} end Date de fin (format ISO)
653
+ * @param {*} [options] Override http request option.
654
+ * @throws {RequiredError}
655
+ */
656
+ deleteSlotsByClubInRangeByID(id, start, end, options) {
657
+ return __awaiter(this, void 0, void 0, function* () {
658
+ var _a, _b, _c;
659
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSlotsByClubInRangeByID(id, start, end, options);
660
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
661
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClubSlotsApi.deleteSlotsByClubInRangeByID']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
662
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
663
+ });
664
+ },
665
+ /**
666
+ *
667
+ * @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
668
+ * @param {string} id ID du club
669
+ * @param {*} [options] Override http request option.
670
+ * @throws {RequiredError}
671
+ */
672
+ generateSlotsForNextThreeWeeks(id, options) {
673
+ return __awaiter(this, void 0, void 0, function* () {
674
+ var _a, _b, _c;
675
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.generateSlotsForNextThreeWeeks(id, options);
676
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
677
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClubSlotsApi.generateSlotsForNextThreeWeeks']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
678
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
679
+ });
680
+ },
681
+ /**
682
+ *
683
+ * @summary Récupérer tous les créneaux d\'un club (Admin)
684
+ * @param {string} id ID du club
685
+ * @param {string} [start] Date de début (format ISO)
686
+ * @param {string} [end] Date de fin (format ISO)
687
+ * @param {*} [options] Override http request option.
688
+ * @throws {RequiredError}
689
+ */
690
+ getSlotsByClubAdmin(id, start, end, options) {
691
+ return __awaiter(this, void 0, void 0, function* () {
692
+ var _a, _b, _c;
693
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSlotsByClubAdmin(id, start, end, options);
694
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
695
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClubSlotsApi.getSlotsByClubAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
696
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
697
+ });
698
+ },
699
+ };
700
+ };
701
+ /**
702
+ * AdminClubSlotsApi - factory interface
703
+ * @export
704
+ */
705
+ export const AdminClubSlotsApiFactory = function (configuration, basePath, axios) {
706
+ const localVarFp = AdminClubSlotsApiFp(configuration);
707
+ return {
708
+ /**
709
+ *
710
+ * @summary Supprimer des créneaux pour un club sur une plage de dates (Admin uniquement)
711
+ * @param {AdminClubSlotsApiDeleteSlotsByClubInRangeByIDRequest} requestParameters Request parameters.
712
+ * @param {*} [options] Override http request option.
713
+ * @throws {RequiredError}
714
+ */
715
+ deleteSlotsByClubInRangeByID(requestParameters, options) {
716
+ return localVarFp.deleteSlotsByClubInRangeByID(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
717
+ },
718
+ /**
719
+ *
720
+ * @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
721
+ * @param {AdminClubSlotsApiGenerateSlotsForNextThreeWeeksRequest} requestParameters Request parameters.
722
+ * @param {*} [options] Override http request option.
723
+ * @throws {RequiredError}
724
+ */
725
+ generateSlotsForNextThreeWeeks(requestParameters, options) {
726
+ return localVarFp.generateSlotsForNextThreeWeeks(requestParameters.id, options).then((request) => request(axios, basePath));
727
+ },
728
+ /**
729
+ *
730
+ * @summary Récupérer tous les créneaux d\'un club (Admin)
731
+ * @param {AdminClubSlotsApiGetSlotsByClubAdminRequest} requestParameters Request parameters.
732
+ * @param {*} [options] Override http request option.
733
+ * @throws {RequiredError}
734
+ */
735
+ getSlotsByClubAdmin(requestParameters, options) {
736
+ return localVarFp.getSlotsByClubAdmin(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
737
+ },
738
+ };
739
+ };
740
+ /**
741
+ * AdminClubSlotsApi - object-oriented interface
742
+ * @export
743
+ * @class AdminClubSlotsApi
744
+ * @extends {BaseAPI}
745
+ */
746
+ export class AdminClubSlotsApi extends BaseAPI {
747
+ /**
748
+ *
749
+ * @summary Supprimer des créneaux pour un club sur une plage de dates (Admin uniquement)
750
+ * @param {AdminClubSlotsApiDeleteSlotsByClubInRangeByIDRequest} requestParameters Request parameters.
751
+ * @param {*} [options] Override http request option.
752
+ * @throws {RequiredError}
753
+ * @memberof AdminClubSlotsApi
754
+ */
755
+ deleteSlotsByClubInRangeByID(requestParameters, options) {
756
+ return AdminClubSlotsApiFp(this.configuration).deleteSlotsByClubInRangeByID(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
757
+ }
758
+ /**
759
+ *
760
+ * @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
761
+ * @param {AdminClubSlotsApiGenerateSlotsForNextThreeWeeksRequest} requestParameters Request parameters.
762
+ * @param {*} [options] Override http request option.
763
+ * @throws {RequiredError}
764
+ * @memberof AdminClubSlotsApi
765
+ */
766
+ generateSlotsForNextThreeWeeks(requestParameters, options) {
767
+ return AdminClubSlotsApiFp(this.configuration).generateSlotsForNextThreeWeeks(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
768
+ }
769
+ /**
770
+ *
771
+ * @summary Récupérer tous les créneaux d\'un club (Admin)
772
+ * @param {AdminClubSlotsApiGetSlotsByClubAdminRequest} requestParameters Request parameters.
773
+ * @param {*} [options] Override http request option.
774
+ * @throws {RequiredError}
775
+ * @memberof AdminClubSlotsApi
776
+ */
777
+ getSlotsByClubAdmin(requestParameters, options) {
778
+ return AdminClubSlotsApiFp(this.configuration).getSlotsByClubAdmin(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
779
+ }
780
+ }
781
+ /**
782
+ * AdminClubSubscriptionsApi - axios parameter creator
783
+ * @export
784
+ */
785
+ export const AdminClubSubscriptionsApiAxiosParamCreator = function (configuration) {
786
+ return {
787
+ /**
788
+ *
789
+ * @summary Archiver un prix (Admin)
790
+ * @param {string} id
791
+ * @param {string} priceId
792
+ * @param {*} [options] Override http request option.
793
+ * @throws {RequiredError}
794
+ */
795
+ archivePriceForSubscriptionPlanAdmin: (id_1, priceId_1, ...args_1) => __awaiter(this, [id_1, priceId_1, ...args_1], void 0, function* (id, priceId, options = {}) {
796
+ // verify required parameter 'id' is not null or undefined
797
+ assertParamExists('archivePriceForSubscriptionPlanAdmin', 'id', id);
798
+ // verify required parameter 'priceId' is not null or undefined
799
+ assertParamExists('archivePriceForSubscriptionPlanAdmin', 'priceId', priceId);
800
+ const localVarPath = `/api/clubs/{id}/subscription-plans/{priceId}/archive-price`
801
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
802
+ .replace(`{${"priceId"}}`, encodeURIComponent(String(priceId)));
803
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
804
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
805
+ let baseOptions;
806
+ if (configuration) {
807
+ baseOptions = configuration.baseOptions;
808
+ }
809
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
810
+ const localVarHeaderParameter = {};
811
+ const localVarQueryParameter = {};
812
+ // authentication bearerAuth required
813
+ // http bearer authentication required
814
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
815
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
816
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
817
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
818
+ return {
819
+ url: toPathString(localVarUrlObj),
820
+ options: localVarRequestOptions,
821
+ };
822
+ }),
823
+ /**
824
+ *
825
+ * @summary Créer un prix pour un plan (Admin)
826
+ * @param {string} id
827
+ * @param {string} productId
828
+ * @param {CreatePriceRequest} createPriceRequest
829
+ * @param {*} [options] Override http request option.
830
+ * @throws {RequiredError}
831
+ */
832
+ createPriceForSubscriptionPlanAdmin: (id_1, productId_1, createPriceRequest_1, ...args_1) => __awaiter(this, [id_1, productId_1, createPriceRequest_1, ...args_1], void 0, function* (id, productId, createPriceRequest, options = {}) {
833
+ // verify required parameter 'id' is not null or undefined
834
+ assertParamExists('createPriceForSubscriptionPlanAdmin', 'id', id);
835
+ // verify required parameter 'productId' is not null or undefined
836
+ assertParamExists('createPriceForSubscriptionPlanAdmin', 'productId', productId);
837
+ // verify required parameter 'createPriceRequest' is not null or undefined
838
+ assertParamExists('createPriceForSubscriptionPlanAdmin', 'createPriceRequest', createPriceRequest);
839
+ const localVarPath = `/api/clubs/{id}/subscription-plans/{productId}/prices`
840
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
841
+ .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
842
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
843
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
844
+ let baseOptions;
845
+ if (configuration) {
846
+ baseOptions = configuration.baseOptions;
847
+ }
848
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
849
+ const localVarHeaderParameter = {};
850
+ const localVarQueryParameter = {};
851
+ // authentication bearerAuth required
852
+ // http bearer authentication required
853
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
854
+ localVarHeaderParameter['Content-Type'] = 'application/json';
855
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
856
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
857
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
858
+ localVarRequestOptions.data = serializeDataIfNeeded(createPriceRequest, localVarRequestOptions, configuration);
859
+ return {
860
+ url: toPathString(localVarUrlObj),
861
+ options: localVarRequestOptions,
862
+ };
863
+ }),
864
+ /**
865
+ *
866
+ * @summary Créer un plan d\'abonnement pour un club (Admin)
867
+ * @param {string} id
868
+ * @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
869
+ * @param {*} [options] Override http request option.
870
+ * @throws {RequiredError}
871
+ */
872
+ createSubscriptionPlanForClubAdmin: (id_1, createSubscriptionPlanRequest_1, ...args_1) => __awaiter(this, [id_1, createSubscriptionPlanRequest_1, ...args_1], void 0, function* (id, createSubscriptionPlanRequest, options = {}) {
873
+ // verify required parameter 'id' is not null or undefined
874
+ assertParamExists('createSubscriptionPlanForClubAdmin', 'id', id);
875
+ // verify required parameter 'createSubscriptionPlanRequest' is not null or undefined
876
+ assertParamExists('createSubscriptionPlanForClubAdmin', 'createSubscriptionPlanRequest', createSubscriptionPlanRequest);
877
+ const localVarPath = `/api/clubs/{id}/subscription-plans`
878
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
879
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
880
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
881
+ let baseOptions;
882
+ if (configuration) {
883
+ baseOptions = configuration.baseOptions;
884
+ }
885
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
886
+ const localVarHeaderParameter = {};
887
+ const localVarQueryParameter = {};
888
+ // authentication bearerAuth required
889
+ // http bearer authentication required
890
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
891
+ localVarHeaderParameter['Content-Type'] = 'application/json';
892
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
893
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
894
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
895
+ localVarRequestOptions.data = serializeDataIfNeeded(createSubscriptionPlanRequest, localVarRequestOptions, configuration);
896
+ return {
897
+ url: toPathString(localVarUrlObj),
898
+ options: localVarRequestOptions,
899
+ };
900
+ }),
901
+ /**
902
+ *
903
+ * @summary Supprimer un plan (Admin)
904
+ * @param {string} id
905
+ * @param {string} productId
906
+ * @param {*} [options] Override http request option.
907
+ * @throws {RequiredError}
908
+ */
909
+ deleteSubscriptionPlanForClubAdmin: (id_1, productId_1, ...args_1) => __awaiter(this, [id_1, productId_1, ...args_1], void 0, function* (id, productId, options = {}) {
910
+ // verify required parameter 'id' is not null or undefined
911
+ assertParamExists('deleteSubscriptionPlanForClubAdmin', 'id', id);
912
+ // verify required parameter 'productId' is not null or undefined
913
+ assertParamExists('deleteSubscriptionPlanForClubAdmin', 'productId', productId);
914
+ const localVarPath = `/api/clubs/{id}/subscription-plans/{productId}`
915
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
916
+ .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
917
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
918
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
919
+ let baseOptions;
920
+ if (configuration) {
921
+ baseOptions = configuration.baseOptions;
922
+ }
923
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
924
+ const localVarHeaderParameter = {};
925
+ const localVarQueryParameter = {};
926
+ // authentication bearerAuth required
927
+ // http bearer authentication required
928
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
929
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
930
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
931
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
932
+ return {
933
+ url: toPathString(localVarUrlObj),
934
+ options: localVarRequestOptions,
935
+ };
936
+ }),
937
+ /**
938
+ *
939
+ * @summary Réactiver un plan (Admin)
940
+ * @param {string} id
941
+ * @param {string} productId
942
+ * @param {*} [options] Override http request option.
943
+ * @throws {RequiredError}
944
+ */
945
+ restoreSubscriptionPlanForClubAdmin: (id_1, productId_1, ...args_1) => __awaiter(this, [id_1, productId_1, ...args_1], void 0, function* (id, productId, options = {}) {
946
+ // verify required parameter 'id' is not null or undefined
947
+ assertParamExists('restoreSubscriptionPlanForClubAdmin', 'id', id);
948
+ // verify required parameter 'productId' is not null or undefined
949
+ assertParamExists('restoreSubscriptionPlanForClubAdmin', 'productId', productId);
950
+ const localVarPath = `/api/clubs/{id}/subscription-plans/{productId}/restore`
951
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
952
+ .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
953
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
954
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
955
+ let baseOptions;
956
+ if (configuration) {
957
+ baseOptions = configuration.baseOptions;
958
+ }
959
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
960
+ const localVarHeaderParameter = {};
961
+ const localVarQueryParameter = {};
962
+ // authentication bearerAuth required
963
+ // http bearer authentication required
964
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
965
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
966
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
967
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
968
+ return {
969
+ url: toPathString(localVarUrlObj),
970
+ options: localVarRequestOptions,
971
+ };
972
+ }),
973
+ /**
974
+ *
975
+ * @summary Réactiver un prix (Admin)
976
+ * @param {string} id
977
+ * @param {string} priceId
978
+ * @param {*} [options] Override http request option.
979
+ * @throws {RequiredError}
980
+ */
981
+ restoreSubscriptionPriceForClubAdmin: (id_1, priceId_1, ...args_1) => __awaiter(this, [id_1, priceId_1, ...args_1], void 0, function* (id, priceId, options = {}) {
982
+ // verify required parameter 'id' is not null or undefined
983
+ assertParamExists('restoreSubscriptionPriceForClubAdmin', 'id', id);
984
+ // verify required parameter 'priceId' is not null or undefined
985
+ assertParamExists('restoreSubscriptionPriceForClubAdmin', 'priceId', priceId);
986
+ const localVarPath = `/api/clubs/{id}/subscription-plans/{priceId}/restore-price`
987
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
988
+ .replace(`{${"priceId"}}`, encodeURIComponent(String(priceId)));
989
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
990
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
991
+ let baseOptions;
992
+ if (configuration) {
993
+ baseOptions = configuration.baseOptions;
994
+ }
995
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
996
+ const localVarHeaderParameter = {};
997
+ const localVarQueryParameter = {};
998
+ // authentication bearerAuth required
999
+ // http bearer authentication required
1000
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1001
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1002
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1003
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1004
+ return {
1005
+ url: toPathString(localVarUrlObj),
1006
+ options: localVarRequestOptions,
1007
+ };
1008
+ }),
1009
+ /**
1010
+ *
1011
+ * @summary Mettre à jour un plan (Admin)
1012
+ * @param {string} id
1013
+ * @param {string} priceId
1014
+ * @param {UpdateSubscriptionPlanRequest} updateSubscriptionPlanRequest
1015
+ * @param {*} [options] Override http request option.
1016
+ * @throws {RequiredError}
1017
+ */
1018
+ updateSubscriptionPlanForClubAdmin: (id_1, priceId_1, updateSubscriptionPlanRequest_1, ...args_1) => __awaiter(this, [id_1, priceId_1, updateSubscriptionPlanRequest_1, ...args_1], void 0, function* (id, priceId, updateSubscriptionPlanRequest, options = {}) {
1019
+ // verify required parameter 'id' is not null or undefined
1020
+ assertParamExists('updateSubscriptionPlanForClubAdmin', 'id', id);
1021
+ // verify required parameter 'priceId' is not null or undefined
1022
+ assertParamExists('updateSubscriptionPlanForClubAdmin', 'priceId', priceId);
1023
+ // verify required parameter 'updateSubscriptionPlanRequest' is not null or undefined
1024
+ assertParamExists('updateSubscriptionPlanForClubAdmin', 'updateSubscriptionPlanRequest', updateSubscriptionPlanRequest);
1025
+ const localVarPath = `/api/clubs/{id}/subscription-plans/{priceId}`
1026
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
1027
+ .replace(`{${"priceId"}}`, encodeURIComponent(String(priceId)));
1028
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1029
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1030
+ let baseOptions;
1031
+ if (configuration) {
1032
+ baseOptions = configuration.baseOptions;
1033
+ }
1034
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
1035
+ const localVarHeaderParameter = {};
1036
+ const localVarQueryParameter = {};
1037
+ // authentication bearerAuth required
1038
+ // http bearer authentication required
1039
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1040
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1041
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1042
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1043
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1044
+ localVarRequestOptions.data = serializeDataIfNeeded(updateSubscriptionPlanRequest, localVarRequestOptions, configuration);
1045
+ return {
1046
+ url: toPathString(localVarUrlObj),
1047
+ options: localVarRequestOptions,
1048
+ };
1049
+ }),
1050
+ };
1051
+ };
1052
+ /**
1053
+ * AdminClubSubscriptionsApi - functional programming interface
1054
+ * @export
1055
+ */
1056
+ export const AdminClubSubscriptionsApiFp = function (configuration) {
1057
+ const localVarAxiosParamCreator = AdminClubSubscriptionsApiAxiosParamCreator(configuration);
1058
+ return {
1059
+ /**
1060
+ *
1061
+ * @summary Archiver un prix (Admin)
1062
+ * @param {string} id
1063
+ * @param {string} priceId
1064
+ * @param {*} [options] Override http request option.
1065
+ * @throws {RequiredError}
1066
+ */
1067
+ archivePriceForSubscriptionPlanAdmin(id, priceId, options) {
1068
+ return __awaiter(this, void 0, void 0, function* () {
1069
+ var _a, _b, _c;
1070
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.archivePriceForSubscriptionPlanAdmin(id, priceId, options);
1071
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1072
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClubSubscriptionsApi.archivePriceForSubscriptionPlanAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1073
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1074
+ });
1075
+ },
1076
+ /**
1077
+ *
1078
+ * @summary Créer un prix pour un plan (Admin)
1079
+ * @param {string} id
1080
+ * @param {string} productId
1081
+ * @param {CreatePriceRequest} createPriceRequest
1082
+ * @param {*} [options] Override http request option.
1083
+ * @throws {RequiredError}
1084
+ */
1085
+ createPriceForSubscriptionPlanAdmin(id, productId, createPriceRequest, options) {
1086
+ return __awaiter(this, void 0, void 0, function* () {
1087
+ var _a, _b, _c;
1088
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createPriceForSubscriptionPlanAdmin(id, productId, createPriceRequest, options);
1089
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1090
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClubSubscriptionsApi.createPriceForSubscriptionPlanAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1091
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1092
+ });
1093
+ },
1094
+ /**
1095
+ *
1096
+ * @summary Créer un plan d\'abonnement pour un club (Admin)
1097
+ * @param {string} id
1098
+ * @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
1099
+ * @param {*} [options] Override http request option.
1100
+ * @throws {RequiredError}
1101
+ */
1102
+ createSubscriptionPlanForClubAdmin(id, createSubscriptionPlanRequest, options) {
1103
+ return __awaiter(this, void 0, void 0, function* () {
1104
+ var _a, _b, _c;
1105
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createSubscriptionPlanForClubAdmin(id, createSubscriptionPlanRequest, options);
1106
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1107
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClubSubscriptionsApi.createSubscriptionPlanForClubAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1108
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1109
+ });
1110
+ },
1111
+ /**
1112
+ *
1113
+ * @summary Supprimer un plan (Admin)
1114
+ * @param {string} id
1115
+ * @param {string} productId
1116
+ * @param {*} [options] Override http request option.
1117
+ * @throws {RequiredError}
1118
+ */
1119
+ deleteSubscriptionPlanForClubAdmin(id, productId, options) {
1120
+ return __awaiter(this, void 0, void 0, function* () {
1121
+ var _a, _b, _c;
1122
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSubscriptionPlanForClubAdmin(id, productId, options);
1123
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1124
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClubSubscriptionsApi.deleteSubscriptionPlanForClubAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1125
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1126
+ });
1127
+ },
1128
+ /**
1129
+ *
1130
+ * @summary Réactiver un plan (Admin)
1131
+ * @param {string} id
1132
+ * @param {string} productId
1133
+ * @param {*} [options] Override http request option.
1134
+ * @throws {RequiredError}
1135
+ */
1136
+ restoreSubscriptionPlanForClubAdmin(id, productId, options) {
1137
+ return __awaiter(this, void 0, void 0, function* () {
1138
+ var _a, _b, _c;
1139
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreSubscriptionPlanForClubAdmin(id, productId, options);
1140
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1141
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClubSubscriptionsApi.restoreSubscriptionPlanForClubAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1142
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1143
+ });
1144
+ },
1145
+ /**
1146
+ *
1147
+ * @summary Réactiver un prix (Admin)
1148
+ * @param {string} id
1149
+ * @param {string} priceId
1150
+ * @param {*} [options] Override http request option.
1151
+ * @throws {RequiredError}
1152
+ */
1153
+ restoreSubscriptionPriceForClubAdmin(id, priceId, options) {
1154
+ return __awaiter(this, void 0, void 0, function* () {
1155
+ var _a, _b, _c;
1156
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreSubscriptionPriceForClubAdmin(id, priceId, options);
1157
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1158
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClubSubscriptionsApi.restoreSubscriptionPriceForClubAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1159
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1160
+ });
1161
+ },
1162
+ /**
1163
+ *
1164
+ * @summary Mettre à jour un plan (Admin)
1165
+ * @param {string} id
1166
+ * @param {string} priceId
1167
+ * @param {UpdateSubscriptionPlanRequest} updateSubscriptionPlanRequest
1168
+ * @param {*} [options] Override http request option.
1169
+ * @throws {RequiredError}
1170
+ */
1171
+ updateSubscriptionPlanForClubAdmin(id, priceId, updateSubscriptionPlanRequest, options) {
1172
+ return __awaiter(this, void 0, void 0, function* () {
1173
+ var _a, _b, _c;
1174
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSubscriptionPlanForClubAdmin(id, priceId, updateSubscriptionPlanRequest, options);
1175
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1176
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClubSubscriptionsApi.updateSubscriptionPlanForClubAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1177
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1178
+ });
1179
+ },
1180
+ };
1181
+ };
1182
+ /**
1183
+ * AdminClubSubscriptionsApi - factory interface
1184
+ * @export
1185
+ */
1186
+ export const AdminClubSubscriptionsApiFactory = function (configuration, basePath, axios) {
1187
+ const localVarFp = AdminClubSubscriptionsApiFp(configuration);
1188
+ return {
1189
+ /**
1190
+ *
1191
+ * @summary Archiver un prix (Admin)
1192
+ * @param {AdminClubSubscriptionsApiArchivePriceForSubscriptionPlanAdminRequest} requestParameters Request parameters.
1193
+ * @param {*} [options] Override http request option.
1194
+ * @throws {RequiredError}
1195
+ */
1196
+ archivePriceForSubscriptionPlanAdmin(requestParameters, options) {
1197
+ return localVarFp.archivePriceForSubscriptionPlanAdmin(requestParameters.id, requestParameters.priceId, options).then((request) => request(axios, basePath));
1198
+ },
1199
+ /**
1200
+ *
1201
+ * @summary Créer un prix pour un plan (Admin)
1202
+ * @param {AdminClubSubscriptionsApiCreatePriceForSubscriptionPlanAdminRequest} requestParameters Request parameters.
1203
+ * @param {*} [options] Override http request option.
1204
+ * @throws {RequiredError}
1205
+ */
1206
+ createPriceForSubscriptionPlanAdmin(requestParameters, options) {
1207
+ return localVarFp.createPriceForSubscriptionPlanAdmin(requestParameters.id, requestParameters.productId, requestParameters.createPriceRequest, options).then((request) => request(axios, basePath));
1208
+ },
1209
+ /**
1210
+ *
1211
+ * @summary Créer un plan d\'abonnement pour un club (Admin)
1212
+ * @param {AdminClubSubscriptionsApiCreateSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
1213
+ * @param {*} [options] Override http request option.
1214
+ * @throws {RequiredError}
1215
+ */
1216
+ createSubscriptionPlanForClubAdmin(requestParameters, options) {
1217
+ return localVarFp.createSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.createSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
1218
+ },
1219
+ /**
1220
+ *
1221
+ * @summary Supprimer un plan (Admin)
1222
+ * @param {AdminClubSubscriptionsApiDeleteSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
1223
+ * @param {*} [options] Override http request option.
1224
+ * @throws {RequiredError}
1225
+ */
1226
+ deleteSubscriptionPlanForClubAdmin(requestParameters, options) {
1227
+ return localVarFp.deleteSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.productId, options).then((request) => request(axios, basePath));
1228
+ },
1229
+ /**
1230
+ *
1231
+ * @summary Réactiver un plan (Admin)
1232
+ * @param {AdminClubSubscriptionsApiRestoreSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
1233
+ * @param {*} [options] Override http request option.
1234
+ * @throws {RequiredError}
1235
+ */
1236
+ restoreSubscriptionPlanForClubAdmin(requestParameters, options) {
1237
+ return localVarFp.restoreSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.productId, options).then((request) => request(axios, basePath));
1238
+ },
1239
+ /**
1240
+ *
1241
+ * @summary Réactiver un prix (Admin)
1242
+ * @param {AdminClubSubscriptionsApiRestoreSubscriptionPriceForClubAdminRequest} requestParameters Request parameters.
1243
+ * @param {*} [options] Override http request option.
1244
+ * @throws {RequiredError}
1245
+ */
1246
+ restoreSubscriptionPriceForClubAdmin(requestParameters, options) {
1247
+ return localVarFp.restoreSubscriptionPriceForClubAdmin(requestParameters.id, requestParameters.priceId, options).then((request) => request(axios, basePath));
1248
+ },
1249
+ /**
1250
+ *
1251
+ * @summary Mettre à jour un plan (Admin)
1252
+ * @param {AdminClubSubscriptionsApiUpdateSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
195
1253
  * @param {*} [options] Override http request option.
196
1254
  * @throws {RequiredError}
197
1255
  */
198
- generateSlotsForNextThreeWeeks(requestParameters, options) {
199
- return localVarFp.generateSlotsForNextThreeWeeks(requestParameters.id, options).then((request) => request(axios, basePath));
1256
+ updateSubscriptionPlanForClubAdmin(requestParameters, options) {
1257
+ return localVarFp.updateSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.priceId, requestParameters.updateSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
200
1258
  },
201
1259
  };
202
1260
  };
203
1261
  /**
204
- * AdminClubSlotsApi - object-oriented interface
1262
+ * AdminClubSubscriptionsApi - object-oriented interface
205
1263
  * @export
206
- * @class AdminClubSlotsApi
1264
+ * @class AdminClubSubscriptionsApi
207
1265
  * @extends {BaseAPI}
208
1266
  */
209
- export class AdminClubSlotsApi extends BaseAPI {
1267
+ export class AdminClubSubscriptionsApi extends BaseAPI {
210
1268
  /**
211
1269
  *
212
- * @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
213
- * @param {AdminClubSlotsApiGenerateSlotsForNextThreeWeeksRequest} requestParameters Request parameters.
1270
+ * @summary Archiver un prix (Admin)
1271
+ * @param {AdminClubSubscriptionsApiArchivePriceForSubscriptionPlanAdminRequest} requestParameters Request parameters.
214
1272
  * @param {*} [options] Override http request option.
215
1273
  * @throws {RequiredError}
216
- * @memberof AdminClubSlotsApi
1274
+ * @memberof AdminClubSubscriptionsApi
217
1275
  */
218
- generateSlotsForNextThreeWeeks(requestParameters, options) {
219
- return AdminClubSlotsApiFp(this.configuration).generateSlotsForNextThreeWeeks(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1276
+ archivePriceForSubscriptionPlanAdmin(requestParameters, options) {
1277
+ return AdminClubSubscriptionsApiFp(this.configuration).archivePriceForSubscriptionPlanAdmin(requestParameters.id, requestParameters.priceId, options).then((request) => request(this.axios, this.basePath));
1278
+ }
1279
+ /**
1280
+ *
1281
+ * @summary Créer un prix pour un plan (Admin)
1282
+ * @param {AdminClubSubscriptionsApiCreatePriceForSubscriptionPlanAdminRequest} requestParameters Request parameters.
1283
+ * @param {*} [options] Override http request option.
1284
+ * @throws {RequiredError}
1285
+ * @memberof AdminClubSubscriptionsApi
1286
+ */
1287
+ createPriceForSubscriptionPlanAdmin(requestParameters, options) {
1288
+ return AdminClubSubscriptionsApiFp(this.configuration).createPriceForSubscriptionPlanAdmin(requestParameters.id, requestParameters.productId, requestParameters.createPriceRequest, options).then((request) => request(this.axios, this.basePath));
1289
+ }
1290
+ /**
1291
+ *
1292
+ * @summary Créer un plan d\'abonnement pour un club (Admin)
1293
+ * @param {AdminClubSubscriptionsApiCreateSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
1294
+ * @param {*} [options] Override http request option.
1295
+ * @throws {RequiredError}
1296
+ * @memberof AdminClubSubscriptionsApi
1297
+ */
1298
+ createSubscriptionPlanForClubAdmin(requestParameters, options) {
1299
+ return AdminClubSubscriptionsApiFp(this.configuration).createSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.createSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
1300
+ }
1301
+ /**
1302
+ *
1303
+ * @summary Supprimer un plan (Admin)
1304
+ * @param {AdminClubSubscriptionsApiDeleteSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
1305
+ * @param {*} [options] Override http request option.
1306
+ * @throws {RequiredError}
1307
+ * @memberof AdminClubSubscriptionsApi
1308
+ */
1309
+ deleteSubscriptionPlanForClubAdmin(requestParameters, options) {
1310
+ return AdminClubSubscriptionsApiFp(this.configuration).deleteSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
1311
+ }
1312
+ /**
1313
+ *
1314
+ * @summary Réactiver un plan (Admin)
1315
+ * @param {AdminClubSubscriptionsApiRestoreSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
1316
+ * @param {*} [options] Override http request option.
1317
+ * @throws {RequiredError}
1318
+ * @memberof AdminClubSubscriptionsApi
1319
+ */
1320
+ restoreSubscriptionPlanForClubAdmin(requestParameters, options) {
1321
+ return AdminClubSubscriptionsApiFp(this.configuration).restoreSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
1322
+ }
1323
+ /**
1324
+ *
1325
+ * @summary Réactiver un prix (Admin)
1326
+ * @param {AdminClubSubscriptionsApiRestoreSubscriptionPriceForClubAdminRequest} requestParameters Request parameters.
1327
+ * @param {*} [options] Override http request option.
1328
+ * @throws {RequiredError}
1329
+ * @memberof AdminClubSubscriptionsApi
1330
+ */
1331
+ restoreSubscriptionPriceForClubAdmin(requestParameters, options) {
1332
+ return AdminClubSubscriptionsApiFp(this.configuration).restoreSubscriptionPriceForClubAdmin(requestParameters.id, requestParameters.priceId, options).then((request) => request(this.axios, this.basePath));
1333
+ }
1334
+ /**
1335
+ *
1336
+ * @summary Mettre à jour un plan (Admin)
1337
+ * @param {AdminClubSubscriptionsApiUpdateSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
1338
+ * @param {*} [options] Override http request option.
1339
+ * @throws {RequiredError}
1340
+ * @memberof AdminClubSubscriptionsApi
1341
+ */
1342
+ updateSubscriptionPlanForClubAdmin(requestParameters, options) {
1343
+ return AdminClubSubscriptionsApiFp(this.configuration).updateSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.priceId, requestParameters.updateSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
220
1344
  }
221
1345
  }
222
1346
  /**
@@ -227,32 +1351,31 @@ export const AdminClubsApiAxiosParamCreator = function (configuration) {
227
1351
  return {
228
1352
  /**
229
1353
  *
230
- * @summary Créer un nouveau club (Admin uniquement)
231
- * @param {CreateClubRequest} createClubRequest
1354
+ * @summary Supprimer un club (Admin uniquement)
1355
+ * @param {string} id ID du club
232
1356
  * @param {*} [options] Override http request option.
233
1357
  * @throws {RequiredError}
234
1358
  */
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`;
1359
+ deleteClub: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
1360
+ // verify required parameter 'id' is not null or undefined
1361
+ assertParamExists('deleteClub', 'id', id);
1362
+ const localVarPath = `/api/clubs/{id}`
1363
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
239
1364
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
240
1365
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
241
1366
  let baseOptions;
242
1367
  if (configuration) {
243
1368
  baseOptions = configuration.baseOptions;
244
1369
  }
245
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1370
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
246
1371
  const localVarHeaderParameter = {};
247
1372
  const localVarQueryParameter = {};
248
1373
  // authentication bearerAuth required
249
1374
  // http bearer authentication required
250
1375
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
251
- localVarHeaderParameter['Content-Type'] = 'application/json';
252
1376
  setSearchParams(localVarUrlObj, localVarQueryParameter);
253
1377
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
254
1378
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
255
- localVarRequestOptions.data = serializeDataIfNeeded(createClubRequest, localVarRequestOptions, configuration);
256
1379
  return {
257
1380
  url: toPathString(localVarUrlObj),
258
1381
  options: localVarRequestOptions,
@@ -260,12 +1383,16 @@ export const AdminClubsApiAxiosParamCreator = function (configuration) {
260
1383
  }),
261
1384
  /**
262
1385
  *
263
- * @summary Récupérer tous les clubs (Admin uniquement)
1386
+ * @summary Obtenir les infos d\'un club (Admin)
1387
+ * @param {string} id
264
1388
  * @param {*} [options] Override http request option.
265
1389
  * @throws {RequiredError}
266
1390
  */
267
- getAllClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
268
- const localVarPath = `/api/clubs`;
1391
+ getClubInfosAdmin: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
1392
+ // verify required parameter 'id' is not null or undefined
1393
+ assertParamExists('getClubInfosAdmin', 'id', id);
1394
+ const localVarPath = `/api/clubs/{id}/infos`
1395
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
269
1396
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
270
1397
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
271
1398
  let baseOptions;
@@ -286,6 +1413,43 @@ export const AdminClubsApiAxiosParamCreator = function (configuration) {
286
1413
  options: localVarRequestOptions,
287
1414
  };
288
1415
  }),
1416
+ /**
1417
+ *
1418
+ * @summary Mettre à jour les infos d\'un club (Admin)
1419
+ * @param {string} id
1420
+ * @param {object} body
1421
+ * @param {*} [options] Override http request option.
1422
+ * @throws {RequiredError}
1423
+ */
1424
+ updateClubInfosAdmin: (id_1, body_1, ...args_1) => __awaiter(this, [id_1, body_1, ...args_1], void 0, function* (id, body, options = {}) {
1425
+ // verify required parameter 'id' is not null or undefined
1426
+ assertParamExists('updateClubInfosAdmin', 'id', id);
1427
+ // verify required parameter 'body' is not null or undefined
1428
+ assertParamExists('updateClubInfosAdmin', 'body', body);
1429
+ const localVarPath = `/api/clubs/{id}/infos`
1430
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1431
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1432
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1433
+ let baseOptions;
1434
+ if (configuration) {
1435
+ baseOptions = configuration.baseOptions;
1436
+ }
1437
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
1438
+ const localVarHeaderParameter = {};
1439
+ const localVarQueryParameter = {};
1440
+ // authentication bearerAuth required
1441
+ // http bearer authentication required
1442
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1443
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1444
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1445
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1446
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1447
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
1448
+ return {
1449
+ url: toPathString(localVarUrlObj),
1450
+ options: localVarRequestOptions,
1451
+ };
1452
+ }),
289
1453
  };
290
1454
  };
291
1455
  /**
@@ -297,32 +1461,50 @@ export const AdminClubsApiFp = function (configuration) {
297
1461
  return {
298
1462
  /**
299
1463
  *
300
- * @summary Créer un nouveau club (Admin uniquement)
301
- * @param {CreateClubRequest} createClubRequest
1464
+ * @summary Supprimer un club (Admin uniquement)
1465
+ * @param {string} id ID du club
1466
+ * @param {*} [options] Override http request option.
1467
+ * @throws {RequiredError}
1468
+ */
1469
+ deleteClub(id, options) {
1470
+ return __awaiter(this, void 0, void 0, function* () {
1471
+ var _a, _b, _c;
1472
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteClub(id, options);
1473
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1474
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClubsApi.deleteClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1475
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1476
+ });
1477
+ },
1478
+ /**
1479
+ *
1480
+ * @summary Obtenir les infos d\'un club (Admin)
1481
+ * @param {string} id
302
1482
  * @param {*} [options] Override http request option.
303
1483
  * @throws {RequiredError}
304
1484
  */
305
- createClub(createClubRequest, options) {
1485
+ getClubInfosAdmin(id, options) {
306
1486
  return __awaiter(this, void 0, void 0, function* () {
307
1487
  var _a, _b, _c;
308
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createClub(createClubRequest, options);
1488
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubInfosAdmin(id, options);
309
1489
  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;
1490
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClubsApi.getClubInfosAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
311
1491
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
312
1492
  });
313
1493
  },
314
1494
  /**
315
1495
  *
316
- * @summary Récupérer tous les clubs (Admin uniquement)
1496
+ * @summary Mettre à jour les infos d\'un club (Admin)
1497
+ * @param {string} id
1498
+ * @param {object} body
317
1499
  * @param {*} [options] Override http request option.
318
1500
  * @throws {RequiredError}
319
1501
  */
320
- getAllClubs(options) {
1502
+ updateClubInfosAdmin(id, body, options) {
321
1503
  return __awaiter(this, void 0, void 0, function* () {
322
1504
  var _a, _b, _c;
323
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllClubs(options);
1505
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubInfosAdmin(id, body, options);
324
1506
  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;
1507
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminClubsApi.updateClubInfosAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
326
1508
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
327
1509
  });
328
1510
  },
@@ -337,22 +1519,33 @@ export const AdminClubsApiFactory = function (configuration, basePath, axios) {
337
1519
  return {
338
1520
  /**
339
1521
  *
340
- * @summary Créer un nouveau club (Admin uniquement)
341
- * @param {AdminClubsApiCreateClubRequest} requestParameters Request parameters.
1522
+ * @summary Supprimer un club (Admin uniquement)
1523
+ * @param {AdminClubsApiDeleteClubRequest} requestParameters Request parameters.
1524
+ * @param {*} [options] Override http request option.
1525
+ * @throws {RequiredError}
1526
+ */
1527
+ deleteClub(requestParameters, options) {
1528
+ return localVarFp.deleteClub(requestParameters.id, options).then((request) => request(axios, basePath));
1529
+ },
1530
+ /**
1531
+ *
1532
+ * @summary Obtenir les infos d\'un club (Admin)
1533
+ * @param {AdminClubsApiGetClubInfosAdminRequest} requestParameters Request parameters.
342
1534
  * @param {*} [options] Override http request option.
343
1535
  * @throws {RequiredError}
344
1536
  */
345
- createClub(requestParameters, options) {
346
- return localVarFp.createClub(requestParameters.createClubRequest, options).then((request) => request(axios, basePath));
1537
+ getClubInfosAdmin(requestParameters, options) {
1538
+ return localVarFp.getClubInfosAdmin(requestParameters.id, options).then((request) => request(axios, basePath));
347
1539
  },
348
1540
  /**
349
1541
  *
350
- * @summary Récupérer tous les clubs (Admin uniquement)
1542
+ * @summary Mettre à jour les infos d\'un club (Admin)
1543
+ * @param {AdminClubsApiUpdateClubInfosAdminRequest} requestParameters Request parameters.
351
1544
  * @param {*} [options] Override http request option.
352
1545
  * @throws {RequiredError}
353
1546
  */
354
- getAllClubs(options) {
355
- return localVarFp.getAllClubs(options).then((request) => request(axios, basePath));
1547
+ updateClubInfosAdmin(requestParameters, options) {
1548
+ return localVarFp.updateClubInfosAdmin(requestParameters.id, requestParameters.body, options).then((request) => request(axios, basePath));
356
1549
  },
357
1550
  };
358
1551
  };
@@ -365,133 +1558,36 @@ export const AdminClubsApiFactory = function (configuration, basePath, axios) {
365
1558
  export class AdminClubsApi extends BaseAPI {
366
1559
  /**
367
1560
  *
368
- * @summary Créer un nouveau club (Admin uniquement)
369
- * @param {AdminClubsApiCreateClubRequest} requestParameters Request parameters.
1561
+ * @summary Supprimer un club (Admin uniquement)
1562
+ * @param {AdminClubsApiDeleteClubRequest} requestParameters Request parameters.
370
1563
  * @param {*} [options] Override http request option.
371
1564
  * @throws {RequiredError}
372
1565
  * @memberof AdminClubsApi
373
1566
  */
374
- createClub(requestParameters, options) {
375
- return AdminClubsApiFp(this.configuration).createClub(requestParameters.createClubRequest, options).then((request) => request(this.axios, this.basePath));
1567
+ deleteClub(requestParameters, options) {
1568
+ return AdminClubsApiFp(this.configuration).deleteClub(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
376
1569
  }
377
1570
  /**
378
1571
  *
379
- * @summary Récupérer tous les clubs (Admin uniquement)
1572
+ * @summary Obtenir les infos d\'un club (Admin)
1573
+ * @param {AdminClubsApiGetClubInfosAdminRequest} requestParameters Request parameters.
380
1574
  * @param {*} [options] Override http request option.
381
1575
  * @throws {RequiredError}
382
1576
  * @memberof AdminClubsApi
383
1577
  */
384
- getAllClubs(options) {
385
- return AdminClubsApiFp(this.configuration).getAllClubs(options).then((request) => request(this.axios, this.basePath));
1578
+ getClubInfosAdmin(requestParameters, options) {
1579
+ return AdminClubsApiFp(this.configuration).getClubInfosAdmin(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
386
1580
  }
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
1581
  /**
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.
1582
+ *
1583
+ * @summary Mettre à jour les infos d\'un club (Admin)
1584
+ * @param {AdminClubsApiUpdateClubInfosAdminRequest} requestParameters Request parameters.
489
1585
  * @param {*} [options] Override http request option.
490
1586
  * @throws {RequiredError}
491
- * @memberof BookingsApi
1587
+ * @memberof AdminClubsApi
492
1588
  */
493
- cancelBooking(requestParameters, options) {
494
- return BookingsApiFp(this.configuration).cancelBooking(requestParameters.bookingId, requestParameters.cancelBookingRequest, options).then((request) => request(this.axios, this.basePath));
1589
+ updateClubInfosAdmin(requestParameters, options) {
1590
+ return AdminClubsApiFp(this.configuration).updateClubInfosAdmin(requestParameters.id, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
495
1591
  }
496
1592
  }
497
1593
  /**
@@ -502,19 +1598,15 @@ export const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
502
1598
  return {
503
1599
  /**
504
1600
  *
505
- * @summary Chiffre d\'affaires quotidien
506
- * @param {string} id ID du club
1601
+ * @summary Chiffre d\'affaires quotidien (club courant)
507
1602
  * @param {string} date Date (format YYYY-MM-DD)
508
1603
  * @param {*} [options] Override http request option.
509
1604
  * @throws {RequiredError}
510
1605
  */
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);
1606
+ getDailyTurnOver: (date_1, ...args_1) => __awaiter(this, [date_1, ...args_1], void 0, function* (date, options = {}) {
514
1607
  // verify required parameter 'date' is not null or undefined
515
1608
  assertParamExists('getDailyTurnOver', 'date', date);
516
- const localVarPath = `/api/clubs/{id}/turnover/daily`
517
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1609
+ const localVarPath = `/api/analytics/dailyTurnover`;
518
1610
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
519
1611
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
520
1612
  let baseOptions;
@@ -542,8 +1634,7 @@ export const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
542
1634
  }),
543
1635
  /**
544
1636
  *
545
- * @summary Récupérer les factures du club
546
- * @param {string} id ID du club
1637
+ * @summary Récupérer les factures du club courant
547
1638
  * @param {number} [page] Numéro de page
548
1639
  * @param {number} [limit] Nombre d\'éléments par page
549
1640
  * @param {GetInvoicesStatusEnum} [status] Filtrer par statut
@@ -552,11 +1643,8 @@ export const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
552
1643
  * @param {*} [options] Override http request option.
553
1644
  * @throws {RequiredError}
554
1645
  */
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)));
1646
+ getInvoices: (page_1, limit_1, status_1, startDate_1, endDate_1, ...args_1) => __awaiter(this, [page_1, limit_1, status_1, startDate_1, endDate_1, ...args_1], void 0, function* (page, limit, status, startDate, endDate, options = {}) {
1647
+ const localVarPath = `/api/clubs/invoices`;
560
1648
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
561
1649
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
562
1650
  let baseOptions;
@@ -598,22 +1686,18 @@ export const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
598
1686
  }),
599
1687
  /**
600
1688
  *
601
- * @summary Chiffre d\'affaires mensuel
602
- * @param {string} id ID du club
1689
+ * @summary Chiffre d\'affaires mensuel (club courant)
603
1690
  * @param {number} year Année
604
1691
  * @param {number} month Mois (1-12)
605
1692
  * @param {*} [options] Override http request option.
606
1693
  * @throws {RequiredError}
607
1694
  */
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);
1695
+ getMonthlyTurnOver: (year_1, month_1, ...args_1) => __awaiter(this, [year_1, month_1, ...args_1], void 0, function* (year, month, options = {}) {
611
1696
  // verify required parameter 'year' is not null or undefined
612
1697
  assertParamExists('getMonthlyTurnOver', 'year', year);
613
1698
  // verify required parameter 'month' is not null or undefined
614
1699
  assertParamExists('getMonthlyTurnOver', 'month', month);
615
- const localVarPath = `/api/clubs/{id}/turnover/monthly`
616
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1700
+ const localVarPath = `/api/analytics/monthlyTurnover`;
617
1701
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
618
1702
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
619
1703
  let baseOptions;
@@ -642,19 +1726,15 @@ export const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
642
1726
  }),
643
1727
  /**
644
1728
  *
645
- * @summary Chiffre d\'affaires annuel
646
- * @param {string} id ID du club
1729
+ * @summary Chiffre d\'affaires annuel (club courant)
647
1730
  * @param {number} year Année
648
1731
  * @param {*} [options] Override http request option.
649
1732
  * @throws {RequiredError}
650
1733
  */
651
- getYearlyTurnOver: (id_1, year_1, ...args_1) => __awaiter(this, [id_1, year_1, ...args_1], void 0, function* (id, year, options = {}) {
652
- // verify required parameter 'id' is not null or undefined
653
- assertParamExists('getYearlyTurnOver', 'id', id);
1734
+ getYearlyTurnOver: (year_1, ...args_1) => __awaiter(this, [year_1, ...args_1], void 0, function* (year, options = {}) {
654
1735
  // verify required parameter 'year' is not null or undefined
655
1736
  assertParamExists('getYearlyTurnOver', 'year', year);
656
- const localVarPath = `/api/clubs/{id}/turnover/yearly`
657
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1737
+ const localVarPath = `/api/analytics/yearlyTurnover`;
658
1738
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
659
1739
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
660
1740
  let baseOptions;
@@ -689,16 +1769,15 @@ export const ClubAnalyticsApiFp = function (configuration) {
689
1769
  return {
690
1770
  /**
691
1771
  *
692
- * @summary Chiffre d\'affaires quotidien
693
- * @param {string} id ID du club
1772
+ * @summary Chiffre d\'affaires quotidien (club courant)
694
1773
  * @param {string} date Date (format YYYY-MM-DD)
695
1774
  * @param {*} [options] Override http request option.
696
1775
  * @throws {RequiredError}
697
1776
  */
698
- getDailyTurnOver(id, date, options) {
1777
+ getDailyTurnOver(date, options) {
699
1778
  return __awaiter(this, void 0, void 0, function* () {
700
1779
  var _a, _b, _c;
701
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getDailyTurnOver(id, date, options);
1780
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDailyTurnOver(date, options);
702
1781
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
703
1782
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsApi.getDailyTurnOver']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
704
1783
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -706,8 +1785,7 @@ export const ClubAnalyticsApiFp = function (configuration) {
706
1785
  },
707
1786
  /**
708
1787
  *
709
- * @summary Récupérer les factures du club
710
- * @param {string} id ID du club
1788
+ * @summary Récupérer les factures du club courant
711
1789
  * @param {number} [page] Numéro de page
712
1790
  * @param {number} [limit] Nombre d\'éléments par page
713
1791
  * @param {GetInvoicesStatusEnum} [status] Filtrer par statut
@@ -716,10 +1794,10 @@ export const ClubAnalyticsApiFp = function (configuration) {
716
1794
  * @param {*} [options] Override http request option.
717
1795
  * @throws {RequiredError}
718
1796
  */
719
- getInvoices(id, page, limit, status, startDate, endDate, options) {
1797
+ getInvoices(page, limit, status, startDate, endDate, options) {
720
1798
  return __awaiter(this, void 0, void 0, function* () {
721
1799
  var _a, _b, _c;
722
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvoices(id, page, limit, status, startDate, endDate, options);
1800
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvoices(page, limit, status, startDate, endDate, options);
723
1801
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
724
1802
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsApi.getInvoices']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
725
1803
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -727,17 +1805,16 @@ export const ClubAnalyticsApiFp = function (configuration) {
727
1805
  },
728
1806
  /**
729
1807
  *
730
- * @summary Chiffre d\'affaires mensuel
731
- * @param {string} id ID du club
1808
+ * @summary Chiffre d\'affaires mensuel (club courant)
732
1809
  * @param {number} year Année
733
1810
  * @param {number} month Mois (1-12)
734
1811
  * @param {*} [options] Override http request option.
735
1812
  * @throws {RequiredError}
736
1813
  */
737
- getMonthlyTurnOver(id, year, month, options) {
1814
+ getMonthlyTurnOver(year, month, options) {
738
1815
  return __awaiter(this, void 0, void 0, function* () {
739
1816
  var _a, _b, _c;
740
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getMonthlyTurnOver(id, year, month, options);
1817
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getMonthlyTurnOver(year, month, options);
741
1818
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
742
1819
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsApi.getMonthlyTurnOver']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
743
1820
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -745,16 +1822,15 @@ export const ClubAnalyticsApiFp = function (configuration) {
745
1822
  },
746
1823
  /**
747
1824
  *
748
- * @summary Chiffre d\'affaires annuel
749
- * @param {string} id ID du club
1825
+ * @summary Chiffre d\'affaires annuel (club courant)
750
1826
  * @param {number} year Année
751
1827
  * @param {*} [options] Override http request option.
752
1828
  * @throws {RequiredError}
753
1829
  */
754
- getYearlyTurnOver(id, year, options) {
1830
+ getYearlyTurnOver(year, options) {
755
1831
  return __awaiter(this, void 0, void 0, function* () {
756
1832
  var _a, _b, _c;
757
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getYearlyTurnOver(id, year, options);
1833
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getYearlyTurnOver(year, options);
758
1834
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
759
1835
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsApi.getYearlyTurnOver']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
760
1836
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -771,43 +1847,43 @@ export const ClubAnalyticsApiFactory = function (configuration, basePath, axios)
771
1847
  return {
772
1848
  /**
773
1849
  *
774
- * @summary Chiffre d\'affaires quotidien
1850
+ * @summary Chiffre d\'affaires quotidien (club courant)
775
1851
  * @param {ClubAnalyticsApiGetDailyTurnOverRequest} requestParameters Request parameters.
776
1852
  * @param {*} [options] Override http request option.
777
1853
  * @throws {RequiredError}
778
1854
  */
779
1855
  getDailyTurnOver(requestParameters, options) {
780
- return localVarFp.getDailyTurnOver(requestParameters.id, requestParameters.date, options).then((request) => request(axios, basePath));
1856
+ return localVarFp.getDailyTurnOver(requestParameters.date, options).then((request) => request(axios, basePath));
781
1857
  },
782
1858
  /**
783
1859
  *
784
- * @summary Récupérer les factures du club
1860
+ * @summary Récupérer les factures du club courant
785
1861
  * @param {ClubAnalyticsApiGetInvoicesRequest} requestParameters Request parameters.
786
1862
  * @param {*} [options] Override http request option.
787
1863
  * @throws {RequiredError}
788
1864
  */
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));
1865
+ getInvoices(requestParameters = {}, options) {
1866
+ return localVarFp.getInvoices(requestParameters.page, requestParameters.limit, requestParameters.status, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
791
1867
  },
792
1868
  /**
793
1869
  *
794
- * @summary Chiffre d\'affaires mensuel
1870
+ * @summary Chiffre d\'affaires mensuel (club courant)
795
1871
  * @param {ClubAnalyticsApiGetMonthlyTurnOverRequest} requestParameters Request parameters.
796
1872
  * @param {*} [options] Override http request option.
797
1873
  * @throws {RequiredError}
798
1874
  */
799
1875
  getMonthlyTurnOver(requestParameters, options) {
800
- return localVarFp.getMonthlyTurnOver(requestParameters.id, requestParameters.year, requestParameters.month, options).then((request) => request(axios, basePath));
1876
+ return localVarFp.getMonthlyTurnOver(requestParameters.year, requestParameters.month, options).then((request) => request(axios, basePath));
801
1877
  },
802
1878
  /**
803
1879
  *
804
- * @summary Chiffre d\'affaires annuel
1880
+ * @summary Chiffre d\'affaires annuel (club courant)
805
1881
  * @param {ClubAnalyticsApiGetYearlyTurnOverRequest} requestParameters Request parameters.
806
1882
  * @param {*} [options] Override http request option.
807
1883
  * @throws {RequiredError}
808
1884
  */
809
1885
  getYearlyTurnOver(requestParameters, options) {
810
- return localVarFp.getYearlyTurnOver(requestParameters.id, requestParameters.year, options).then((request) => request(axios, basePath));
1886
+ return localVarFp.getYearlyTurnOver(requestParameters.year, options).then((request) => request(axios, basePath));
811
1887
  },
812
1888
  };
813
1889
  };
@@ -820,47 +1896,47 @@ export const ClubAnalyticsApiFactory = function (configuration, basePath, axios)
820
1896
  export class ClubAnalyticsApi extends BaseAPI {
821
1897
  /**
822
1898
  *
823
- * @summary Chiffre d\'affaires quotidien
1899
+ * @summary Chiffre d\'affaires quotidien (club courant)
824
1900
  * @param {ClubAnalyticsApiGetDailyTurnOverRequest} requestParameters Request parameters.
825
1901
  * @param {*} [options] Override http request option.
826
1902
  * @throws {RequiredError}
827
1903
  * @memberof ClubAnalyticsApi
828
1904
  */
829
1905
  getDailyTurnOver(requestParameters, options) {
830
- return ClubAnalyticsApiFp(this.configuration).getDailyTurnOver(requestParameters.id, requestParameters.date, options).then((request) => request(this.axios, this.basePath));
1906
+ return ClubAnalyticsApiFp(this.configuration).getDailyTurnOver(requestParameters.date, options).then((request) => request(this.axios, this.basePath));
831
1907
  }
832
1908
  /**
833
1909
  *
834
- * @summary Récupérer les factures du club
1910
+ * @summary Récupérer les factures du club courant
835
1911
  * @param {ClubAnalyticsApiGetInvoicesRequest} requestParameters Request parameters.
836
1912
  * @param {*} [options] Override http request option.
837
1913
  * @throws {RequiredError}
838
1914
  * @memberof ClubAnalyticsApi
839
1915
  */
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));
1916
+ getInvoices(requestParameters = {}, options) {
1917
+ return ClubAnalyticsApiFp(this.configuration).getInvoices(requestParameters.page, requestParameters.limit, requestParameters.status, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
842
1918
  }
843
1919
  /**
844
1920
  *
845
- * @summary Chiffre d\'affaires mensuel
1921
+ * @summary Chiffre d\'affaires mensuel (club courant)
846
1922
  * @param {ClubAnalyticsApiGetMonthlyTurnOverRequest} requestParameters Request parameters.
847
1923
  * @param {*} [options] Override http request option.
848
1924
  * @throws {RequiredError}
849
1925
  * @memberof ClubAnalyticsApi
850
1926
  */
851
1927
  getMonthlyTurnOver(requestParameters, options) {
852
- return ClubAnalyticsApiFp(this.configuration).getMonthlyTurnOver(requestParameters.id, requestParameters.year, requestParameters.month, options).then((request) => request(this.axios, this.basePath));
1928
+ return ClubAnalyticsApiFp(this.configuration).getMonthlyTurnOver(requestParameters.year, requestParameters.month, options).then((request) => request(this.axios, this.basePath));
853
1929
  }
854
1930
  /**
855
1931
  *
856
- * @summary Chiffre d\'affaires annuel
1932
+ * @summary Chiffre d\'affaires annuel (club courant)
857
1933
  * @param {ClubAnalyticsApiGetYearlyTurnOverRequest} requestParameters Request parameters.
858
1934
  * @param {*} [options] Override http request option.
859
1935
  * @throws {RequiredError}
860
1936
  * @memberof ClubAnalyticsApi
861
1937
  */
862
1938
  getYearlyTurnOver(requestParameters, options) {
863
- return ClubAnalyticsApiFp(this.configuration).getYearlyTurnOver(requestParameters.id, requestParameters.year, options).then((request) => request(this.axios, this.basePath));
1939
+ return ClubAnalyticsApiFp(this.configuration).getYearlyTurnOver(requestParameters.year, options).then((request) => request(this.axios, this.basePath));
864
1940
  }
865
1941
  }
866
1942
  /**
@@ -878,88 +1954,19 @@ export const GetInvoicesStatusEnum = {
878
1954
  * ManagerBookingsApi - axios parameter creator
879
1955
  * @export
880
1956
  */
881
- export const ManagerBookingsApiAxiosParamCreator = function (configuration) {
882
- return {
883
- /**
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
887
- * @param {*} [options] Override http request option.
888
- * @throws {RequiredError}
889
- */
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)));
930
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
931
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
932
- let baseOptions;
933
- if (configuration) {
934
- baseOptions = configuration.baseOptions;
935
- }
936
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
937
- const localVarHeaderParameter = {};
938
- const localVarQueryParameter = {};
939
- // authentication bearerAuth required
940
- // http bearer authentication required
941
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
942
- localVarHeaderParameter['Content-Type'] = 'application/json';
943
- setSearchParams(localVarUrlObj, localVarQueryParameter);
944
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
945
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
946
- localVarRequestOptions.data = serializeDataIfNeeded(checkInPlayersRequest, localVarRequestOptions, configuration);
947
- return {
948
- url: toPathString(localVarUrlObj),
949
- options: localVarRequestOptions,
950
- };
951
- }),
1957
+ export const ManagerBookingsApiAxiosParamCreator = function (configuration) {
1958
+ return {
952
1959
  /**
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
1960
+ * Applique les frais de no-show à une réservation. Capture automatiquement les paiements autorisés et charge le créateur pour le montant manquant.
1961
+ * @summary Appliquer les frais de no-show
955
1962
  * @param {string} bookingId ID MongoDB de la réservation
956
1963
  * @param {*} [options] Override http request option.
957
1964
  * @throws {RequiredError}
958
1965
  */
959
- getBookingPaymentStatus: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
1966
+ applyNoShowFee: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
960
1967
  // verify required parameter 'bookingId' is not null or undefined
961
- assertParamExists('getBookingPaymentStatus', 'bookingId', bookingId);
962
- const localVarPath = `/api/bookings/{bookingId}/payment-status`
1968
+ assertParamExists('applyNoShowFee', 'bookingId', bookingId);
1969
+ const localVarPath = `/api/bookings/{bookingId}/apply-noshow-fee`
963
1970
  .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
964
1971
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
965
1972
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -967,7 +1974,7 @@ export const ManagerBookingsApiAxiosParamCreator = function (configuration) {
967
1974
  if (configuration) {
968
1975
  baseOptions = configuration.baseOptions;
969
1976
  }
970
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1977
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
971
1978
  const localVarHeaderParameter = {};
972
1979
  const localVarQueryParameter = {};
973
1980
  // authentication bearerAuth required
@@ -1043,39 +2050,6 @@ export const ManagerBookingsApiFp = function (configuration) {
1043
2050
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1044
2051
  });
1045
2052
  },
1046
- /**
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
1051
- * @param {*} [options] Override http request option.
1052
- * @throws {RequiredError}
1053
- */
1054
- checkInPlayers(bookingId, checkInPlayersRequest, options) {
1055
- return __awaiter(this, void 0, void 0, function* () {
1056
- var _a, _b, _c;
1057
- const localVarAxiosArgs = yield localVarAxiosParamCreator.checkInPlayers(bookingId, checkInPlayersRequest, options);
1058
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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
2053
  /**
1080
2054
  * 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
2055
  * @summary Annuler une réservation (gestionnaire)
@@ -1112,26 +2086,6 @@ export const ManagerBookingsApiFactory = function (configuration, basePath, axio
1112
2086
  applyNoShowFee(requestParameters, options) {
1113
2087
  return localVarFp.applyNoShowFee(requestParameters.bookingId, options).then((request) => request(axios, basePath));
1114
2088
  },
1115
- /**
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.
1119
- * @param {*} [options] Override http request option.
1120
- * @throws {RequiredError}
1121
- */
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
2089
  /**
1136
2090
  * 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
2091
  * @summary Annuler une réservation (gestionnaire)
@@ -1162,28 +2116,6 @@ export class ManagerBookingsApi extends BaseAPI {
1162
2116
  applyNoShowFee(requestParameters, options) {
1163
2117
  return ManagerBookingsApiFp(this.configuration).applyNoShowFee(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
1164
2118
  }
1165
- /**
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.
1169
- * @param {*} [options] Override http request option.
1170
- * @throws {RequiredError}
1171
- * @memberof ManagerBookingsApi
1172
- */
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
2119
  /**
1188
2120
  * 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
2121
  * @summary Annuler une réservation (gestionnaire)
@@ -1204,19 +2136,15 @@ export const ManagerClubCourtsApiAxiosParamCreator = function (configuration) {
1204
2136
  return {
1205
2137
  /**
1206
2138
  *
1207
- * @summary Créer un terrain pour un club
1208
- * @param {string} id ID du club
2139
+ * @summary Créer un terrain pour le club courant
1209
2140
  * @param {CreateCourtRequest} createCourtRequest
1210
2141
  * @param {*} [options] Override http request option.
1211
2142
  * @throws {RequiredError}
1212
2143
  */
1213
- createCourtForClub: (id_1, createCourtRequest_1, ...args_1) => __awaiter(this, [id_1, createCourtRequest_1, ...args_1], void 0, function* (id, createCourtRequest, options = {}) {
1214
- // verify required parameter 'id' is not null or undefined
1215
- assertParamExists('createCourtForClub', 'id', id);
2144
+ createCourtForClub: (createCourtRequest_1, ...args_1) => __awaiter(this, [createCourtRequest_1, ...args_1], void 0, function* (createCourtRequest, options = {}) {
1216
2145
  // verify required parameter 'createCourtRequest' is not null or undefined
1217
2146
  assertParamExists('createCourtForClub', 'createCourtRequest', createCourtRequest);
1218
- const localVarPath = `/api/clubs/{id}/courts`
1219
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2147
+ const localVarPath = `/api/clubs/courts`;
1220
2148
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1221
2149
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1222
2150
  let baseOptions;
@@ -1241,16 +2169,12 @@ export const ManagerClubCourtsApiAxiosParamCreator = function (configuration) {
1241
2169
  }),
1242
2170
  /**
1243
2171
  *
1244
- * @summary Récupérer tous les terrains pour un club
1245
- * @param {string} id ID du club
2172
+ * @summary Récupérer tous les terrains du club courant
1246
2173
  * @param {*} [options] Override http request option.
1247
2174
  * @throws {RequiredError}
1248
2175
  */
1249
- getCourtsByClub: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
1250
- // verify required parameter 'id' is not null or undefined
1251
- assertParamExists('getCourtsByClub', 'id', id);
1252
- const localVarPath = `/api/clubs/{id}/courts`
1253
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2176
+ getCourtsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2177
+ const localVarPath = `/api/clubs/courts`;
1254
2178
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1255
2179
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1256
2180
  let baseOptions;
@@ -1282,16 +2206,15 @@ export const ManagerClubCourtsApiFp = function (configuration) {
1282
2206
  return {
1283
2207
  /**
1284
2208
  *
1285
- * @summary Créer un terrain pour un club
1286
- * @param {string} id ID du club
2209
+ * @summary Créer un terrain pour le club courant
1287
2210
  * @param {CreateCourtRequest} createCourtRequest
1288
2211
  * @param {*} [options] Override http request option.
1289
2212
  * @throws {RequiredError}
1290
2213
  */
1291
- createCourtForClub(id, createCourtRequest, options) {
2214
+ createCourtForClub(createCourtRequest, options) {
1292
2215
  return __awaiter(this, void 0, void 0, function* () {
1293
2216
  var _a, _b, _c;
1294
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createCourtForClub(id, createCourtRequest, options);
2217
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createCourtForClub(createCourtRequest, options);
1295
2218
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1296
2219
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubCourtsApi.createCourtForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1297
2220
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1299,15 +2222,14 @@ export const ManagerClubCourtsApiFp = function (configuration) {
1299
2222
  },
1300
2223
  /**
1301
2224
  *
1302
- * @summary Récupérer tous les terrains pour un club
1303
- * @param {string} id ID du club
2225
+ * @summary Récupérer tous les terrains du club courant
1304
2226
  * @param {*} [options] Override http request option.
1305
2227
  * @throws {RequiredError}
1306
2228
  */
1307
- getCourtsByClub(id, options) {
2229
+ getCourtsByClub(options) {
1308
2230
  return __awaiter(this, void 0, void 0, function* () {
1309
2231
  var _a, _b, _c;
1310
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getCourtsByClub(id, options);
2232
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getCourtsByClub(options);
1311
2233
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1312
2234
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubCourtsApi.getCourtsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1313
2235
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1324,23 +2246,22 @@ export const ManagerClubCourtsApiFactory = function (configuration, basePath, ax
1324
2246
  return {
1325
2247
  /**
1326
2248
  *
1327
- * @summary Créer un terrain pour un club
2249
+ * @summary Créer un terrain pour le club courant
1328
2250
  * @param {ManagerClubCourtsApiCreateCourtForClubRequest} requestParameters Request parameters.
1329
2251
  * @param {*} [options] Override http request option.
1330
2252
  * @throws {RequiredError}
1331
2253
  */
1332
2254
  createCourtForClub(requestParameters, options) {
1333
- return localVarFp.createCourtForClub(requestParameters.id, requestParameters.createCourtRequest, options).then((request) => request(axios, basePath));
2255
+ return localVarFp.createCourtForClub(requestParameters.createCourtRequest, options).then((request) => request(axios, basePath));
1334
2256
  },
1335
2257
  /**
1336
2258
  *
1337
- * @summary Récupérer tous les terrains pour un club
1338
- * @param {ManagerClubCourtsApiGetCourtsByClubRequest} requestParameters Request parameters.
2259
+ * @summary Récupérer tous les terrains du club courant
1339
2260
  * @param {*} [options] Override http request option.
1340
2261
  * @throws {RequiredError}
1341
2262
  */
1342
- getCourtsByClub(requestParameters, options) {
1343
- return localVarFp.getCourtsByClub(requestParameters.id, options).then((request) => request(axios, basePath));
2263
+ getCourtsByClub(options) {
2264
+ return localVarFp.getCourtsByClub(options).then((request) => request(axios, basePath));
1344
2265
  },
1345
2266
  };
1346
2267
  };
@@ -1353,25 +2274,24 @@ export const ManagerClubCourtsApiFactory = function (configuration, basePath, ax
1353
2274
  export class ManagerClubCourtsApi extends BaseAPI {
1354
2275
  /**
1355
2276
  *
1356
- * @summary Créer un terrain pour un club
2277
+ * @summary Créer un terrain pour le club courant
1357
2278
  * @param {ManagerClubCourtsApiCreateCourtForClubRequest} requestParameters Request parameters.
1358
2279
  * @param {*} [options] Override http request option.
1359
2280
  * @throws {RequiredError}
1360
2281
  * @memberof ManagerClubCourtsApi
1361
2282
  */
1362
2283
  createCourtForClub(requestParameters, options) {
1363
- return ManagerClubCourtsApiFp(this.configuration).createCourtForClub(requestParameters.id, requestParameters.createCourtRequest, options).then((request) => request(this.axios, this.basePath));
2284
+ return ManagerClubCourtsApiFp(this.configuration).createCourtForClub(requestParameters.createCourtRequest, options).then((request) => request(this.axios, this.basePath));
1364
2285
  }
1365
2286
  /**
1366
2287
  *
1367
- * @summary Récupérer tous les terrains pour un club
1368
- * @param {ManagerClubCourtsApiGetCourtsByClubRequest} requestParameters Request parameters.
2288
+ * @summary Récupérer tous les terrains du club courant
1369
2289
  * @param {*} [options] Override http request option.
1370
2290
  * @throws {RequiredError}
1371
2291
  * @memberof ManagerClubCourtsApi
1372
2292
  */
1373
- getCourtsByClub(requestParameters, options) {
1374
- return ManagerClubCourtsApiFp(this.configuration).getCourtsByClub(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
2293
+ getCourtsByClub(options) {
2294
+ return ManagerClubCourtsApiFp(this.configuration).getCourtsByClub(options).then((request) => request(this.axios, this.basePath));
1375
2295
  }
1376
2296
  }
1377
2297
  /**
@@ -1753,6 +2673,250 @@ export class ManagerClubRolesApi extends BaseAPI {
1753
2673
  return ManagerClubRolesApiFp(this.configuration).updateClubRole(requestParameters.id, requestParameters.updateClubRoleRequestBody, options).then((request) => request(this.axios, this.basePath));
1754
2674
  }
1755
2675
  }
2676
+ /**
2677
+ * ManagerClubSettingsApi - axios parameter creator
2678
+ * @export
2679
+ */
2680
+ export const ManagerClubSettingsApiAxiosParamCreator = function (configuration) {
2681
+ return {
2682
+ /**
2683
+ *
2684
+ * @summary Créer les paramètres d\'un club
2685
+ * @param {CreateClubSettingsRequest} createClubSettingsRequest
2686
+ * @param {*} [options] Override http request option.
2687
+ * @throws {RequiredError}
2688
+ */
2689
+ createClubSettings: (createClubSettingsRequest_1, ...args_1) => __awaiter(this, [createClubSettingsRequest_1, ...args_1], void 0, function* (createClubSettingsRequest, options = {}) {
2690
+ // verify required parameter 'createClubSettingsRequest' is not null or undefined
2691
+ assertParamExists('createClubSettings', 'createClubSettingsRequest', createClubSettingsRequest);
2692
+ const localVarPath = `/api/club-settings`;
2693
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2694
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2695
+ let baseOptions;
2696
+ if (configuration) {
2697
+ baseOptions = configuration.baseOptions;
2698
+ }
2699
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2700
+ const localVarHeaderParameter = {};
2701
+ const localVarQueryParameter = {};
2702
+ // authentication bearerAuth required
2703
+ // http bearer authentication required
2704
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2705
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2706
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2707
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2708
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2709
+ localVarRequestOptions.data = serializeDataIfNeeded(createClubSettingsRequest, localVarRequestOptions, configuration);
2710
+ return {
2711
+ url: toPathString(localVarUrlObj),
2712
+ options: localVarRequestOptions,
2713
+ };
2714
+ }),
2715
+ /**
2716
+ *
2717
+ * @summary Supprimer les paramètres d\'un club
2718
+ * @param {DeleteClubSettingsRequest} deleteClubSettingsRequest
2719
+ * @param {*} [options] Override http request option.
2720
+ * @throws {RequiredError}
2721
+ */
2722
+ deleteClubSettings: (deleteClubSettingsRequest_1, ...args_1) => __awaiter(this, [deleteClubSettingsRequest_1, ...args_1], void 0, function* (deleteClubSettingsRequest, options = {}) {
2723
+ // verify required parameter 'deleteClubSettingsRequest' is not null or undefined
2724
+ assertParamExists('deleteClubSettings', 'deleteClubSettingsRequest', deleteClubSettingsRequest);
2725
+ const localVarPath = `/api/club-settings`;
2726
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2727
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2728
+ let baseOptions;
2729
+ if (configuration) {
2730
+ baseOptions = configuration.baseOptions;
2731
+ }
2732
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
2733
+ const localVarHeaderParameter = {};
2734
+ const localVarQueryParameter = {};
2735
+ // authentication bearerAuth required
2736
+ // http bearer authentication required
2737
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2738
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2739
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2740
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2741
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2742
+ localVarRequestOptions.data = serializeDataIfNeeded(deleteClubSettingsRequest, localVarRequestOptions, configuration);
2743
+ return {
2744
+ url: toPathString(localVarUrlObj),
2745
+ options: localVarRequestOptions,
2746
+ };
2747
+ }),
2748
+ /**
2749
+ *
2750
+ * @summary Mettre à jour les paramètres d\'un club
2751
+ * @param {UpdateClubSettingsRequest} updateClubSettingsRequest
2752
+ * @param {*} [options] Override http request option.
2753
+ * @throws {RequiredError}
2754
+ */
2755
+ updateClubSettings: (updateClubSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubSettingsRequest_1, ...args_1], void 0, function* (updateClubSettingsRequest, options = {}) {
2756
+ // verify required parameter 'updateClubSettingsRequest' is not null or undefined
2757
+ assertParamExists('updateClubSettings', 'updateClubSettingsRequest', updateClubSettingsRequest);
2758
+ const localVarPath = `/api/club-settings`;
2759
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2760
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2761
+ let baseOptions;
2762
+ if (configuration) {
2763
+ baseOptions = configuration.baseOptions;
2764
+ }
2765
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
2766
+ const localVarHeaderParameter = {};
2767
+ const localVarQueryParameter = {};
2768
+ // authentication bearerAuth required
2769
+ // http bearer authentication required
2770
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2771
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2772
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2773
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2774
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2775
+ localVarRequestOptions.data = serializeDataIfNeeded(updateClubSettingsRequest, localVarRequestOptions, configuration);
2776
+ return {
2777
+ url: toPathString(localVarUrlObj),
2778
+ options: localVarRequestOptions,
2779
+ };
2780
+ }),
2781
+ };
2782
+ };
2783
+ /**
2784
+ * ManagerClubSettingsApi - functional programming interface
2785
+ * @export
2786
+ */
2787
+ export const ManagerClubSettingsApiFp = function (configuration) {
2788
+ const localVarAxiosParamCreator = ManagerClubSettingsApiAxiosParamCreator(configuration);
2789
+ return {
2790
+ /**
2791
+ *
2792
+ * @summary Créer les paramètres d\'un club
2793
+ * @param {CreateClubSettingsRequest} createClubSettingsRequest
2794
+ * @param {*} [options] Override http request option.
2795
+ * @throws {RequiredError}
2796
+ */
2797
+ createClubSettings(createClubSettingsRequest, options) {
2798
+ return __awaiter(this, void 0, void 0, function* () {
2799
+ var _a, _b, _c;
2800
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createClubSettings(createClubSettingsRequest, options);
2801
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2802
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubSettingsApi.createClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2803
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2804
+ });
2805
+ },
2806
+ /**
2807
+ *
2808
+ * @summary Supprimer les paramètres d\'un club
2809
+ * @param {DeleteClubSettingsRequest} deleteClubSettingsRequest
2810
+ * @param {*} [options] Override http request option.
2811
+ * @throws {RequiredError}
2812
+ */
2813
+ deleteClubSettings(deleteClubSettingsRequest, options) {
2814
+ return __awaiter(this, void 0, void 0, function* () {
2815
+ var _a, _b, _c;
2816
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteClubSettings(deleteClubSettingsRequest, options);
2817
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2818
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubSettingsApi.deleteClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2819
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2820
+ });
2821
+ },
2822
+ /**
2823
+ *
2824
+ * @summary Mettre à jour les paramètres d\'un club
2825
+ * @param {UpdateClubSettingsRequest} updateClubSettingsRequest
2826
+ * @param {*} [options] Override http request option.
2827
+ * @throws {RequiredError}
2828
+ */
2829
+ updateClubSettings(updateClubSettingsRequest, options) {
2830
+ return __awaiter(this, void 0, void 0, function* () {
2831
+ var _a, _b, _c;
2832
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubSettings(updateClubSettingsRequest, options);
2833
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2834
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubSettingsApi.updateClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2835
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2836
+ });
2837
+ },
2838
+ };
2839
+ };
2840
+ /**
2841
+ * ManagerClubSettingsApi - factory interface
2842
+ * @export
2843
+ */
2844
+ export const ManagerClubSettingsApiFactory = function (configuration, basePath, axios) {
2845
+ const localVarFp = ManagerClubSettingsApiFp(configuration);
2846
+ return {
2847
+ /**
2848
+ *
2849
+ * @summary Créer les paramètres d\'un club
2850
+ * @param {ManagerClubSettingsApiCreateClubSettingsRequest} requestParameters Request parameters.
2851
+ * @param {*} [options] Override http request option.
2852
+ * @throws {RequiredError}
2853
+ */
2854
+ createClubSettings(requestParameters, options) {
2855
+ return localVarFp.createClubSettings(requestParameters.createClubSettingsRequest, options).then((request) => request(axios, basePath));
2856
+ },
2857
+ /**
2858
+ *
2859
+ * @summary Supprimer les paramètres d\'un club
2860
+ * @param {ManagerClubSettingsApiDeleteClubSettingsRequest} requestParameters Request parameters.
2861
+ * @param {*} [options] Override http request option.
2862
+ * @throws {RequiredError}
2863
+ */
2864
+ deleteClubSettings(requestParameters, options) {
2865
+ return localVarFp.deleteClubSettings(requestParameters.deleteClubSettingsRequest, options).then((request) => request(axios, basePath));
2866
+ },
2867
+ /**
2868
+ *
2869
+ * @summary Mettre à jour les paramètres d\'un club
2870
+ * @param {ManagerClubSettingsApiUpdateClubSettingsRequest} requestParameters Request parameters.
2871
+ * @param {*} [options] Override http request option.
2872
+ * @throws {RequiredError}
2873
+ */
2874
+ updateClubSettings(requestParameters, options) {
2875
+ return localVarFp.updateClubSettings(requestParameters.updateClubSettingsRequest, options).then((request) => request(axios, basePath));
2876
+ },
2877
+ };
2878
+ };
2879
+ /**
2880
+ * ManagerClubSettingsApi - object-oriented interface
2881
+ * @export
2882
+ * @class ManagerClubSettingsApi
2883
+ * @extends {BaseAPI}
2884
+ */
2885
+ export class ManagerClubSettingsApi extends BaseAPI {
2886
+ /**
2887
+ *
2888
+ * @summary Créer les paramètres d\'un club
2889
+ * @param {ManagerClubSettingsApiCreateClubSettingsRequest} requestParameters Request parameters.
2890
+ * @param {*} [options] Override http request option.
2891
+ * @throws {RequiredError}
2892
+ * @memberof ManagerClubSettingsApi
2893
+ */
2894
+ createClubSettings(requestParameters, options) {
2895
+ return ManagerClubSettingsApiFp(this.configuration).createClubSettings(requestParameters.createClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
2896
+ }
2897
+ /**
2898
+ *
2899
+ * @summary Supprimer les paramètres d\'un club
2900
+ * @param {ManagerClubSettingsApiDeleteClubSettingsRequest} requestParameters Request parameters.
2901
+ * @param {*} [options] Override http request option.
2902
+ * @throws {RequiredError}
2903
+ * @memberof ManagerClubSettingsApi
2904
+ */
2905
+ deleteClubSettings(requestParameters, options) {
2906
+ return ManagerClubSettingsApiFp(this.configuration).deleteClubSettings(requestParameters.deleteClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
2907
+ }
2908
+ /**
2909
+ *
2910
+ * @summary Mettre à jour les paramètres d\'un club
2911
+ * @param {ManagerClubSettingsApiUpdateClubSettingsRequest} requestParameters Request parameters.
2912
+ * @param {*} [options] Override http request option.
2913
+ * @throws {RequiredError}
2914
+ * @memberof ManagerClubSettingsApi
2915
+ */
2916
+ updateClubSettings(requestParameters, options) {
2917
+ return ManagerClubSettingsApiFp(this.configuration).updateClubSettings(requestParameters.updateClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
2918
+ }
2919
+ }
1756
2920
  /**
1757
2921
  * ManagerClubSlotsApi - axios parameter creator
1758
2922
  * @export
@@ -1761,22 +2925,18 @@ export const ManagerClubSlotsApiAxiosParamCreator = function (configuration) {
1761
2925
  return {
1762
2926
  /**
1763
2927
  *
1764
- * @summary Supprimer des créneaux pour un club sur une plage de dates
1765
- * @param {string} id ID du club
2928
+ * @summary Supprimer des créneaux pour le club courant sur une plage de dates
1766
2929
  * @param {string} start Date de début (format ISO)
1767
2930
  * @param {string} end Date de fin (format ISO)
1768
2931
  * @param {*} [options] Override http request option.
1769
2932
  * @throws {RequiredError}
1770
2933
  */
1771
- deleteSlotsByClubInRange: (id_1, start_1, end_1, ...args_1) => __awaiter(this, [id_1, start_1, end_1, ...args_1], void 0, function* (id, start, end, options = {}) {
1772
- // verify required parameter 'id' is not null or undefined
1773
- assertParamExists('deleteSlotsByClubInRange', 'id', id);
2934
+ deleteSlotsByClubInRange: (start_1, end_1, ...args_1) => __awaiter(this, [start_1, end_1, ...args_1], void 0, function* (start, end, options = {}) {
1774
2935
  // verify required parameter 'start' is not null or undefined
1775
2936
  assertParamExists('deleteSlotsByClubInRange', 'start', start);
1776
2937
  // verify required parameter 'end' is not null or undefined
1777
2938
  assertParamExists('deleteSlotsByClubInRange', 'end', end);
1778
- const localVarPath = `/api/clubs/{id}/slots`
1779
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2939
+ const localVarPath = `/api/clubs/slots`;
1780
2940
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1781
2941
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1782
2942
  let baseOptions;
@@ -1809,18 +2969,14 @@ export const ManagerClubSlotsApiAxiosParamCreator = function (configuration) {
1809
2969
  }),
1810
2970
  /**
1811
2971
  *
1812
- * @summary Récupérer tous les créneaux pour un club
1813
- * @param {string} id ID du club
2972
+ * @summary Récupérer tous les créneaux du club courant
1814
2973
  * @param {string} [start] Date de début (format ISO)
1815
2974
  * @param {string} [end] Date de fin (format ISO)
1816
2975
  * @param {*} [options] Override http request option.
1817
2976
  * @throws {RequiredError}
1818
2977
  */
1819
- getSlotsByClub: (id_1, start_1, end_1, ...args_1) => __awaiter(this, [id_1, start_1, end_1, ...args_1], void 0, function* (id, start, end, options = {}) {
1820
- // verify required parameter 'id' is not null or undefined
1821
- assertParamExists('getSlotsByClub', 'id', id);
1822
- const localVarPath = `/api/clubs/{id}/slots`
1823
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2978
+ getSlotsByClub: (start_1, end_1, ...args_1) => __awaiter(this, [start_1, end_1, ...args_1], void 0, function* (start, end, options = {}) {
2979
+ const localVarPath = `/api/clubs/slots`;
1824
2980
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1825
2981
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1826
2982
  let baseOptions;
@@ -1862,17 +3018,16 @@ export const ManagerClubSlotsApiFp = function (configuration) {
1862
3018
  return {
1863
3019
  /**
1864
3020
  *
1865
- * @summary Supprimer des créneaux pour un club sur une plage de dates
1866
- * @param {string} id ID du club
3021
+ * @summary Supprimer des créneaux pour le club courant sur une plage de dates
1867
3022
  * @param {string} start Date de début (format ISO)
1868
3023
  * @param {string} end Date de fin (format ISO)
1869
3024
  * @param {*} [options] Override http request option.
1870
3025
  * @throws {RequiredError}
1871
3026
  */
1872
- deleteSlotsByClubInRange(id, start, end, options) {
3027
+ deleteSlotsByClubInRange(start, end, options) {
1873
3028
  return __awaiter(this, void 0, void 0, function* () {
1874
3029
  var _a, _b, _c;
1875
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSlotsByClubInRange(id, start, end, options);
3030
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSlotsByClubInRange(start, end, options);
1876
3031
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1877
3032
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubSlotsApi.deleteSlotsByClubInRange']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1878
3033
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1880,17 +3035,16 @@ export const ManagerClubSlotsApiFp = function (configuration) {
1880
3035
  },
1881
3036
  /**
1882
3037
  *
1883
- * @summary Récupérer tous les créneaux pour un club
1884
- * @param {string} id ID du club
3038
+ * @summary Récupérer tous les créneaux du club courant
1885
3039
  * @param {string} [start] Date de début (format ISO)
1886
3040
  * @param {string} [end] Date de fin (format ISO)
1887
3041
  * @param {*} [options] Override http request option.
1888
3042
  * @throws {RequiredError}
1889
3043
  */
1890
- getSlotsByClub(id, start, end, options) {
3044
+ getSlotsByClub(start, end, options) {
1891
3045
  return __awaiter(this, void 0, void 0, function* () {
1892
3046
  var _a, _b, _c;
1893
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getSlotsByClub(id, start, end, options);
3047
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSlotsByClub(start, end, options);
1894
3048
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1895
3049
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubSlotsApi.getSlotsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1896
3050
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1907,23 +3061,23 @@ export const ManagerClubSlotsApiFactory = function (configuration, basePath, axi
1907
3061
  return {
1908
3062
  /**
1909
3063
  *
1910
- * @summary Supprimer des créneaux pour un club sur une plage de dates
3064
+ * @summary Supprimer des créneaux pour le club courant sur une plage de dates
1911
3065
  * @param {ManagerClubSlotsApiDeleteSlotsByClubInRangeRequest} requestParameters Request parameters.
1912
3066
  * @param {*} [options] Override http request option.
1913
3067
  * @throws {RequiredError}
1914
3068
  */
1915
3069
  deleteSlotsByClubInRange(requestParameters, options) {
1916
- return localVarFp.deleteSlotsByClubInRange(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
3070
+ return localVarFp.deleteSlotsByClubInRange(requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
1917
3071
  },
1918
3072
  /**
1919
3073
  *
1920
- * @summary Récupérer tous les créneaux pour un club
3074
+ * @summary Récupérer tous les créneaux du club courant
1921
3075
  * @param {ManagerClubSlotsApiGetSlotsByClubRequest} requestParameters Request parameters.
1922
3076
  * @param {*} [options] Override http request option.
1923
3077
  * @throws {RequiredError}
1924
3078
  */
1925
- getSlotsByClub(requestParameters, options) {
1926
- return localVarFp.getSlotsByClub(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
3079
+ getSlotsByClub(requestParameters = {}, options) {
3080
+ return localVarFp.getSlotsByClub(requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
1927
3081
  },
1928
3082
  };
1929
3083
  };
@@ -1936,25 +3090,25 @@ export const ManagerClubSlotsApiFactory = function (configuration, basePath, axi
1936
3090
  export class ManagerClubSlotsApi extends BaseAPI {
1937
3091
  /**
1938
3092
  *
1939
- * @summary Supprimer des créneaux pour un club sur une plage de dates
3093
+ * @summary Supprimer des créneaux pour le club courant sur une plage de dates
1940
3094
  * @param {ManagerClubSlotsApiDeleteSlotsByClubInRangeRequest} requestParameters Request parameters.
1941
3095
  * @param {*} [options] Override http request option.
1942
3096
  * @throws {RequiredError}
1943
3097
  * @memberof ManagerClubSlotsApi
1944
3098
  */
1945
3099
  deleteSlotsByClubInRange(requestParameters, options) {
1946
- return ManagerClubSlotsApiFp(this.configuration).deleteSlotsByClubInRange(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
3100
+ return ManagerClubSlotsApiFp(this.configuration).deleteSlotsByClubInRange(requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
1947
3101
  }
1948
3102
  /**
1949
3103
  *
1950
- * @summary Récupérer tous les créneaux pour un club
3104
+ * @summary Récupérer tous les créneaux du club courant
1951
3105
  * @param {ManagerClubSlotsApiGetSlotsByClubRequest} requestParameters Request parameters.
1952
3106
  * @param {*} [options] Override http request option.
1953
3107
  * @throws {RequiredError}
1954
3108
  * @memberof ManagerClubSlotsApi
1955
3109
  */
1956
- getSlotsByClub(requestParameters, options) {
1957
- return ManagerClubSlotsApiFp(this.configuration).getSlotsByClub(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
3110
+ getSlotsByClub(requestParameters = {}, options) {
3111
+ return ManagerClubSlotsApiFp(this.configuration).getSlotsByClub(requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
1958
3112
  }
1959
3113
  }
1960
3114
  /**
@@ -1965,19 +3119,15 @@ export const ManagerClubSubscriptionsApiAxiosParamCreator = function (configurat
1965
3119
  return {
1966
3120
  /**
1967
3121
  *
1968
- * @summary Archiver un prix
1969
- * @param {string} id ID du club
3122
+ * @summary Archiver un prix (club courant)
1970
3123
  * @param {string} priceId ID du prix Stripe
1971
3124
  * @param {*} [options] Override http request option.
1972
3125
  * @throws {RequiredError}
1973
3126
  */
1974
- archivePriceForSubscriptionPlan: (id_1, priceId_1, ...args_1) => __awaiter(this, [id_1, priceId_1, ...args_1], void 0, function* (id, priceId, options = {}) {
1975
- // verify required parameter 'id' is not null or undefined
1976
- assertParamExists('archivePriceForSubscriptionPlan', 'id', id);
3127
+ archivePriceForSubscriptionPlan: (priceId_1, ...args_1) => __awaiter(this, [priceId_1, ...args_1], void 0, function* (priceId, options = {}) {
1977
3128
  // verify required parameter 'priceId' is not null or undefined
1978
3129
  assertParamExists('archivePriceForSubscriptionPlan', 'priceId', priceId);
1979
- const localVarPath = `/api/clubs/{id}/subscription-plans/{priceId}/archive-price`
1980
- .replace(`{${"id"}}`, encodeURIComponent(String(id)))
3130
+ const localVarPath = `/api/clubs/subscription-plans/{priceId}/archive-price`
1981
3131
  .replace(`{${"priceId"}}`, encodeURIComponent(String(priceId)));
1982
3132
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1983
3133
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2001,22 +3151,18 @@ export const ManagerClubSubscriptionsApiAxiosParamCreator = function (configurat
2001
3151
  }),
2002
3152
  /**
2003
3153
  *
2004
- * @summary Créer un nouveau prix pour un plan
2005
- * @param {string} id ID du club
3154
+ * @summary Créer un nouveau prix pour un plan (club courant)
2006
3155
  * @param {string} productId ID du produit Stripe
2007
3156
  * @param {CreatePriceRequest} createPriceRequest
2008
3157
  * @param {*} [options] Override http request option.
2009
3158
  * @throws {RequiredError}
2010
3159
  */
2011
- createPriceForSubscriptionPlan: (id_1, productId_1, createPriceRequest_1, ...args_1) => __awaiter(this, [id_1, productId_1, createPriceRequest_1, ...args_1], void 0, function* (id, productId, createPriceRequest, options = {}) {
2012
- // verify required parameter 'id' is not null or undefined
2013
- assertParamExists('createPriceForSubscriptionPlan', 'id', id);
3160
+ createPriceForSubscriptionPlan: (productId_1, createPriceRequest_1, ...args_1) => __awaiter(this, [productId_1, createPriceRequest_1, ...args_1], void 0, function* (productId, createPriceRequest, options = {}) {
2014
3161
  // verify required parameter 'productId' is not null or undefined
2015
3162
  assertParamExists('createPriceForSubscriptionPlan', 'productId', productId);
2016
3163
  // verify required parameter 'createPriceRequest' is not null or undefined
2017
3164
  assertParamExists('createPriceForSubscriptionPlan', 'createPriceRequest', createPriceRequest);
2018
- const localVarPath = `/api/clubs/{id}/subscription-plans/{productId}/prices`
2019
- .replace(`{${"id"}}`, encodeURIComponent(String(id)))
3165
+ const localVarPath = `/api/clubs/subscription-plans/{productId}/prices`
2020
3166
  .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
2021
3167
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2022
3168
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2042,19 +3188,15 @@ export const ManagerClubSubscriptionsApiAxiosParamCreator = function (configurat
2042
3188
  }),
2043
3189
  /**
2044
3190
  *
2045
- * @summary Créer un plan d\'abonnement pour un club
2046
- * @param {string} id ID du club
3191
+ * @summary Créer un plan d\'abonnement pour le club courant
2047
3192
  * @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
2048
3193
  * @param {*} [options] Override http request option.
2049
3194
  * @throws {RequiredError}
2050
3195
  */
2051
- createSubscriptionPlanForClub: (id_1, createSubscriptionPlanRequest_1, ...args_1) => __awaiter(this, [id_1, createSubscriptionPlanRequest_1, ...args_1], void 0, function* (id, createSubscriptionPlanRequest, options = {}) {
2052
- // verify required parameter 'id' is not null or undefined
2053
- assertParamExists('createSubscriptionPlanForClub', 'id', id);
3196
+ createSubscriptionPlanForClub: (createSubscriptionPlanRequest_1, ...args_1) => __awaiter(this, [createSubscriptionPlanRequest_1, ...args_1], void 0, function* (createSubscriptionPlanRequest, options = {}) {
2054
3197
  // verify required parameter 'createSubscriptionPlanRequest' is not null or undefined
2055
3198
  assertParamExists('createSubscriptionPlanForClub', 'createSubscriptionPlanRequest', createSubscriptionPlanRequest);
2056
- const localVarPath = `/api/clubs/{id}/subscription-plans`
2057
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
3199
+ const localVarPath = `/api/clubs/subscription-plans`;
2058
3200
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2059
3201
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2060
3202
  let baseOptions;
@@ -2079,19 +3221,15 @@ export const ManagerClubSubscriptionsApiAxiosParamCreator = function (configurat
2079
3221
  }),
2080
3222
  /**
2081
3223
  *
2082
- * @summary Supprimer un plan d\'abonnement pour un club
2083
- * @param {string} id ID du club
3224
+ * @summary Supprimer un plan d\'abonnement (club courant)
2084
3225
  * @param {string} productId ID du produit Stripe
2085
3226
  * @param {*} [options] Override http request option.
2086
3227
  * @throws {RequiredError}
2087
3228
  */
2088
- deleteSubscriptionPlanForClub: (id_1, productId_1, ...args_1) => __awaiter(this, [id_1, productId_1, ...args_1], void 0, function* (id, productId, options = {}) {
2089
- // verify required parameter 'id' is not null or undefined
2090
- assertParamExists('deleteSubscriptionPlanForClub', 'id', id);
3229
+ deleteSubscriptionPlanForClub: (productId_1, ...args_1) => __awaiter(this, [productId_1, ...args_1], void 0, function* (productId, options = {}) {
2091
3230
  // verify required parameter 'productId' is not null or undefined
2092
3231
  assertParamExists('deleteSubscriptionPlanForClub', 'productId', productId);
2093
- const localVarPath = `/api/clubs/{id}/subscription-plans/{productId}`
2094
- .replace(`{${"id"}}`, encodeURIComponent(String(id)))
3232
+ const localVarPath = `/api/clubs/subscription-plans/{productId}`
2095
3233
  .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
2096
3234
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2097
3235
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2115,19 +3253,15 @@ export const ManagerClubSubscriptionsApiAxiosParamCreator = function (configurat
2115
3253
  }),
2116
3254
  /**
2117
3255
  *
2118
- * @summary Réactiver un plan d\'abonnement
2119
- * @param {string} id ID du club
3256
+ * @summary Réactiver un plan d\'abonnement (club courant)
2120
3257
  * @param {string} productId ID du produit Stripe
2121
3258
  * @param {*} [options] Override http request option.
2122
3259
  * @throws {RequiredError}
2123
3260
  */
2124
- restoreSubscriptionPlanForClub: (id_1, productId_1, ...args_1) => __awaiter(this, [id_1, productId_1, ...args_1], void 0, function* (id, productId, options = {}) {
2125
- // verify required parameter 'id' is not null or undefined
2126
- assertParamExists('restoreSubscriptionPlanForClub', 'id', id);
3261
+ restoreSubscriptionPlanForClub: (productId_1, ...args_1) => __awaiter(this, [productId_1, ...args_1], void 0, function* (productId, options = {}) {
2127
3262
  // verify required parameter 'productId' is not null or undefined
2128
3263
  assertParamExists('restoreSubscriptionPlanForClub', 'productId', productId);
2129
- const localVarPath = `/api/clubs/{id}/subscription-plans/{productId}/restore`
2130
- .replace(`{${"id"}}`, encodeURIComponent(String(id)))
3264
+ const localVarPath = `/api/clubs/subscription-plans/{productId}/restore`
2131
3265
  .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
2132
3266
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2133
3267
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2151,19 +3285,15 @@ export const ManagerClubSubscriptionsApiAxiosParamCreator = function (configurat
2151
3285
  }),
2152
3286
  /**
2153
3287
  *
2154
- * @summary Réactiver un prix
2155
- * @param {string} id ID du club
3288
+ * @summary Réactiver un prix (club courant)
2156
3289
  * @param {string} priceId ID du prix Stripe
2157
3290
  * @param {*} [options] Override http request option.
2158
3291
  * @throws {RequiredError}
2159
3292
  */
2160
- restoreSubscriptionPriceForClub: (id_1, priceId_1, ...args_1) => __awaiter(this, [id_1, priceId_1, ...args_1], void 0, function* (id, priceId, options = {}) {
2161
- // verify required parameter 'id' is not null or undefined
2162
- assertParamExists('restoreSubscriptionPriceForClub', 'id', id);
3293
+ restoreSubscriptionPriceForClub: (priceId_1, ...args_1) => __awaiter(this, [priceId_1, ...args_1], void 0, function* (priceId, options = {}) {
2163
3294
  // verify required parameter 'priceId' is not null or undefined
2164
3295
  assertParamExists('restoreSubscriptionPriceForClub', 'priceId', priceId);
2165
- const localVarPath = `/api/clubs/{id}/subscription-plans/{priceId}/restore-price`
2166
- .replace(`{${"id"}}`, encodeURIComponent(String(id)))
3296
+ const localVarPath = `/api/clubs/subscription-plans/{priceId}/restore-price`
2167
3297
  .replace(`{${"priceId"}}`, encodeURIComponent(String(priceId)));
2168
3298
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2169
3299
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2187,22 +3317,18 @@ export const ManagerClubSubscriptionsApiAxiosParamCreator = function (configurat
2187
3317
  }),
2188
3318
  /**
2189
3319
  *
2190
- * @summary Mettre à jour un plan d\'abonnement
2191
- * @param {string} id ID du club
3320
+ * @summary Mettre à jour un plan d\'abonnement (club courant)
2192
3321
  * @param {string} priceId ID du prix Stripe
2193
3322
  * @param {UpdateSubscriptionPlanRequest} updateSubscriptionPlanRequest
2194
3323
  * @param {*} [options] Override http request option.
2195
3324
  * @throws {RequiredError}
2196
3325
  */
2197
- updateSubscriptionPlanForClub: (id_1, priceId_1, updateSubscriptionPlanRequest_1, ...args_1) => __awaiter(this, [id_1, priceId_1, updateSubscriptionPlanRequest_1, ...args_1], void 0, function* (id, priceId, updateSubscriptionPlanRequest, options = {}) {
2198
- // verify required parameter 'id' is not null or undefined
2199
- assertParamExists('updateSubscriptionPlanForClub', 'id', id);
3326
+ updateSubscriptionPlanForClub: (priceId_1, updateSubscriptionPlanRequest_1, ...args_1) => __awaiter(this, [priceId_1, updateSubscriptionPlanRequest_1, ...args_1], void 0, function* (priceId, updateSubscriptionPlanRequest, options = {}) {
2200
3327
  // verify required parameter 'priceId' is not null or undefined
2201
3328
  assertParamExists('updateSubscriptionPlanForClub', 'priceId', priceId);
2202
3329
  // verify required parameter 'updateSubscriptionPlanRequest' is not null or undefined
2203
3330
  assertParamExists('updateSubscriptionPlanForClub', 'updateSubscriptionPlanRequest', updateSubscriptionPlanRequest);
2204
- const localVarPath = `/api/clubs/{id}/subscription-plans/{priceId}`
2205
- .replace(`{${"id"}}`, encodeURIComponent(String(id)))
3331
+ const localVarPath = `/api/clubs/subscription-plans/{priceId}`
2206
3332
  .replace(`{${"priceId"}}`, encodeURIComponent(String(priceId)));
2207
3333
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2208
3334
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2237,16 +3363,15 @@ export const ManagerClubSubscriptionsApiFp = function (configuration) {
2237
3363
  return {
2238
3364
  /**
2239
3365
  *
2240
- * @summary Archiver un prix
2241
- * @param {string} id ID du club
3366
+ * @summary Archiver un prix (club courant)
2242
3367
  * @param {string} priceId ID du prix Stripe
2243
3368
  * @param {*} [options] Override http request option.
2244
3369
  * @throws {RequiredError}
2245
3370
  */
2246
- archivePriceForSubscriptionPlan(id, priceId, options) {
3371
+ archivePriceForSubscriptionPlan(priceId, options) {
2247
3372
  return __awaiter(this, void 0, void 0, function* () {
2248
3373
  var _a, _b, _c;
2249
- const localVarAxiosArgs = yield localVarAxiosParamCreator.archivePriceForSubscriptionPlan(id, priceId, options);
3374
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.archivePriceForSubscriptionPlan(priceId, options);
2250
3375
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2251
3376
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubSubscriptionsApi.archivePriceForSubscriptionPlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2252
3377
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2254,17 +3379,16 @@ export const ManagerClubSubscriptionsApiFp = function (configuration) {
2254
3379
  },
2255
3380
  /**
2256
3381
  *
2257
- * @summary Créer un nouveau prix pour un plan
2258
- * @param {string} id ID du club
3382
+ * @summary Créer un nouveau prix pour un plan (club courant)
2259
3383
  * @param {string} productId ID du produit Stripe
2260
3384
  * @param {CreatePriceRequest} createPriceRequest
2261
3385
  * @param {*} [options] Override http request option.
2262
3386
  * @throws {RequiredError}
2263
3387
  */
2264
- createPriceForSubscriptionPlan(id, productId, createPriceRequest, options) {
3388
+ createPriceForSubscriptionPlan(productId, createPriceRequest, options) {
2265
3389
  return __awaiter(this, void 0, void 0, function* () {
2266
3390
  var _a, _b, _c;
2267
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createPriceForSubscriptionPlan(id, productId, createPriceRequest, options);
3391
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createPriceForSubscriptionPlan(productId, createPriceRequest, options);
2268
3392
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2269
3393
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubSubscriptionsApi.createPriceForSubscriptionPlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2270
3394
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2272,16 +3396,15 @@ export const ManagerClubSubscriptionsApiFp = function (configuration) {
2272
3396
  },
2273
3397
  /**
2274
3398
  *
2275
- * @summary Créer un plan d\'abonnement pour un club
2276
- * @param {string} id ID du club
3399
+ * @summary Créer un plan d\'abonnement pour le club courant
2277
3400
  * @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
2278
3401
  * @param {*} [options] Override http request option.
2279
3402
  * @throws {RequiredError}
2280
3403
  */
2281
- createSubscriptionPlanForClub(id, createSubscriptionPlanRequest, options) {
3404
+ createSubscriptionPlanForClub(createSubscriptionPlanRequest, options) {
2282
3405
  return __awaiter(this, void 0, void 0, function* () {
2283
3406
  var _a, _b, _c;
2284
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createSubscriptionPlanForClub(id, createSubscriptionPlanRequest, options);
3407
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createSubscriptionPlanForClub(createSubscriptionPlanRequest, options);
2285
3408
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2286
3409
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubSubscriptionsApi.createSubscriptionPlanForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2287
3410
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2289,16 +3412,15 @@ export const ManagerClubSubscriptionsApiFp = function (configuration) {
2289
3412
  },
2290
3413
  /**
2291
3414
  *
2292
- * @summary Supprimer un plan d\'abonnement pour un club
2293
- * @param {string} id ID du club
3415
+ * @summary Supprimer un plan d\'abonnement (club courant)
2294
3416
  * @param {string} productId ID du produit Stripe
2295
3417
  * @param {*} [options] Override http request option.
2296
3418
  * @throws {RequiredError}
2297
3419
  */
2298
- deleteSubscriptionPlanForClub(id, productId, options) {
3420
+ deleteSubscriptionPlanForClub(productId, options) {
2299
3421
  return __awaiter(this, void 0, void 0, function* () {
2300
3422
  var _a, _b, _c;
2301
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSubscriptionPlanForClub(id, productId, options);
3423
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSubscriptionPlanForClub(productId, options);
2302
3424
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2303
3425
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubSubscriptionsApi.deleteSubscriptionPlanForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2304
3426
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2306,16 +3428,15 @@ export const ManagerClubSubscriptionsApiFp = function (configuration) {
2306
3428
  },
2307
3429
  /**
2308
3430
  *
2309
- * @summary Réactiver un plan d\'abonnement
2310
- * @param {string} id ID du club
3431
+ * @summary Réactiver un plan d\'abonnement (club courant)
2311
3432
  * @param {string} productId ID du produit Stripe
2312
3433
  * @param {*} [options] Override http request option.
2313
3434
  * @throws {RequiredError}
2314
3435
  */
2315
- restoreSubscriptionPlanForClub(id, productId, options) {
3436
+ restoreSubscriptionPlanForClub(productId, options) {
2316
3437
  return __awaiter(this, void 0, void 0, function* () {
2317
3438
  var _a, _b, _c;
2318
- const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreSubscriptionPlanForClub(id, productId, options);
3439
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreSubscriptionPlanForClub(productId, options);
2319
3440
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2320
3441
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubSubscriptionsApi.restoreSubscriptionPlanForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2321
3442
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2323,16 +3444,15 @@ export const ManagerClubSubscriptionsApiFp = function (configuration) {
2323
3444
  },
2324
3445
  /**
2325
3446
  *
2326
- * @summary Réactiver un prix
2327
- * @param {string} id ID du club
3447
+ * @summary Réactiver un prix (club courant)
2328
3448
  * @param {string} priceId ID du prix Stripe
2329
3449
  * @param {*} [options] Override http request option.
2330
3450
  * @throws {RequiredError}
2331
3451
  */
2332
- restoreSubscriptionPriceForClub(id, priceId, options) {
3452
+ restoreSubscriptionPriceForClub(priceId, options) {
2333
3453
  return __awaiter(this, void 0, void 0, function* () {
2334
3454
  var _a, _b, _c;
2335
- const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreSubscriptionPriceForClub(id, priceId, options);
3455
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreSubscriptionPriceForClub(priceId, options);
2336
3456
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2337
3457
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubSubscriptionsApi.restoreSubscriptionPriceForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2338
3458
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2340,17 +3460,16 @@ export const ManagerClubSubscriptionsApiFp = function (configuration) {
2340
3460
  },
2341
3461
  /**
2342
3462
  *
2343
- * @summary Mettre à jour un plan d\'abonnement
2344
- * @param {string} id ID du club
3463
+ * @summary Mettre à jour un plan d\'abonnement (club courant)
2345
3464
  * @param {string} priceId ID du prix Stripe
2346
3465
  * @param {UpdateSubscriptionPlanRequest} updateSubscriptionPlanRequest
2347
3466
  * @param {*} [options] Override http request option.
2348
3467
  * @throws {RequiredError}
2349
3468
  */
2350
- updateSubscriptionPlanForClub(id, priceId, updateSubscriptionPlanRequest, options) {
3469
+ updateSubscriptionPlanForClub(priceId, updateSubscriptionPlanRequest, options) {
2351
3470
  return __awaiter(this, void 0, void 0, function* () {
2352
3471
  var _a, _b, _c;
2353
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSubscriptionPlanForClub(id, priceId, updateSubscriptionPlanRequest, options);
3472
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSubscriptionPlanForClub(priceId, updateSubscriptionPlanRequest, options);
2354
3473
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2355
3474
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubSubscriptionsApi.updateSubscriptionPlanForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2356
3475
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2367,73 +3486,73 @@ export const ManagerClubSubscriptionsApiFactory = function (configuration, baseP
2367
3486
  return {
2368
3487
  /**
2369
3488
  *
2370
- * @summary Archiver un prix
3489
+ * @summary Archiver un prix (club courant)
2371
3490
  * @param {ManagerClubSubscriptionsApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
2372
3491
  * @param {*} [options] Override http request option.
2373
3492
  * @throws {RequiredError}
2374
3493
  */
2375
3494
  archivePriceForSubscriptionPlan(requestParameters, options) {
2376
- return localVarFp.archivePriceForSubscriptionPlan(requestParameters.id, requestParameters.priceId, options).then((request) => request(axios, basePath));
3495
+ return localVarFp.archivePriceForSubscriptionPlan(requestParameters.priceId, options).then((request) => request(axios, basePath));
2377
3496
  },
2378
3497
  /**
2379
3498
  *
2380
- * @summary Créer un nouveau prix pour un plan
3499
+ * @summary Créer un nouveau prix pour un plan (club courant)
2381
3500
  * @param {ManagerClubSubscriptionsApiCreatePriceForSubscriptionPlanRequest} requestParameters Request parameters.
2382
3501
  * @param {*} [options] Override http request option.
2383
3502
  * @throws {RequiredError}
2384
3503
  */
2385
3504
  createPriceForSubscriptionPlan(requestParameters, options) {
2386
- return localVarFp.createPriceForSubscriptionPlan(requestParameters.id, requestParameters.productId, requestParameters.createPriceRequest, options).then((request) => request(axios, basePath));
3505
+ return localVarFp.createPriceForSubscriptionPlan(requestParameters.productId, requestParameters.createPriceRequest, options).then((request) => request(axios, basePath));
2387
3506
  },
2388
3507
  /**
2389
3508
  *
2390
- * @summary Créer un plan d\'abonnement pour un club
3509
+ * @summary Créer un plan d\'abonnement pour le club courant
2391
3510
  * @param {ManagerClubSubscriptionsApiCreateSubscriptionPlanForClubRequest} requestParameters Request parameters.
2392
3511
  * @param {*} [options] Override http request option.
2393
3512
  * @throws {RequiredError}
2394
3513
  */
2395
3514
  createSubscriptionPlanForClub(requestParameters, options) {
2396
- return localVarFp.createSubscriptionPlanForClub(requestParameters.id, requestParameters.createSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
3515
+ return localVarFp.createSubscriptionPlanForClub(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
2397
3516
  },
2398
3517
  /**
2399
3518
  *
2400
- * @summary Supprimer un plan d\'abonnement pour un club
3519
+ * @summary Supprimer un plan d\'abonnement (club courant)
2401
3520
  * @param {ManagerClubSubscriptionsApiDeleteSubscriptionPlanForClubRequest} requestParameters Request parameters.
2402
3521
  * @param {*} [options] Override http request option.
2403
3522
  * @throws {RequiredError}
2404
3523
  */
2405
3524
  deleteSubscriptionPlanForClub(requestParameters, options) {
2406
- return localVarFp.deleteSubscriptionPlanForClub(requestParameters.id, requestParameters.productId, options).then((request) => request(axios, basePath));
3525
+ return localVarFp.deleteSubscriptionPlanForClub(requestParameters.productId, options).then((request) => request(axios, basePath));
2407
3526
  },
2408
3527
  /**
2409
3528
  *
2410
- * @summary Réactiver un plan d\'abonnement
3529
+ * @summary Réactiver un plan d\'abonnement (club courant)
2411
3530
  * @param {ManagerClubSubscriptionsApiRestoreSubscriptionPlanForClubRequest} requestParameters Request parameters.
2412
3531
  * @param {*} [options] Override http request option.
2413
3532
  * @throws {RequiredError}
2414
3533
  */
2415
3534
  restoreSubscriptionPlanForClub(requestParameters, options) {
2416
- return localVarFp.restoreSubscriptionPlanForClub(requestParameters.id, requestParameters.productId, options).then((request) => request(axios, basePath));
3535
+ return localVarFp.restoreSubscriptionPlanForClub(requestParameters.productId, options).then((request) => request(axios, basePath));
2417
3536
  },
2418
3537
  /**
2419
3538
  *
2420
- * @summary Réactiver un prix
3539
+ * @summary Réactiver un prix (club courant)
2421
3540
  * @param {ManagerClubSubscriptionsApiRestoreSubscriptionPriceForClubRequest} requestParameters Request parameters.
2422
3541
  * @param {*} [options] Override http request option.
2423
3542
  * @throws {RequiredError}
2424
3543
  */
2425
3544
  restoreSubscriptionPriceForClub(requestParameters, options) {
2426
- return localVarFp.restoreSubscriptionPriceForClub(requestParameters.id, requestParameters.priceId, options).then((request) => request(axios, basePath));
3545
+ return localVarFp.restoreSubscriptionPriceForClub(requestParameters.priceId, options).then((request) => request(axios, basePath));
2427
3546
  },
2428
3547
  /**
2429
3548
  *
2430
- * @summary Mettre à jour un plan d\'abonnement
3549
+ * @summary Mettre à jour un plan d\'abonnement (club courant)
2431
3550
  * @param {ManagerClubSubscriptionsApiUpdateSubscriptionPlanForClubRequest} requestParameters Request parameters.
2432
3551
  * @param {*} [options] Override http request option.
2433
3552
  * @throws {RequiredError}
2434
3553
  */
2435
3554
  updateSubscriptionPlanForClub(requestParameters, options) {
2436
- return localVarFp.updateSubscriptionPlanForClub(requestParameters.id, requestParameters.priceId, requestParameters.updateSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
3555
+ return localVarFp.updateSubscriptionPlanForClub(requestParameters.priceId, requestParameters.updateSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
2437
3556
  },
2438
3557
  };
2439
3558
  };
@@ -2446,80 +3565,80 @@ export const ManagerClubSubscriptionsApiFactory = function (configuration, baseP
2446
3565
  export class ManagerClubSubscriptionsApi extends BaseAPI {
2447
3566
  /**
2448
3567
  *
2449
- * @summary Archiver un prix
3568
+ * @summary Archiver un prix (club courant)
2450
3569
  * @param {ManagerClubSubscriptionsApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
2451
3570
  * @param {*} [options] Override http request option.
2452
3571
  * @throws {RequiredError}
2453
3572
  * @memberof ManagerClubSubscriptionsApi
2454
3573
  */
2455
3574
  archivePriceForSubscriptionPlan(requestParameters, options) {
2456
- return ManagerClubSubscriptionsApiFp(this.configuration).archivePriceForSubscriptionPlan(requestParameters.id, requestParameters.priceId, options).then((request) => request(this.axios, this.basePath));
3575
+ return ManagerClubSubscriptionsApiFp(this.configuration).archivePriceForSubscriptionPlan(requestParameters.priceId, options).then((request) => request(this.axios, this.basePath));
2457
3576
  }
2458
3577
  /**
2459
3578
  *
2460
- * @summary Créer un nouveau prix pour un plan
3579
+ * @summary Créer un nouveau prix pour un plan (club courant)
2461
3580
  * @param {ManagerClubSubscriptionsApiCreatePriceForSubscriptionPlanRequest} requestParameters Request parameters.
2462
3581
  * @param {*} [options] Override http request option.
2463
3582
  * @throws {RequiredError}
2464
3583
  * @memberof ManagerClubSubscriptionsApi
2465
3584
  */
2466
3585
  createPriceForSubscriptionPlan(requestParameters, options) {
2467
- return ManagerClubSubscriptionsApiFp(this.configuration).createPriceForSubscriptionPlan(requestParameters.id, requestParameters.productId, requestParameters.createPriceRequest, options).then((request) => request(this.axios, this.basePath));
3586
+ return ManagerClubSubscriptionsApiFp(this.configuration).createPriceForSubscriptionPlan(requestParameters.productId, requestParameters.createPriceRequest, options).then((request) => request(this.axios, this.basePath));
2468
3587
  }
2469
3588
  /**
2470
3589
  *
2471
- * @summary Créer un plan d\'abonnement pour un club
3590
+ * @summary Créer un plan d\'abonnement pour le club courant
2472
3591
  * @param {ManagerClubSubscriptionsApiCreateSubscriptionPlanForClubRequest} requestParameters Request parameters.
2473
3592
  * @param {*} [options] Override http request option.
2474
3593
  * @throws {RequiredError}
2475
3594
  * @memberof ManagerClubSubscriptionsApi
2476
3595
  */
2477
3596
  createSubscriptionPlanForClub(requestParameters, options) {
2478
- return ManagerClubSubscriptionsApiFp(this.configuration).createSubscriptionPlanForClub(requestParameters.id, requestParameters.createSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
3597
+ return ManagerClubSubscriptionsApiFp(this.configuration).createSubscriptionPlanForClub(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
2479
3598
  }
2480
3599
  /**
2481
3600
  *
2482
- * @summary Supprimer un plan d\'abonnement pour un club
3601
+ * @summary Supprimer un plan d\'abonnement (club courant)
2483
3602
  * @param {ManagerClubSubscriptionsApiDeleteSubscriptionPlanForClubRequest} requestParameters Request parameters.
2484
3603
  * @param {*} [options] Override http request option.
2485
3604
  * @throws {RequiredError}
2486
3605
  * @memberof ManagerClubSubscriptionsApi
2487
3606
  */
2488
3607
  deleteSubscriptionPlanForClub(requestParameters, options) {
2489
- return ManagerClubSubscriptionsApiFp(this.configuration).deleteSubscriptionPlanForClub(requestParameters.id, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
3608
+ return ManagerClubSubscriptionsApiFp(this.configuration).deleteSubscriptionPlanForClub(requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
2490
3609
  }
2491
3610
  /**
2492
3611
  *
2493
- * @summary Réactiver un plan d\'abonnement
3612
+ * @summary Réactiver un plan d\'abonnement (club courant)
2494
3613
  * @param {ManagerClubSubscriptionsApiRestoreSubscriptionPlanForClubRequest} requestParameters Request parameters.
2495
3614
  * @param {*} [options] Override http request option.
2496
3615
  * @throws {RequiredError}
2497
3616
  * @memberof ManagerClubSubscriptionsApi
2498
3617
  */
2499
3618
  restoreSubscriptionPlanForClub(requestParameters, options) {
2500
- return ManagerClubSubscriptionsApiFp(this.configuration).restoreSubscriptionPlanForClub(requestParameters.id, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
3619
+ return ManagerClubSubscriptionsApiFp(this.configuration).restoreSubscriptionPlanForClub(requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
2501
3620
  }
2502
3621
  /**
2503
3622
  *
2504
- * @summary Réactiver un prix
3623
+ * @summary Réactiver un prix (club courant)
2505
3624
  * @param {ManagerClubSubscriptionsApiRestoreSubscriptionPriceForClubRequest} requestParameters Request parameters.
2506
3625
  * @param {*} [options] Override http request option.
2507
3626
  * @throws {RequiredError}
2508
3627
  * @memberof ManagerClubSubscriptionsApi
2509
3628
  */
2510
3629
  restoreSubscriptionPriceForClub(requestParameters, options) {
2511
- return ManagerClubSubscriptionsApiFp(this.configuration).restoreSubscriptionPriceForClub(requestParameters.id, requestParameters.priceId, options).then((request) => request(this.axios, this.basePath));
3630
+ return ManagerClubSubscriptionsApiFp(this.configuration).restoreSubscriptionPriceForClub(requestParameters.priceId, options).then((request) => request(this.axios, this.basePath));
2512
3631
  }
2513
3632
  /**
2514
3633
  *
2515
- * @summary Mettre à jour un plan d\'abonnement
3634
+ * @summary Mettre à jour un plan d\'abonnement (club courant)
2516
3635
  * @param {ManagerClubSubscriptionsApiUpdateSubscriptionPlanForClubRequest} requestParameters Request parameters.
2517
3636
  * @param {*} [options] Override http request option.
2518
3637
  * @throws {RequiredError}
2519
3638
  * @memberof ManagerClubSubscriptionsApi
2520
3639
  */
2521
3640
  updateSubscriptionPlanForClub(requestParameters, options) {
2522
- return ManagerClubSubscriptionsApiFp(this.configuration).updateSubscriptionPlanForClub(requestParameters.id, requestParameters.priceId, requestParameters.updateSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
3641
+ return ManagerClubSubscriptionsApiFp(this.configuration).updateSubscriptionPlanForClub(requestParameters.priceId, requestParameters.updateSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
2523
3642
  }
2524
3643
  }
2525
3644
  /**
@@ -2530,19 +3649,15 @@ export const ManagerClubsApiAxiosParamCreator = function (configuration) {
2530
3649
  return {
2531
3650
  /**
2532
3651
  *
2533
- * @summary Ajouter un membre à un club
2534
- * @param {string} id ID du club
3652
+ * @summary Ajouter un membre au club courant
2535
3653
  * @param {AddClubMemberRequest} addClubMemberRequest
2536
3654
  * @param {*} [options] Override http request option.
2537
3655
  * @throws {RequiredError}
2538
3656
  */
2539
- addClubMember: (id_1, addClubMemberRequest_1, ...args_1) => __awaiter(this, [id_1, addClubMemberRequest_1, ...args_1], void 0, function* (id, addClubMemberRequest, options = {}) {
2540
- // verify required parameter 'id' is not null or undefined
2541
- assertParamExists('addClubMember', 'id', id);
3657
+ addClubMember: (addClubMemberRequest_1, ...args_1) => __awaiter(this, [addClubMemberRequest_1, ...args_1], void 0, function* (addClubMemberRequest, options = {}) {
2542
3658
  // verify required parameter 'addClubMemberRequest' is not null or undefined
2543
3659
  assertParamExists('addClubMember', 'addClubMemberRequest', addClubMemberRequest);
2544
- const localVarPath = `/api/clubs/{id}/add_members`
2545
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
3660
+ const localVarPath = `/api/clubs/add_members`;
2546
3661
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2547
3662
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2548
3663
  let baseOptions;
@@ -2567,16 +3682,12 @@ export const ManagerClubsApiAxiosParamCreator = function (configuration) {
2567
3682
  }),
2568
3683
  /**
2569
3684
  *
2570
- * @summary Récupérer les informations d\'un club
2571
- * @param {string} id ID du club
3685
+ * @summary Récupérer les informations du club courant
2572
3686
  * @param {*} [options] Override http request option.
2573
3687
  * @throws {RequiredError}
2574
3688
  */
2575
- getClubInfo: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
2576
- // verify required parameter 'id' is not null or undefined
2577
- assertParamExists('getClubInfo', 'id', id);
2578
- const localVarPath = `/api/clubs/{id}`
2579
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
3689
+ getClubInfo: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3690
+ const localVarPath = `/api/clubs/me`;
2580
3691
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2581
3692
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2582
3693
  let baseOptions;
@@ -2599,16 +3710,12 @@ export const ManagerClubsApiAxiosParamCreator = function (configuration) {
2599
3710
  }),
2600
3711
  /**
2601
3712
  *
2602
- * @summary Récupérer les membres d\'un club
2603
- * @param {string} id ID du club
3713
+ * @summary Récupérer les membres du club courant
2604
3714
  * @param {*} [options] Override http request option.
2605
3715
  * @throws {RequiredError}
2606
3716
  */
2607
- getClubMembers: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
2608
- // verify required parameter 'id' is not null or undefined
2609
- assertParamExists('getClubMembers', 'id', id);
2610
- const localVarPath = `/api/clubs/{id}/members`
2611
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
3717
+ getClubMembers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3718
+ const localVarPath = `/api/clubs/members`;
2612
3719
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2613
3720
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2614
3721
  let baseOptions;
@@ -2631,16 +3738,12 @@ export const ManagerClubsApiAxiosParamCreator = function (configuration) {
2631
3738
  }),
2632
3739
  /**
2633
3740
  *
2634
- * @summary Récupérer les rôles d\'un club
2635
- * @param {string} id ID du club
3741
+ * @summary Récupérer les rôles du club courant
2636
3742
  * @param {*} [options] Override http request option.
2637
3743
  * @throws {RequiredError}
2638
3744
  */
2639
- getClubRoles: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
2640
- // verify required parameter 'id' is not null or undefined
2641
- assertParamExists('getClubRoles', 'id', id);
2642
- const localVarPath = `/api/clubs/{id}/roles`
2643
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
3745
+ getClubRoles: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3746
+ const localVarPath = `/api/clubs/roles`;
2644
3747
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2645
3748
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2646
3749
  let baseOptions;
@@ -2663,19 +3766,15 @@ export const ManagerClubsApiAxiosParamCreator = function (configuration) {
2663
3766
  }),
2664
3767
  /**
2665
3768
  *
2666
- * @summary Mettre à jour un club existant
2667
- * @param {string} id ID du club
3769
+ * @summary Mettre à jour un club existant (club courant)
2668
3770
  * @param {UpdateClubRequest} updateClubRequest
2669
3771
  * @param {*} [options] Override http request option.
2670
3772
  * @throws {RequiredError}
2671
3773
  */
2672
- updateClub: (id_1, updateClubRequest_1, ...args_1) => __awaiter(this, [id_1, updateClubRequest_1, ...args_1], void 0, function* (id, updateClubRequest, options = {}) {
2673
- // verify required parameter 'id' is not null or undefined
2674
- assertParamExists('updateClub', 'id', id);
3774
+ updateClubNoId: (updateClubRequest_1, ...args_1) => __awaiter(this, [updateClubRequest_1, ...args_1], void 0, function* (updateClubRequest, options = {}) {
2675
3775
  // verify required parameter 'updateClubRequest' is not null or undefined
2676
- assertParamExists('updateClub', 'updateClubRequest', updateClubRequest);
2677
- const localVarPath = `/api/clubs/{id}`
2678
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
3776
+ assertParamExists('updateClubNoId', 'updateClubRequest', updateClubRequest);
3777
+ const localVarPath = `/api/clubs`;
2679
3778
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2680
3779
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2681
3780
  let baseOptions;
@@ -2709,16 +3808,15 @@ export const ManagerClubsApiFp = function (configuration) {
2709
3808
  return {
2710
3809
  /**
2711
3810
  *
2712
- * @summary Ajouter un membre à un club
2713
- * @param {string} id ID du club
3811
+ * @summary Ajouter un membre au club courant
2714
3812
  * @param {AddClubMemberRequest} addClubMemberRequest
2715
3813
  * @param {*} [options] Override http request option.
2716
3814
  * @throws {RequiredError}
2717
3815
  */
2718
- addClubMember(id, addClubMemberRequest, options) {
3816
+ addClubMember(addClubMemberRequest, options) {
2719
3817
  return __awaiter(this, void 0, void 0, function* () {
2720
3818
  var _a, _b, _c;
2721
- const localVarAxiosArgs = yield localVarAxiosParamCreator.addClubMember(id, addClubMemberRequest, options);
3819
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addClubMember(addClubMemberRequest, options);
2722
3820
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2723
3821
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubsApi.addClubMember']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2724
3822
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2726,15 +3824,14 @@ export const ManagerClubsApiFp = function (configuration) {
2726
3824
  },
2727
3825
  /**
2728
3826
  *
2729
- * @summary Récupérer les informations d\'un club
2730
- * @param {string} id ID du club
3827
+ * @summary Récupérer les informations du club courant
2731
3828
  * @param {*} [options] Override http request option.
2732
3829
  * @throws {RequiredError}
2733
3830
  */
2734
- getClubInfo(id, options) {
3831
+ getClubInfo(options) {
2735
3832
  return __awaiter(this, void 0, void 0, function* () {
2736
3833
  var _a, _b, _c;
2737
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubInfo(id, options);
3834
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubInfo(options);
2738
3835
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2739
3836
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubsApi.getClubInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2740
3837
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2742,15 +3839,14 @@ export const ManagerClubsApiFp = function (configuration) {
2742
3839
  },
2743
3840
  /**
2744
3841
  *
2745
- * @summary Récupérer les membres d\'un club
2746
- * @param {string} id ID du club
3842
+ * @summary Récupérer les membres du club courant
2747
3843
  * @param {*} [options] Override http request option.
2748
3844
  * @throws {RequiredError}
2749
3845
  */
2750
- getClubMembers(id, options) {
3846
+ getClubMembers(options) {
2751
3847
  return __awaiter(this, void 0, void 0, function* () {
2752
3848
  var _a, _b, _c;
2753
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubMembers(id, options);
3849
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubMembers(options);
2754
3850
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2755
3851
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubsApi.getClubMembers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2756
3852
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2758,15 +3854,14 @@ export const ManagerClubsApiFp = function (configuration) {
2758
3854
  },
2759
3855
  /**
2760
3856
  *
2761
- * @summary Récupérer les rôles d\'un club
2762
- * @param {string} id ID du club
3857
+ * @summary Récupérer les rôles du club courant
2763
3858
  * @param {*} [options] Override http request option.
2764
3859
  * @throws {RequiredError}
2765
3860
  */
2766
- getClubRoles(id, options) {
3861
+ getClubRoles(options) {
2767
3862
  return __awaiter(this, void 0, void 0, function* () {
2768
3863
  var _a, _b, _c;
2769
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubRoles(id, options);
3864
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubRoles(options);
2770
3865
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2771
3866
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubsApi.getClubRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2772
3867
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2774,18 +3869,17 @@ export const ManagerClubsApiFp = function (configuration) {
2774
3869
  },
2775
3870
  /**
2776
3871
  *
2777
- * @summary Mettre à jour un club existant
2778
- * @param {string} id ID du club
3872
+ * @summary Mettre à jour un club existant (club courant)
2779
3873
  * @param {UpdateClubRequest} updateClubRequest
2780
3874
  * @param {*} [options] Override http request option.
2781
3875
  * @throws {RequiredError}
2782
3876
  */
2783
- updateClub(id, updateClubRequest, options) {
3877
+ updateClubNoId(updateClubRequest, options) {
2784
3878
  return __awaiter(this, void 0, void 0, function* () {
2785
3879
  var _a, _b, _c;
2786
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClub(id, updateClubRequest, options);
3880
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubNoId(updateClubRequest, options);
2787
3881
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2788
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubsApi.updateClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3882
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubsApi.updateClubNoId']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2789
3883
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2790
3884
  });
2791
3885
  },
@@ -2800,53 +3894,50 @@ export const ManagerClubsApiFactory = function (configuration, basePath, axios)
2800
3894
  return {
2801
3895
  /**
2802
3896
  *
2803
- * @summary Ajouter un membre à un club
3897
+ * @summary Ajouter un membre au club courant
2804
3898
  * @param {ManagerClubsApiAddClubMemberRequest} requestParameters Request parameters.
2805
3899
  * @param {*} [options] Override http request option.
2806
3900
  * @throws {RequiredError}
2807
3901
  */
2808
3902
  addClubMember(requestParameters, options) {
2809
- return localVarFp.addClubMember(requestParameters.id, requestParameters.addClubMemberRequest, options).then((request) => request(axios, basePath));
3903
+ return localVarFp.addClubMember(requestParameters.addClubMemberRequest, options).then((request) => request(axios, basePath));
2810
3904
  },
2811
3905
  /**
2812
3906
  *
2813
- * @summary Récupérer les informations d\'un club
2814
- * @param {ManagerClubsApiGetClubInfoRequest} requestParameters Request parameters.
3907
+ * @summary Récupérer les informations du club courant
2815
3908
  * @param {*} [options] Override http request option.
2816
3909
  * @throws {RequiredError}
2817
3910
  */
2818
- getClubInfo(requestParameters, options) {
2819
- return localVarFp.getClubInfo(requestParameters.id, options).then((request) => request(axios, basePath));
3911
+ getClubInfo(options) {
3912
+ return localVarFp.getClubInfo(options).then((request) => request(axios, basePath));
2820
3913
  },
2821
3914
  /**
2822
3915
  *
2823
- * @summary Récupérer les membres d\'un club
2824
- * @param {ManagerClubsApiGetClubMembersRequest} requestParameters Request parameters.
3916
+ * @summary Récupérer les membres du club courant
2825
3917
  * @param {*} [options] Override http request option.
2826
3918
  * @throws {RequiredError}
2827
3919
  */
2828
- getClubMembers(requestParameters, options) {
2829
- return localVarFp.getClubMembers(requestParameters.id, options).then((request) => request(axios, basePath));
3920
+ getClubMembers(options) {
3921
+ return localVarFp.getClubMembers(options).then((request) => request(axios, basePath));
2830
3922
  },
2831
3923
  /**
2832
3924
  *
2833
- * @summary Récupérer les rôles d\'un club
2834
- * @param {ManagerClubsApiGetClubRolesRequest} requestParameters Request parameters.
3925
+ * @summary Récupérer les rôles du club courant
2835
3926
  * @param {*} [options] Override http request option.
2836
3927
  * @throws {RequiredError}
2837
3928
  */
2838
- getClubRoles(requestParameters, options) {
2839
- return localVarFp.getClubRoles(requestParameters.id, options).then((request) => request(axios, basePath));
3929
+ getClubRoles(options) {
3930
+ return localVarFp.getClubRoles(options).then((request) => request(axios, basePath));
2840
3931
  },
2841
3932
  /**
2842
3933
  *
2843
- * @summary Mettre à jour un club existant
2844
- * @param {ManagerClubsApiUpdateClubRequest} requestParameters Request parameters.
3934
+ * @summary Mettre à jour un club existant (club courant)
3935
+ * @param {ManagerClubsApiUpdateClubNoIdRequest} requestParameters Request parameters.
2845
3936
  * @param {*} [options] Override http request option.
2846
3937
  * @throws {RequiredError}
2847
3938
  */
2848
- updateClub(requestParameters, options) {
2849
- return localVarFp.updateClub(requestParameters.id, requestParameters.updateClubRequest, options).then((request) => request(axios, basePath));
3939
+ updateClubNoId(requestParameters, options) {
3940
+ return localVarFp.updateClubNoId(requestParameters.updateClubRequest, options).then((request) => request(axios, basePath));
2850
3941
  },
2851
3942
  };
2852
3943
  };
@@ -2859,58 +3950,55 @@ export const ManagerClubsApiFactory = function (configuration, basePath, axios)
2859
3950
  export class ManagerClubsApi extends BaseAPI {
2860
3951
  /**
2861
3952
  *
2862
- * @summary Ajouter un membre à un club
3953
+ * @summary Ajouter un membre au club courant
2863
3954
  * @param {ManagerClubsApiAddClubMemberRequest} requestParameters Request parameters.
2864
3955
  * @param {*} [options] Override http request option.
2865
3956
  * @throws {RequiredError}
2866
3957
  * @memberof ManagerClubsApi
2867
3958
  */
2868
3959
  addClubMember(requestParameters, options) {
2869
- return ManagerClubsApiFp(this.configuration).addClubMember(requestParameters.id, requestParameters.addClubMemberRequest, options).then((request) => request(this.axios, this.basePath));
3960
+ return ManagerClubsApiFp(this.configuration).addClubMember(requestParameters.addClubMemberRequest, options).then((request) => request(this.axios, this.basePath));
2870
3961
  }
2871
3962
  /**
2872
3963
  *
2873
- * @summary Récupérer les informations d\'un club
2874
- * @param {ManagerClubsApiGetClubInfoRequest} requestParameters Request parameters.
3964
+ * @summary Récupérer les informations du club courant
2875
3965
  * @param {*} [options] Override http request option.
2876
3966
  * @throws {RequiredError}
2877
3967
  * @memberof ManagerClubsApi
2878
3968
  */
2879
- getClubInfo(requestParameters, options) {
2880
- return ManagerClubsApiFp(this.configuration).getClubInfo(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
3969
+ getClubInfo(options) {
3970
+ return ManagerClubsApiFp(this.configuration).getClubInfo(options).then((request) => request(this.axios, this.basePath));
2881
3971
  }
2882
3972
  /**
2883
3973
  *
2884
- * @summary Récupérer les membres d\'un club
2885
- * @param {ManagerClubsApiGetClubMembersRequest} requestParameters Request parameters.
3974
+ * @summary Récupérer les membres du club courant
2886
3975
  * @param {*} [options] Override http request option.
2887
3976
  * @throws {RequiredError}
2888
3977
  * @memberof ManagerClubsApi
2889
3978
  */
2890
- getClubMembers(requestParameters, options) {
2891
- return ManagerClubsApiFp(this.configuration).getClubMembers(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
3979
+ getClubMembers(options) {
3980
+ return ManagerClubsApiFp(this.configuration).getClubMembers(options).then((request) => request(this.axios, this.basePath));
2892
3981
  }
2893
3982
  /**
2894
3983
  *
2895
- * @summary Récupérer les rôles d\'un club
2896
- * @param {ManagerClubsApiGetClubRolesRequest} requestParameters Request parameters.
3984
+ * @summary Récupérer les rôles du club courant
2897
3985
  * @param {*} [options] Override http request option.
2898
3986
  * @throws {RequiredError}
2899
3987
  * @memberof ManagerClubsApi
2900
3988
  */
2901
- getClubRoles(requestParameters, options) {
2902
- return ManagerClubsApiFp(this.configuration).getClubRoles(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
3989
+ getClubRoles(options) {
3990
+ return ManagerClubsApiFp(this.configuration).getClubRoles(options).then((request) => request(this.axios, this.basePath));
2903
3991
  }
2904
3992
  /**
2905
3993
  *
2906
- * @summary Mettre à jour un club existant
2907
- * @param {ManagerClubsApiUpdateClubRequest} requestParameters Request parameters.
3994
+ * @summary Mettre à jour un club existant (club courant)
3995
+ * @param {ManagerClubsApiUpdateClubNoIdRequest} requestParameters Request parameters.
2908
3996
  * @param {*} [options] Override http request option.
2909
3997
  * @throws {RequiredError}
2910
3998
  * @memberof ManagerClubsApi
2911
3999
  */
2912
- updateClub(requestParameters, options) {
2913
- return ManagerClubsApiFp(this.configuration).updateClub(requestParameters.id, requestParameters.updateClubRequest, options).then((request) => request(this.axios, this.basePath));
4000
+ updateClubNoId(requestParameters, options) {
4001
+ return ManagerClubsApiFp(this.configuration).updateClubNoId(requestParameters.updateClubRequest, options).then((request) => request(this.axios, this.basePath));
2914
4002
  }
2915
4003
  }
2916
4004
  /**
@@ -2919,6 +4007,39 @@ export class ManagerClubsApi extends BaseAPI {
2919
4007
  */
2920
4008
  export const ManagerSportsApiAxiosParamCreator = function (configuration) {
2921
4009
  return {
4010
+ /**
4011
+ *
4012
+ * @summary Créer un sport dans un club
4013
+ * @param {CreateSportRequest} createSportRequest
4014
+ * @param {*} [options] Override http request option.
4015
+ * @throws {RequiredError}
4016
+ */
4017
+ createSport: (createSportRequest_1, ...args_1) => __awaiter(this, [createSportRequest_1, ...args_1], void 0, function* (createSportRequest, options = {}) {
4018
+ // verify required parameter 'createSportRequest' is not null or undefined
4019
+ assertParamExists('createSport', 'createSportRequest', createSportRequest);
4020
+ const localVarPath = `/api/sports`;
4021
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4022
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4023
+ let baseOptions;
4024
+ if (configuration) {
4025
+ baseOptions = configuration.baseOptions;
4026
+ }
4027
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4028
+ const localVarHeaderParameter = {};
4029
+ const localVarQueryParameter = {};
4030
+ // authentication bearerAuth required
4031
+ // http bearer authentication required
4032
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4033
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4034
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4035
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4036
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4037
+ localVarRequestOptions.data = serializeDataIfNeeded(createSportRequest, localVarRequestOptions, configuration);
4038
+ return {
4039
+ url: toPathString(localVarUrlObj),
4040
+ options: localVarRequestOptions,
4041
+ };
4042
+ }),
2922
4043
  /**
2923
4044
  *
2924
4045
  * @summary Supprimer un sport
@@ -2997,6 +4118,22 @@ export const ManagerSportsApiAxiosParamCreator = function (configuration) {
2997
4118
  export const ManagerSportsApiFp = function (configuration) {
2998
4119
  const localVarAxiosParamCreator = ManagerSportsApiAxiosParamCreator(configuration);
2999
4120
  return {
4121
+ /**
4122
+ *
4123
+ * @summary Créer un sport dans un club
4124
+ * @param {CreateSportRequest} createSportRequest
4125
+ * @param {*} [options] Override http request option.
4126
+ * @throws {RequiredError}
4127
+ */
4128
+ createSport(createSportRequest, options) {
4129
+ return __awaiter(this, void 0, void 0, function* () {
4130
+ var _a, _b, _c;
4131
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createSport(createSportRequest, options);
4132
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4133
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerSportsApi.createSport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4134
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4135
+ });
4136
+ },
3000
4137
  /**
3001
4138
  *
3002
4139
  * @summary Supprimer un sport
@@ -3039,6 +4176,16 @@ export const ManagerSportsApiFp = function (configuration) {
3039
4176
  export const ManagerSportsApiFactory = function (configuration, basePath, axios) {
3040
4177
  const localVarFp = ManagerSportsApiFp(configuration);
3041
4178
  return {
4179
+ /**
4180
+ *
4181
+ * @summary Créer un sport dans un club
4182
+ * @param {ManagerSportsApiCreateSportRequest} requestParameters Request parameters.
4183
+ * @param {*} [options] Override http request option.
4184
+ * @throws {RequiredError}
4185
+ */
4186
+ createSport(requestParameters, options) {
4187
+ return localVarFp.createSport(requestParameters.createSportRequest, options).then((request) => request(axios, basePath));
4188
+ },
3042
4189
  /**
3043
4190
  *
3044
4191
  * @summary Supprimer un sport
@@ -3068,6 +4215,17 @@ export const ManagerSportsApiFactory = function (configuration, basePath, axios)
3068
4215
  * @extends {BaseAPI}
3069
4216
  */
3070
4217
  export class ManagerSportsApi extends BaseAPI {
4218
+ /**
4219
+ *
4220
+ * @summary Créer un sport dans un club
4221
+ * @param {ManagerSportsApiCreateSportRequest} requestParameters Request parameters.
4222
+ * @param {*} [options] Override http request option.
4223
+ * @throws {RequiredError}
4224
+ * @memberof ManagerSportsApi
4225
+ */
4226
+ createSport(requestParameters, options) {
4227
+ return ManagerSportsApiFp(this.configuration).createSport(requestParameters.createSportRequest, options).then((request) => request(this.axios, this.basePath));
4228
+ }
3071
4229
  /**
3072
4230
  *
3073
4231
  * @summary Supprimer un sport
@@ -3099,16 +4257,12 @@ export const StaffClubAnalyticsApiAxiosParamCreator = function (configuration) {
3099
4257
  return {
3100
4258
  /**
3101
4259
  *
3102
- * @summary Get monthly turnover for the last six months
3103
- * @param {string} id ID du club
4260
+ * @summary Get monthly turnover for the last six months (club courant)
3104
4261
  * @param {*} [options] Override http request option.
3105
4262
  * @throws {RequiredError}
3106
4263
  */
3107
- getLastSixMonthsTurnover: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
3108
- // verify required parameter 'id' is not null or undefined
3109
- assertParamExists('getLastSixMonthsTurnover', 'id', id);
3110
- const localVarPath = `/api/clubs/{id}/turnover`
3111
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
4264
+ getLastSixMonthsTurnover: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
4265
+ const localVarPath = `/api/analytics/lastSixMonthsTurnover`;
3112
4266
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3113
4267
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3114
4268
  let baseOptions;
@@ -3132,11 +4286,13 @@ export const StaffClubAnalyticsApiAxiosParamCreator = function (configuration) {
3132
4286
  /**
3133
4287
  *
3134
4288
  * @summary Get number of users subscribed to the club
4289
+ * @param {string} [id] ID du club (optionnel, si absent, pris depuis le token)
3135
4290
  * @param {*} [options] Override http request option.
3136
4291
  * @throws {RequiredError}
3137
4292
  */
3138
- getNumberOfClubUsers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3139
- const localVarPath = `/api/clubs/user-count`;
4293
+ getNumberOfClubUsers: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
4294
+ const localVarPath = `/api/analytics/user-count`
4295
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
3140
4296
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3141
4297
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3142
4298
  let baseOptions;
@@ -3168,15 +4324,14 @@ export const StaffClubAnalyticsApiFp = function (configuration) {
3168
4324
  return {
3169
4325
  /**
3170
4326
  *
3171
- * @summary Get monthly turnover for the last six months
3172
- * @param {string} id ID du club
4327
+ * @summary Get monthly turnover for the last six months (club courant)
3173
4328
  * @param {*} [options] Override http request option.
3174
4329
  * @throws {RequiredError}
3175
4330
  */
3176
- getLastSixMonthsTurnover(id, options) {
4331
+ getLastSixMonthsTurnover(options) {
3177
4332
  return __awaiter(this, void 0, void 0, function* () {
3178
4333
  var _a, _b, _c;
3179
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getLastSixMonthsTurnover(id, options);
4334
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getLastSixMonthsTurnover(options);
3180
4335
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3181
4336
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StaffClubAnalyticsApi.getLastSixMonthsTurnover']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3182
4337
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3185,13 +4340,14 @@ export const StaffClubAnalyticsApiFp = function (configuration) {
3185
4340
  /**
3186
4341
  *
3187
4342
  * @summary Get number of users subscribed to the club
4343
+ * @param {string} [id] ID du club (optionnel, si absent, pris depuis le token)
3188
4344
  * @param {*} [options] Override http request option.
3189
4345
  * @throws {RequiredError}
3190
4346
  */
3191
- getNumberOfClubUsers(options) {
4347
+ getNumberOfClubUsers(id, options) {
3192
4348
  return __awaiter(this, void 0, void 0, function* () {
3193
4349
  var _a, _b, _c;
3194
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getNumberOfClubUsers(options);
4350
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getNumberOfClubUsers(id, options);
3195
4351
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3196
4352
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StaffClubAnalyticsApi.getNumberOfClubUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3197
4353
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3208,22 +4364,22 @@ export const StaffClubAnalyticsApiFactory = function (configuration, basePath, a
3208
4364
  return {
3209
4365
  /**
3210
4366
  *
3211
- * @summary Get monthly turnover for the last six months
3212
- * @param {StaffClubAnalyticsApiGetLastSixMonthsTurnoverRequest} requestParameters Request parameters.
4367
+ * @summary Get monthly turnover for the last six months (club courant)
3213
4368
  * @param {*} [options] Override http request option.
3214
4369
  * @throws {RequiredError}
3215
4370
  */
3216
- getLastSixMonthsTurnover(requestParameters, options) {
3217
- return localVarFp.getLastSixMonthsTurnover(requestParameters.id, options).then((request) => request(axios, basePath));
4371
+ getLastSixMonthsTurnover(options) {
4372
+ return localVarFp.getLastSixMonthsTurnover(options).then((request) => request(axios, basePath));
3218
4373
  },
3219
4374
  /**
3220
4375
  *
3221
4376
  * @summary Get number of users subscribed to the club
4377
+ * @param {StaffClubAnalyticsApiGetNumberOfClubUsersRequest} requestParameters Request parameters.
3222
4378
  * @param {*} [options] Override http request option.
3223
4379
  * @throws {RequiredError}
3224
4380
  */
3225
- getNumberOfClubUsers(options) {
3226
- return localVarFp.getNumberOfClubUsers(options).then((request) => request(axios, basePath));
4381
+ getNumberOfClubUsers(requestParameters = {}, options) {
4382
+ return localVarFp.getNumberOfClubUsers(requestParameters.id, options).then((request) => request(axios, basePath));
3227
4383
  },
3228
4384
  };
3229
4385
  };
@@ -3236,24 +4392,24 @@ export const StaffClubAnalyticsApiFactory = function (configuration, basePath, a
3236
4392
  export class StaffClubAnalyticsApi extends BaseAPI {
3237
4393
  /**
3238
4394
  *
3239
- * @summary Get monthly turnover for the last six months
3240
- * @param {StaffClubAnalyticsApiGetLastSixMonthsTurnoverRequest} requestParameters Request parameters.
4395
+ * @summary Get monthly turnover for the last six months (club courant)
3241
4396
  * @param {*} [options] Override http request option.
3242
4397
  * @throws {RequiredError}
3243
4398
  * @memberof StaffClubAnalyticsApi
3244
4399
  */
3245
- getLastSixMonthsTurnover(requestParameters, options) {
3246
- return StaffClubAnalyticsApiFp(this.configuration).getLastSixMonthsTurnover(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
4400
+ getLastSixMonthsTurnover(options) {
4401
+ return StaffClubAnalyticsApiFp(this.configuration).getLastSixMonthsTurnover(options).then((request) => request(this.axios, this.basePath));
3247
4402
  }
3248
4403
  /**
3249
4404
  *
3250
4405
  * @summary Get number of users subscribed to the club
4406
+ * @param {StaffClubAnalyticsApiGetNumberOfClubUsersRequest} requestParameters Request parameters.
3251
4407
  * @param {*} [options] Override http request option.
3252
4408
  * @throws {RequiredError}
3253
4409
  * @memberof StaffClubAnalyticsApi
3254
4410
  */
3255
- getNumberOfClubUsers(options) {
3256
- return StaffClubAnalyticsApiFp(this.configuration).getNumberOfClubUsers(options).then((request) => request(this.axios, this.basePath));
4411
+ getNumberOfClubUsers(requestParameters = {}, options) {
4412
+ return StaffClubAnalyticsApiFp(this.configuration).getNumberOfClubUsers(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
3257
4413
  }
3258
4414
  }
3259
4415
  /**
@@ -3264,16 +4420,12 @@ export const StaffClubBookingsApiAxiosParamCreator = function (configuration) {
3264
4420
  return {
3265
4421
  /**
3266
4422
  *
3267
- * @summary Get the ten next bookings for the club
3268
- * @param {string} id ID du club
4423
+ * @summary Get the ten next bookings for the current club
3269
4424
  * @param {*} [options] Override http request option.
3270
4425
  * @throws {RequiredError}
3271
4426
  */
3272
- getTenNextBookings: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
3273
- // verify required parameter 'id' is not null or undefined
3274
- assertParamExists('getTenNextBookings', 'id', id);
3275
- const localVarPath = `/api/clubs/{id}/next-bookings`
3276
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
4427
+ getTenNextBookings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
4428
+ const localVarPath = `/api/analytics/next-bookings`;
3277
4429
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3278
4430
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3279
4431
  let baseOptions;
@@ -3305,15 +4457,14 @@ export const StaffClubBookingsApiFp = function (configuration) {
3305
4457
  return {
3306
4458
  /**
3307
4459
  *
3308
- * @summary Get the ten next bookings for the club
3309
- * @param {string} id ID du club
4460
+ * @summary Get the ten next bookings for the current club
3310
4461
  * @param {*} [options] Override http request option.
3311
4462
  * @throws {RequiredError}
3312
4463
  */
3313
- getTenNextBookings(id, options) {
4464
+ getTenNextBookings(options) {
3314
4465
  return __awaiter(this, void 0, void 0, function* () {
3315
4466
  var _a, _b, _c;
3316
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getTenNextBookings(id, options);
4467
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getTenNextBookings(options);
3317
4468
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3318
4469
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StaffClubBookingsApi.getTenNextBookings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3319
4470
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3330,13 +4481,12 @@ export const StaffClubBookingsApiFactory = function (configuration, basePath, ax
3330
4481
  return {
3331
4482
  /**
3332
4483
  *
3333
- * @summary Get the ten next bookings for the club
3334
- * @param {StaffClubBookingsApiGetTenNextBookingsRequest} requestParameters Request parameters.
4484
+ * @summary Get the ten next bookings for the current club
3335
4485
  * @param {*} [options] Override http request option.
3336
4486
  * @throws {RequiredError}
3337
4487
  */
3338
- getTenNextBookings(requestParameters, options) {
3339
- return localVarFp.getTenNextBookings(requestParameters.id, options).then((request) => request(axios, basePath));
4488
+ getTenNextBookings(options) {
4489
+ return localVarFp.getTenNextBookings(options).then((request) => request(axios, basePath));
3340
4490
  },
3341
4491
  };
3342
4492
  };
@@ -3349,110 +4499,13 @@ export const StaffClubBookingsApiFactory = function (configuration, basePath, ax
3349
4499
  export class StaffClubBookingsApi extends BaseAPI {
3350
4500
  /**
3351
4501
  *
3352
- * @summary Get the ten next bookings for the club
3353
- * @param {StaffClubBookingsApiGetTenNextBookingsRequest} requestParameters Request parameters.
4502
+ * @summary Get the ten next bookings for the current club
3354
4503
  * @param {*} [options] Override http request option.
3355
4504
  * @throws {RequiredError}
3356
4505
  * @memberof StaffClubBookingsApi
3357
4506
  */
3358
- getTenNextBookings(requestParameters, options) {
3359
- return StaffClubBookingsApiFp(this.configuration).getTenNextBookings(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
3360
- }
3361
- }
3362
- /**
3363
- * StaffClubSettingsApi - axios parameter creator
3364
- * @export
3365
- */
3366
- export const StaffClubSettingsApiAxiosParamCreator = function (configuration) {
3367
- return {
3368
- /**
3369
- *
3370
- * @summary Récupère les paramètres d\'un club
3371
- * @param {*} [options] Override http request option.
3372
- * @throws {RequiredError}
3373
- */
3374
- getClubSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3375
- const localVarPath = `/api/club-settings`;
3376
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3377
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3378
- let baseOptions;
3379
- if (configuration) {
3380
- baseOptions = configuration.baseOptions;
3381
- }
3382
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3383
- const localVarHeaderParameter = {};
3384
- const localVarQueryParameter = {};
3385
- // authentication bearerAuth required
3386
- // http bearer authentication required
3387
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3388
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3389
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3390
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3391
- return {
3392
- url: toPathString(localVarUrlObj),
3393
- options: localVarRequestOptions,
3394
- };
3395
- }),
3396
- };
3397
- };
3398
- /**
3399
- * StaffClubSettingsApi - functional programming interface
3400
- * @export
3401
- */
3402
- export const StaffClubSettingsApiFp = function (configuration) {
3403
- const localVarAxiosParamCreator = StaffClubSettingsApiAxiosParamCreator(configuration);
3404
- return {
3405
- /**
3406
- *
3407
- * @summary Récupère les paramètres d\'un club
3408
- * @param {*} [options] Override http request option.
3409
- * @throws {RequiredError}
3410
- */
3411
- getClubSettings(options) {
3412
- return __awaiter(this, void 0, void 0, function* () {
3413
- var _a, _b, _c;
3414
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubSettings(options);
3415
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3416
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StaffClubSettingsApi.getClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3417
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3418
- });
3419
- },
3420
- };
3421
- };
3422
- /**
3423
- * StaffClubSettingsApi - factory interface
3424
- * @export
3425
- */
3426
- export const StaffClubSettingsApiFactory = function (configuration, basePath, axios) {
3427
- const localVarFp = StaffClubSettingsApiFp(configuration);
3428
- return {
3429
- /**
3430
- *
3431
- * @summary Récupère les paramètres d\'un club
3432
- * @param {*} [options] Override http request option.
3433
- * @throws {RequiredError}
3434
- */
3435
- getClubSettings(options) {
3436
- return localVarFp.getClubSettings(options).then((request) => request(axios, basePath));
3437
- },
3438
- };
3439
- };
3440
- /**
3441
- * StaffClubSettingsApi - object-oriented interface
3442
- * @export
3443
- * @class StaffClubSettingsApi
3444
- * @extends {BaseAPI}
3445
- */
3446
- export class StaffClubSettingsApi extends BaseAPI {
3447
- /**
3448
- *
3449
- * @summary Récupère les paramètres d\'un club
3450
- * @param {*} [options] Override http request option.
3451
- * @throws {RequiredError}
3452
- * @memberof StaffClubSettingsApi
3453
- */
3454
- getClubSettings(options) {
3455
- return StaffClubSettingsApiFp(this.configuration).getClubSettings(options).then((request) => request(this.axios, this.basePath));
4507
+ getTenNextBookings(options) {
4508
+ return StaffClubBookingsApiFp(this.configuration).getTenNextBookings(options).then((request) => request(this.axios, this.basePath));
3456
4509
  }
3457
4510
  }
3458
4511
  /**
@@ -3463,16 +4516,12 @@ export const StaffClubsApiAxiosParamCreator = function (configuration) {
3463
4516
  return {
3464
4517
  /**
3465
4518
  *
3466
- * @summary Get club information (name, address, email, etc.)
3467
- * @param {string} id ID du club
4519
+ * @summary Get current club information
3468
4520
  * @param {*} [options] Override http request option.
3469
4521
  * @throws {RequiredError}
3470
4522
  */
3471
- getClubInfos: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
3472
- // verify required parameter 'id' is not null or undefined
3473
- assertParamExists('getClubInfos', 'id', id);
3474
- const localVarPath = `/api/clubs/{id}/infos`
3475
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
4523
+ getClubInfos: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
4524
+ const localVarPath = `/api/clubs/infos`;
3476
4525
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3477
4526
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3478
4527
  let baseOptions;
@@ -3504,15 +4553,14 @@ export const StaffClubsApiFp = function (configuration) {
3504
4553
  return {
3505
4554
  /**
3506
4555
  *
3507
- * @summary Get club information (name, address, email, etc.)
3508
- * @param {string} id ID du club
4556
+ * @summary Get current club information
3509
4557
  * @param {*} [options] Override http request option.
3510
4558
  * @throws {RequiredError}
3511
4559
  */
3512
- getClubInfos(id, options) {
4560
+ getClubInfos(options) {
3513
4561
  return __awaiter(this, void 0, void 0, function* () {
3514
4562
  var _a, _b, _c;
3515
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubInfos(id, options);
4563
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubInfos(options);
3516
4564
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3517
4565
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StaffClubsApi.getClubInfos']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3518
4566
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3529,13 +4577,12 @@ export const StaffClubsApiFactory = function (configuration, basePath, axios) {
3529
4577
  return {
3530
4578
  /**
3531
4579
  *
3532
- * @summary Get club information (name, address, email, etc.)
3533
- * @param {StaffClubsApiGetClubInfosRequest} requestParameters Request parameters.
4580
+ * @summary Get current club information
3534
4581
  * @param {*} [options] Override http request option.
3535
4582
  * @throws {RequiredError}
3536
4583
  */
3537
- getClubInfos(requestParameters, options) {
3538
- return localVarFp.getClubInfos(requestParameters.id, options).then((request) => request(axios, basePath));
4584
+ getClubInfos(options) {
4585
+ return localVarFp.getClubInfos(options).then((request) => request(axios, basePath));
3539
4586
  },
3540
4587
  };
3541
4588
  };
@@ -3548,14 +4595,13 @@ export const StaffClubsApiFactory = function (configuration, basePath, axios) {
3548
4595
  export class StaffClubsApi extends BaseAPI {
3549
4596
  /**
3550
4597
  *
3551
- * @summary Get club information (name, address, email, etc.)
3552
- * @param {StaffClubsApiGetClubInfosRequest} requestParameters Request parameters.
4598
+ * @summary Get current club information
3553
4599
  * @param {*} [options] Override http request option.
3554
4600
  * @throws {RequiredError}
3555
4601
  * @memberof StaffClubsApi
3556
4602
  */
3557
- getClubInfos(requestParameters, options) {
3558
- return StaffClubsApiFp(this.configuration).getClubInfos(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
4603
+ getClubInfos(options) {
4604
+ return StaffClubsApiFp(this.configuration).getClubInfos(options).then((request) => request(this.axios, this.basePath));
3559
4605
  }
3560
4606
  }
3561
4607
  /**
@@ -3654,110 +4700,6 @@ export class StaffProfileApi extends BaseAPI {
3654
4700
  return StaffProfileApiFp(this.configuration).getUserRolesInClubs(options).then((request) => request(this.axios, this.basePath));
3655
4701
  }
3656
4702
  }
3657
- /**
3658
- * StaffSportsApi - axios parameter creator
3659
- * @export
3660
- */
3661
- export const StaffSportsApiAxiosParamCreator = function (configuration) {
3662
- return {
3663
- /**
3664
- *
3665
- * @summary Récupère la liste des sports d\'un club
3666
- * @param {GetAllSportsRequest} getAllSportsRequest
3667
- * @param {*} [options] Override http request option.
3668
- * @throws {RequiredError}
3669
- */
3670
- getAllSports: (getAllSportsRequest_1, ...args_1) => __awaiter(this, [getAllSportsRequest_1, ...args_1], void 0, function* (getAllSportsRequest, options = {}) {
3671
- // verify required parameter 'getAllSportsRequest' is not null or undefined
3672
- assertParamExists('getAllSports', 'getAllSportsRequest', getAllSportsRequest);
3673
- const localVarPath = `/api/sports`;
3674
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3675
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3676
- let baseOptions;
3677
- if (configuration) {
3678
- baseOptions = configuration.baseOptions;
3679
- }
3680
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3681
- const localVarHeaderParameter = {};
3682
- const localVarQueryParameter = {};
3683
- // authentication bearerAuth required
3684
- // http bearer authentication required
3685
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3686
- localVarHeaderParameter['Content-Type'] = 'application/json';
3687
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3688
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3689
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3690
- localVarRequestOptions.data = serializeDataIfNeeded(getAllSportsRequest, localVarRequestOptions, configuration);
3691
- return {
3692
- url: toPathString(localVarUrlObj),
3693
- options: localVarRequestOptions,
3694
- };
3695
- }),
3696
- };
3697
- };
3698
- /**
3699
- * StaffSportsApi - functional programming interface
3700
- * @export
3701
- */
3702
- export const StaffSportsApiFp = function (configuration) {
3703
- const localVarAxiosParamCreator = StaffSportsApiAxiosParamCreator(configuration);
3704
- return {
3705
- /**
3706
- *
3707
- * @summary Récupère la liste des sports d\'un club
3708
- * @param {GetAllSportsRequest} getAllSportsRequest
3709
- * @param {*} [options] Override http request option.
3710
- * @throws {RequiredError}
3711
- */
3712
- getAllSports(getAllSportsRequest, options) {
3713
- return __awaiter(this, void 0, void 0, function* () {
3714
- var _a, _b, _c;
3715
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllSports(getAllSportsRequest, options);
3716
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3717
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StaffSportsApi.getAllSports']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3718
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3719
- });
3720
- },
3721
- };
3722
- };
3723
- /**
3724
- * StaffSportsApi - factory interface
3725
- * @export
3726
- */
3727
- export const StaffSportsApiFactory = function (configuration, basePath, axios) {
3728
- const localVarFp = StaffSportsApiFp(configuration);
3729
- return {
3730
- /**
3731
- *
3732
- * @summary Récupère la liste des sports d\'un club
3733
- * @param {StaffSportsApiGetAllSportsRequest} requestParameters Request parameters.
3734
- * @param {*} [options] Override http request option.
3735
- * @throws {RequiredError}
3736
- */
3737
- getAllSports(requestParameters, options) {
3738
- return localVarFp.getAllSports(requestParameters.getAllSportsRequest, options).then((request) => request(axios, basePath));
3739
- },
3740
- };
3741
- };
3742
- /**
3743
- * StaffSportsApi - object-oriented interface
3744
- * @export
3745
- * @class StaffSportsApi
3746
- * @extends {BaseAPI}
3747
- */
3748
- export class StaffSportsApi extends BaseAPI {
3749
- /**
3750
- *
3751
- * @summary Récupère la liste des sports d\'un club
3752
- * @param {StaffSportsApiGetAllSportsRequest} requestParameters Request parameters.
3753
- * @param {*} [options] Override http request option.
3754
- * @throws {RequiredError}
3755
- * @memberof StaffSportsApi
3756
- */
3757
- getAllSports(requestParameters, options) {
3758
- return StaffSportsApiFp(this.configuration).getAllSports(requestParameters.getAllSportsRequest, options).then((request) => request(this.axios, this.basePath));
3759
- }
3760
- }
3761
4703
  /**
3762
4704
  * UserApi - axios parameter creator
3763
4705
  * @export