@tennac-booking/sdk 1.0.22 → 1.0.24

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 (64) hide show
  1. package/.openapi-generator/FILES +15 -6
  2. package/README.md +61 -37
  3. package/api.ts +2800 -1354
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +1679 -845
  8. package/dist/api.js +1955 -989
  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 +1679 -845
  16. package/dist/esm/api.js +1932 -962
  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/AddPaymentMethodSetupRequestBody.md +20 -0
  28. package/docs/AddPaymentMethodSetupResponse.md +24 -0
  29. package/docs/AdminClubAnalyticsApi.md +249 -0
  30. package/docs/AdminClubSlotsApi.md +120 -0
  31. package/docs/AdminClubSubscriptionsApi.md +394 -0
  32. package/docs/AdminClubsApi.md +82 -20
  33. package/docs/BlockSlotResponse.md +1 -1
  34. package/docs/BookingPopulated.md +28 -0
  35. package/docs/BookingPopulatedPaymentByPlayersStatusInner.md +22 -0
  36. package/docs/BookingPopulatedPaymentByPlayersStatusInnerInvoicesInner.md +24 -0
  37. package/docs/BookingPopulatedSlotId.md +26 -0
  38. package/docs/BookingPopulatedSlotIdCourtId.md +22 -0
  39. package/docs/BookingPopulatedUserId.md +24 -0
  40. package/docs/ClubAnalyticsApi.md +4 -16
  41. package/docs/ClubSettings.md +14 -8
  42. package/docs/{GetAllSportsRequest.md → DeleteClub200Response.md} +5 -5
  43. package/docs/GetLastSixMonthsTurnover200ResponseInner.md +3 -5
  44. package/docs/{CancelBookingRequest.md → LevelBySportsItem.md} +7 -5
  45. package/docs/ManagerBookingsApi.md +0 -118
  46. package/docs/ManagerClubCourtsApi.md +4 -14
  47. package/docs/ManagerClubSlotsApi.md +2 -8
  48. package/docs/ManagerClubSubscriptionsApi.md +7 -28
  49. package/docs/ManagerClubsApi.md +14 -41
  50. package/docs/ManagerSportsApi.md +55 -0
  51. package/docs/{CheckInPlayersRequest.md → ProfilePictureResponse.md} +5 -5
  52. package/docs/StaffClubAnalyticsApi.md +14 -14
  53. package/docs/StaffClubBookingsApi.md +5 -12
  54. package/docs/StaffClubsApi.md +57 -8
  55. package/docs/UpdateLevelBySportsRequestBody.md +20 -0
  56. package/docs/UpdateProfilePictureRequestBody.md +20 -0
  57. package/docs/UserApi.md +0 -56
  58. package/docs/UserPaymentApi.md +55 -0
  59. package/docs/UserProfileApi.md +158 -0
  60. package/index.ts +1 -1
  61. package/package.json +1 -1
  62. package/docs/BookingsApi.md +0 -68
  63. package/docs/StaffClubSettingsApi.md +0 -54
  64. 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.22
7
+ * The version of the OpenAPI document: 1.0.24
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,85 +312,265 @@ 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.
195
407
  * @param {*} [options] Override http request option.
196
408
  * @throws {RequiredError}
197
409
  */
198
- generateSlotsForNextThreeWeeks(requestParameters, options) {
199
- return localVarFp.generateSlotsForNextThreeWeeks(requestParameters.id, options).then((request) => request(axios, basePath));
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));
200
442
  },
201
443
  };
202
444
  };
203
445
  /**
204
- * AdminClubSlotsApi - object-oriented interface
446
+ * AdminClubAnalyticsApi - object-oriented interface
205
447
  * @export
206
- * @class AdminClubSlotsApi
448
+ * @class AdminClubAnalyticsApi
207
449
  * @extends {BaseAPI}
208
450
  */
209
- export class AdminClubSlotsApi extends BaseAPI {
451
+ export class AdminClubAnalyticsApi extends BaseAPI {
210
452
  /**
211
453
  *
212
- * @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
213
- * @param {AdminClubSlotsApiGenerateSlotsForNextThreeWeeksRequest} requestParameters Request parameters.
454
+ * @summary Chiffre d\'affaires quotidien (Admin)
455
+ * @param {AdminClubAnalyticsApiGetDailyTurnOverAdminRequest} requestParameters Request parameters.
214
456
  * @param {*} [options] Override http request option.
215
457
  * @throws {RequiredError}
216
- * @memberof AdminClubSlotsApi
458
+ * @memberof AdminClubAnalyticsApi
217
459
  */
218
- generateSlotsForNextThreeWeeks(requestParameters, options) {
219
- return AdminClubSlotsApiFp(this.configuration).generateSlotsForNextThreeWeeks(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
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));
220
495
  }
221
496
  }
222
497
  /**
223
- * AdminClubsApi - axios parameter creator
224
498
  * @export
225
499
  */
226
- export const AdminClubsApiAxiosParamCreator = function (configuration) {
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) {
227
513
  return {
228
514
  /**
229
515
  *
230
- * @summary Créer un nouveau club (Admin uniquement)
231
- * @param {CreateClubRequest} createClubRequest
232
- * @param {*} [options] Override http request option.
233
- * @throws {RequiredError}
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}
234
522
  */
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`;
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)));
239
574
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
240
575
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
241
576
  let baseOptions;
@@ -248,11 +583,9 @@ export const AdminClubsApiAxiosParamCreator = function (configuration) {
248
583
  // authentication bearerAuth required
249
584
  // http bearer authentication required
250
585
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
251
- localVarHeaderParameter['Content-Type'] = 'application/json';
252
586
  setSearchParams(localVarUrlObj, localVarQueryParameter);
253
587
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
254
588
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
255
- localVarRequestOptions.data = serializeDataIfNeeded(createClubRequest, localVarRequestOptions, configuration);
256
589
  return {
257
590
  url: toPathString(localVarUrlObj),
258
591
  options: localVarRequestOptions,
@@ -260,27 +593,858 @@ export const AdminClubsApiAxiosParamCreator = function (configuration) {
260
593
  }),
261
594
  /**
262
595
  *
263
- * @summary Récupérer tous les clubs (Admin uniquement)
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.
1253
+ * @param {*} [options] Override http request option.
1254
+ * @throws {RequiredError}
1255
+ */
1256
+ updateSubscriptionPlanForClubAdmin(requestParameters, options) {
1257
+ return localVarFp.updateSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.priceId, requestParameters.updateSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
1258
+ },
1259
+ };
1260
+ };
1261
+ /**
1262
+ * AdminClubSubscriptionsApi - object-oriented interface
1263
+ * @export
1264
+ * @class AdminClubSubscriptionsApi
1265
+ * @extends {BaseAPI}
1266
+ */
1267
+ export class AdminClubSubscriptionsApi extends BaseAPI {
1268
+ /**
1269
+ *
1270
+ * @summary Archiver un prix (Admin)
1271
+ * @param {AdminClubSubscriptionsApiArchivePriceForSubscriptionPlanAdminRequest} requestParameters Request parameters.
1272
+ * @param {*} [options] Override http request option.
1273
+ * @throws {RequiredError}
1274
+ * @memberof AdminClubSubscriptionsApi
1275
+ */
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));
1344
+ }
1345
+ }
1346
+ /**
1347
+ * AdminClubsApi - axios parameter creator
1348
+ * @export
1349
+ */
1350
+ export const AdminClubsApiAxiosParamCreator = function (configuration) {
1351
+ return {
1352
+ /**
1353
+ *
1354
+ * @summary Supprimer un club (Admin uniquement)
1355
+ * @param {string} id ID du club
1356
+ * @param {*} [options] Override http request option.
1357
+ * @throws {RequiredError}
1358
+ */
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)));
1364
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1365
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1366
+ let baseOptions;
1367
+ if (configuration) {
1368
+ baseOptions = configuration.baseOptions;
1369
+ }
1370
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
1371
+ const localVarHeaderParameter = {};
1372
+ const localVarQueryParameter = {};
1373
+ // authentication bearerAuth required
1374
+ // http bearer authentication required
1375
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1376
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1377
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1378
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1379
+ return {
1380
+ url: toPathString(localVarUrlObj),
1381
+ options: localVarRequestOptions,
1382
+ };
1383
+ }),
1384
+ /**
1385
+ *
1386
+ * @summary Obtenir les infos d\'un club (Admin)
1387
+ * @param {string} id
1388
+ * @param {*} [options] Override http request option.
1389
+ * @throws {RequiredError}
1390
+ */
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)));
1396
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1397
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1398
+ let baseOptions;
1399
+ if (configuration) {
1400
+ baseOptions = configuration.baseOptions;
1401
+ }
1402
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1403
+ const localVarHeaderParameter = {};
1404
+ const localVarQueryParameter = {};
1405
+ // authentication bearerAuth required
1406
+ // http bearer authentication required
1407
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1408
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1409
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1410
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1411
+ return {
1412
+ url: toPathString(localVarUrlObj),
1413
+ options: localVarRequestOptions,
1414
+ };
1415
+ }),
1416
+ /**
1417
+ *
1418
+ * @summary Mettre à jour les infos d\'un club (Admin)
1419
+ * @param {string} id
1420
+ * @param {object} body
264
1421
  * @param {*} [options] Override http request option.
265
1422
  * @throws {RequiredError}
266
1423
  */
267
- getAllClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
268
- const localVarPath = `/api/clubs`;
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)));
269
1431
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
270
1432
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
271
1433
  let baseOptions;
272
1434
  if (configuration) {
273
1435
  baseOptions = configuration.baseOptions;
274
1436
  }
275
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1437
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
276
1438
  const localVarHeaderParameter = {};
277
1439
  const localVarQueryParameter = {};
278
1440
  // authentication bearerAuth required
279
1441
  // http bearer authentication required
280
1442
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1443
+ localVarHeaderParameter['Content-Type'] = 'application/json';
281
1444
  setSearchParams(localVarUrlObj, localVarQueryParameter);
282
1445
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
283
1446
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1447
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
284
1448
  return {
285
1449
  url: toPathString(localVarUrlObj),
286
1450
  options: localVarRequestOptions,
@@ -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
  /**
@@ -912,75 +1988,6 @@ export const ManagerBookingsApiAxiosParamCreator = function (configuration) {
912
1988
  options: localVarRequestOptions,
913
1989
  };
914
1990
  }),
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
- }),
952
- /**
953
- * Récupère le statut détaillé des paiements pour tous les joueurs d\'une réservation. Utile pour l\'interface de check-in.
954
- * @summary Obtenir le statut des paiements d\'une réservation
955
- * @param {string} bookingId ID MongoDB de la réservation
956
- * @param {*} [options] Override http request option.
957
- * @throws {RequiredError}
958
- */
959
- getBookingPaymentStatus: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
960
- // verify required parameter 'bookingId' is not null or undefined
961
- assertParamExists('getBookingPaymentStatus', 'bookingId', bookingId);
962
- const localVarPath = `/api/bookings/{bookingId}/payment-status`
963
- .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
964
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
965
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
966
- let baseOptions;
967
- if (configuration) {
968
- baseOptions = configuration.baseOptions;
969
- }
970
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
971
- const localVarHeaderParameter = {};
972
- const localVarQueryParameter = {};
973
- // authentication bearerAuth required
974
- // http bearer authentication required
975
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
976
- setSearchParams(localVarUrlObj, localVarQueryParameter);
977
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
978
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
979
- return {
980
- url: toPathString(localVarUrlObj),
981
- options: localVarRequestOptions,
982
- };
983
- }),
984
1991
  /**
985
1992
  * Permet à un gestionnaire d\'annuler n\'importe quelle réservation avec une raison obligatoire. Effectue un remboursement automatique si le paiement a été fait en ligne.
986
1993
  * @summary Annuler une réservation (gestionnaire)
@@ -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
  /**
@@ -1761,22 +2681,18 @@ export const ManagerClubSlotsApiAxiosParamCreator = function (configuration) {
1761
2681
  return {
1762
2682
  /**
1763
2683
  *
1764
- * @summary Supprimer des créneaux pour un club sur une plage de dates
1765
- * @param {string} id ID du club
2684
+ * @summary Supprimer des créneaux pour le club courant sur une plage de dates
1766
2685
  * @param {string} start Date de début (format ISO)
1767
2686
  * @param {string} end Date de fin (format ISO)
1768
2687
  * @param {*} [options] Override http request option.
1769
2688
  * @throws {RequiredError}
1770
2689
  */
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);
2690
+ deleteSlotsByClubInRange: (start_1, end_1, ...args_1) => __awaiter(this, [start_1, end_1, ...args_1], void 0, function* (start, end, options = {}) {
1774
2691
  // verify required parameter 'start' is not null or undefined
1775
2692
  assertParamExists('deleteSlotsByClubInRange', 'start', start);
1776
2693
  // verify required parameter 'end' is not null or undefined
1777
2694
  assertParamExists('deleteSlotsByClubInRange', 'end', end);
1778
- const localVarPath = `/api/clubs/{id}/slots`
1779
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2695
+ const localVarPath = `/api/clubs/slots`;
1780
2696
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1781
2697
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1782
2698
  let baseOptions;
@@ -1809,18 +2725,14 @@ export const ManagerClubSlotsApiAxiosParamCreator = function (configuration) {
1809
2725
  }),
1810
2726
  /**
1811
2727
  *
1812
- * @summary Récupérer tous les créneaux pour un club
1813
- * @param {string} id ID du club
2728
+ * @summary Récupérer tous les créneaux du club courant
1814
2729
  * @param {string} [start] Date de début (format ISO)
1815
2730
  * @param {string} [end] Date de fin (format ISO)
1816
2731
  * @param {*} [options] Override http request option.
1817
2732
  * @throws {RequiredError}
1818
2733
  */
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)));
2734
+ getSlotsByClub: (start_1, end_1, ...args_1) => __awaiter(this, [start_1, end_1, ...args_1], void 0, function* (start, end, options = {}) {
2735
+ const localVarPath = `/api/clubs/slots`;
1824
2736
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1825
2737
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1826
2738
  let baseOptions;
@@ -1862,17 +2774,16 @@ export const ManagerClubSlotsApiFp = function (configuration) {
1862
2774
  return {
1863
2775
  /**
1864
2776
  *
1865
- * @summary Supprimer des créneaux pour un club sur une plage de dates
1866
- * @param {string} id ID du club
2777
+ * @summary Supprimer des créneaux pour le club courant sur une plage de dates
1867
2778
  * @param {string} start Date de début (format ISO)
1868
2779
  * @param {string} end Date de fin (format ISO)
1869
2780
  * @param {*} [options] Override http request option.
1870
2781
  * @throws {RequiredError}
1871
2782
  */
1872
- deleteSlotsByClubInRange(id, start, end, options) {
2783
+ deleteSlotsByClubInRange(start, end, options) {
1873
2784
  return __awaiter(this, void 0, void 0, function* () {
1874
2785
  var _a, _b, _c;
1875
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSlotsByClubInRange(id, start, end, options);
2786
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSlotsByClubInRange(start, end, options);
1876
2787
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1877
2788
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubSlotsApi.deleteSlotsByClubInRange']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1878
2789
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1880,17 +2791,16 @@ export const ManagerClubSlotsApiFp = function (configuration) {
1880
2791
  },
1881
2792
  /**
1882
2793
  *
1883
- * @summary Récupérer tous les créneaux pour un club
1884
- * @param {string} id ID du club
2794
+ * @summary Récupérer tous les créneaux du club courant
1885
2795
  * @param {string} [start] Date de début (format ISO)
1886
2796
  * @param {string} [end] Date de fin (format ISO)
1887
2797
  * @param {*} [options] Override http request option.
1888
2798
  * @throws {RequiredError}
1889
2799
  */
1890
- getSlotsByClub(id, start, end, options) {
2800
+ getSlotsByClub(start, end, options) {
1891
2801
  return __awaiter(this, void 0, void 0, function* () {
1892
2802
  var _a, _b, _c;
1893
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getSlotsByClub(id, start, end, options);
2803
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSlotsByClub(start, end, options);
1894
2804
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1895
2805
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubSlotsApi.getSlotsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1896
2806
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1907,23 +2817,23 @@ export const ManagerClubSlotsApiFactory = function (configuration, basePath, axi
1907
2817
  return {
1908
2818
  /**
1909
2819
  *
1910
- * @summary Supprimer des créneaux pour un club sur une plage de dates
2820
+ * @summary Supprimer des créneaux pour le club courant sur une plage de dates
1911
2821
  * @param {ManagerClubSlotsApiDeleteSlotsByClubInRangeRequest} requestParameters Request parameters.
1912
2822
  * @param {*} [options] Override http request option.
1913
2823
  * @throws {RequiredError}
1914
2824
  */
1915
2825
  deleteSlotsByClubInRange(requestParameters, options) {
1916
- return localVarFp.deleteSlotsByClubInRange(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
2826
+ return localVarFp.deleteSlotsByClubInRange(requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
1917
2827
  },
1918
2828
  /**
1919
2829
  *
1920
- * @summary Récupérer tous les créneaux pour un club
2830
+ * @summary Récupérer tous les créneaux du club courant
1921
2831
  * @param {ManagerClubSlotsApiGetSlotsByClubRequest} requestParameters Request parameters.
1922
2832
  * @param {*} [options] Override http request option.
1923
2833
  * @throws {RequiredError}
1924
2834
  */
1925
- getSlotsByClub(requestParameters, options) {
1926
- return localVarFp.getSlotsByClub(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
2835
+ getSlotsByClub(requestParameters = {}, options) {
2836
+ return localVarFp.getSlotsByClub(requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
1927
2837
  },
1928
2838
  };
1929
2839
  };
@@ -1936,25 +2846,25 @@ export const ManagerClubSlotsApiFactory = function (configuration, basePath, axi
1936
2846
  export class ManagerClubSlotsApi extends BaseAPI {
1937
2847
  /**
1938
2848
  *
1939
- * @summary Supprimer des créneaux pour un club sur une plage de dates
2849
+ * @summary Supprimer des créneaux pour le club courant sur une plage de dates
1940
2850
  * @param {ManagerClubSlotsApiDeleteSlotsByClubInRangeRequest} requestParameters Request parameters.
1941
2851
  * @param {*} [options] Override http request option.
1942
2852
  * @throws {RequiredError}
1943
2853
  * @memberof ManagerClubSlotsApi
1944
2854
  */
1945
2855
  deleteSlotsByClubInRange(requestParameters, options) {
1946
- return ManagerClubSlotsApiFp(this.configuration).deleteSlotsByClubInRange(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
2856
+ return ManagerClubSlotsApiFp(this.configuration).deleteSlotsByClubInRange(requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
1947
2857
  }
1948
2858
  /**
1949
2859
  *
1950
- * @summary Récupérer tous les créneaux pour un club
2860
+ * @summary Récupérer tous les créneaux du club courant
1951
2861
  * @param {ManagerClubSlotsApiGetSlotsByClubRequest} requestParameters Request parameters.
1952
2862
  * @param {*} [options] Override http request option.
1953
2863
  * @throws {RequiredError}
1954
2864
  * @memberof ManagerClubSlotsApi
1955
2865
  */
1956
- getSlotsByClub(requestParameters, options) {
1957
- return ManagerClubSlotsApiFp(this.configuration).getSlotsByClub(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
2866
+ getSlotsByClub(requestParameters = {}, options) {
2867
+ return ManagerClubSlotsApiFp(this.configuration).getSlotsByClub(requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
1958
2868
  }
1959
2869
  }
1960
2870
  /**
@@ -1965,19 +2875,15 @@ export const ManagerClubSubscriptionsApiAxiosParamCreator = function (configurat
1965
2875
  return {
1966
2876
  /**
1967
2877
  *
1968
- * @summary Archiver un prix
1969
- * @param {string} id ID du club
2878
+ * @summary Archiver un prix (club courant)
1970
2879
  * @param {string} priceId ID du prix Stripe
1971
2880
  * @param {*} [options] Override http request option.
1972
2881
  * @throws {RequiredError}
1973
2882
  */
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);
2883
+ archivePriceForSubscriptionPlan: (priceId_1, ...args_1) => __awaiter(this, [priceId_1, ...args_1], void 0, function* (priceId, options = {}) {
1977
2884
  // verify required parameter 'priceId' is not null or undefined
1978
2885
  assertParamExists('archivePriceForSubscriptionPlan', 'priceId', priceId);
1979
- const localVarPath = `/api/clubs/{id}/subscription-plans/{priceId}/archive-price`
1980
- .replace(`{${"id"}}`, encodeURIComponent(String(id)))
2886
+ const localVarPath = `/api/clubs/subscription-plans/{priceId}/archive-price`
1981
2887
  .replace(`{${"priceId"}}`, encodeURIComponent(String(priceId)));
1982
2888
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1983
2889
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2001,22 +2907,18 @@ export const ManagerClubSubscriptionsApiAxiosParamCreator = function (configurat
2001
2907
  }),
2002
2908
  /**
2003
2909
  *
2004
- * @summary Créer un nouveau prix pour un plan
2005
- * @param {string} id ID du club
2910
+ * @summary Créer un nouveau prix pour un plan (club courant)
2006
2911
  * @param {string} productId ID du produit Stripe
2007
2912
  * @param {CreatePriceRequest} createPriceRequest
2008
2913
  * @param {*} [options] Override http request option.
2009
2914
  * @throws {RequiredError}
2010
2915
  */
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);
2916
+ createPriceForSubscriptionPlan: (productId_1, createPriceRequest_1, ...args_1) => __awaiter(this, [productId_1, createPriceRequest_1, ...args_1], void 0, function* (productId, createPriceRequest, options = {}) {
2014
2917
  // verify required parameter 'productId' is not null or undefined
2015
2918
  assertParamExists('createPriceForSubscriptionPlan', 'productId', productId);
2016
2919
  // verify required parameter 'createPriceRequest' is not null or undefined
2017
2920
  assertParamExists('createPriceForSubscriptionPlan', 'createPriceRequest', createPriceRequest);
2018
- const localVarPath = `/api/clubs/{id}/subscription-plans/{productId}/prices`
2019
- .replace(`{${"id"}}`, encodeURIComponent(String(id)))
2921
+ const localVarPath = `/api/clubs/subscription-plans/{productId}/prices`
2020
2922
  .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
2021
2923
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2022
2924
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2042,19 +2944,15 @@ export const ManagerClubSubscriptionsApiAxiosParamCreator = function (configurat
2042
2944
  }),
2043
2945
  /**
2044
2946
  *
2045
- * @summary Créer un plan d\'abonnement pour un club
2046
- * @param {string} id ID du club
2947
+ * @summary Créer un plan d\'abonnement pour le club courant
2047
2948
  * @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
2048
2949
  * @param {*} [options] Override http request option.
2049
2950
  * @throws {RequiredError}
2050
2951
  */
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);
2952
+ createSubscriptionPlanForClub: (createSubscriptionPlanRequest_1, ...args_1) => __awaiter(this, [createSubscriptionPlanRequest_1, ...args_1], void 0, function* (createSubscriptionPlanRequest, options = {}) {
2054
2953
  // verify required parameter 'createSubscriptionPlanRequest' is not null or undefined
2055
2954
  assertParamExists('createSubscriptionPlanForClub', 'createSubscriptionPlanRequest', createSubscriptionPlanRequest);
2056
- const localVarPath = `/api/clubs/{id}/subscription-plans`
2057
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2955
+ const localVarPath = `/api/clubs/subscription-plans`;
2058
2956
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2059
2957
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2060
2958
  let baseOptions;
@@ -2079,19 +2977,15 @@ export const ManagerClubSubscriptionsApiAxiosParamCreator = function (configurat
2079
2977
  }),
2080
2978
  /**
2081
2979
  *
2082
- * @summary Supprimer un plan d\'abonnement pour un club
2083
- * @param {string} id ID du club
2980
+ * @summary Supprimer un plan d\'abonnement (club courant)
2084
2981
  * @param {string} productId ID du produit Stripe
2085
2982
  * @param {*} [options] Override http request option.
2086
2983
  * @throws {RequiredError}
2087
2984
  */
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);
2985
+ deleteSubscriptionPlanForClub: (productId_1, ...args_1) => __awaiter(this, [productId_1, ...args_1], void 0, function* (productId, options = {}) {
2091
2986
  // verify required parameter 'productId' is not null or undefined
2092
2987
  assertParamExists('deleteSubscriptionPlanForClub', 'productId', productId);
2093
- const localVarPath = `/api/clubs/{id}/subscription-plans/{productId}`
2094
- .replace(`{${"id"}}`, encodeURIComponent(String(id)))
2988
+ const localVarPath = `/api/clubs/subscription-plans/{productId}`
2095
2989
  .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
2096
2990
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2097
2991
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2115,19 +3009,15 @@ export const ManagerClubSubscriptionsApiAxiosParamCreator = function (configurat
2115
3009
  }),
2116
3010
  /**
2117
3011
  *
2118
- * @summary Réactiver un plan d\'abonnement
2119
- * @param {string} id ID du club
3012
+ * @summary Réactiver un plan d\'abonnement (club courant)
2120
3013
  * @param {string} productId ID du produit Stripe
2121
3014
  * @param {*} [options] Override http request option.
2122
3015
  * @throws {RequiredError}
2123
3016
  */
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);
3017
+ restoreSubscriptionPlanForClub: (productId_1, ...args_1) => __awaiter(this, [productId_1, ...args_1], void 0, function* (productId, options = {}) {
2127
3018
  // verify required parameter 'productId' is not null or undefined
2128
3019
  assertParamExists('restoreSubscriptionPlanForClub', 'productId', productId);
2129
- const localVarPath = `/api/clubs/{id}/subscription-plans/{productId}/restore`
2130
- .replace(`{${"id"}}`, encodeURIComponent(String(id)))
3020
+ const localVarPath = `/api/clubs/subscription-plans/{productId}/restore`
2131
3021
  .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
2132
3022
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2133
3023
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2151,19 +3041,15 @@ export const ManagerClubSubscriptionsApiAxiosParamCreator = function (configurat
2151
3041
  }),
2152
3042
  /**
2153
3043
  *
2154
- * @summary Réactiver un prix
2155
- * @param {string} id ID du club
3044
+ * @summary Réactiver un prix (club courant)
2156
3045
  * @param {string} priceId ID du prix Stripe
2157
3046
  * @param {*} [options] Override http request option.
2158
3047
  * @throws {RequiredError}
2159
3048
  */
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);
3049
+ restoreSubscriptionPriceForClub: (priceId_1, ...args_1) => __awaiter(this, [priceId_1, ...args_1], void 0, function* (priceId, options = {}) {
2163
3050
  // verify required parameter 'priceId' is not null or undefined
2164
3051
  assertParamExists('restoreSubscriptionPriceForClub', 'priceId', priceId);
2165
- const localVarPath = `/api/clubs/{id}/subscription-plans/{priceId}/restore-price`
2166
- .replace(`{${"id"}}`, encodeURIComponent(String(id)))
3052
+ const localVarPath = `/api/clubs/subscription-plans/{priceId}/restore-price`
2167
3053
  .replace(`{${"priceId"}}`, encodeURIComponent(String(priceId)));
2168
3054
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2169
3055
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2187,22 +3073,18 @@ export const ManagerClubSubscriptionsApiAxiosParamCreator = function (configurat
2187
3073
  }),
2188
3074
  /**
2189
3075
  *
2190
- * @summary Mettre à jour un plan d\'abonnement
2191
- * @param {string} id ID du club
3076
+ * @summary Mettre à jour un plan d\'abonnement (club courant)
2192
3077
  * @param {string} priceId ID du prix Stripe
2193
3078
  * @param {UpdateSubscriptionPlanRequest} updateSubscriptionPlanRequest
2194
3079
  * @param {*} [options] Override http request option.
2195
3080
  * @throws {RequiredError}
2196
3081
  */
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);
3082
+ updateSubscriptionPlanForClub: (priceId_1, updateSubscriptionPlanRequest_1, ...args_1) => __awaiter(this, [priceId_1, updateSubscriptionPlanRequest_1, ...args_1], void 0, function* (priceId, updateSubscriptionPlanRequest, options = {}) {
2200
3083
  // verify required parameter 'priceId' is not null or undefined
2201
3084
  assertParamExists('updateSubscriptionPlanForClub', 'priceId', priceId);
2202
3085
  // verify required parameter 'updateSubscriptionPlanRequest' is not null or undefined
2203
3086
  assertParamExists('updateSubscriptionPlanForClub', 'updateSubscriptionPlanRequest', updateSubscriptionPlanRequest);
2204
- const localVarPath = `/api/clubs/{id}/subscription-plans/{priceId}`
2205
- .replace(`{${"id"}}`, encodeURIComponent(String(id)))
3087
+ const localVarPath = `/api/clubs/subscription-plans/{priceId}`
2206
3088
  .replace(`{${"priceId"}}`, encodeURIComponent(String(priceId)));
2207
3089
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2208
3090
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2237,16 +3119,15 @@ export const ManagerClubSubscriptionsApiFp = function (configuration) {
2237
3119
  return {
2238
3120
  /**
2239
3121
  *
2240
- * @summary Archiver un prix
2241
- * @param {string} id ID du club
3122
+ * @summary Archiver un prix (club courant)
2242
3123
  * @param {string} priceId ID du prix Stripe
2243
3124
  * @param {*} [options] Override http request option.
2244
3125
  * @throws {RequiredError}
2245
3126
  */
2246
- archivePriceForSubscriptionPlan(id, priceId, options) {
3127
+ archivePriceForSubscriptionPlan(priceId, options) {
2247
3128
  return __awaiter(this, void 0, void 0, function* () {
2248
3129
  var _a, _b, _c;
2249
- const localVarAxiosArgs = yield localVarAxiosParamCreator.archivePriceForSubscriptionPlan(id, priceId, options);
3130
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.archivePriceForSubscriptionPlan(priceId, options);
2250
3131
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2251
3132
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubSubscriptionsApi.archivePriceForSubscriptionPlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2252
3133
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2254,17 +3135,16 @@ export const ManagerClubSubscriptionsApiFp = function (configuration) {
2254
3135
  },
2255
3136
  /**
2256
3137
  *
2257
- * @summary Créer un nouveau prix pour un plan
2258
- * @param {string} id ID du club
3138
+ * @summary Créer un nouveau prix pour un plan (club courant)
2259
3139
  * @param {string} productId ID du produit Stripe
2260
3140
  * @param {CreatePriceRequest} createPriceRequest
2261
3141
  * @param {*} [options] Override http request option.
2262
3142
  * @throws {RequiredError}
2263
3143
  */
2264
- createPriceForSubscriptionPlan(id, productId, createPriceRequest, options) {
3144
+ createPriceForSubscriptionPlan(productId, createPriceRequest, options) {
2265
3145
  return __awaiter(this, void 0, void 0, function* () {
2266
3146
  var _a, _b, _c;
2267
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createPriceForSubscriptionPlan(id, productId, createPriceRequest, options);
3147
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createPriceForSubscriptionPlan(productId, createPriceRequest, options);
2268
3148
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2269
3149
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubSubscriptionsApi.createPriceForSubscriptionPlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2270
3150
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2272,16 +3152,15 @@ export const ManagerClubSubscriptionsApiFp = function (configuration) {
2272
3152
  },
2273
3153
  /**
2274
3154
  *
2275
- * @summary Créer un plan d\'abonnement pour un club
2276
- * @param {string} id ID du club
3155
+ * @summary Créer un plan d\'abonnement pour le club courant
2277
3156
  * @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
2278
3157
  * @param {*} [options] Override http request option.
2279
3158
  * @throws {RequiredError}
2280
3159
  */
2281
- createSubscriptionPlanForClub(id, createSubscriptionPlanRequest, options) {
3160
+ createSubscriptionPlanForClub(createSubscriptionPlanRequest, options) {
2282
3161
  return __awaiter(this, void 0, void 0, function* () {
2283
3162
  var _a, _b, _c;
2284
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createSubscriptionPlanForClub(id, createSubscriptionPlanRequest, options);
3163
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createSubscriptionPlanForClub(createSubscriptionPlanRequest, options);
2285
3164
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2286
3165
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubSubscriptionsApi.createSubscriptionPlanForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2287
3166
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2289,16 +3168,15 @@ export const ManagerClubSubscriptionsApiFp = function (configuration) {
2289
3168
  },
2290
3169
  /**
2291
3170
  *
2292
- * @summary Supprimer un plan d\'abonnement pour un club
2293
- * @param {string} id ID du club
3171
+ * @summary Supprimer un plan d\'abonnement (club courant)
2294
3172
  * @param {string} productId ID du produit Stripe
2295
3173
  * @param {*} [options] Override http request option.
2296
3174
  * @throws {RequiredError}
2297
3175
  */
2298
- deleteSubscriptionPlanForClub(id, productId, options) {
3176
+ deleteSubscriptionPlanForClub(productId, options) {
2299
3177
  return __awaiter(this, void 0, void 0, function* () {
2300
3178
  var _a, _b, _c;
2301
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSubscriptionPlanForClub(id, productId, options);
3179
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSubscriptionPlanForClub(productId, options);
2302
3180
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2303
3181
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubSubscriptionsApi.deleteSubscriptionPlanForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2304
3182
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2306,16 +3184,15 @@ export const ManagerClubSubscriptionsApiFp = function (configuration) {
2306
3184
  },
2307
3185
  /**
2308
3186
  *
2309
- * @summary Réactiver un plan d\'abonnement
2310
- * @param {string} id ID du club
3187
+ * @summary Réactiver un plan d\'abonnement (club courant)
2311
3188
  * @param {string} productId ID du produit Stripe
2312
3189
  * @param {*} [options] Override http request option.
2313
3190
  * @throws {RequiredError}
2314
3191
  */
2315
- restoreSubscriptionPlanForClub(id, productId, options) {
3192
+ restoreSubscriptionPlanForClub(productId, options) {
2316
3193
  return __awaiter(this, void 0, void 0, function* () {
2317
3194
  var _a, _b, _c;
2318
- const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreSubscriptionPlanForClub(id, productId, options);
3195
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreSubscriptionPlanForClub(productId, options);
2319
3196
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2320
3197
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubSubscriptionsApi.restoreSubscriptionPlanForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2321
3198
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2323,16 +3200,15 @@ export const ManagerClubSubscriptionsApiFp = function (configuration) {
2323
3200
  },
2324
3201
  /**
2325
3202
  *
2326
- * @summary Réactiver un prix
2327
- * @param {string} id ID du club
3203
+ * @summary Réactiver un prix (club courant)
2328
3204
  * @param {string} priceId ID du prix Stripe
2329
3205
  * @param {*} [options] Override http request option.
2330
3206
  * @throws {RequiredError}
2331
3207
  */
2332
- restoreSubscriptionPriceForClub(id, priceId, options) {
3208
+ restoreSubscriptionPriceForClub(priceId, options) {
2333
3209
  return __awaiter(this, void 0, void 0, function* () {
2334
3210
  var _a, _b, _c;
2335
- const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreSubscriptionPriceForClub(id, priceId, options);
3211
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreSubscriptionPriceForClub(priceId, options);
2336
3212
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2337
3213
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubSubscriptionsApi.restoreSubscriptionPriceForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2338
3214
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2340,17 +3216,16 @@ export const ManagerClubSubscriptionsApiFp = function (configuration) {
2340
3216
  },
2341
3217
  /**
2342
3218
  *
2343
- * @summary Mettre à jour un plan d\'abonnement
2344
- * @param {string} id ID du club
3219
+ * @summary Mettre à jour un plan d\'abonnement (club courant)
2345
3220
  * @param {string} priceId ID du prix Stripe
2346
3221
  * @param {UpdateSubscriptionPlanRequest} updateSubscriptionPlanRequest
2347
3222
  * @param {*} [options] Override http request option.
2348
3223
  * @throws {RequiredError}
2349
3224
  */
2350
- updateSubscriptionPlanForClub(id, priceId, updateSubscriptionPlanRequest, options) {
3225
+ updateSubscriptionPlanForClub(priceId, updateSubscriptionPlanRequest, options) {
2351
3226
  return __awaiter(this, void 0, void 0, function* () {
2352
3227
  var _a, _b, _c;
2353
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSubscriptionPlanForClub(id, priceId, updateSubscriptionPlanRequest, options);
3228
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSubscriptionPlanForClub(priceId, updateSubscriptionPlanRequest, options);
2354
3229
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2355
3230
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubSubscriptionsApi.updateSubscriptionPlanForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2356
3231
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2367,73 +3242,73 @@ export const ManagerClubSubscriptionsApiFactory = function (configuration, baseP
2367
3242
  return {
2368
3243
  /**
2369
3244
  *
2370
- * @summary Archiver un prix
3245
+ * @summary Archiver un prix (club courant)
2371
3246
  * @param {ManagerClubSubscriptionsApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
2372
3247
  * @param {*} [options] Override http request option.
2373
3248
  * @throws {RequiredError}
2374
3249
  */
2375
3250
  archivePriceForSubscriptionPlan(requestParameters, options) {
2376
- return localVarFp.archivePriceForSubscriptionPlan(requestParameters.id, requestParameters.priceId, options).then((request) => request(axios, basePath));
3251
+ return localVarFp.archivePriceForSubscriptionPlan(requestParameters.priceId, options).then((request) => request(axios, basePath));
2377
3252
  },
2378
3253
  /**
2379
3254
  *
2380
- * @summary Créer un nouveau prix pour un plan
3255
+ * @summary Créer un nouveau prix pour un plan (club courant)
2381
3256
  * @param {ManagerClubSubscriptionsApiCreatePriceForSubscriptionPlanRequest} requestParameters Request parameters.
2382
3257
  * @param {*} [options] Override http request option.
2383
3258
  * @throws {RequiredError}
2384
3259
  */
2385
3260
  createPriceForSubscriptionPlan(requestParameters, options) {
2386
- return localVarFp.createPriceForSubscriptionPlan(requestParameters.id, requestParameters.productId, requestParameters.createPriceRequest, options).then((request) => request(axios, basePath));
3261
+ return localVarFp.createPriceForSubscriptionPlan(requestParameters.productId, requestParameters.createPriceRequest, options).then((request) => request(axios, basePath));
2387
3262
  },
2388
3263
  /**
2389
3264
  *
2390
- * @summary Créer un plan d\'abonnement pour un club
3265
+ * @summary Créer un plan d\'abonnement pour le club courant
2391
3266
  * @param {ManagerClubSubscriptionsApiCreateSubscriptionPlanForClubRequest} requestParameters Request parameters.
2392
3267
  * @param {*} [options] Override http request option.
2393
3268
  * @throws {RequiredError}
2394
3269
  */
2395
3270
  createSubscriptionPlanForClub(requestParameters, options) {
2396
- return localVarFp.createSubscriptionPlanForClub(requestParameters.id, requestParameters.createSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
3271
+ return localVarFp.createSubscriptionPlanForClub(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
2397
3272
  },
2398
3273
  /**
2399
3274
  *
2400
- * @summary Supprimer un plan d\'abonnement pour un club
3275
+ * @summary Supprimer un plan d\'abonnement (club courant)
2401
3276
  * @param {ManagerClubSubscriptionsApiDeleteSubscriptionPlanForClubRequest} requestParameters Request parameters.
2402
3277
  * @param {*} [options] Override http request option.
2403
3278
  * @throws {RequiredError}
2404
3279
  */
2405
3280
  deleteSubscriptionPlanForClub(requestParameters, options) {
2406
- return localVarFp.deleteSubscriptionPlanForClub(requestParameters.id, requestParameters.productId, options).then((request) => request(axios, basePath));
3281
+ return localVarFp.deleteSubscriptionPlanForClub(requestParameters.productId, options).then((request) => request(axios, basePath));
2407
3282
  },
2408
3283
  /**
2409
3284
  *
2410
- * @summary Réactiver un plan d\'abonnement
3285
+ * @summary Réactiver un plan d\'abonnement (club courant)
2411
3286
  * @param {ManagerClubSubscriptionsApiRestoreSubscriptionPlanForClubRequest} requestParameters Request parameters.
2412
3287
  * @param {*} [options] Override http request option.
2413
3288
  * @throws {RequiredError}
2414
3289
  */
2415
3290
  restoreSubscriptionPlanForClub(requestParameters, options) {
2416
- return localVarFp.restoreSubscriptionPlanForClub(requestParameters.id, requestParameters.productId, options).then((request) => request(axios, basePath));
3291
+ return localVarFp.restoreSubscriptionPlanForClub(requestParameters.productId, options).then((request) => request(axios, basePath));
2417
3292
  },
2418
3293
  /**
2419
3294
  *
2420
- * @summary Réactiver un prix
3295
+ * @summary Réactiver un prix (club courant)
2421
3296
  * @param {ManagerClubSubscriptionsApiRestoreSubscriptionPriceForClubRequest} requestParameters Request parameters.
2422
3297
  * @param {*} [options] Override http request option.
2423
3298
  * @throws {RequiredError}
2424
3299
  */
2425
3300
  restoreSubscriptionPriceForClub(requestParameters, options) {
2426
- return localVarFp.restoreSubscriptionPriceForClub(requestParameters.id, requestParameters.priceId, options).then((request) => request(axios, basePath));
3301
+ return localVarFp.restoreSubscriptionPriceForClub(requestParameters.priceId, options).then((request) => request(axios, basePath));
2427
3302
  },
2428
3303
  /**
2429
3304
  *
2430
- * @summary Mettre à jour un plan d\'abonnement
3305
+ * @summary Mettre à jour un plan d\'abonnement (club courant)
2431
3306
  * @param {ManagerClubSubscriptionsApiUpdateSubscriptionPlanForClubRequest} requestParameters Request parameters.
2432
3307
  * @param {*} [options] Override http request option.
2433
3308
  * @throws {RequiredError}
2434
3309
  */
2435
3310
  updateSubscriptionPlanForClub(requestParameters, options) {
2436
- return localVarFp.updateSubscriptionPlanForClub(requestParameters.id, requestParameters.priceId, requestParameters.updateSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
3311
+ return localVarFp.updateSubscriptionPlanForClub(requestParameters.priceId, requestParameters.updateSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
2437
3312
  },
2438
3313
  };
2439
3314
  };
@@ -2446,80 +3321,80 @@ export const ManagerClubSubscriptionsApiFactory = function (configuration, baseP
2446
3321
  export class ManagerClubSubscriptionsApi extends BaseAPI {
2447
3322
  /**
2448
3323
  *
2449
- * @summary Archiver un prix
3324
+ * @summary Archiver un prix (club courant)
2450
3325
  * @param {ManagerClubSubscriptionsApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
2451
3326
  * @param {*} [options] Override http request option.
2452
3327
  * @throws {RequiredError}
2453
3328
  * @memberof ManagerClubSubscriptionsApi
2454
3329
  */
2455
3330
  archivePriceForSubscriptionPlan(requestParameters, options) {
2456
- return ManagerClubSubscriptionsApiFp(this.configuration).archivePriceForSubscriptionPlan(requestParameters.id, requestParameters.priceId, options).then((request) => request(this.axios, this.basePath));
3331
+ return ManagerClubSubscriptionsApiFp(this.configuration).archivePriceForSubscriptionPlan(requestParameters.priceId, options).then((request) => request(this.axios, this.basePath));
2457
3332
  }
2458
3333
  /**
2459
3334
  *
2460
- * @summary Créer un nouveau prix pour un plan
3335
+ * @summary Créer un nouveau prix pour un plan (club courant)
2461
3336
  * @param {ManagerClubSubscriptionsApiCreatePriceForSubscriptionPlanRequest} requestParameters Request parameters.
2462
3337
  * @param {*} [options] Override http request option.
2463
3338
  * @throws {RequiredError}
2464
3339
  * @memberof ManagerClubSubscriptionsApi
2465
3340
  */
2466
3341
  createPriceForSubscriptionPlan(requestParameters, options) {
2467
- return ManagerClubSubscriptionsApiFp(this.configuration).createPriceForSubscriptionPlan(requestParameters.id, requestParameters.productId, requestParameters.createPriceRequest, options).then((request) => request(this.axios, this.basePath));
3342
+ return ManagerClubSubscriptionsApiFp(this.configuration).createPriceForSubscriptionPlan(requestParameters.productId, requestParameters.createPriceRequest, options).then((request) => request(this.axios, this.basePath));
2468
3343
  }
2469
3344
  /**
2470
3345
  *
2471
- * @summary Créer un plan d\'abonnement pour un club
3346
+ * @summary Créer un plan d\'abonnement pour le club courant
2472
3347
  * @param {ManagerClubSubscriptionsApiCreateSubscriptionPlanForClubRequest} requestParameters Request parameters.
2473
3348
  * @param {*} [options] Override http request option.
2474
3349
  * @throws {RequiredError}
2475
3350
  * @memberof ManagerClubSubscriptionsApi
2476
3351
  */
2477
3352
  createSubscriptionPlanForClub(requestParameters, options) {
2478
- return ManagerClubSubscriptionsApiFp(this.configuration).createSubscriptionPlanForClub(requestParameters.id, requestParameters.createSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
3353
+ return ManagerClubSubscriptionsApiFp(this.configuration).createSubscriptionPlanForClub(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
2479
3354
  }
2480
3355
  /**
2481
3356
  *
2482
- * @summary Supprimer un plan d\'abonnement pour un club
3357
+ * @summary Supprimer un plan d\'abonnement (club courant)
2483
3358
  * @param {ManagerClubSubscriptionsApiDeleteSubscriptionPlanForClubRequest} requestParameters Request parameters.
2484
3359
  * @param {*} [options] Override http request option.
2485
3360
  * @throws {RequiredError}
2486
3361
  * @memberof ManagerClubSubscriptionsApi
2487
3362
  */
2488
3363
  deleteSubscriptionPlanForClub(requestParameters, options) {
2489
- return ManagerClubSubscriptionsApiFp(this.configuration).deleteSubscriptionPlanForClub(requestParameters.id, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
3364
+ return ManagerClubSubscriptionsApiFp(this.configuration).deleteSubscriptionPlanForClub(requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
2490
3365
  }
2491
3366
  /**
2492
3367
  *
2493
- * @summary Réactiver un plan d\'abonnement
3368
+ * @summary Réactiver un plan d\'abonnement (club courant)
2494
3369
  * @param {ManagerClubSubscriptionsApiRestoreSubscriptionPlanForClubRequest} requestParameters Request parameters.
2495
3370
  * @param {*} [options] Override http request option.
2496
3371
  * @throws {RequiredError}
2497
3372
  * @memberof ManagerClubSubscriptionsApi
2498
3373
  */
2499
3374
  restoreSubscriptionPlanForClub(requestParameters, options) {
2500
- return ManagerClubSubscriptionsApiFp(this.configuration).restoreSubscriptionPlanForClub(requestParameters.id, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
3375
+ return ManagerClubSubscriptionsApiFp(this.configuration).restoreSubscriptionPlanForClub(requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
2501
3376
  }
2502
3377
  /**
2503
3378
  *
2504
- * @summary Réactiver un prix
3379
+ * @summary Réactiver un prix (club courant)
2505
3380
  * @param {ManagerClubSubscriptionsApiRestoreSubscriptionPriceForClubRequest} requestParameters Request parameters.
2506
3381
  * @param {*} [options] Override http request option.
2507
3382
  * @throws {RequiredError}
2508
3383
  * @memberof ManagerClubSubscriptionsApi
2509
3384
  */
2510
3385
  restoreSubscriptionPriceForClub(requestParameters, options) {
2511
- return ManagerClubSubscriptionsApiFp(this.configuration).restoreSubscriptionPriceForClub(requestParameters.id, requestParameters.priceId, options).then((request) => request(this.axios, this.basePath));
3386
+ return ManagerClubSubscriptionsApiFp(this.configuration).restoreSubscriptionPriceForClub(requestParameters.priceId, options).then((request) => request(this.axios, this.basePath));
2512
3387
  }
2513
3388
  /**
2514
3389
  *
2515
- * @summary Mettre à jour un plan d\'abonnement
3390
+ * @summary Mettre à jour un plan d\'abonnement (club courant)
2516
3391
  * @param {ManagerClubSubscriptionsApiUpdateSubscriptionPlanForClubRequest} requestParameters Request parameters.
2517
3392
  * @param {*} [options] Override http request option.
2518
3393
  * @throws {RequiredError}
2519
3394
  * @memberof ManagerClubSubscriptionsApi
2520
3395
  */
2521
3396
  updateSubscriptionPlanForClub(requestParameters, options) {
2522
- return ManagerClubSubscriptionsApiFp(this.configuration).updateSubscriptionPlanForClub(requestParameters.id, requestParameters.priceId, requestParameters.updateSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
3397
+ return ManagerClubSubscriptionsApiFp(this.configuration).updateSubscriptionPlanForClub(requestParameters.priceId, requestParameters.updateSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
2523
3398
  }
2524
3399
  }
2525
3400
  /**
@@ -2530,19 +3405,15 @@ export const ManagerClubsApiAxiosParamCreator = function (configuration) {
2530
3405
  return {
2531
3406
  /**
2532
3407
  *
2533
- * @summary Ajouter un membre à un club
2534
- * @param {string} id ID du club
3408
+ * @summary Ajouter un membre au club courant
2535
3409
  * @param {AddClubMemberRequest} addClubMemberRequest
2536
3410
  * @param {*} [options] Override http request option.
2537
3411
  * @throws {RequiredError}
2538
3412
  */
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);
3413
+ addClubMember: (addClubMemberRequest_1, ...args_1) => __awaiter(this, [addClubMemberRequest_1, ...args_1], void 0, function* (addClubMemberRequest, options = {}) {
2542
3414
  // verify required parameter 'addClubMemberRequest' is not null or undefined
2543
3415
  assertParamExists('addClubMember', 'addClubMemberRequest', addClubMemberRequest);
2544
- const localVarPath = `/api/clubs/{id}/add_members`
2545
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
3416
+ const localVarPath = `/api/clubs/add_members`;
2546
3417
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2547
3418
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2548
3419
  let baseOptions;
@@ -2567,16 +3438,12 @@ export const ManagerClubsApiAxiosParamCreator = function (configuration) {
2567
3438
  }),
2568
3439
  /**
2569
3440
  *
2570
- * @summary Récupérer les informations d\'un club
2571
- * @param {string} id ID du club
3441
+ * @summary Récupérer les informations du club courant
2572
3442
  * @param {*} [options] Override http request option.
2573
3443
  * @throws {RequiredError}
2574
3444
  */
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)));
3445
+ getClubInfo: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3446
+ const localVarPath = `/api/clubs/me`;
2580
3447
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2581
3448
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2582
3449
  let baseOptions;
@@ -2599,16 +3466,12 @@ export const ManagerClubsApiAxiosParamCreator = function (configuration) {
2599
3466
  }),
2600
3467
  /**
2601
3468
  *
2602
- * @summary Récupérer les membres d\'un club
2603
- * @param {string} id ID du club
3469
+ * @summary Récupérer les membres du club courant
2604
3470
  * @param {*} [options] Override http request option.
2605
3471
  * @throws {RequiredError}
2606
3472
  */
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)));
3473
+ getClubMembers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3474
+ const localVarPath = `/api/clubs/members`;
2612
3475
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2613
3476
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2614
3477
  let baseOptions;
@@ -2631,16 +3494,12 @@ export const ManagerClubsApiAxiosParamCreator = function (configuration) {
2631
3494
  }),
2632
3495
  /**
2633
3496
  *
2634
- * @summary Récupérer les rôles d\'un club
2635
- * @param {string} id ID du club
3497
+ * @summary Récupérer les rôles du club courant
2636
3498
  * @param {*} [options] Override http request option.
2637
3499
  * @throws {RequiredError}
2638
3500
  */
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)));
3501
+ getClubRoles: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3502
+ const localVarPath = `/api/clubs/roles`;
2644
3503
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2645
3504
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2646
3505
  let baseOptions;
@@ -2663,19 +3522,15 @@ export const ManagerClubsApiAxiosParamCreator = function (configuration) {
2663
3522
  }),
2664
3523
  /**
2665
3524
  *
2666
- * @summary Mettre à jour un club existant
2667
- * @param {string} id ID du club
3525
+ * @summary Mettre à jour un club existant (club courant)
2668
3526
  * @param {UpdateClubRequest} updateClubRequest
2669
3527
  * @param {*} [options] Override http request option.
2670
3528
  * @throws {RequiredError}
2671
3529
  */
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);
3530
+ updateClubNoId: (updateClubRequest_1, ...args_1) => __awaiter(this, [updateClubRequest_1, ...args_1], void 0, function* (updateClubRequest, options = {}) {
2675
3531
  // 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)));
3532
+ assertParamExists('updateClubNoId', 'updateClubRequest', updateClubRequest);
3533
+ const localVarPath = `/api/clubs`;
2679
3534
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2680
3535
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2681
3536
  let baseOptions;
@@ -2709,16 +3564,15 @@ export const ManagerClubsApiFp = function (configuration) {
2709
3564
  return {
2710
3565
  /**
2711
3566
  *
2712
- * @summary Ajouter un membre à un club
2713
- * @param {string} id ID du club
3567
+ * @summary Ajouter un membre au club courant
2714
3568
  * @param {AddClubMemberRequest} addClubMemberRequest
2715
3569
  * @param {*} [options] Override http request option.
2716
3570
  * @throws {RequiredError}
2717
3571
  */
2718
- addClubMember(id, addClubMemberRequest, options) {
3572
+ addClubMember(addClubMemberRequest, options) {
2719
3573
  return __awaiter(this, void 0, void 0, function* () {
2720
3574
  var _a, _b, _c;
2721
- const localVarAxiosArgs = yield localVarAxiosParamCreator.addClubMember(id, addClubMemberRequest, options);
3575
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addClubMember(addClubMemberRequest, options);
2722
3576
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2723
3577
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubsApi.addClubMember']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2724
3578
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2726,15 +3580,14 @@ export const ManagerClubsApiFp = function (configuration) {
2726
3580
  },
2727
3581
  /**
2728
3582
  *
2729
- * @summary Récupérer les informations d\'un club
2730
- * @param {string} id ID du club
3583
+ * @summary Récupérer les informations du club courant
2731
3584
  * @param {*} [options] Override http request option.
2732
3585
  * @throws {RequiredError}
2733
3586
  */
2734
- getClubInfo(id, options) {
3587
+ getClubInfo(options) {
2735
3588
  return __awaiter(this, void 0, void 0, function* () {
2736
3589
  var _a, _b, _c;
2737
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubInfo(id, options);
3590
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubInfo(options);
2738
3591
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2739
3592
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubsApi.getClubInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2740
3593
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2742,15 +3595,14 @@ export const ManagerClubsApiFp = function (configuration) {
2742
3595
  },
2743
3596
  /**
2744
3597
  *
2745
- * @summary Récupérer les membres d\'un club
2746
- * @param {string} id ID du club
3598
+ * @summary Récupérer les membres du club courant
2747
3599
  * @param {*} [options] Override http request option.
2748
3600
  * @throws {RequiredError}
2749
3601
  */
2750
- getClubMembers(id, options) {
3602
+ getClubMembers(options) {
2751
3603
  return __awaiter(this, void 0, void 0, function* () {
2752
3604
  var _a, _b, _c;
2753
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubMembers(id, options);
3605
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubMembers(options);
2754
3606
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2755
3607
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubsApi.getClubMembers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2756
3608
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2758,15 +3610,14 @@ export const ManagerClubsApiFp = function (configuration) {
2758
3610
  },
2759
3611
  /**
2760
3612
  *
2761
- * @summary Récupérer les rôles d\'un club
2762
- * @param {string} id ID du club
3613
+ * @summary Récupérer les rôles du club courant
2763
3614
  * @param {*} [options] Override http request option.
2764
3615
  * @throws {RequiredError}
2765
3616
  */
2766
- getClubRoles(id, options) {
3617
+ getClubRoles(options) {
2767
3618
  return __awaiter(this, void 0, void 0, function* () {
2768
3619
  var _a, _b, _c;
2769
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubRoles(id, options);
3620
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubRoles(options);
2770
3621
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2771
3622
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubsApi.getClubRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2772
3623
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2774,18 +3625,17 @@ export const ManagerClubsApiFp = function (configuration) {
2774
3625
  },
2775
3626
  /**
2776
3627
  *
2777
- * @summary Mettre à jour un club existant
2778
- * @param {string} id ID du club
3628
+ * @summary Mettre à jour un club existant (club courant)
2779
3629
  * @param {UpdateClubRequest} updateClubRequest
2780
3630
  * @param {*} [options] Override http request option.
2781
3631
  * @throws {RequiredError}
2782
3632
  */
2783
- updateClub(id, updateClubRequest, options) {
3633
+ updateClubNoId(updateClubRequest, options) {
2784
3634
  return __awaiter(this, void 0, void 0, function* () {
2785
3635
  var _a, _b, _c;
2786
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClub(id, updateClubRequest, options);
3636
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubNoId(updateClubRequest, options);
2787
3637
  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;
3638
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerClubsApi.updateClubNoId']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2789
3639
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2790
3640
  });
2791
3641
  },
@@ -2800,53 +3650,50 @@ export const ManagerClubsApiFactory = function (configuration, basePath, axios)
2800
3650
  return {
2801
3651
  /**
2802
3652
  *
2803
- * @summary Ajouter un membre à un club
3653
+ * @summary Ajouter un membre au club courant
2804
3654
  * @param {ManagerClubsApiAddClubMemberRequest} requestParameters Request parameters.
2805
3655
  * @param {*} [options] Override http request option.
2806
3656
  * @throws {RequiredError}
2807
3657
  */
2808
3658
  addClubMember(requestParameters, options) {
2809
- return localVarFp.addClubMember(requestParameters.id, requestParameters.addClubMemberRequest, options).then((request) => request(axios, basePath));
3659
+ return localVarFp.addClubMember(requestParameters.addClubMemberRequest, options).then((request) => request(axios, basePath));
2810
3660
  },
2811
3661
  /**
2812
3662
  *
2813
- * @summary Récupérer les informations d\'un club
2814
- * @param {ManagerClubsApiGetClubInfoRequest} requestParameters Request parameters.
3663
+ * @summary Récupérer les informations du club courant
2815
3664
  * @param {*} [options] Override http request option.
2816
3665
  * @throws {RequiredError}
2817
3666
  */
2818
- getClubInfo(requestParameters, options) {
2819
- return localVarFp.getClubInfo(requestParameters.id, options).then((request) => request(axios, basePath));
3667
+ getClubInfo(options) {
3668
+ return localVarFp.getClubInfo(options).then((request) => request(axios, basePath));
2820
3669
  },
2821
3670
  /**
2822
3671
  *
2823
- * @summary Récupérer les membres d\'un club
2824
- * @param {ManagerClubsApiGetClubMembersRequest} requestParameters Request parameters.
3672
+ * @summary Récupérer les membres du club courant
2825
3673
  * @param {*} [options] Override http request option.
2826
3674
  * @throws {RequiredError}
2827
3675
  */
2828
- getClubMembers(requestParameters, options) {
2829
- return localVarFp.getClubMembers(requestParameters.id, options).then((request) => request(axios, basePath));
3676
+ getClubMembers(options) {
3677
+ return localVarFp.getClubMembers(options).then((request) => request(axios, basePath));
2830
3678
  },
2831
3679
  /**
2832
3680
  *
2833
- * @summary Récupérer les rôles d\'un club
2834
- * @param {ManagerClubsApiGetClubRolesRequest} requestParameters Request parameters.
3681
+ * @summary Récupérer les rôles du club courant
2835
3682
  * @param {*} [options] Override http request option.
2836
3683
  * @throws {RequiredError}
2837
3684
  */
2838
- getClubRoles(requestParameters, options) {
2839
- return localVarFp.getClubRoles(requestParameters.id, options).then((request) => request(axios, basePath));
3685
+ getClubRoles(options) {
3686
+ return localVarFp.getClubRoles(options).then((request) => request(axios, basePath));
2840
3687
  },
2841
3688
  /**
2842
3689
  *
2843
- * @summary Mettre à jour un club existant
2844
- * @param {ManagerClubsApiUpdateClubRequest} requestParameters Request parameters.
3690
+ * @summary Mettre à jour un club existant (club courant)
3691
+ * @param {ManagerClubsApiUpdateClubNoIdRequest} requestParameters Request parameters.
2845
3692
  * @param {*} [options] Override http request option.
2846
3693
  * @throws {RequiredError}
2847
3694
  */
2848
- updateClub(requestParameters, options) {
2849
- return localVarFp.updateClub(requestParameters.id, requestParameters.updateClubRequest, options).then((request) => request(axios, basePath));
3695
+ updateClubNoId(requestParameters, options) {
3696
+ return localVarFp.updateClubNoId(requestParameters.updateClubRequest, options).then((request) => request(axios, basePath));
2850
3697
  },
2851
3698
  };
2852
3699
  };
@@ -2859,58 +3706,55 @@ export const ManagerClubsApiFactory = function (configuration, basePath, axios)
2859
3706
  export class ManagerClubsApi extends BaseAPI {
2860
3707
  /**
2861
3708
  *
2862
- * @summary Ajouter un membre à un club
3709
+ * @summary Ajouter un membre au club courant
2863
3710
  * @param {ManagerClubsApiAddClubMemberRequest} requestParameters Request parameters.
2864
3711
  * @param {*} [options] Override http request option.
2865
3712
  * @throws {RequiredError}
2866
3713
  * @memberof ManagerClubsApi
2867
3714
  */
2868
3715
  addClubMember(requestParameters, options) {
2869
- return ManagerClubsApiFp(this.configuration).addClubMember(requestParameters.id, requestParameters.addClubMemberRequest, options).then((request) => request(this.axios, this.basePath));
3716
+ return ManagerClubsApiFp(this.configuration).addClubMember(requestParameters.addClubMemberRequest, options).then((request) => request(this.axios, this.basePath));
2870
3717
  }
2871
3718
  /**
2872
3719
  *
2873
- * @summary Récupérer les informations d\'un club
2874
- * @param {ManagerClubsApiGetClubInfoRequest} requestParameters Request parameters.
3720
+ * @summary Récupérer les informations du club courant
2875
3721
  * @param {*} [options] Override http request option.
2876
3722
  * @throws {RequiredError}
2877
3723
  * @memberof ManagerClubsApi
2878
3724
  */
2879
- getClubInfo(requestParameters, options) {
2880
- return ManagerClubsApiFp(this.configuration).getClubInfo(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
3725
+ getClubInfo(options) {
3726
+ return ManagerClubsApiFp(this.configuration).getClubInfo(options).then((request) => request(this.axios, this.basePath));
2881
3727
  }
2882
3728
  /**
2883
3729
  *
2884
- * @summary Récupérer les membres d\'un club
2885
- * @param {ManagerClubsApiGetClubMembersRequest} requestParameters Request parameters.
3730
+ * @summary Récupérer les membres du club courant
2886
3731
  * @param {*} [options] Override http request option.
2887
3732
  * @throws {RequiredError}
2888
3733
  * @memberof ManagerClubsApi
2889
3734
  */
2890
- getClubMembers(requestParameters, options) {
2891
- return ManagerClubsApiFp(this.configuration).getClubMembers(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
3735
+ getClubMembers(options) {
3736
+ return ManagerClubsApiFp(this.configuration).getClubMembers(options).then((request) => request(this.axios, this.basePath));
2892
3737
  }
2893
3738
  /**
2894
3739
  *
2895
- * @summary Récupérer les rôles d\'un club
2896
- * @param {ManagerClubsApiGetClubRolesRequest} requestParameters Request parameters.
3740
+ * @summary Récupérer les rôles du club courant
2897
3741
  * @param {*} [options] Override http request option.
2898
3742
  * @throws {RequiredError}
2899
3743
  * @memberof ManagerClubsApi
2900
3744
  */
2901
- getClubRoles(requestParameters, options) {
2902
- return ManagerClubsApiFp(this.configuration).getClubRoles(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
3745
+ getClubRoles(options) {
3746
+ return ManagerClubsApiFp(this.configuration).getClubRoles(options).then((request) => request(this.axios, this.basePath));
2903
3747
  }
2904
3748
  /**
2905
3749
  *
2906
- * @summary Mettre à jour un club existant
2907
- * @param {ManagerClubsApiUpdateClubRequest} requestParameters Request parameters.
3750
+ * @summary Mettre à jour un club existant (club courant)
3751
+ * @param {ManagerClubsApiUpdateClubNoIdRequest} requestParameters Request parameters.
2908
3752
  * @param {*} [options] Override http request option.
2909
3753
  * @throws {RequiredError}
2910
3754
  * @memberof ManagerClubsApi
2911
3755
  */
2912
- updateClub(requestParameters, options) {
2913
- return ManagerClubsApiFp(this.configuration).updateClub(requestParameters.id, requestParameters.updateClubRequest, options).then((request) => request(this.axios, this.basePath));
3756
+ updateClubNoId(requestParameters, options) {
3757
+ return ManagerClubsApiFp(this.configuration).updateClubNoId(requestParameters.updateClubRequest, options).then((request) => request(this.axios, this.basePath));
2914
3758
  }
2915
3759
  }
2916
3760
  /**
@@ -2919,6 +3763,39 @@ export class ManagerClubsApi extends BaseAPI {
2919
3763
  */
2920
3764
  export const ManagerSportsApiAxiosParamCreator = function (configuration) {
2921
3765
  return {
3766
+ /**
3767
+ *
3768
+ * @summary Créer un sport dans un club
3769
+ * @param {CreateSportRequest} createSportRequest
3770
+ * @param {*} [options] Override http request option.
3771
+ * @throws {RequiredError}
3772
+ */
3773
+ createSport: (createSportRequest_1, ...args_1) => __awaiter(this, [createSportRequest_1, ...args_1], void 0, function* (createSportRequest, options = {}) {
3774
+ // verify required parameter 'createSportRequest' is not null or undefined
3775
+ assertParamExists('createSport', 'createSportRequest', createSportRequest);
3776
+ const localVarPath = `/api/sports`;
3777
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3778
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3779
+ let baseOptions;
3780
+ if (configuration) {
3781
+ baseOptions = configuration.baseOptions;
3782
+ }
3783
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3784
+ const localVarHeaderParameter = {};
3785
+ const localVarQueryParameter = {};
3786
+ // authentication bearerAuth required
3787
+ // http bearer authentication required
3788
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3789
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3790
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3791
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3792
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3793
+ localVarRequestOptions.data = serializeDataIfNeeded(createSportRequest, localVarRequestOptions, configuration);
3794
+ return {
3795
+ url: toPathString(localVarUrlObj),
3796
+ options: localVarRequestOptions,
3797
+ };
3798
+ }),
2922
3799
  /**
2923
3800
  *
2924
3801
  * @summary Supprimer un sport
@@ -2997,6 +3874,22 @@ export const ManagerSportsApiAxiosParamCreator = function (configuration) {
2997
3874
  export const ManagerSportsApiFp = function (configuration) {
2998
3875
  const localVarAxiosParamCreator = ManagerSportsApiAxiosParamCreator(configuration);
2999
3876
  return {
3877
+ /**
3878
+ *
3879
+ * @summary Créer un sport dans un club
3880
+ * @param {CreateSportRequest} createSportRequest
3881
+ * @param {*} [options] Override http request option.
3882
+ * @throws {RequiredError}
3883
+ */
3884
+ createSport(createSportRequest, options) {
3885
+ return __awaiter(this, void 0, void 0, function* () {
3886
+ var _a, _b, _c;
3887
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createSport(createSportRequest, options);
3888
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3889
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ManagerSportsApi.createSport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3890
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3891
+ });
3892
+ },
3000
3893
  /**
3001
3894
  *
3002
3895
  * @summary Supprimer un sport
@@ -3039,6 +3932,16 @@ export const ManagerSportsApiFp = function (configuration) {
3039
3932
  export const ManagerSportsApiFactory = function (configuration, basePath, axios) {
3040
3933
  const localVarFp = ManagerSportsApiFp(configuration);
3041
3934
  return {
3935
+ /**
3936
+ *
3937
+ * @summary Créer un sport dans un club
3938
+ * @param {ManagerSportsApiCreateSportRequest} requestParameters Request parameters.
3939
+ * @param {*} [options] Override http request option.
3940
+ * @throws {RequiredError}
3941
+ */
3942
+ createSport(requestParameters, options) {
3943
+ return localVarFp.createSport(requestParameters.createSportRequest, options).then((request) => request(axios, basePath));
3944
+ },
3042
3945
  /**
3043
3946
  *
3044
3947
  * @summary Supprimer un sport
@@ -3068,6 +3971,17 @@ export const ManagerSportsApiFactory = function (configuration, basePath, axios)
3068
3971
  * @extends {BaseAPI}
3069
3972
  */
3070
3973
  export class ManagerSportsApi extends BaseAPI {
3974
+ /**
3975
+ *
3976
+ * @summary Créer un sport dans un club
3977
+ * @param {ManagerSportsApiCreateSportRequest} requestParameters Request parameters.
3978
+ * @param {*} [options] Override http request option.
3979
+ * @throws {RequiredError}
3980
+ * @memberof ManagerSportsApi
3981
+ */
3982
+ createSport(requestParameters, options) {
3983
+ return ManagerSportsApiFp(this.configuration).createSport(requestParameters.createSportRequest, options).then((request) => request(this.axios, this.basePath));
3984
+ }
3071
3985
  /**
3072
3986
  *
3073
3987
  * @summary Supprimer un sport
@@ -3099,16 +4013,12 @@ export const StaffClubAnalyticsApiAxiosParamCreator = function (configuration) {
3099
4013
  return {
3100
4014
  /**
3101
4015
  *
3102
- * @summary Get monthly turnover for the last six months
3103
- * @param {string} id ID du club
4016
+ * @summary Get monthly turnover for the last six months (club courant)
3104
4017
  * @param {*} [options] Override http request option.
3105
4018
  * @throws {RequiredError}
3106
4019
  */
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)));
4020
+ getLastSixMonthsTurnover: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
4021
+ const localVarPath = `/api/analytics/lastSixMonthsTurnover`;
3112
4022
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3113
4023
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3114
4024
  let baseOptions;
@@ -3132,11 +4042,13 @@ export const StaffClubAnalyticsApiAxiosParamCreator = function (configuration) {
3132
4042
  /**
3133
4043
  *
3134
4044
  * @summary Get number of users subscribed to the club
4045
+ * @param {string} [id] ID du club (optionnel, si absent, pris depuis le token)
3135
4046
  * @param {*} [options] Override http request option.
3136
4047
  * @throws {RequiredError}
3137
4048
  */
3138
- getNumberOfClubUsers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3139
- const localVarPath = `/api/clubs/user-count`;
4049
+ getNumberOfClubUsers: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
4050
+ const localVarPath = `/api/analytics/user-count`
4051
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
3140
4052
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3141
4053
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3142
4054
  let baseOptions;
@@ -3168,15 +4080,14 @@ export const StaffClubAnalyticsApiFp = function (configuration) {
3168
4080
  return {
3169
4081
  /**
3170
4082
  *
3171
- * @summary Get monthly turnover for the last six months
3172
- * @param {string} id ID du club
4083
+ * @summary Get monthly turnover for the last six months (club courant)
3173
4084
  * @param {*} [options] Override http request option.
3174
4085
  * @throws {RequiredError}
3175
4086
  */
3176
- getLastSixMonthsTurnover(id, options) {
4087
+ getLastSixMonthsTurnover(options) {
3177
4088
  return __awaiter(this, void 0, void 0, function* () {
3178
4089
  var _a, _b, _c;
3179
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getLastSixMonthsTurnover(id, options);
4090
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getLastSixMonthsTurnover(options);
3180
4091
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3181
4092
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StaffClubAnalyticsApi.getLastSixMonthsTurnover']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3182
4093
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3185,13 +4096,14 @@ export const StaffClubAnalyticsApiFp = function (configuration) {
3185
4096
  /**
3186
4097
  *
3187
4098
  * @summary Get number of users subscribed to the club
4099
+ * @param {string} [id] ID du club (optionnel, si absent, pris depuis le token)
3188
4100
  * @param {*} [options] Override http request option.
3189
4101
  * @throws {RequiredError}
3190
4102
  */
3191
- getNumberOfClubUsers(options) {
4103
+ getNumberOfClubUsers(id, options) {
3192
4104
  return __awaiter(this, void 0, void 0, function* () {
3193
4105
  var _a, _b, _c;
3194
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getNumberOfClubUsers(options);
4106
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getNumberOfClubUsers(id, options);
3195
4107
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3196
4108
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StaffClubAnalyticsApi.getNumberOfClubUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3197
4109
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3208,22 +4120,22 @@ export const StaffClubAnalyticsApiFactory = function (configuration, basePath, a
3208
4120
  return {
3209
4121
  /**
3210
4122
  *
3211
- * @summary Get monthly turnover for the last six months
3212
- * @param {StaffClubAnalyticsApiGetLastSixMonthsTurnoverRequest} requestParameters Request parameters.
4123
+ * @summary Get monthly turnover for the last six months (club courant)
3213
4124
  * @param {*} [options] Override http request option.
3214
4125
  * @throws {RequiredError}
3215
4126
  */
3216
- getLastSixMonthsTurnover(requestParameters, options) {
3217
- return localVarFp.getLastSixMonthsTurnover(requestParameters.id, options).then((request) => request(axios, basePath));
4127
+ getLastSixMonthsTurnover(options) {
4128
+ return localVarFp.getLastSixMonthsTurnover(options).then((request) => request(axios, basePath));
3218
4129
  },
3219
4130
  /**
3220
4131
  *
3221
4132
  * @summary Get number of users subscribed to the club
4133
+ * @param {StaffClubAnalyticsApiGetNumberOfClubUsersRequest} requestParameters Request parameters.
3222
4134
  * @param {*} [options] Override http request option.
3223
4135
  * @throws {RequiredError}
3224
4136
  */
3225
- getNumberOfClubUsers(options) {
3226
- return localVarFp.getNumberOfClubUsers(options).then((request) => request(axios, basePath));
4137
+ getNumberOfClubUsers(requestParameters = {}, options) {
4138
+ return localVarFp.getNumberOfClubUsers(requestParameters.id, options).then((request) => request(axios, basePath));
3227
4139
  },
3228
4140
  };
3229
4141
  };
@@ -3236,24 +4148,24 @@ export const StaffClubAnalyticsApiFactory = function (configuration, basePath, a
3236
4148
  export class StaffClubAnalyticsApi extends BaseAPI {
3237
4149
  /**
3238
4150
  *
3239
- * @summary Get monthly turnover for the last six months
3240
- * @param {StaffClubAnalyticsApiGetLastSixMonthsTurnoverRequest} requestParameters Request parameters.
4151
+ * @summary Get monthly turnover for the last six months (club courant)
3241
4152
  * @param {*} [options] Override http request option.
3242
4153
  * @throws {RequiredError}
3243
4154
  * @memberof StaffClubAnalyticsApi
3244
4155
  */
3245
- getLastSixMonthsTurnover(requestParameters, options) {
3246
- return StaffClubAnalyticsApiFp(this.configuration).getLastSixMonthsTurnover(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
4156
+ getLastSixMonthsTurnover(options) {
4157
+ return StaffClubAnalyticsApiFp(this.configuration).getLastSixMonthsTurnover(options).then((request) => request(this.axios, this.basePath));
3247
4158
  }
3248
4159
  /**
3249
4160
  *
3250
4161
  * @summary Get number of users subscribed to the club
4162
+ * @param {StaffClubAnalyticsApiGetNumberOfClubUsersRequest} requestParameters Request parameters.
3251
4163
  * @param {*} [options] Override http request option.
3252
4164
  * @throws {RequiredError}
3253
4165
  * @memberof StaffClubAnalyticsApi
3254
4166
  */
3255
- getNumberOfClubUsers(options) {
3256
- return StaffClubAnalyticsApiFp(this.configuration).getNumberOfClubUsers(options).then((request) => request(this.axios, this.basePath));
4167
+ getNumberOfClubUsers(requestParameters = {}, options) {
4168
+ return StaffClubAnalyticsApiFp(this.configuration).getNumberOfClubUsers(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
3257
4169
  }
3258
4170
  }
3259
4171
  /**
@@ -3264,16 +4176,12 @@ export const StaffClubBookingsApiAxiosParamCreator = function (configuration) {
3264
4176
  return {
3265
4177
  /**
3266
4178
  *
3267
- * @summary Get the ten next bookings for the club
3268
- * @param {string} id ID du club
4179
+ * @summary Get the ten next bookings for the current club
3269
4180
  * @param {*} [options] Override http request option.
3270
4181
  * @throws {RequiredError}
3271
4182
  */
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)));
4183
+ getTenNextBookings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
4184
+ const localVarPath = `/api/analytics/next-bookings`;
3277
4185
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3278
4186
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3279
4187
  let baseOptions;
@@ -3305,15 +4213,14 @@ export const StaffClubBookingsApiFp = function (configuration) {
3305
4213
  return {
3306
4214
  /**
3307
4215
  *
3308
- * @summary Get the ten next bookings for the club
3309
- * @param {string} id ID du club
4216
+ * @summary Get the ten next bookings for the current club
3310
4217
  * @param {*} [options] Override http request option.
3311
4218
  * @throws {RequiredError}
3312
4219
  */
3313
- getTenNextBookings(id, options) {
4220
+ getTenNextBookings(options) {
3314
4221
  return __awaiter(this, void 0, void 0, function* () {
3315
4222
  var _a, _b, _c;
3316
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getTenNextBookings(id, options);
4223
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getTenNextBookings(options);
3317
4224
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3318
4225
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StaffClubBookingsApi.getTenNextBookings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3319
4226
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3330,13 +4237,12 @@ export const StaffClubBookingsApiFactory = function (configuration, basePath, ax
3330
4237
  return {
3331
4238
  /**
3332
4239
  *
3333
- * @summary Get the ten next bookings for the club
3334
- * @param {StaffClubBookingsApiGetTenNextBookingsRequest} requestParameters Request parameters.
4240
+ * @summary Get the ten next bookings for the current club
3335
4241
  * @param {*} [options] Override http request option.
3336
4242
  * @throws {RequiredError}
3337
4243
  */
3338
- getTenNextBookings(requestParameters, options) {
3339
- return localVarFp.getTenNextBookings(requestParameters.id, options).then((request) => request(axios, basePath));
4244
+ getTenNextBookings(options) {
4245
+ return localVarFp.getTenNextBookings(options).then((request) => request(axios, basePath));
3340
4246
  },
3341
4247
  };
3342
4248
  };
@@ -3349,30 +4255,29 @@ export const StaffClubBookingsApiFactory = function (configuration, basePath, ax
3349
4255
  export class StaffClubBookingsApi extends BaseAPI {
3350
4256
  /**
3351
4257
  *
3352
- * @summary Get the ten next bookings for the club
3353
- * @param {StaffClubBookingsApiGetTenNextBookingsRequest} requestParameters Request parameters.
4258
+ * @summary Get the ten next bookings for the current club
3354
4259
  * @param {*} [options] Override http request option.
3355
4260
  * @throws {RequiredError}
3356
4261
  * @memberof StaffClubBookingsApi
3357
4262
  */
3358
- getTenNextBookings(requestParameters, options) {
3359
- return StaffClubBookingsApiFp(this.configuration).getTenNextBookings(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
4263
+ getTenNextBookings(options) {
4264
+ return StaffClubBookingsApiFp(this.configuration).getTenNextBookings(options).then((request) => request(this.axios, this.basePath));
3360
4265
  }
3361
4266
  }
3362
4267
  /**
3363
- * StaffClubSettingsApi - axios parameter creator
4268
+ * StaffClubsApi - axios parameter creator
3364
4269
  * @export
3365
4270
  */
3366
- export const StaffClubSettingsApiAxiosParamCreator = function (configuration) {
4271
+ export const StaffClubsApiAxiosParamCreator = function (configuration) {
3367
4272
  return {
3368
4273
  /**
3369
4274
  *
3370
- * @summary Récupère les paramètres d\'un club
4275
+ * @summary Get current club information
3371
4276
  * @param {*} [options] Override http request option.
3372
4277
  * @throws {RequiredError}
3373
4278
  */
3374
- getClubSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3375
- const localVarPath = `/api/club-settings`;
4279
+ getClubInfos: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
4280
+ const localVarPath = `/api/clubs/infos`;
3376
4281
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3377
4282
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3378
4283
  let baseOptions;
@@ -3393,86 +4298,17 @@ export const StaffClubSettingsApiAxiosParamCreator = function (configuration) {
3393
4298
  options: localVarRequestOptions,
3394
4299
  };
3395
4300
  }),
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));
3456
- }
3457
- }
3458
- /**
3459
- * StaffClubsApi - axios parameter creator
3460
- * @export
3461
- */
3462
- export const StaffClubsApiAxiosParamCreator = function (configuration) {
3463
- return {
3464
4301
  /**
3465
4302
  *
3466
- * @summary Get club information (name, address, email, etc.)
3467
- * @param {string} id ID du club
4303
+ * @summary Récupère les paramètres d’un club
4304
+ * @param {GetClubSettingsRequest} getClubSettingsRequest
3468
4305
  * @param {*} [options] Override http request option.
3469
4306
  * @throws {RequiredError}
3470
4307
  */
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)));
4308
+ getClubSettings: (getClubSettingsRequest_1, ...args_1) => __awaiter(this, [getClubSettingsRequest_1, ...args_1], void 0, function* (getClubSettingsRequest, options = {}) {
4309
+ // verify required parameter 'getClubSettingsRequest' is not null or undefined
4310
+ assertParamExists('getClubSettings', 'getClubSettingsRequest', getClubSettingsRequest);
4311
+ const localVarPath = `/api/club-settings`;
3476
4312
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3477
4313
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3478
4314
  let baseOptions;
@@ -3485,9 +4321,11 @@ export const StaffClubsApiAxiosParamCreator = function (configuration) {
3485
4321
  // authentication bearerAuth required
3486
4322
  // http bearer authentication required
3487
4323
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4324
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3488
4325
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3489
4326
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3490
4327
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4328
+ localVarRequestOptions.data = serializeDataIfNeeded(getClubSettingsRequest, localVarRequestOptions, configuration);
3491
4329
  return {
3492
4330
  url: toPathString(localVarUrlObj),
3493
4331
  options: localVarRequestOptions,
@@ -3504,20 +4342,35 @@ export const StaffClubsApiFp = function (configuration) {
3504
4342
  return {
3505
4343
  /**
3506
4344
  *
3507
- * @summary Get club information (name, address, email, etc.)
3508
- * @param {string} id ID du club
4345
+ * @summary Get current club information
3509
4346
  * @param {*} [options] Override http request option.
3510
4347
  * @throws {RequiredError}
3511
4348
  */
3512
- getClubInfos(id, options) {
4349
+ getClubInfos(options) {
3513
4350
  return __awaiter(this, void 0, void 0, function* () {
3514
4351
  var _a, _b, _c;
3515
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubInfos(id, options);
4352
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubInfos(options);
3516
4353
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3517
4354
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StaffClubsApi.getClubInfos']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3518
4355
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3519
4356
  });
3520
4357
  },
4358
+ /**
4359
+ *
4360
+ * @summary Récupère les paramètres d’un club
4361
+ * @param {GetClubSettingsRequest} getClubSettingsRequest
4362
+ * @param {*} [options] Override http request option.
4363
+ * @throws {RequiredError}
4364
+ */
4365
+ getClubSettings(getClubSettingsRequest, options) {
4366
+ return __awaiter(this, void 0, void 0, function* () {
4367
+ var _a, _b, _c;
4368
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubSettings(getClubSettingsRequest, options);
4369
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4370
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StaffClubsApi.getClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4371
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4372
+ });
4373
+ },
3521
4374
  };
3522
4375
  };
3523
4376
  /**
@@ -3529,13 +4382,22 @@ export const StaffClubsApiFactory = function (configuration, basePath, axios) {
3529
4382
  return {
3530
4383
  /**
3531
4384
  *
3532
- * @summary Get club information (name, address, email, etc.)
3533
- * @param {StaffClubsApiGetClubInfosRequest} requestParameters Request parameters.
4385
+ * @summary Get current club information
4386
+ * @param {*} [options] Override http request option.
4387
+ * @throws {RequiredError}
4388
+ */
4389
+ getClubInfos(options) {
4390
+ return localVarFp.getClubInfos(options).then((request) => request(axios, basePath));
4391
+ },
4392
+ /**
4393
+ *
4394
+ * @summary Récupère les paramètres d’un club
4395
+ * @param {StaffClubsApiGetClubSettingsRequest} requestParameters Request parameters.
3534
4396
  * @param {*} [options] Override http request option.
3535
4397
  * @throws {RequiredError}
3536
4398
  */
3537
- getClubInfos(requestParameters, options) {
3538
- return localVarFp.getClubInfos(requestParameters.id, options).then((request) => request(axios, basePath));
4399
+ getClubSettings(requestParameters, options) {
4400
+ return localVarFp.getClubSettings(requestParameters.getClubSettingsRequest, options).then((request) => request(axios, basePath));
3539
4401
  },
3540
4402
  };
3541
4403
  };
@@ -3548,14 +4410,24 @@ export const StaffClubsApiFactory = function (configuration, basePath, axios) {
3548
4410
  export class StaffClubsApi extends BaseAPI {
3549
4411
  /**
3550
4412
  *
3551
- * @summary Get club information (name, address, email, etc.)
3552
- * @param {StaffClubsApiGetClubInfosRequest} requestParameters Request parameters.
4413
+ * @summary Get current club information
4414
+ * @param {*} [options] Override http request option.
4415
+ * @throws {RequiredError}
4416
+ * @memberof StaffClubsApi
4417
+ */
4418
+ getClubInfos(options) {
4419
+ return StaffClubsApiFp(this.configuration).getClubInfos(options).then((request) => request(this.axios, this.basePath));
4420
+ }
4421
+ /**
4422
+ *
4423
+ * @summary Récupère les paramètres d’un club
4424
+ * @param {StaffClubsApiGetClubSettingsRequest} requestParameters Request parameters.
3553
4425
  * @param {*} [options] Override http request option.
3554
4426
  * @throws {RequiredError}
3555
4427
  * @memberof StaffClubsApi
3556
4428
  */
3557
- getClubInfos(requestParameters, options) {
3558
- return StaffClubsApiFp(this.configuration).getClubInfos(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
4429
+ getClubSettings(requestParameters, options) {
4430
+ return StaffClubsApiFp(this.configuration).getClubSettings(requestParameters.getClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
3559
4431
  }
3560
4432
  }
3561
4433
  /**
@@ -3637,125 +4509,21 @@ export const StaffProfileApiFactory = function (configuration, basePath, axios)
3637
4509
  };
3638
4510
  };
3639
4511
  /**
3640
- * StaffProfileApi - object-oriented interface
3641
- * @export
3642
- * @class StaffProfileApi
3643
- * @extends {BaseAPI}
3644
- */
3645
- export class StaffProfileApi extends BaseAPI {
3646
- /**
3647
- *
3648
- * @summary Récupère les rôles de l\'utilisateur dans les clubs
3649
- * @param {*} [options] Override http request option.
3650
- * @throws {RequiredError}
3651
- * @memberof StaffProfileApi
3652
- */
3653
- getUserRolesInClubs(options) {
3654
- return StaffProfileApiFp(this.configuration).getUserRolesInClubs(options).then((request) => request(this.axios, this.basePath));
3655
- }
3656
- }
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
4512
+ * StaffProfileApi - object-oriented interface
3744
4513
  * @export
3745
- * @class StaffSportsApi
4514
+ * @class StaffProfileApi
3746
4515
  * @extends {BaseAPI}
3747
4516
  */
3748
- export class StaffSportsApi extends BaseAPI {
4517
+ export class StaffProfileApi extends BaseAPI {
3749
4518
  /**
3750
4519
  *
3751
- * @summary Récupère la liste des sports d\'un club
3752
- * @param {StaffSportsApiGetAllSportsRequest} requestParameters Request parameters.
4520
+ * @summary Récupère les rôles de l\'utilisateur dans les clubs
3753
4521
  * @param {*} [options] Override http request option.
3754
4522
  * @throws {RequiredError}
3755
- * @memberof StaffSportsApi
4523
+ * @memberof StaffProfileApi
3756
4524
  */
3757
- getAllSports(requestParameters, options) {
3758
- return StaffSportsApiFp(this.configuration).getAllSports(requestParameters.getAllSportsRequest, options).then((request) => request(this.axios, this.basePath));
4525
+ getUserRolesInClubs(options) {
4526
+ return StaffProfileApiFp(this.configuration).getUserRolesInClubs(options).then((request) => request(this.axios, this.basePath));
3759
4527
  }
3760
4528
  }
3761
4529
  /**
@@ -3764,39 +4532,6 @@ export class StaffSportsApi extends BaseAPI {
3764
4532
  */
3765
4533
  export const UserApiAxiosParamCreator = function (configuration) {
3766
4534
  return {
3767
- /**
3768
- *
3769
- * @summary Abonne l\'utilisateur connecté à un club
3770
- * @param {SubscribeToClubRequestBody} subscribeToClubRequestBody
3771
- * @param {*} [options] Override http request option.
3772
- * @throws {RequiredError}
3773
- */
3774
- subscribeToClub: (subscribeToClubRequestBody_1, ...args_1) => __awaiter(this, [subscribeToClubRequestBody_1, ...args_1], void 0, function* (subscribeToClubRequestBody, options = {}) {
3775
- // verify required parameter 'subscribeToClubRequestBody' is not null or undefined
3776
- assertParamExists('subscribeToClub', 'subscribeToClubRequestBody', subscribeToClubRequestBody);
3777
- const localVarPath = `/api/users/me/subscribe`;
3778
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3779
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3780
- let baseOptions;
3781
- if (configuration) {
3782
- baseOptions = configuration.baseOptions;
3783
- }
3784
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3785
- const localVarHeaderParameter = {};
3786
- const localVarQueryParameter = {};
3787
- // authentication bearerAuth required
3788
- // http bearer authentication required
3789
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3790
- localVarHeaderParameter['Content-Type'] = 'application/json';
3791
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3792
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3793
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3794
- localVarRequestOptions.data = serializeDataIfNeeded(subscribeToClubRequestBody, localVarRequestOptions, configuration);
3795
- return {
3796
- url: toPathString(localVarUrlObj),
3797
- options: localVarRequestOptions,
3798
- };
3799
- }),
3800
4535
  /**
3801
4536
  *
3802
4537
  * @summary Met à jour le Customer Stripe de l\'utilisateur
@@ -3839,22 +4574,6 @@ export const UserApiAxiosParamCreator = function (configuration) {
3839
4574
  export const UserApiFp = function (configuration) {
3840
4575
  const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration);
3841
4576
  return {
3842
- /**
3843
- *
3844
- * @summary Abonne l\'utilisateur connecté à un club
3845
- * @param {SubscribeToClubRequestBody} subscribeToClubRequestBody
3846
- * @param {*} [options] Override http request option.
3847
- * @throws {RequiredError}
3848
- */
3849
- subscribeToClub(subscribeToClubRequestBody, options) {
3850
- return __awaiter(this, void 0, void 0, function* () {
3851
- var _a, _b, _c;
3852
- const localVarAxiosArgs = yield localVarAxiosParamCreator.subscribeToClub(subscribeToClubRequestBody, options);
3853
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3854
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.subscribeToClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3855
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3856
- });
3857
- },
3858
4577
  /**
3859
4578
  *
3860
4579
  * @summary Met à jour le Customer Stripe de l\'utilisateur
@@ -3880,16 +4599,6 @@ export const UserApiFp = function (configuration) {
3880
4599
  export const UserApiFactory = function (configuration, basePath, axios) {
3881
4600
  const localVarFp = UserApiFp(configuration);
3882
4601
  return {
3883
- /**
3884
- *
3885
- * @summary Abonne l\'utilisateur connecté à un club
3886
- * @param {UserApiSubscribeToClubRequest} requestParameters Request parameters.
3887
- * @param {*} [options] Override http request option.
3888
- * @throws {RequiredError}
3889
- */
3890
- subscribeToClub(requestParameters, options) {
3891
- return localVarFp.subscribeToClub(requestParameters.subscribeToClubRequestBody, options).then((request) => request(axios, basePath));
3892
- },
3893
4602
  /**
3894
4603
  *
3895
4604
  * @summary Met à jour le Customer Stripe de l\'utilisateur
@@ -3909,17 +4618,6 @@ export const UserApiFactory = function (configuration, basePath, axios) {
3909
4618
  * @extends {BaseAPI}
3910
4619
  */
3911
4620
  export class UserApi extends BaseAPI {
3912
- /**
3913
- *
3914
- * @summary Abonne l\'utilisateur connecté à un club
3915
- * @param {UserApiSubscribeToClubRequest} requestParameters Request parameters.
3916
- * @param {*} [options] Override http request option.
3917
- * @throws {RequiredError}
3918
- * @memberof UserApi
3919
- */
3920
- subscribeToClub(requestParameters, options) {
3921
- return UserApiFp(this.configuration).subscribeToClub(requestParameters.subscribeToClubRequestBody, options).then((request) => request(this.axios, this.basePath));
3922
- }
3923
4621
  /**
3924
4622
  *
3925
4623
  * @summary Met à jour le Customer Stripe de l\'utilisateur
@@ -5002,6 +5700,39 @@ export class UserClubsApi extends BaseAPI {
5002
5700
  */
5003
5701
  export const UserPaymentApiAxiosParamCreator = function (configuration) {
5004
5702
  return {
5703
+ /**
5704
+ *
5705
+ * @summary Ajoute une méthode de paiement Stripe à la liste de l\'utilisateur
5706
+ * @param {AddPaymentMethodSetupRequestBody} addPaymentMethodSetupRequestBody
5707
+ * @param {*} [options] Override http request option.
5708
+ * @throws {RequiredError}
5709
+ */
5710
+ addPaymentMethodSetup: (addPaymentMethodSetupRequestBody_1, ...args_1) => __awaiter(this, [addPaymentMethodSetupRequestBody_1, ...args_1], void 0, function* (addPaymentMethodSetupRequestBody, options = {}) {
5711
+ // verify required parameter 'addPaymentMethodSetupRequestBody' is not null or undefined
5712
+ assertParamExists('addPaymentMethodSetup', 'addPaymentMethodSetupRequestBody', addPaymentMethodSetupRequestBody);
5713
+ const localVarPath = `/api/users/addPaymentMethodSetup`;
5714
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5715
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5716
+ let baseOptions;
5717
+ if (configuration) {
5718
+ baseOptions = configuration.baseOptions;
5719
+ }
5720
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5721
+ const localVarHeaderParameter = {};
5722
+ const localVarQueryParameter = {};
5723
+ // authentication bearerAuth required
5724
+ // http bearer authentication required
5725
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5726
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5727
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5728
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5729
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5730
+ localVarRequestOptions.data = serializeDataIfNeeded(addPaymentMethodSetupRequestBody, localVarRequestOptions, configuration);
5731
+ return {
5732
+ url: toPathString(localVarUrlObj),
5733
+ options: localVarRequestOptions,
5734
+ };
5735
+ }),
5005
5736
  /**
5006
5737
  * Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
5007
5738
  * @summary Confirme la configuration d\'une méthode de paiement
@@ -5077,6 +5808,22 @@ export const UserPaymentApiAxiosParamCreator = function (configuration) {
5077
5808
  export const UserPaymentApiFp = function (configuration) {
5078
5809
  const localVarAxiosParamCreator = UserPaymentApiAxiosParamCreator(configuration);
5079
5810
  return {
5811
+ /**
5812
+ *
5813
+ * @summary Ajoute une méthode de paiement Stripe à la liste de l\'utilisateur
5814
+ * @param {AddPaymentMethodSetupRequestBody} addPaymentMethodSetupRequestBody
5815
+ * @param {*} [options] Override http request option.
5816
+ * @throws {RequiredError}
5817
+ */
5818
+ addPaymentMethodSetup(addPaymentMethodSetupRequestBody, options) {
5819
+ return __awaiter(this, void 0, void 0, function* () {
5820
+ var _a, _b, _c;
5821
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addPaymentMethodSetup(addPaymentMethodSetupRequestBody, options);
5822
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5823
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserPaymentApi.addPaymentMethodSetup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5824
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5825
+ });
5826
+ },
5080
5827
  /**
5081
5828
  * Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
5082
5829
  * @summary Confirme la configuration d\'une méthode de paiement
@@ -5118,6 +5865,16 @@ export const UserPaymentApiFp = function (configuration) {
5118
5865
  export const UserPaymentApiFactory = function (configuration, basePath, axios) {
5119
5866
  const localVarFp = UserPaymentApiFp(configuration);
5120
5867
  return {
5868
+ /**
5869
+ *
5870
+ * @summary Ajoute une méthode de paiement Stripe à la liste de l\'utilisateur
5871
+ * @param {UserPaymentApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
5872
+ * @param {*} [options] Override http request option.
5873
+ * @throws {RequiredError}
5874
+ */
5875
+ addPaymentMethodSetup(requestParameters, options) {
5876
+ return localVarFp.addPaymentMethodSetup(requestParameters.addPaymentMethodSetupRequestBody, options).then((request) => request(axios, basePath));
5877
+ },
5121
5878
  /**
5122
5879
  * Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
5123
5880
  * @summary Confirme la configuration d\'une méthode de paiement
@@ -5147,6 +5904,17 @@ export const UserPaymentApiFactory = function (configuration, basePath, axios) {
5147
5904
  * @extends {BaseAPI}
5148
5905
  */
5149
5906
  export class UserPaymentApi extends BaseAPI {
5907
+ /**
5908
+ *
5909
+ * @summary Ajoute une méthode de paiement Stripe à la liste de l\'utilisateur
5910
+ * @param {UserPaymentApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
5911
+ * @param {*} [options] Override http request option.
5912
+ * @throws {RequiredError}
5913
+ * @memberof UserPaymentApi
5914
+ */
5915
+ addPaymentMethodSetup(requestParameters, options) {
5916
+ return UserPaymentApiFp(this.configuration).addPaymentMethodSetup(requestParameters.addPaymentMethodSetupRequestBody, options).then((request) => request(this.axios, this.basePath));
5917
+ }
5150
5918
  /**
5151
5919
  * Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
5152
5920
  * @summary Confirme la configuration d\'une méthode de paiement
@@ -5249,6 +6017,34 @@ export const UserProfileApiAxiosParamCreator = function (configuration) {
5249
6017
  options: localVarRequestOptions,
5250
6018
  };
5251
6019
  }),
6020
+ /**
6021
+ *
6022
+ * @summary Récupère l\'URL de la photo de profil de l\'utilisateur connecté
6023
+ * @param {*} [options] Override http request option.
6024
+ * @throws {RequiredError}
6025
+ */
6026
+ getProfilePicture: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6027
+ const localVarPath = `/api/users/me/profile-picture`;
6028
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6029
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6030
+ let baseOptions;
6031
+ if (configuration) {
6032
+ baseOptions = configuration.baseOptions;
6033
+ }
6034
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6035
+ const localVarHeaderParameter = {};
6036
+ const localVarQueryParameter = {};
6037
+ // authentication bearerAuth required
6038
+ // http bearer authentication required
6039
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6040
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6041
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6042
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6043
+ return {
6044
+ url: toPathString(localVarUrlObj),
6045
+ options: localVarRequestOptions,
6046
+ };
6047
+ }),
5252
6048
  /**
5253
6049
  *
5254
6050
  * @summary Récupère les informations de l\'utilisateur connecté
@@ -5277,6 +6073,72 @@ export const UserProfileApiAxiosParamCreator = function (configuration) {
5277
6073
  options: localVarRequestOptions,
5278
6074
  };
5279
6075
  }),
6076
+ /**
6077
+ *
6078
+ * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
6079
+ * @param {UpdateLevelBySportsRequestBody} updateLevelBySportsRequestBody
6080
+ * @param {*} [options] Override http request option.
6081
+ * @throws {RequiredError}
6082
+ */
6083
+ updateLevelBySports: (updateLevelBySportsRequestBody_1, ...args_1) => __awaiter(this, [updateLevelBySportsRequestBody_1, ...args_1], void 0, function* (updateLevelBySportsRequestBody, options = {}) {
6084
+ // verify required parameter 'updateLevelBySportsRequestBody' is not null or undefined
6085
+ assertParamExists('updateLevelBySports', 'updateLevelBySportsRequestBody', updateLevelBySportsRequestBody);
6086
+ const localVarPath = `/api/users/me/level-by-sports`;
6087
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6088
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6089
+ let baseOptions;
6090
+ if (configuration) {
6091
+ baseOptions = configuration.baseOptions;
6092
+ }
6093
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
6094
+ const localVarHeaderParameter = {};
6095
+ const localVarQueryParameter = {};
6096
+ // authentication bearerAuth required
6097
+ // http bearer authentication required
6098
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6099
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6100
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6101
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6102
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6103
+ localVarRequestOptions.data = serializeDataIfNeeded(updateLevelBySportsRequestBody, localVarRequestOptions, configuration);
6104
+ return {
6105
+ url: toPathString(localVarUrlObj),
6106
+ options: localVarRequestOptions,
6107
+ };
6108
+ }),
6109
+ /**
6110
+ *
6111
+ * @summary Met à jour l\'URL de la photo de profil de l\'utilisateur connecté
6112
+ * @param {UpdateProfilePictureRequestBody} updateProfilePictureRequestBody
6113
+ * @param {*} [options] Override http request option.
6114
+ * @throws {RequiredError}
6115
+ */
6116
+ updateProfilePicture: (updateProfilePictureRequestBody_1, ...args_1) => __awaiter(this, [updateProfilePictureRequestBody_1, ...args_1], void 0, function* (updateProfilePictureRequestBody, options = {}) {
6117
+ // verify required parameter 'updateProfilePictureRequestBody' is not null or undefined
6118
+ assertParamExists('updateProfilePicture', 'updateProfilePictureRequestBody', updateProfilePictureRequestBody);
6119
+ const localVarPath = `/api/users/me/profile-picture`;
6120
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6121
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6122
+ let baseOptions;
6123
+ if (configuration) {
6124
+ baseOptions = configuration.baseOptions;
6125
+ }
6126
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
6127
+ const localVarHeaderParameter = {};
6128
+ const localVarQueryParameter = {};
6129
+ // authentication bearerAuth required
6130
+ // http bearer authentication required
6131
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6132
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6133
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6134
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6135
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6136
+ localVarRequestOptions.data = serializeDataIfNeeded(updateProfilePictureRequestBody, localVarRequestOptions, configuration);
6137
+ return {
6138
+ url: toPathString(localVarUrlObj),
6139
+ options: localVarRequestOptions,
6140
+ };
6141
+ }),
5280
6142
  /**
5281
6143
  *
5282
6144
  * @summary Met à jour les données de l\'utilisateur connecté
@@ -5353,6 +6215,21 @@ export const UserProfileApiFp = function (configuration) {
5353
6215
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5354
6216
  });
5355
6217
  },
6218
+ /**
6219
+ *
6220
+ * @summary Récupère l\'URL de la photo de profil de l\'utilisateur connecté
6221
+ * @param {*} [options] Override http request option.
6222
+ * @throws {RequiredError}
6223
+ */
6224
+ getProfilePicture(options) {
6225
+ return __awaiter(this, void 0, void 0, function* () {
6226
+ var _a, _b, _c;
6227
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getProfilePicture(options);
6228
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6229
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.getProfilePicture']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6230
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6231
+ });
6232
+ },
5356
6233
  /**
5357
6234
  *
5358
6235
  * @summary Récupère les informations de l\'utilisateur connecté
@@ -5368,6 +6245,38 @@ export const UserProfileApiFp = function (configuration) {
5368
6245
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5369
6246
  });
5370
6247
  },
6248
+ /**
6249
+ *
6250
+ * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
6251
+ * @param {UpdateLevelBySportsRequestBody} updateLevelBySportsRequestBody
6252
+ * @param {*} [options] Override http request option.
6253
+ * @throws {RequiredError}
6254
+ */
6255
+ updateLevelBySports(updateLevelBySportsRequestBody, options) {
6256
+ return __awaiter(this, void 0, void 0, function* () {
6257
+ var _a, _b, _c;
6258
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateLevelBySports(updateLevelBySportsRequestBody, options);
6259
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6260
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.updateLevelBySports']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6261
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6262
+ });
6263
+ },
6264
+ /**
6265
+ *
6266
+ * @summary Met à jour l\'URL de la photo de profil de l\'utilisateur connecté
6267
+ * @param {UpdateProfilePictureRequestBody} updateProfilePictureRequestBody
6268
+ * @param {*} [options] Override http request option.
6269
+ * @throws {RequiredError}
6270
+ */
6271
+ updateProfilePicture(updateProfilePictureRequestBody, options) {
6272
+ return __awaiter(this, void 0, void 0, function* () {
6273
+ var _a, _b, _c;
6274
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateProfilePicture(updateProfilePictureRequestBody, options);
6275
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6276
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.updateProfilePicture']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6277
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6278
+ });
6279
+ },
5371
6280
  /**
5372
6281
  *
5373
6282
  * @summary Met à jour les données de l\'utilisateur connecté
@@ -5413,6 +6322,15 @@ export const UserProfileApiFactory = function (configuration, basePath, axios) {
5413
6322
  getAllUsers(requestParameters = {}, options) {
5414
6323
  return localVarFp.getAllUsers(requestParameters.limit, requestParameters.skip, requestParameters.search, options).then((request) => request(axios, basePath));
5415
6324
  },
6325
+ /**
6326
+ *
6327
+ * @summary Récupère l\'URL de la photo de profil de l\'utilisateur connecté
6328
+ * @param {*} [options] Override http request option.
6329
+ * @throws {RequiredError}
6330
+ */
6331
+ getProfilePicture(options) {
6332
+ return localVarFp.getProfilePicture(options).then((request) => request(axios, basePath));
6333
+ },
5416
6334
  /**
5417
6335
  *
5418
6336
  * @summary Récupère les informations de l\'utilisateur connecté
@@ -5422,6 +6340,26 @@ export const UserProfileApiFactory = function (configuration, basePath, axios) {
5422
6340
  getUserInfo(options) {
5423
6341
  return localVarFp.getUserInfo(options).then((request) => request(axios, basePath));
5424
6342
  },
6343
+ /**
6344
+ *
6345
+ * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
6346
+ * @param {UserProfileApiUpdateLevelBySportsRequest} requestParameters Request parameters.
6347
+ * @param {*} [options] Override http request option.
6348
+ * @throws {RequiredError}
6349
+ */
6350
+ updateLevelBySports(requestParameters, options) {
6351
+ return localVarFp.updateLevelBySports(requestParameters.updateLevelBySportsRequestBody, options).then((request) => request(axios, basePath));
6352
+ },
6353
+ /**
6354
+ *
6355
+ * @summary Met à jour l\'URL de la photo de profil de l\'utilisateur connecté
6356
+ * @param {UserProfileApiUpdateProfilePictureRequest} requestParameters Request parameters.
6357
+ * @param {*} [options] Override http request option.
6358
+ * @throws {RequiredError}
6359
+ */
6360
+ updateProfilePicture(requestParameters, options) {
6361
+ return localVarFp.updateProfilePicture(requestParameters.updateProfilePictureRequestBody, options).then((request) => request(axios, basePath));
6362
+ },
5425
6363
  /**
5426
6364
  *
5427
6365
  * @summary Met à jour les données de l\'utilisateur connecté
@@ -5463,6 +6401,16 @@ export class UserProfileApi extends BaseAPI {
5463
6401
  getAllUsers(requestParameters = {}, options) {
5464
6402
  return UserProfileApiFp(this.configuration).getAllUsers(requestParameters.limit, requestParameters.skip, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
5465
6403
  }
6404
+ /**
6405
+ *
6406
+ * @summary Récupère l\'URL de la photo de profil de l\'utilisateur connecté
6407
+ * @param {*} [options] Override http request option.
6408
+ * @throws {RequiredError}
6409
+ * @memberof UserProfileApi
6410
+ */
6411
+ getProfilePicture(options) {
6412
+ return UserProfileApiFp(this.configuration).getProfilePicture(options).then((request) => request(this.axios, this.basePath));
6413
+ }
5466
6414
  /**
5467
6415
  *
5468
6416
  * @summary Récupère les informations de l\'utilisateur connecté
@@ -5473,6 +6421,28 @@ export class UserProfileApi extends BaseAPI {
5473
6421
  getUserInfo(options) {
5474
6422
  return UserProfileApiFp(this.configuration).getUserInfo(options).then((request) => request(this.axios, this.basePath));
5475
6423
  }
6424
+ /**
6425
+ *
6426
+ * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
6427
+ * @param {UserProfileApiUpdateLevelBySportsRequest} requestParameters Request parameters.
6428
+ * @param {*} [options] Override http request option.
6429
+ * @throws {RequiredError}
6430
+ * @memberof UserProfileApi
6431
+ */
6432
+ updateLevelBySports(requestParameters, options) {
6433
+ return UserProfileApiFp(this.configuration).updateLevelBySports(requestParameters.updateLevelBySportsRequestBody, options).then((request) => request(this.axios, this.basePath));
6434
+ }
6435
+ /**
6436
+ *
6437
+ * @summary Met à jour l\'URL de la photo de profil de l\'utilisateur connecté
6438
+ * @param {UserProfileApiUpdateProfilePictureRequest} requestParameters Request parameters.
6439
+ * @param {*} [options] Override http request option.
6440
+ * @throws {RequiredError}
6441
+ * @memberof UserProfileApi
6442
+ */
6443
+ updateProfilePicture(requestParameters, options) {
6444
+ return UserProfileApiFp(this.configuration).updateProfilePicture(requestParameters.updateProfilePictureRequestBody, options).then((request) => request(this.axios, this.basePath));
6445
+ }
5476
6446
  /**
5477
6447
  *
5478
6448
  * @summary Met à jour les données de l\'utilisateur connecté